fflush: be more paranoid about libio.h change
[gnulib.git] / ChangeLog
bloba9cd4aed19b695ec2d7035fb966f5006eebb3654
1 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3         fflush: be more paranoid about libio.h change
4         Suggested by Eli Zaretskii in:
5         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
6         * lib/fbufmode.c (fbufmode):
7         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8         (disable_seek_optimization, rpl_fflush):
9         * lib/fpending.c (__fpending):
10         * lib/fpurge.c (fpurge):
11         * lib/freadable.c (freadable):
12         * lib/freadahead.c (freadahead):
13         * lib/freading.c (freading):
14         * lib/freadptr.c (freadptr):
15         * lib/freadseek.c (freadptrinc):
16         * lib/fseeko.c (fseeko):
17         * lib/fseterr.c (fseterr):
18         * lib/fwritable.c (fwritable):
19         * lib/fwriting.c (fwriting):
20         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
22 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24         maint: write-file-hooks -> before-save-hook
25         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
26         it's time to use the recommended replacement.
27         Problem reported by Glenn Morris in:
28         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
29         * build-aux/announce-gen, build-aux/bootstrap:
30         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
31         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
32         * build-aux/gnu-web-doc-update, build-aux/gnupload:
33         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
34         * build-aux/update-copyright, build-aux/useless-if-before-free:
35         * build-aux/vc-list-files:
36         Update hook usage for files where Gnulib is the canonical source.
38 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
40         binary-io: pacify gcc -Wunused-parameter
41         Problem reported by Reuben Thomas in:
42         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
43         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
44         Use _GL_UNUSED where appropriate.
46         fflush: adjust to glibc 2.28 libio.h removal
47         Problem reported by Daniel P. Berrangé in:
48         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
49         * lib/fbufmode.c (fbufmode):
50         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
51         (disable_seek_optimization, rpl_fflush):
52         * lib/fpending.c (__fpending):
53         * lib/fpurge.c (fpurge):
54         * lib/freadable.c (freadable):
55         * lib/freadahead.c (freadahead):
56         * lib/freading.c (freading):
57         * lib/freadptr.c (freadptr):
58         * lib/freadseek.c (freadptrinc):
59         * lib/fseeko.c (fseeko):
60         * lib/fseterr.c (fseterr):
61         * lib/fwritable.c (fwritable):
62         * lib/fwriting.c (fwriting):
63         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
64         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
65         Define if not already defined.
67 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
69         environ: fix link error on 32-bit Cygwin
70         Problem reported for GNU Emacs by Ken Brown in:
71         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
72         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
74 2018-02-24  Bruno Haible  <bruno@clisp.org>
76         mbrtowc tests: Fix regression on glibc.
77         Reported by Bernhard Voelker.
78         * tests/test-mbrtowc.c (main): Fix expected value of wc.
80 2018-02-24  Bruno Haible  <bruno@clisp.org>
82         striconveha, uniconv/*: Avoid test failures on musl libc.
83         * tests/iconvsupport.c: New file.
84         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
85         does not support the ISO-2022-JP-2 encoding.
86         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
88         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
90         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
91         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
92         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
93         (Makefile.am): Link test-striconveha with iconvsupport.o.
94         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
95         tests/iconvsupport.c.
96         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
97         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
98         tests/iconvsupport.c.
99         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
100         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
101         tests/iconvsupport.c.
102         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
103         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
104         tests/iconvsupport.c.
105         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
106         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
107         tests/iconvsupport.c.
108         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
109         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
110         tests/iconvsupport.c.
111         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
113 2018-02-24  Bruno Haible  <bruno@clisp.org>
115         localename: Add support for musl libc.
116         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
117         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
118         on Linux platforms which define NL_LOCALE_NAME.
120 2018-02-24  Bruno Haible  <bruno@clisp.org>
122         mbrtowc tests: Don't make assumptions about the charset the C locale.
123         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
124         particular mapping in the C locale.
126 2018-02-24  Bruno Haible  <bruno@clisp.org>
128         ptsname_r: Don't expect that this function sets errno.
129         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
130         from ptsname_r().
131         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
133 2018-02-23  Bruno Haible  <bruno@clisp.org>
135         xmalloca: pacify gcc -Wbad-function-cast
136         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
138 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
140         nl_langinfo: pacify gcc -Wunused-function
141         * lib/nl_langinfo.c (ctype_codeset): Do not define if
142         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
143         this case.  Without this change, I got a diagnostic when building
144         coreutils on Fedora 27 with gcc 7.3.1 20180130.
146         same: pacify gcc -Wunused-variable
147         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
148         Omit unused variable.
150         malloca: pacify gcc -Wbad-function-cast
151         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
152         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
153         To pacify GCC, I had to cast alloca’s result to some type other
154         than void * before casting that to uintptr_t.
156 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
158         utimecmp: new function utimecmpat
159         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
160         Do not include utimens.h.
161         (utimecmpat): New function, generalizing utimecmp.
162         (utimecmp): Now a thin layer around utimecmpat.
163         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
164         utimensat instead of on lstat and utimens.
166         same: new function same_nameat
167         * lib/same.c: Include fcntl.h.
168         * lib/same.c (same_nameat): New function, generalizing same_name.
169         (same_name): Now a thin layer around same_nameat.
170         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
171         * modules/same (Depends-on): Depend on fstatat, openat.
173 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
175         warnings: Add support for Objective C.
176         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
177         macro.
179 2018-02-17  Bruno Haible  <bruno@clisp.org>
181         lock: Fix test-once1 crash on FreeBSD11.
182         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
183         'pthread_create', not 'pthread_cancel'.
185 2018-02-17  Bruno Haible  <bruno@clisp.org>
187         lock: Add test of gl_once.
188         * tests/test-once.c: New file.
189         * modules/lock-tests (Files): Add it.
190         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
192 2018-02-17  Bruno Haible  <bruno@clisp.org>
194         thread: Fix compilation error on IRIX.
195         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
196         needed; include it outside the C++ extern "C" {} block.
197         * doc/posix-headers/pthread.texi: Mention the problem with
198         pthread_atfork on IRIX.
200 2018-02-04  Bruno Haible  <bruno@clisp.org>
202         nl_langinfo: Override the system's nl_langinfo() when needed.
203         Reported by Jim Meyering.
204         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
205         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
207 2018-02-04  Bruno Haible  <bruno@clisp.org>
209         signal-h, monetary, strings: Fix build failure in some cases.
210         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
211         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
212         as delimiter in sed command, not '|'.
213         * modules/monetary (Makefile.am): Likewise.
214         * modules/strings (Makefile.am): Likewise.
216 2018-02-03  Jim Meyering  <meyering@fb.com>
218         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
219         * top/maint.mk (sc_file_system): Don't complain about
220         "/proc/filesystems".
222 2018-02-03  Bruno Haible  <bruno@clisp.org>
224         stdlib: Fix compilation error on OpenIndiana.
225         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
226         <sys/time.h>.
227         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
228         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
230 2018-02-03  Bruno Haible  <bruno@clisp.org>
232         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
233         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
234         and use $EGREP instead of 'grep -E'.
235         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
236         'grep -E'.
238 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
240         malloca: Add a compile-time verification.
241         * lib/malloca.c (small_t): Verify that it is wide enough.
242         * modules/malloca (Depends-on): Add verify.
244 2018-02-02  Bruno Haible  <bruno@clisp.org>
246         malloca: Add an argument check.
247         Suggested by Paul Eggert.
248         * lib/malloca.c (freea): Check against an invalid argument.
250 2018-02-02  Bruno Haible  <bruno@clisp.org>
252         localename: Add support for OpenIndiana.
253         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
254         Solaris 11 variants with uselocale() but without getlocalename_l().
256 2018-02-02  Bruno Haible  <bruno@clisp.org>
258         malloca, xmalloca: Make multithread-safe.
259         Reported by Florian Weimer <fweimer@redhat.com>.
260         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
261         * lib/malloca.h (malloca): In the stack allocation case, return a
262         pointer that is a multiple of 2 * sa_alignment_max.
263         (sa_increment): Remove enum item.
264         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
265         a pointer that is a multiple of 2 * sa_alignment_max.
266         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
267         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
268         HASH_TABLE_SIZE, mmalloca_results): Remove.
269         (small_t): New type.
270         (mmalloca, free): Rewritten.
271         * lib/malloca.valgrind: Remove file.
272         * modules/malloca (Files): Remove it.
273         (Depends-on): Remove verify.
275 2018-01-31  Bruno Haible  <bruno@clisp.org>
277         environ: Fix link error on 64-bit Cygwin.
278         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
279         __declspec(dllimport) attribute.
280         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
282 2018-01-30  Bruno Haible  <bruno@clisp.org>
284         get-rusage-data: Add support for Minix 3.
285         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
287 2018-01-30  Bruno Haible  <bruno@clisp.org>
289         vma-iter: Add support for Minix 3.
290         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
291         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
293 2018-01-27  Bruno Haible  <bruno@clisp.org>
295         Fix malfunction of socket functions on HP-UX in 64-bit mode.
296         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
298         _HPUX_ALT_XOPEN_SOCKET_API.
299         * modules/accept (Depends-on): Add 'extensions'.
300         * modules/getpeername (Depends-on): Likewise.
301         * modules/getsockname (Depends-on): Likewise.
302         * modules/getsockopt (Depends-on): Likewise.
303         * modules/recvfrom (Depends-on): Likewise.
304         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
305         * doc/posix-functions/getpeername.texi: Likewise.
306         * doc/posix-functions/getsockname.texi: Likewise.
307         * doc/posix-functions/getsockopt.texi: Likewise.
308         * doc/posix-functions/recvfrom.texi: Likewise.
310 2018-01-27  Bruno Haible  <bruno@clisp.org>
312         getsockname tests: More tests.
313         * tests/test-getsockname.c (open_server_socket): New function, mostly
314         copied from test-poll.c.
315         (main): Check that getsockname fills in addr.
316         * modules/getsockname-tests (Depends-on): Add the necessary
317         dependencies.
318         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
320 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
322         manywarnings: fix maintainer comment
323         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
324         it does not mistakenly think that ‘-1)’ is an option.
326 2018-01-26  Bruno Haible  <bruno@clisp.org>
328         langinfo: Fix last commit.
329         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
330         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
332 2018-01-24  Bruno Haible  <bruno@clisp.org>
334         langinfo, nl_langinfo: Add support for alternative month names.
335         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
336         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
337         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
338         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
339         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
340         * doc/posix-functions/nl_langinfo.texi: Likewise.
342 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
344         Merge strftime.c changes from glibc
345         This incorporates:
346         2017-11-14 [BZ #10871] Implement alternative month names
347         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
348         2017-06-20 Use locale_t, not __locale_t, throughout glibc
349         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
350         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
351         Use locale_t, not __locale_t.
352         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
353         (__strftime_internal): Add support for alternate months.
355 2018-01-23  Bruno Haible  <bruno@clisp.org>
357         doc: Mention another prerequisite for using Gnulib.
358         Reported at <https://stackoverflow.com/questions/48378214/>.
359         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
360         AC_CONFIG_HEADERS.
362 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
364         build: GuixSD doesn't have /bin/bash
365         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
367 2018-01-21  Bruno Haible  <bruno@clisp.org>
369         Avoid test failures on Microsoft Windows Subsystem for Linux.
370         * tests/test-fcntl.c (main): Allow a different errno.
371         * tests/test-rename.h (test_rename): Likewise.
372         * tests/test-renameat.c (main): Likewise.
373         * tests/test-renameat2.c (main): Likewise.
375 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
377         filenamecat: make base a suffix of result
378         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
379         (mfile_name_concat): Always make BASE a suffix of the result, as
380         cp expects this.  To implement this, separate with '.' instead of
381         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
382         * tests/test-filenamecat.c (main): Adjust tests to match
383         current behavior.  Check that BASE_IN_RESULT points to
384         a copy of BASE and is a suffix of the resultk, and that DIR
385         is a prefix of the result that is no longer than the prefix
386         indicated by BASE_IN_RESULT.
388 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
390         update-copyright: Handle use of ©
391         * build-aux/update-copyright ($circle_c_re): Update regex to
392         handle use of © in headers.
394 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
396         Fix -Wundef warning in user-included header lib/cdefs.h.
397         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
399 2018-01-04  Bruno Haible  <bruno@clisp.org>
401         pthread_sigmask: Avoid compilation error on mingw.
402         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
403         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
404         macro.
406 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
408         test-framework-sh: ‘ps -ef’, not ‘ps ef’
409         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
410         Suggested by Bob Proulx (Bug#29968).
411         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
413 2018-01-02  Eric Blake  <eblake@redhat.com>
415         stat-time: silence -Wunused-parameter regression
416         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
417         Prefer attribute over cast-to-void.
418         (stat_time_normalize): Mark st as potentially unused.
420 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
422         test-framework-sh: avoid netstat
423         Problem reported by Kristýna Streitová (Bug#29947).
424         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
425         deprecated on SuSE and it's not that important anyway.
427 2018-01-01  Jim Meyering  <meyering@fb.com>
429         update-copyright: add code to handle more special cases
430         After running "make update-copyright" this year, five files
431         required additional manual changes.  Automate those adjustments
432         for next year.
433         * Makefile (_year_and_prev): Define.
434         (update-copyright): Add perl commands to induce this year's post-
435         update-copyright adjustments.
437 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
439         version-etc: new year
440         * build-aux/gendocs.sh (version):
441         * doc/gendocs_template:
442         * doc/gendocs_template_min:
443         * doc/gnulib.texi:
444         * lib/version-etc.c (COPYRIGHT_YEAR):
445         Update copyright dates by hand in templates and the like.
447         maint: fix 'make update-copyright'
448         * Makefile (update-copyright): Adjust to 2016-11-23 change
449         to config/srclist-update, which changed the format of srclist.txt.
451 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
453         chdir-safer: remove this module
454         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
455         * NEWS: Document removal.
456         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
457         * modules/chdir-safer: Remove these files.
459 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
461         Add cross-compilation results for GNU/Hurd.
462         * m4/calloc.m4: Add GNU/Hurd guess.
463         * m4/cbrtl.m4: Likewise.
464         * m4/ceil.m4: Likewise.
465         * m4/ceilf.m4: Likewise.
466         * m4/ceill.m4: Likewise.
467         * m4/chown.m4: Likewise.
468         * m4/duplocale.m4: Likewise.
469         * m4/exp2l.m4: Likewise.
470         * m4/expm1.m4: Likewise.
471         * m4/fchdir.m4: Likewise.
472         * m4/floor.m4: Likewise.
473         * m4/floorf.m4: Likewise.
474         * m4/fmod.m4: Likewise.
475         * m4/fmodf.m4: Likewise.
476         * m4/fmodl.m4: Likewise.
477         * m4/getcwd.m4: Likewise.
478         * m4/getgroups.m4: Likewise.
479         * m4/gettimeofday.m4: Likewise.
480         * m4/hypot.m4: Likewise.
481         * m4/hypotf.m4: Likewise.
482         * m4/hypotl.m4: Likewise.
483         * m4/link-follow.m4: Likewise.
484         * m4/link.m4: Likewise.
485         * m4/linkat.m4: Likewise.
486         * m4/log.m4: Likewise.
487         * m4/log10.m4: Likewise.
488         * m4/log10f.m4: Likewise.
489         * m4/log1p.m4: Likewise.
490         * m4/log1pf.m4: Likewise.
491         * m4/log1pl.m4: Likewise.
492         * m4/log2.m4: Likewise.
493         * m4/log2f.m4: Likewise.
494         * m4/logf.m4: Likewise.
495         * m4/lstat.m4: Likewise.
496         * m4/malloc.m4: Likewise.
497         * m4/mbrlen.m4: Likewise.
498         * m4/mbrtowc.m4: Likewise.
499         * m4/mkdir.m4: Likewise.
500         * m4/mkfifo.m4: Likewise.
501         * m4/mknod.m4: Likewise.
502         * m4/mkstemp.m4: Likewise.
503         * m4/modf.m4: Likewise.
504         * m4/modff.m4: Likewise.
505         * m4/modfl.m4: Likewise.
506         * m4/printf.m4: Likewise.
507         * m4/pselect.m4: Likewise.
508         * m4/ptsname.m4: Likewise.
509         * m4/putenv.m4: Likewise.
510         * m4/readlink.m4: Likewise.
511         * m4/realloc.m4: Likewise.
512         * m4/remainder.m4: Likewise.
513         * m4/remainderf.m4: Likewise.
514         * m4/remainderl.m4: Likewise.
515         * m4/rmdir.m4: Likewise.
516         * m4/round.m4: Likewise.
517         * m4/roundf.m4: Likewise.
518         * m4/roundl.m4: Likewise.
519         * m4/select.m4: Likewise.
520         * m4/setenv.m4: Likewise.
521         * m4/signbit.m4: Likewise.
522         * m4/sleep.m4: Likewise.
523         * m4/stat.m4: Likewise.
524         * m4/strerror.m4: Likewise.
525         * m4/strtok_r.m4: Likewise.
526         * m4/symlink.m4: Likewise.
527         * m4/symlinkat.m4: Likewise.
528         * m4/trunc.m4: Likewise.
529         * m4/truncf.m4: Likewise.
530         * m4/truncl.m4: Likewise.
531         * m4/tzset.m4: Likewise.
532         * m4/ungetc.m4: Likewise.
533         * m4/usleep.m4: Likewise.
534         * m4/wcwidth.m4: Likewise.
536 2017-12-28  Bruno Haible  <bruno@clisp.org>
538         gnulib-tool: Make --conditional-dependencies work better.
539         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
540         * gnulib-tool (Options): Don't reject the combination of
541         --conditional-dependencies with --with-tests.
542         (func_emit_autoconf_snippets): Add argument referenceable_modules.
543         Don't reference $modules.
544         (func_import, func_create_testdir): Pass it.
546 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
548         regex: use re_malloc etc. consistently
549         Problem and original patch reported by Arnold Robbins in:
550         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
551         * lib/regcomp.c (re_comp):
552         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
553         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
555 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
556             Paul Eggert  <eggert@cs.ucla.edu>
558         glob: Silence warning about void pointer arithmetic.
559         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
560         arithmetic.
562 2017-12-15  Bruno Haible  <bruno@clisp.org>
564         spawn-pipe: Silence a clang warning.
565         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
566         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
567         in this file.
569 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
571         explicit_bzero: port to macOS + Clang 9.0.0
572         Problem reported by Marcus Johnson (Bug#29658).
573         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
574         Don’t use asm.
576 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
578         doc: Improve explanation of supporting relocatable libraries.
579         * doc/relocatable-maint.texi (Supporting Relocation): Explain
580         properly how to build the relocatable module for
581         libraries. (Method and example code from Bruno Haible.)
583 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
585         doc: Use better texinfo tags in a few cases.
586         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
587         instead of @samp in a few places.
589 2017-12-11  Bruno Haible  <bruno@clisp.org>
591         unistr/base: Update comment.
592         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
594 2017-12-10  Pádraig Brady  <P@draigBrady.com>
596         test-faccessat.c: unlink temp file to avoid subsequent test failure
597         * tests/test-faccessat.c: Remove the file to avoid failure
598         to open the file on subsequent runs due to being created
599         with no permissions.
601 2017-12-10  Bruno Haible  <bruno@clisp.org>
603         doc: New sect. "Modifying the build rules of a Gnulib import directory".
604         * doc/gnulib-tool.texi (Modified build rules): New node.
606 2017-12-10  Bruno Haible  <bruno@clisp.org>
608         doc: Tweak wording.
609         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
610         "binaries".
612 2017-12-05  Sam Steingold  <sds@gnu.org>
613             Bruno Haible  <bruno@clisp.org>
615         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
616         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
617         AC_EGREP_CPP pattern.
619 2017-12-03  Bruno Haible  <bruno@clisp.org>
621         all: Replace more http URLs by https URLs.
622         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
623         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
624         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
625         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
627 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
629         Port better to CentOS 5
630         Problems reported by Tom G. Christensen in:
631         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
632         * doc/glibc-functions/strverscmp.texi (strverscmp):
633         Document strverscmp bug with glibc 2.9 and earlier.
634         * doc/posix-functions/tzset.texi (tzset):
635         Document that TZ with angle brackets is POSIX-2001 and later.
636         * tests/test-nstrftime.c: Include unistd.h.
637         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
638         (TZ): Use it to skip tests with angle brackets in TZ,
639         for older systems.
641         stat: add missing module dependencies
642         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
643         Add stat-time.
645 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
647         stat: fix compilation failure on macOS Sierra
648         Reported by Marius Schamschula <mschamschula@gmail.com> in:
649         https://savannah.gnu.org/bugs/?52546
650         * lib/stat.c: Add missing include of stat-time.h.
652 2017-11-28  Jim Meyering  <meyering@fb.com>
654         test-faccessat.c: correct BASE definition to avoid parallel test failure
655         * tests/test-faccessat.c (BASE): Define using this file's name, not
656         that of test-lstat.c.  Using the latter caused this test to fail
657         sometimes when run concurrently with test-lstat.
659 2017-11-27  Daiki Ueno  <ueno@gnu.org>
661         unicase: fix VPATH build
662         * modules/unicase/special-casing (Makefile.am): Ensure that the
663         base directory is created when generating
664         unicase/special-casing.h.
666 2017-11-27  Daiki Ueno  <ueno@gnu.org>
668         libunistring: update to Unicode 9.0.0
669         * lib/gen-uni-tables.c (fill_properties): Recognize
670         Sentence_Terminal and Prepended_Concatenation_Mark.
671         (is_property_default_ignorable_code_point): Exclude U+08E2.
672         (fill_arabicshaping): Allow missing whitespace when parsing;
673         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
674         (output_blocks): Increase the element size of the level1 table to
675         accommodate more blocks.
676         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
677         Update each class according to the standard.
678         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
679         E_Base_GAZ characters.
680         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
681         Glue_After_Zwj, and E_Base_GAZ characters.
682         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
683         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
684         enum value.
685         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
686         value.
687         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
688         LBP_ZWJ, LBP_EB, and LBP_EM.
689         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
690         enum value.
691         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
692         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
693         declaration.
694         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
695         (uniwbrk_table): Implement WB14.
696         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
697         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
698         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
699         uc-is-grapheme-break.
700         * modules/unigbrk/uc-grapheme-breaks: New module.
701         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
702         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
703         enum value.
704         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
705         * lib/unigbrk/u-grapheme-breaks.h: New file.
706         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
707         u-grapheme-breaks.h instead of uc_is_grapheme_break.
708         * lib/unigbrk/uc-grapheme-breaks.c: New file.
709         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
710         29.
711         * tests/unigbrk/test-uc-gbrk-prop.c
712         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
713         GBP_GAZ, and GBP_EBG.
714         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
715         * tests/unigbrk/test-uc-is-grapheme-break.c
716         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
717         GBP_GAZ, and GBP_EBG.
718         (main): Skip unsupported rules involving 3 or more characters,
719         namely GB10, GB12, and GB13.
720         * lib/uniwidth/width.c (nonspacing_table_data): Update.
721         * all generated files under lib/uni* and tests/uni*: Regenerate.
722         * all the affected modules: Bump version.
724 2017-11-26  Bruno Haible  <bruno@clisp.org>
726         strfmon_l: Fix compilation error with glibc 2.5.
727         Reported by Tom G. Christensen <tgc@jupiterrise.com>
728         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
729         * lib/monetary.in.h: Include also <locale.h>.
731 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
733         posixtm: remove PDS_LEADING_YEAR
734         This changes the API slightly, in a hopefully-innocuous way.
735         Without this change the code had undefined behavior when a
736         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
737         Problem reported by Pádraig Brady in:
738         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
739         * NEWS: Mention this.
740         * lib/posixtm.c (posix_time_parse): Treat the absence of
741         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
742         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
743         present, but define it as zero, for compatibility with existing
744         source code).  All other PDS_* values moved up.
745         * tests/test-posixtm.c (LY): New macro.
746         (T): Use it.  Do not expect a particular numeric encoding
747         for PDS_CENTURY etc.
749 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
751         stat: work around Solaris bug with tv_nsec < 0
752         * doc/posix-functions/fstat.texi (fstat):
753         * doc/posix-functions/fstatat.texi (fstatat):
754         * doc/posix-functions/lstat.texi (lstat):
755         * doc/posix-functions/stat.texi (stat):
756         Mention Solaris 11 bug.
757         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
758         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
759         * lib/lstat.c (rpl_lstat):
760         * lib/stat.c (rpl_stat):
761         Normalize resulting timestamps.
762         * lib/fstatat.c (normal_fstatat): New function.
763         (rpl_fstatat): Use it.
764         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
765         (stat_time_normalize): New function.
766         * m4/fstat.m4 (gl_FUNC_FSTAT):
767         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
768         * m4/lstat.m4 (gl_FUNC_LSTAT):
769         * m4/stat.m4 (gl_FUNC_STAT):
770         Replace on Solaris.
771         * modules/fstat (Depends-on):
772         * modules/fstatat (Depends-on):
773         Add stat-time.
774         * modules/stat-time (Depends-on): Add errno, intprops.
776 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
778         regex: merge from glibc
779         * lib/regcomp.c (init_word_char): Add comments.
781 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
783         regex: merge from glibc
784         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
785         * lib/regex_internal.h (internal_function): Remove.
786         All uses removed.
788 2017-11-20  Bruno Haible  <bruno@clisp.org>
790         crypto/gc-sm3: Fix buffer overrun.
791         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
792         Reported by Coverity.
794 2017-11-12  Jim Meyering  <meyering@fb.com>
796         maint: shorten https://lists.gnu.org/archive/html/... links
797         Each /archive/html/ part can be replace with /r/.
798         Run this to induce the change:
799         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
800         * ChangeLog: Perform that substitution.
801         * Makefile: Likewise.
802         * STATUS-libposix: Likewise.
803         * build-aux/bootstrap: Likewise.
804         * doc/maintain.texi: Likewise.
805         * gnulib-tool: Likewise.
806         * lib/allocator.h: Likewise.
807         * lib/argp-ba.c: Likewise.
808         * lib/argp-pv.c: Likewise.
809         * lib/canon-host.c: Likewise.
810         * lib/canonicalize-lgpl.c: Likewise.
811         * lib/float.in.h: Likewise.
812         * lib/fstat.c: Likewise.
813         * lib/getdelim.c: Likewise.
814         * lib/getprogname.c: Likewise.
815         * lib/glthread/thread.h: Likewise.
816         * lib/intprops.h: Likewise.
817         * lib/mbsrtowcs-state.c: Likewise.
818         * lib/safe-read.c: Likewise.
819         * lib/signal.in.h: Likewise.
820         * lib/stat.c: Likewise.
821         * lib/stdbool.in.h: Likewise.
822         * lib/stdio-impl.h: Likewise.
823         * lib/stdio.in.h: Likewise.
824         * lib/sysexits.in.h: Likewise.
825         * lib/timespec.h: Likewise.
826         * lib/wcsrtombs-state.c: Likewise.
827         * m4/alloca.m4: Likewise.
828         * m4/extern-inline.m4: Likewise.
829         * m4/fstatat.m4: Likewise.
830         * m4/gnulib-common.m4: Likewise.
831         * m4/lib-ignore.m4: Likewise.
832         * m4/printf.m4: Likewise.
833         * m4/regex.m4: Likewise.
834         * m4/stat-size.m4: Likewise.
835         * m4/std-gnu11.m4: Likewise.
836         * m4/stdbool.m4: Likewise.
837         * m4/sys_types_h.m4: Likewise.
838         * m4/threadlib.m4: Likewise.
839         * m4/vararrays.m4: Likewise.
840         * pygnulib/GLImport.py: Likewise.
841         * tests/test-exp.h: Likewise.
842         * tests/test-exp2.h: Likewise.
843         * tests/test-expm1.h: Likewise.
844         * tests/test-fflush2.c: Likewise.
845         * tests/test-getopt_long.h: Likewise.
846         * tests/test-intprops.c: Likewise.
847         * tests/test-log.h: Likewise.
848         * tests/test-log10.h: Likewise.
849         * tests/test-log1p.h: Likewise.
850         * tests/test-log2.h: Likewise.
851         * tests/test-printf-posix.h: Likewise.
852         * tests/test-regex.c: Likewise.
853         * tests/test-snprintf-posix.h: Likewise.
854         * tests/test-sprintf-posix.h: Likewise.
855         * tests/test-stdalign.c: Likewise.
856         * tests/test-stdbool.c: Likewise.
857         * tests/test-vasnprintf-posix.c: Likewise.
858         * tests/test-vasprintf-posix.c: Likewise.
859         * top/maint.mk: Likewise.
861 2017-11-12  Bruno Haible  <bruno@clisp.org>
863         faccessat: Make the last change more robust.
864         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
865         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
867 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
869         faccessat: port to macOS (Bug#29231)
870         macOS faccessat has the same bug that lstat does: if the file
871         name ends in '/' it ignores the trailing slash.
872         Problem reported for Emacs by Vincent Zhang.
873         * doc/posix-functions/faccessat.texi (faccessat): Document this.
874         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
875         around the initial includes.  Include errno.h, string.h, sys/stat.h.
876         (orig_faccessat) [HAVE_FACCESSAT]: New function.
877         Include "unistd.h" after defining it.
878         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
879         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
880         Handle in the usual way.
881         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
882         lstat dereferences symlinks, since faccessat is likely to
883         have the same problem.
884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
885         * modules/faccessat (Depends-on): Add fstatat.
886         Depend if REPLACE_FACCESSAT is 1, too.
887         (configure.ac): Link if REPLACE_FACCESSAT is 1.
888         * modules/faccessat-tests (Depends-on): Add symlink.
889         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
890         * tests/test-faccessat.c (main): Test for the bug.
892 2017-11-11  Bruno Haible  <bruno@clisp.org>
894         getprogname: Fix compilation error on IRIX.
895         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
896         'namesize'.
898 2017-11-11  Bruno Haible  <bruno@clisp.org>
900         year2038: Tweak last patch.
901         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
903 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
905         year2038: be more insistent about 64-bit time_t
906         Applications requiring access to arbitrary files should not be
907         built with 32-bit time_t on hosts that have 64-bit timestamps,
908         as this can lead to real trouble at runtime.
909         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
910         Check on all systems, not just MinGW.  Use a heuristic involving
911         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
912         output a failure or just a warning, to make it more likely that
913         builders will select 64-bit time_t.
915 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
917         havelib: fix typo in previous change
918         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
920         Don’t use AC_EGREP_CPP if affected by CFLAGS
921         * m4/float_h.m4 (gl_FLOAT_H):
922         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
923         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
924         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
925         * m4/year2038.m4 (gl_YEAR2038):
926         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
927         likely to be affected by the choice of CFLAGS, since CFLAGS are
928         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
929         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
931         fstatat: pacify GCC on unusual platform
932         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
933         Omit, as it’s unused in this case.
935 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
937         timespec: prefer ‘assume’ to ‘assure’
938         This avoids some runtime tests.  The rest of the module makes
939         similar assumptions and there is little point to testing here.
940         * lib/timespec.h: Include verify.h instead of assure.h.
941         (timespec_cmp): Use ‘assume’, not ‘assure’.
942         Also, remove an unnecessary cast to ‘int’, as lots of other
943         code in this module now causes -Wconversion to complain, and
944         this is a problem with -Wconversion not with the code.
946         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
948         Port recent gnulib-tool change to Dash
949         * gnulib-tool (func_create_testdir): Don't assume that the shell
950         retokenizes after expanding "$@" inside the call to
951         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
953 2017-10-27  Jim Meyering  <meyering@fb.com>
955         timespec.h: use "assure" to avoid a spurious warning
956         * lib/timespec.h: Include "assure.h" and use it to help
957         gcc7's -Wstrict-overflow avoid a false positive warning
958         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
959         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
960         * modules/timespec (Depends-on): Add assure.
962 2017-10-29  Bruno Haible  <bruno@clisp.org>
964         Avoid several test failures with traditional locales on Haiku.
965         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
966         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
967         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
968         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
969         LOCALE_ZH_CN=none.
971 2017-10-29  Bruno Haible  <bruno@clisp.org>
973         strerror_r-posix: Fix behaviour and test failure on Haiku.
974         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
975         are positive. Work around return value 0 instead of ERANGE on Haiku.
976         For unknown error numbers, use a format string consistent with perror().
977         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
978         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
979         are positive.
981 2017-10-29  Bruno Haible  <bruno@clisp.org>
983         get-rusage-data: Avoid crash on Haiku.
984         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
986 2017-10-29  Bruno Haible  <bruno@clisp.org>
988         get-rusage-as: Avoid crash on Haiku.
989         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
991 2017-10-29  Bruno Haible  <bruno@clisp.org>
993         ilogbl: Ensure replacement on Haiku.
994         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
995         REPLACE_ILOGBL if ilogbl does not work.
996         (gl_FUNC_ILOGBL_WORKS): New macro.
997         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
999         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
1000         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
1001         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
1003 2017-10-29  Bruno Haible  <bruno@clisp.org>
1005         expl: Ensure replacement on Haiku.
1006         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
1007         zero.
1008         * doc/posix-functions/expl.texi: Mention the Haiku problem.
1010 2017-10-29  Bruno Haible  <bruno@clisp.org>
1012         math: Fix test failure on Haiku.
1013         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
1014         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
1015         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
1016         * doc/posix-headers/math.texi: Mention the Haiku problem.
1018 2017-10-29  Bruno Haible  <bruno@clisp.org>
1020         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
1021         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
1022         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
1024 2017-10-29  Bruno Haible  <bruno@clisp.org>
1026         crypto/*: Verify that the header file is self-contained.
1027         * tests/test-gc-*.c: Include the module's header file immediately after
1028         <config.h>.
1029         * tests/test-hmac-*.c: Likewise.
1030         * tests/test-arcfour.c: Likewise.
1031         * tests/test-arctwo.c: Likewise.
1032         * tests/test-des.c: Likewise.
1033         * tests/test-md2.c: Likewise.
1034         * tests/test-md4.c: Likewise.
1035         * tests/test-md5.c: Likewise.
1036         * tests/test-rijndael.c: Likewise.
1037         * tests/test-sha1.c: Likewise.
1038         * tests/test-sm3.c: Likewise.
1040 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1041             Bruno Haible  <bruno@clisp.org>
1043         crypto/gc: fix build failure with -Werror=suggest-attribute=const
1044         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
1046 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1048         New module: crypto/gc-sm3
1049         * lib/gc.h: Declare SM3-related stuffs.
1050         * lib/gc-gnulib.c: Support sm3 in internal functions.
1051         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
1052         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
1053         * modules/crypto/gc-sm3: Define gc-sm3 module.
1054         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
1055         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
1056         * MODULES.html.sh: List gc-sm3 module.
1058 2017-10-29  Bruno Haible  <bruno@clisp.org>
1060         random, random_r: Mention different prototypes on Haiku.
1061         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
1062         * doc/glibc-functions/random_r.texi: Likewise.
1063         * doc/glibc-functions/initstate_r.texi: Likewise.
1064         * doc/glibc-functions/setstate_r.texi: Likewise.
1066 2017-10-28  Bruno Haible  <bruno@clisp.org>
1068         posix_spawn: Avoid spurious message in configure output.
1069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
1070         'cmp' command.
1072 2017-10-28  Bruno Haible  <bruno@clisp.org>
1074         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
1075         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
1076         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1078 2017-10-28  Bruno Haible  <bruno@clisp.org>
1080         ioctl: Override non-POSIX declaration on Haiku.
1081         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
1082         * lib/sys_ioctl.in.h: Add comment about Haiku.
1083         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
1084         * doc/glibc-headers/sys_ioctl.texi: Likewise.
1086 2017-10-28  Bruno Haible  <bruno@clisp.org>
1088         crypto/sm3: Add overview documentation to the .h file.
1089         * lib/sm3.h: Add comments.
1091 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1093         New module: crypto/sm3
1094         This new module can be used to compute SM3 message digest of files or
1095         memory blocks according to the specification GM/T 004-2012
1096         Cryptographic Hash Algorithm SM3, published by State Cryptography
1097         Administration, China.
1098         The official SM3 cryptographic hash algorithm specification is
1099         available at
1100         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
1101         * lib/sm3.h: Declare the APIs of sm3 module.
1102         * lib/sm3.c: Implement SM3 hash algorithm.
1103         * m4/sm3.m4: m4 file for sm3 module.
1104         * modules/crypto/sm3: Define sm3 module.
1105         * tests/test-sm3.c: Implement SM3 test case.
1106         * modules/crypto/sm3-tests: Define sm3 test module.
1107         * MODULES.html.sh: List sm3 module.
1109 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1111         gc-libgcrypt: fix undefined enum type in switch statement
1112         Resolve the following build failure:
1113         lib/gc-libgcrypt.c: In function 'gc_hash_open':
1114         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
1115         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
1116              case 0:
1117              ^~~~
1118         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
1119         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
1121 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1123         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
1124         Resolve the following build failure:
1125         lib/gc-libgcrypt.c: In function 'gc_hash_read':
1126         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
1127         in signedness [-Werror=pointer-sign]
1128             digest = gcry_md_read (ctx->gch, 0);
1129                    ^
1130         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
1132 2017-10-26  Bruno Haible  <bruno@clisp.org>
1134         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
1135         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
1136         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
1138 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1140         glob: fix another heap buffer overflow
1141         Problem reported by Tim Rühsen in:
1142         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
1143         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
1145 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1147         quotearg: pacify compiler re unsigned
1148         * lib/quotearg.c (quotearg_n_options):
1149         Rewrite to avoid diagnostic from overly-picky compiler.
1150         Problem reported by Sami Kerola in:
1151         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
1153         glob: fix heap buffer overflow
1154         * lib/glob.c (glob): Fix off-by-one error introduced into
1155         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
1156         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
1157         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
1158         Fix suggested by Bruno Haible.
1160 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
1162         glob: pacify fuzzer for mempcpy
1163         Problem reported by Tim Rühsen in:
1164         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
1165         * lib/glob.c (glob): Do not pass NULL to mempcpy.
1167 2017-10-12  Bruno Haible  <bruno@clisp.org>
1169         doc: Fix syntax error (regression from 2017-10-03).
1170         * doc/posix-functions/strncpy.texi: Fix syntax error.
1172 2017-10-12  Bruno Haible  <bruno@clisp.org>
1174         doc: Update for Solaris 11.3.
1175         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
1176         mention Solaris 11.3.
1177         * m4/log2.m4: Fix comments.
1178         * m4/log2f.m4: Likewise.
1179         * m4/printf.m4: Update comments.
1180         * m4/rename.m4: Likewise.
1181         * m4/strncat.m4: Likewise.
1183         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
1185 2017-10-10  Bruno Haible  <bruno@clisp.org>
1187         doc: Improve doc about ioctl.
1188         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
1189         prototype.
1191 2017-10-09  Bruno Haible  <bruno@clisp.org>
1193         wcwidth: Don't use obsolete syntax of 'test'.
1194         Reported by Eric Blake.
1195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
1196         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
1198 2017-10-09  Bruno Haible  <bruno@clisp.org>
1200         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
1201         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
1202         and Daniel P. Berrange <berrange@redhat.com>.
1203         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
1204         on glibc systems. The getopt-pfx-core.h file declares exactly what
1205         unistd.h needs, nothing more.
1207 2017-10-08  Bruno Haible  <bruno@clisp.org>
1209         vma-iter: Improve support for FreeBSD.
1210         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
1211         vma_iterate.
1212         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
1214 2017-10-08  Bruno Haible  <bruno@clisp.org>
1216         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
1217         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
1219 2017-10-07  KO Myung-Hun  <komh@chollian.net>
1221         test-framework-sh: Fix 'invalid path dir' error.
1222         On OS/2, a path separator is ';' not ':'. And ':' is used as a
1223         separator between a drive letter and directory parts.
1224         As a result, an absolute path such as x:/path/to/dir on OS/2 is
1225         treated as an invalid path dir.
1226         * tests/init.sh (PATH_SEPARATOR): Set at startup.
1227         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
1228         instead of hard coded ':'.
1230 2017-10-07  Bruno Haible  <bruno@clisp.org>
1232         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
1233         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
1234         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
1235         (rof_open): On Linux, do multiple read() calls and make sure
1236         MIN_LEFTOVER bytes are left when read() returns.
1238 2017-10-07  Bruno Haible  <bruno@clisp.org>
1240         vma-iter: Improve support for GNU/Hurd.
1241         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
1242         API, not the /proc file system.
1244 2017-10-07  Bruno Haible  <bruno@clisp.org>
1246         test-framework-sh: Don't require bash on Windows and OS/2.
1247         Reported by KO Myung-Hun.
1248         * tests/test-init.sh: Use 'shopt' only when running in bash.
1250 2017-10-06  KO Myung-Hun  <komh@chollian.net>
1252         wcwidth: check a macro version of wcwidth () as well
1253         * lib/wchar.in.h: Revert commit from 2016-01-14.
1254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
1256 2017-10-06  Bruno Haible  <bruno@clisp.org>
1258         getopt-posix: Clarify copyright header.
1259         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
1260         * lib/getopt-pfx-core.h: Likewise.
1261         * lib/getopt-pfx-ext.h: Likewise.
1262         * lib/getopt-cdefs.in.h: Likewise.
1264 2017-10-03  Bruno Haible  <bruno@clisp.org>
1266         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
1267         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
1268         gl_HOST_CPU_C_ABI.
1270 2017-10-03  Bruno Haible  <bruno@clisp.org>
1272         doc: warn about misuse of strncpy and wcsncpy.
1273         * doc/posix-functions/strcpy.texi: Describe requirements on prior
1274         memory allocation.
1275         * doc/posix-functions/wcscpy.texi: Likewise.
1276         * doc/posix-functions/strncpy.texi: Describe what this function is not
1277         useful for.
1278         * doc/posix-functions/wcsncpy.texi: Likewise.
1280 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
1282         fsuage: fix typo in previous change
1283         * lib/fsusage.c: Remove stray include of full-read.h.
1284         Problem reported by Sam Steingold for macOS (Bug#28669).
1286 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
1288         fsusage: remove SVR2 support
1289         SVR2 was obsolete by 1986 and is no longer supported by anybody,
1290         and its code was getting in the way of use of this module by
1291         Emacs, which has its own ‘read’ function anyway.
1292         * lib/fsusage.c: Do not include sys/filsys.h.
1293         (get_fs_usage): Remove SVR2-specific code.
1294         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
1295         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
1296         * modules/fsusage (Depends-on): Do not depend on full-read.
1298         Simplify autoupdate of licenses
1299         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
1300         place.
1302 2017-10-01  Bruno Haible  <bruno@clisp.org>
1304         vma-iter: Add support for GNU/Hurd.
1305         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
1306         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
1308 2017-09-30  Bruno Haible  <bruno@clisp.org>
1310         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
1311         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
1312         fail when module 'largefile' is in use.
1313         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
1314         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
1315         Don't test HAVE_SYS_PROCFS_H.
1317 2017-09-30  Bruno Haible  <bruno@clisp.org>
1319         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
1320         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
1321         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
1322         * modules/havelib (Depends-on): Add host-cpu-c-abi.
1324 2017-09-30  Bruno Haible  <bruno@clisp.org>
1326         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
1327         * lib/uniname/uniname.c (unicode_name_character): Add braces around
1328         scope of local variables.
1330 2017-09-28  Bruno Haible  <bruno@clisp.org>
1332         string: code style
1333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
1334         substitutable variables.
1335         * modules/string (Makefile.am): Likewise.
1337 2017-09-26  Bruno Haible  <bruno@clisp.org>
1339         uniname/uniname-tests: Tighten code.
1340         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
1341         local variables into one.
1343 2017-09-26  Bruno Haible  <bruno@clisp.org>
1345         vma-iter: Improvements for Linux and BSD platforms.
1346         - Add support for DragonFly BSD.
1347         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
1348         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
1349         Read the entire file into memory in a single system call.
1350         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
1351         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
1353 2017-09-26  Bruno Haible  <bruno@clisp.org>
1355         vma-iter: Provide the protection flags on FreeBSD.
1356         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
1357         skip three fields between the addresses and the protection flags.
1359 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1361         glob: remove bogus extern decl
1362         * lib/glob.c (__glob_pattern_type): Remove now-spurious
1363         extern declaration.  Problem reported by Adhemerval Zanella in:
1364         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
1366 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1368         uniname/uniname-tests: integer overflow fix
1369         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
1370         Check for integer overflow.
1372         duplocale-tests: fix unlikely crash
1373         * tests/test-duplocale.c (get_locale_dependent_values):
1374         Don’t crash with absurdly long month names.
1376         maint: fix overflow checking in nap.h
1377         * modules/chown-tests:
1378         * modules/fchownat-tests, modules/fdutimensat-tests:
1379         * modules/futimens-tests, modules/lchown-tests:
1380         * modules/stat-time-tests, modules/utime-tests:
1381         * modules/utimens-tests, modules/utimensat-tests:
1382         Depend on intprops.
1383         * tests/nap.h: Include intprops.h.
1384         (diff_timespec): Handle overflow properly.
1386         sys_types: update URL
1387         * m4/sys_types_h.m4: Use https: URL.
1389         parse-datetime: fix dependency
1390         * modules/parse-datetime (Depends-on): Depend
1391         on nstrftime, not strftime.
1393         parse-datetime, posixtm: avoid uninit access
1394         * lib/parse-datetime.y (parse_datetime2):
1395         * lib/posixtm.c (posixtime):
1396         Do not access uninitialized storage, even though the resulting
1397         value is never used.
1399 2017-09-25  Bruno Haible  <bruno@clisp.org>
1401         vma-iter: Improvements for BSD platforms.
1402         - Add support for GNU/kFreeBSD.
1403         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
1404         - Speed up on OpenBSD.
1405         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
1406         (vma_iterate_bsd): New function.
1407         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
1408         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
1409         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
1410         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
1412 2017-09-23  Bruno Haible  <bruno@clisp.org>
1414         strfmon_l: New module.
1415         * modules/strfmon_l: New file.
1416         * lib/strfmon_l.c: New file.
1417         * m4/strfmon_l.m4: New file.
1418         * doc/posix-functions/strfmon_l.texi: Mention the new module.
1419         * modules/strfmon_l-tests: New file.
1420         * tests/test-strfmon_l.c: New file.
1422         monetary: New module.
1423         * modules/monetary: New file.
1424         * lib/monetary.in.h: New file.
1425         * m4/monetary_h.m4: New file.
1426         * doc/posix-headers/monetary.texi: Mention the new module.
1427         * modules/monetary-tests: New file.
1428         * tests/test-monetary.c: New file.
1429         * modules/monetary-c++-tests: New file.
1430         * tests/test-monetary-c++.cc: New file.
1431         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
1433 2017-09-23  Bruno Haible  <bruno@clisp.org>
1435         duplocale tests: Fix test crash on Linux/x86.
1436         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
1437         locale from the current thread before freeing it.
1439 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
1441         mktime: port to OpenVMS
1442         Problem reported by John E. Malmberg in:
1443         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
1444         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
1446 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1448         manywarnings: port to GCC on 64-bit MS-Windows
1449         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
1450         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
1451         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
1453 2017-09-13  Bruno Haible  <bruno@clisp.org>
1455         all: Replace many more http URLs by https URLs. Update stale URLs.
1456         * users.txt: Remove mention of 'newts'.
1457         * lib/localename.c: Update comment about LANG_SOTHO.
1459 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1461         all: Replace many http URLs by https URLs.
1463 2017-09-12  Bruno Haible  <bruno@clisp.org>
1465         doc: Prefer https URLs where possible.
1466         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
1467         * doc/ld-output-def.texi: Remove unavailable URL.
1469 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1471         maintainer-makefile: FTP -> HTTPS
1472         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
1473         of FTP, which is planned to be decommissioned on 2017-11-01.
1475 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
1477         libc-config: Fix __GNUC_PREREQ macro.
1478         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
1479         __GNUC_MINOR.
1481 2017-09-09  Bruno Haible  <bruno@clisp.org>
1483         gnulib-tool: Simplify commit from 2015-08-20.
1484         * gnulib-tool (func_add_or_update): Remove local variable
1485         is_binary_file.
1487 2017-09-08  Bruno Haible  <bruno@clisp.org>
1489         stddef: Avoid conflict with system-defined max_align_t.
1490         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
1491         Reported by Werner Lemberg <wl@gnu.org> in
1492         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
1493         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
1494         (max_align_t): Define as a macro.
1495         (GNULIB_defined_max_align_t): New macro. Guards against multiple
1496         definitions of rpl_max_align_t in different copies of gnulib-generated
1497         <stddef.h>.
1499 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1501         libc-config: port to MSVC
1502         Problems reported by Gisle Vanem in:
1503         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
1504         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
1505         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
1506         * m4/__inline.m4: New file.
1507         * modules/libc-config (Files): Add it.
1508         (Depends-on): Use it.
1510         glob: Use enum for __glob_pattern_type result
1511         From a patch proposed by Adhemerval Zanella in:
1512         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
1513         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
1514         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
1515         * lib/glob_internal.h (__glob_pattern_type):
1516         * lib/glob.c (glob):
1517         * lib/glob_pattern_p.c (__glob_pattern_p):
1518         Use them.
1520         glob: fix for use in glibc
1521         Problem reported by Adhemerval Zanella in:
1522         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
1523         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
1524         Do not redefine if _LIBC.
1526 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1528         glob: fix bugs with long login names
1529         Problem reported by Adhemerval Zanella in:
1530         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
1531         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
1532         (glob): Use the same scratch buffer for both getlogin_r and
1533         getpwnam_r.  Don’t require preallocation of the login name.  This
1534         simplifies storage allocation, and corrects the handling of
1535         long login names.
1537 2017-09-02  Bruno Haible  <bruno@clisp.org>
1539         dirent: Update doc.
1540         * doc/posix-headers/dirent.texi: More concrete list of platforms.
1542 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1544         glob: fix getpwnam_r errno typo
1545         * lib/glob.c (glob): Fix longstanding misuse of errno after
1546         getpwnam_r, which returns an error number rather than setting
1547         errno.
1549         glob: fix typo in recent change
1550         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
1551         Fix recently-introduced typo.
1553 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1555         glob: don't save and restore errno unnecessarily
1556         * lib/glob.c (glob): Don't save and restore errno
1557         merely because we have getpwnam_r.
1559         glob: don't assume getpwnam_r
1560         * lib/glob.c (glob): Port recent patches to platforms
1561         lacking getpwnam_r.
1563         scratch_buffer: don’t use private glibc API
1564         Suggested by Florian Weimer in:
1565         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
1566         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
1567         * lib/scratch_buffer_grow.c: Rename to
1568         lib/malloc/scratch_buffer_grow.c.
1569         * lib/scratch_buffer_grow_preserve.c: Rename to
1570         lib/malloc/scratch_buffer_grow_preserve.c.
1571         * lib/scratch_buffer_set_array_size.c: Rename to
1572         lib/malloc/scratch_buffer_set_array_size.c.
1573         * lib/scratch_buffer.h: New file.
1574         * modules/scratch_buffer (Files, Makefile.am):
1575         Adjust to source-file renaming.
1577 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1579         glob: use scratch_buffer instead of extend_alloca
1580         Much of the lib/glob.c part of this patch comes from a glibc patch
1581         proposed by Adhemerval Zanella in:
1582         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
1583         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
1584         included via glob.h, does this for us now.
1585         (__set_errno): Remove, as libc-config does this for us now.
1586         Include <scratch_buffer.h>.
1587         (GETPW_R_SIZE_MAX): Remove.
1588         (glob): Use struct scratch_buffer instead of extend_alloca.
1589         * lib/glob.in.h: Include libc-config.h rather than
1590         including <sys/cdefs.h> conditionally.
1591         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
1592         (__glibc_unlikely, __restrict, weak_alias):
1593         Remove, as libc-config does this for us now.
1594         * m4/glob.m4 (gl_PREREQ_GLOB):
1595         Remove sys/cdefs.h tests; no longer needed.
1596         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
1597         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
1599         scratch_buffer: new module
1600         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
1601         * lib/scratch_buffer_grow_preserve.c:
1602         * lib/scratch_buffer_set_array_size.c:
1603         New files, copied from glibc with very minor changes that can be
1604         copied back.
1605         * modules/scratch_buffer: New file.
1607         libc-config: new module
1608         * MODULES.html.sh: Add libc-config.
1609         * lib/cdefs.h: New file, copied from the GNU C Library with very
1610         minor changes that can be copied back.
1611         * lib/libc-config.h, modules/libc-config: New files.
1613 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1615         glob: match dangling symlinks
1616         This fixes a bug I inadvertently introduced to Gnulib when I
1617         merged glibc glob back into gnulib on 2007-10-16.  This fix is
1618         inspired by a patch proposed for glibc by Adhemerval Zanella in:
1619         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
1620         * doc/posix-functions/glob.texi: Update list of affected platforms.
1621         * lib/glob.c (__lstat64): New macro.
1622         (is_dir): New function.
1623         (glob, glob_in_dir): Match symlinks even if they are dangling.
1624         (link_stat, link_exists_p): Remove.  All uses removed.
1625         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
1626         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
1627         * modules/glob-tests (Depends-on): Add symlink.
1628         * tests/test-glob.c: Include errno.h, unistd.h.
1629         (BASE): New macro.
1630         (main): Test dangling symlinks, if symlinks are supported.
1632         glob, backupfile: inode 0 is a valid inode number
1633         * doc/posix-functions/readdir.texi (readdir):
1634         * doc/posix-headers/dirent.texi (dirent.h):
1635         Document more readdir portability issues.
1636         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
1637         (numbered_backup): Don’t treat inode 0 any differently from
1638         other inode values.
1639         * lib/glob.c (struct readdir_result): Remove skip_entry member.
1640         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
1641         All uses removed.
1642         * modules/glob (Depends-on): Remove d-ino.
1644         glob: simplify symlink detection
1645         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
1646         uint8_t, as C99 does not require uint8_t.
1647         (struct readdir_result): Use it.  Do not define skip_entry unless
1648         it is needed; this saves a byte on platforms lacking d_ino.
1649         (readdir_result_type, readdir_result_skip_entry):
1650         New functions, replacing ...
1651         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
1652         ... these functions, which were removed.  This makes the callers
1653         easier to read.  All callers changed.
1654         (D_INO_TO_RESULT): Now empty if there is no d_ino.
1656 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1658         fts-tests: tag as a longrunning-test so not included by default
1659         * modules/fts-tests: This test takes about 20s on current systems,
1660         and uses about 285M of space on ext4.
1662 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1664         renameat2: fix compilation on alpine linux
1665         * m4/renameat.m4: Check for <linux/fs.h> presence.
1666         * lib/renameat2.h: Only include <linux/fs.h> if present.
1667         Reported by Assaf Gordon on Alpine Linux.
1669 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1671         glob: try to port recent changes to MS-Windows
1672         Problem reported by Bruno Haible in:
1673         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
1674         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
1675         * lib/glob.in.h (__glob_pattern_p): ... to here.
1677 2017-08-24  Eric Blake  <eblake@redhat.com>
1679         warnings: fix compilation with old autoconf
1680         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
1681         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
1682         AC_DEFUN.
1683         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
1684         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
1686 2017-08-24  Bruno Haible  <bruno@clisp.org>
1688         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
1689         * modules/glob (Depends-on): Add c99.
1691 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1693         glob: fix typo that broke platforms lacking d_ino
1694         This typo also hurt performance on GNU/Linux and similar hosts.
1695         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
1696         in previous change.
1698 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1700         glob: merge from glibc with Zanella glob changes
1701         Merge glob from glibc, with changes for glob proposed
1702         by Adhemerval Zanella in the thread starting here:
1703         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
1704         plus some fixes for this merge.
1705         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
1706         New files, ported from glibc.
1707         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
1708         with __restrict.
1709         (__size_t): Remove.  All uses replaced by size_t.
1710         (size_t): Define by defining __need_size_t and including <stddef.h>.
1711         This should work even in non-glibc platforms, where any name
1712         pollution is OK.
1713         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
1714         (struct stat64): Don’t worry about __GLOB_GNULIB.
1715         (glob, globfree, glob_pattern_p): Remove macros for
1716         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
1717         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
1718         but set errno.
1719         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
1720         removed since the glibc behavior works on null pointers.
1721         Do not include stdio.h; old SunOS is irrelevant now.
1722         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
1723         Include glob_internal.h.
1724         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
1725         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
1726         worked only coincidentally.
1727         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
1728         Remove macros; now done in glob.in.h.
1729         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
1730         (glob): Properly initialize glob structure with
1731         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
1732         Remove old code using SHELL since Bash no longer
1733         uses this.
1734         (glob, prefix_array): Separate MS code better.
1735         (glob, glob_in_dir): Use C99 decls before statements when glibc
1736         does.
1737         (glob_in_dir): Remove old Amiga and VMS code.
1738         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
1739         separate files.
1740         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
1741         (__glibc_unlikely):
1742         Move here from glob.c.
1743         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
1744         (weak_alias): New macro.
1745         (__size_t): Remove.  All uses replaced by size_t.
1746         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
1747         * modules/glob (Files): Add +lib/glob_internal.h,
1748         lib/glob_pattern_p.c, lib/globfree.c.
1749         (Depends-on): Remove snippet/arg-nonnull.
1751 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1753         glob: port to clang's Undefined Sanitizer
1754         Problem reported by Tim Rühsen in:
1755         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
1756         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
1757         (glob_in_dir): Do not rely on undefined behavior in accessing
1758         struct members beyond their bounds.  Use a flexible array member
1759         instead.
1761 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1763         vc-list-files: port to Solaris 10
1764         * build-aux/vc-list-files: Don't assume test -e works.
1766 2017-08-21  Karl Berry  <karl@freefriends.org>
1768         * doc/posix-functions/srandom.texi (srandom): typo }.
1770 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1772         git-version-gen: port to Solaris 10
1773         Problem reported by Dagobert Michelsen in:
1774         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
1775         * build-aux/git-version-gen (v_from_git):
1776         Use expr instead of shell substitution.
1778 2017-08-19  Bruno Haible  <bruno@clisp.org>
1780         host-cpu-c-abi: Improve detection of MIPS ABI.
1781         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
1782         _MIPS_SIM.
1784 2017-08-17  Bruno Haible  <bruno@clisp.org>
1786         hypot tests: Fix test failure on FreeBSD 11.0/x86.
1787         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
1789 2017-08-17  Bruno Haible  <bruno@clisp.org>
1791         float: Fix LDBL_MIN value on FreeBSD/x86.
1792         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
1794 2017-08-17  Bruno Haible  <bruno@clisp.org>
1796         random: Fix test compilation failure on Cygwin 1.5.25.
1797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
1798         HAVE_DECL_SETSTATE.
1799         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
1800         declared.
1801         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
1802         HAVE_DECL_SETSTATE.
1803         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
1804         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
1805         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
1806         * doc/posix-functions/random.texi: Likewise.
1807         * doc/posix-functions/setstate.texi: Likewise.
1808         * doc/posix-functions/srandom.texi: Likewise.
1810 2017-08-16  Bruno Haible  <bruno@clisp.org>
1812         stdnoreturn: Fix test compilation failure on Cygwin.
1813         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
1814         <stdnoreturn.h> replacement.
1815         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
1816         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
1818 2017-08-16  Bruno Haible  <bruno@clisp.org>
1820         thread: Fix conflict with pthread_sigmask module.
1821         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
1822         it's defined as a macro.
1823         * modules/thread (Depends-on): Add pthread_sigmask.
1825 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
1827         rename: port better to NetBSD
1828         * doc/posix-functions/rename.texi (rename): NetBSD 7
1829         does not have the link-count bug.
1830         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
1831         broken merely because rename ("a", "b") removes "a" when the two
1832         names are hard links to the same file.
1834 2017-08-16  Bruno Haible  <bruno@clisp.org>
1836         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
1837         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
1838         the target file names with '$(srcdir)/'.
1839         * modules/unicase/locale-language (Makefile.am): Likewise.
1840         * modules/unicase/special-casing (Makefile.am): Likewise.
1841         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
1842         * modules/unictype/category-byname (Makefile.am): Likewise.
1843         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
1844         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
1845         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
1846         * modules/unictype/property-byname (Makefile.am): Likewise.
1847         * modules/unictype/scripts (Makefile.am): Likewise.
1848         * modules/uninorm/composition (Makefile.am): Likewise.
1850 2017-08-16  Bruno Haible  <bruno@clisp.org>
1852         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
1853         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
1854         value for OpenBSD.
1856 2017-08-16  Bruno Haible  <bruno@clisp.org>
1858         rename, renameat: Update doc regarding NetBSD.
1859         * doc/posix-functions/rename.texi: Clarify that when using
1860         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
1861         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
1862         version.
1864 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1866         renameat2: port better to macOS
1867         * lib/renameat2.c (renameat2): Use renameatx_np if available.
1869         futimens: don’t assume struct timespec layout
1870         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
1871         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
1872         * tests/test-fdutimensat.c (main):
1873         * tests/test-futimens.h (test_futimens):
1874         * tests/test-lutimens.h (test_lutimens):
1875         * tests/test-utimens.h (test_utimens):
1876         * tests/test-utimensat.c (main):
1877         Don’t assume that struct timespec is a two-member structure in
1878         tv_sec, tv_nsec order.  Although this is true on all platforms we
1879         know about, POSIX does not guarantee it.
1881         rename: document+test NetBSD rename
1882         Test failure reported by Bruno Haible in:
1883         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
1884         This is an area where NetBSD is better-behaved than POSIX,
1885         so allow the NetBSD behavior in tests.
1886         * doc/posix-functions/rename.texi:
1887         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
1888         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
1890 2017-08-15  Bruno Haible  <bruno@clisp.org>
1892         renameat: Ensure declaration in <stdio.h> on NetBSD.
1893         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
1894         * doc/posix-functions/renameat.texi: Mention this problem.
1896 2017-08-15  Bruno Haible  <bruno@clisp.org>
1898         duplocale: Work around NetBSD 7.0 bug.
1899         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
1900         * lib/duplocale.c: Add comment about NetBSD problem.
1901         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
1903 2017-08-15  Bruno Haible  <bruno@clisp.org>
1905         duplocale tests: Verify use with *_l functions.
1906         * modules/duplocale-tests (configure.ac): Test for uselocale and
1907         some *_l functions.
1908         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
1909         from main.
1910         (get_locale_dependent_values_from, test_with_locale_parameter): New
1911         functions.
1912         (main): Test both test_with_uselocale and test_with_locale_parameter.
1914 2017-08-15  Bruno Haible  <bruno@clisp.org>
1916         extensions: Enable NetBSD specific extensions.
1917         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
1919 2017-08-14  Bruno Haible  <bruno@clisp.org>
1921         open, openat: Update doc about O_CLOEXEC.
1922         * doc/posix-functions/open.texi: More concrete list of platforms.
1923         * doc/posix-functions/openat.texi: Likewise.
1925 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1927         open: support O_CLOEXEC
1928         * NEWS, doc/posix-functions/open.texi:
1929         * doc/posix-functions/openat.texi: Document this.
1930         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
1931         (GNULIB_defined_O_CLOEXEC): New symbol.
1932         * lib/open.c: Include cloexec.h.
1933         (open): Support O_CLOEXEC.
1934         * lib/openat.c: Include cloexec.h.
1935         (rpl_openat): Support O_CLOEXEC.
1936         * lib/popen-safer.c: Do not include cloexec.h.
1937         (open_noinherit): Remove.
1938         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
1939         * lib/save-cwd.c: Do not include cloexec.h.
1940         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
1941         * m4/open-cloexec.m4: New file.
1942         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
1943         Replace 'open' if O_CLOEXEC is not present.
1944         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
1945         Replace 'openat' if O_CLOEXEC is not present.
1946         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
1947         * modules/open (Files): Add m4/open-cloexec.m4.
1948         (Depends-on): Depend on cloexec if replacing 'open'.
1949         * modules/openat (Files): Add m4/open-cloexec.m4.
1950         (Depends-on): Depend on cloexec if replacing openat.
1951         * modules/popen-safer (Depends-on): Remove cloexec.
1952         * modules/save-cwd (Depends-on): Remove cloexec, and add
1953         fd-safer-flag and 'open'.
1955 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
1957         reallocarray: minor fixes
1958         * doc/glibc-functions/reallocarray.texi: Update version numbers.
1959         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
1960         * modules/reallocarray (License): Change from GPL to LGPL.
1961         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
1962         Indent properly and don't use tabs.
1964 2017-08-13  Darshit Shah  <darnir@gnu.org>
1966         reallocarray: New module
1967         reallocarray is a new function in glibc 2.26 to safely allocate an array
1968         of memory locations with integer overflow protection.
1969         * MODULES.html.sh: Add reallocarray.
1970         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
1971         * lib/reallocarray.c: New file to implement module reallocarray.
1972         * lib/stdlib.in.h: Add function declarations for reallocarray.
1973         * m4/reallocarray.m4: New file.
1974         * m4/stdlib_h.m4: Declare reallocarray.
1975         * modules/reallocarray: New file.
1976         * modules/reallocarray-test: New file.
1977         * modules/stdlib: Coerce stdlib.h to export reallocarray.
1978         * tests/test-reallocarray.c: New test.
1980 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1982         dirent-safer: fix cloexec race
1983         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
1984         (opendir_safer): Use F_DUPFD_CLOEXEC.
1985         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
1986         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
1987         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
1988         instead of dup_safer.
1990         fts: fix cloexec races
1991         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
1992         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
1993         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
1994         (fd_ring_check): Set cloexec flag on new file descriptors.
1995         (fts_build, fd_ring_check): While we’re at it, make sure the
1996         resulting file descriptor is not 0, 1, or 2, since that is easy.
1998 2017-08-11  Bruno Haible  <bruno@clisp.org>
2000         fts tests: Fix link error.
2001         Reported by Tom G. Christensen in
2002         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
2003         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
2005 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2007         fts: port recent changes to CentOS 6
2008         Problem reported by Tom G. Christensen in:
2009         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
2010         * lib/fts.c (fsword): New type.
2011         (struct dev_type, filesystem_type): Use it.
2012         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
2013         Also, check for f_type only if fstatfs and sys/vfs.h work.
2015 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2017         tempname: do not depend on secure_getenv
2018         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
2019         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
2020         * modules/tempname (Depends-on): Remove secure_getenv.
2022 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
2024         extensions: add _OPENBSD_SOURCE
2025         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
2027 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
2028             Bruno Haible  <bruno@clisp.org>
2030         manywarnings: Add support for C++.
2031         * build-aux/g++-warning.spec: New file.
2032         * m4/manywarnings-c++.m4: New file.
2033         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
2034         redirects to manywarnings-c++.m4.
2035         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
2037 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2039         git-version-gen: another fix for tags with "-"
2040         * build-aux/git-version-gen: Improve fix for tags containing "-".
2041         Suggested by Markus Armbruster in:
2042         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
2044 2017-08-06  Bruno Haible  <bruno@clisp.org>
2046         warnings, manywarnings: Add support for multiple languages, not just C.
2047         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
2048         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
2049         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
2050         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
2051         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
2052         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
2053         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
2054         of the current language. If C++ is the current language, modify
2055         WARN_CXXFLAGS instead of WARN_CFLAGS.
2056         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
2057         gl_MANYWARN_ALL_GCC.
2058         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
2060 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
2062         git-version-gen: Fix for tags containing '-'
2064         Really old versions of git-describe (before v1.5.0, Feb 2007)
2065         don't have the number of commits in their long format output,
2066         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
2067         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
2068         recognizes both patterns, and normalizes the old format to the new one.
2070         Unfortunately, this normalization code gets confused when the tag
2071         contains '-'.  Reproducer:
2073             $ git-tag -m test v0.2-rc1
2074             $ build-aux/git-version-gen .tarball-version; echo
2075             build-aux/git-version-gen: WARNING: git rev-list failed
2076             UNKNOWN
2078         We take exact tag "v0.2-rc1" for the old format, extract the presumed
2079         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
2080         commits since tha tag.  Fails, because tag "v0.2" does not exist.
2082         * git-version-gen: We could perhaps drop support for versions from
2083         more than a decade ago.  But tightening the pattern match is easy
2084         enough, so do that.  Still breaks when you use version tags ending in
2085         something matching -g????, but you arguably get what you deserve then.
2087 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
2089         valgrind-tests: use ls, and cache
2090         * m4/valgrind-tests.m4: Test ls, not bash.
2091         Problem reported by Reuben Thomas.
2092         Also, cache the result so that it can be overridden.
2094 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
2096         manywarnings: port to 64-bit GCC builds of Emacs
2097         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
2098         object size rather than hardwiring 2147483647.  This is needed to
2099         build GNU Emacs, which has one conditional (and used
2100         only-in-theory) call to malloc with a literal greater than
2101         2147483647.
2103 2017-08-04  Bruno Haible  <bruno@clisp.org>
2105         Relax the license of some modules with no runtime code.
2106         * modules/std-gnu11 (License): Set to 'unlimited'.
2107         * modules/c99 (License): Likewise.
2108         Reported by Reuben Thomas <rrt@sc3d.org>.
2109         * modules/d-ino (License): Set to 'LGPL'.
2110         * modules/host-os (License): Likewise.
2111         * modules/longlong (License): Likewise.
2113 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
2115         renameat2: port to RHEL 7 + NFS
2116         * lib/renameat2.c (renameat2) [SYS_renameat2]:
2117         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
2118         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
2120 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2122         renameat2: port to non-renameat platforms
2123         Problem reported for MSVC-2015 by Gisle Vanem in:
2124         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
2125         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
2126         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
2128 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2130         manywarnings: port to 32-bit GCC bug
2131         Problem reported by Pino Toscano in:
2132         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
2133         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
2134         not 2**63 - 1, to work around the following GCC bug:
2135         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
2137 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2139         backupfile: new function to validate backup suffix
2140         * lib/backupfile.c (set_simple_backup_suffix): New function.
2141         (backupfile_internal): Use it.
2143         canonicalize: fix EOVERFLOW commentary
2144         Problem reported by Bruno Haible in:
2145         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
2146         * lib/canonicalize.c (canonicalize_filename_mode):
2147         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
2149         Don't interpret EOVERFLOW to mean nonexistence
2150         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
2151         may be EOVERFLOW; this is likely more useful than reporting the
2152         stat errno.
2153         * lib/glob.c (link_stat): Rename from link_exists2_p and
2154         return -1/0 instead of 0/1.  Caller changed.
2155         * lib/glob.c (link_exists_p):
2156         * lib/renameat2.c (rename_noreplace, renameat2):
2157         * lib/tempname.c (try_nocreate):
2158         If errno == EOVERFLOW then the directory entry exists, so do not
2159         act as if it does not exist.
2161         backup-rename: new module
2162         It is like backupfile, except it avoids some race conditions,
2163         and it does not output to stderr or exit.
2164         * MODULES.html.sh: Add backup-rename.
2165         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
2166         * modules/backup-rename: New files.
2167         * lib/backupfile.c: Turn this into an internals file, which
2168         contains code common to backupfile and backup_rename.  Include
2169         backupfile-internal.h instead of backupfile.h.  Do not include
2170         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
2171         renameat2.h and fcntl.h.
2172         (BACKUP_NOMEM): New constant.
2173         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
2174         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
2175         (backupfile_internal): Rename from find_backup_file_name.
2176         Support new arg RENAME.
2177         (backup_args, backup_types, get_version, xget_version):
2178         Move to lib/backup-find.c.
2179         * lib/backupfile.h (backup_file_rename): New decl.
2180         * modules/backupfile (Files): Add lib/backup-internal.h,
2181         lib/backup-find.c.
2182         (Depends-on): Add dirfd, fcntl, renameat2.
2183         (lib_SOURCES): Add backup-find.c.
2185         renameat2: port better to older Solaris
2186         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
2187         Add goto to use a label, to silence picky compilers.
2189         fts-tests: port to gcc -Wwrite-strings
2190         * tests/test-fts.c (base, base_d): New static vars.
2191         (argv, remove_tree, main): Use them.
2193 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2195         relocatable-lib{,-lgpl}: improve documentation
2196         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
2197         Various other updates.
2199 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
2200             Bruno Haible  <bruno@clisp.org>
2202         relocatable-lib{,-lgpl}: add Valgrind suppressions
2203         * lib/relocatable.valgrind: New file.
2204         * modules/relocatable-lib (Files): Add relocatable.valgrind.
2205         * modules/relocatable-lib-lgpl: Likewise.
2207 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2209         relocatable: Make the license on the sources the GPL.
2210         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
2211         LGPL, which was a special case so that the relocatable source files
2212         could be used without gnulib-tool, to GPL. They can still be used under
2213         the LGPL, using the --lgpl option to gnulib-tool.
2215 2017-07-30  Bruno Haible  <bruno@clisp.org>
2217         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
2218         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
2219         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
2220         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
2221         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
2223 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2225         faccessat: document AT_SYMLINK_NOFOLLOW issue
2226         * doc/posix-functions/faccessat.texi: Modernize platform list.
2227         Document AT_SYMLINK_NOFOLLOW limitation.
2229         renameat2: port to Solaris 10
2230         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
2231         with AT_SYMLINK_NOFOLLOW (which is not portable).
2232         (renameat): Undef before using, to avoid endless recursion when
2233         the replacement renameat calls renameat2 which calls the
2234         replacement renameat.
2235         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
2236         * modules/renameat2 (Depends-on): Remove faccessat.
2237         * modules/renameat-tests (test_renameat_LDADD):
2238         * modules/renameat2-tests (test_renameat2_LDADD):
2239         Remove $(LIB_EACCESS).
2241         renameat2: new module
2242         Although the Linux syscall renameat2 is not in glibc (yet?), it is
2243         useful to have access to its RENAME_NOREPLACE flag.
2244         * MODULES.html.sh (func_all_modules): Add renameat2.
2245         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
2246         * modules/renameat2-tests, tests/test-renameat2.c: New files.
2247         * lib/renameat.c (renameat): Move most of the implementation
2248         to renameat2, and just call renameat2.
2249         * modules/renameat (Files): Remove lib/at-func2.c.
2250         (Depends-on): Depend only on renameat2.
2251         (Include): Remove <fcntl.h>.
2252         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
2253         since renameat (via renameat2) might use faccessat.
2255 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
2257         vc-list-files: Adjust the script to support git worktrees
2258         * build-aux/vc-list-files: Require existence, not directory.
2260 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2262         doc: bring MODULES.html.sh up to date
2263         Somehow a few months ago we stopped updating MODULES.html.sh.
2264         I don’t recall explicitly deciding this, so I updated it now.
2265         Alternatively I suppose we could remove it.
2266         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
2267         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
2268         truncate, utime, utime-h, windows-stat-inodes,
2269         windows-stat-override, windows-stat-timespec, year2038.  Sort.
2271 2017-07-26  Jim Meyering  <meyering@fb.com>
2273         fprintftime: fix build-break caused by recent renaming
2274         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
2275         "strftime.c".
2276         * modules/fprintftime: Depend directly on nstrftime.
2278 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2280         regex: work with GCC7's -Werror=implicit-fallthrough=
2281         * lib/regex_internal.h (FALLTHROUGH): New macro.
2282         * lib/regcomp.c (peek_token_bracket, parse_expression):
2283         * lib/regexec.c (check_node_accept): Use it.
2285 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2287         fts: simplify fts_build
2288         * lib/fts.c (fts_build): Simplify, and be lazier about
2289         calling leaf_optimization.
2291         fts: three levels of leaf optimization
2292         * lib/fts.c (enum leaf_optimization): New type with three values.
2293         (S_MAGIC_AFS): New macro.  Sort them.
2294         (leaf_optimization): Rename from leaf_optimization_applies, and
2295         return enum leaf_optimization instead of bool.  All uses changed.
2296         Add cases for unknown type and for AFS.
2297         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
2299         fts: cache dirent_inode_sort_may_be_useful too
2300         * lib/fts.c (struct dev_type): New struct.
2301         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
2302         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
2303         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
2304         Now takes FTSENT const *, not int.  All uses changed.  Use
2305         filesystem_type to cache.
2306         (link_count_optimize_ok): Remove.  Caller changed to use
2307         leaf_optimization_applies, which now uses shared cache.
2309         fts: introduce MIN_DIR_NLINK
2310         * lib/fts.c (MIN_DIR_NLINK): New constant.
2311         Use it instead of 2, whenever we are talking about link counts.
2313         fts: nlink_t signedness fixups
2314         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
2315         so that root need not be a special case later.
2316         (fts_read): Remove now-redundant test for fts_level.
2317         Do not assume that nlink_t is signed.
2318         (fts_build): Remove useless decrement of nlinks.
2319         (fts_stat): Avoid unlikely signed integer overflow later, if
2320         nlink_t is signed.
2322         fts-tests: new module
2323         * modules/fts-tests, tests/test-fts.c: New files.
2325 2017-07-23  Bruno Haible  <bruno@clisp.org>
2327         Rename module 'strftime' to 'nstrftime'.
2328         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
2329         * lib/nstrftime.c: Renamed from lib/strftime.c.
2330         * modules/nstrftime: Renamed from modules/strftime.
2331         (Files, Makefile.am): Update.
2332         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
2333         Fix comment.
2334         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
2335         (Files, Makefile.am): Update.
2336         * modules/strftime: New file, an obsolete indirection.
2337         * doc/posix-functions/strftime.texi: Update reference.
2338         * config/srclist.txt: Update info.
2339         * NEWS: Mention the change.
2341 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
2343         malloca: Silence a warning from clang's memory sanitizer.
2344         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
2345         (freea): Use it.
2347 2017-07-18  Bruno Haible  <bruno@clisp.org>
2349         host-cpu-c-abi: Fix detection of MIPS ABI.
2350         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
2351         ABI, not the CPU instruction set.
2353 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2355         explicit_bzero: new module
2356         The explicit_bzero function has been added to glibc.
2357         This module is intended to supports its use in GNU programs.
2358         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
2359         * m4/explicit_bzero.m4, modules/explicit_bzero:
2360         New files.
2361         * doc/gnulib.texi (Glibc string.h): Link to new doc.
2362         * lib/string.in.h (explicit_bzero): Declare.
2363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
2364         * modules/string (string.h): Substitute its vars.
2366 2017-07-16  Bruno Haible  <bruno@clisp.org>
2368         threadlib: Support static linking.
2369         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
2370         set gl_cv_have_weak to 'no'.
2372 2017-07-16  Bruno Haible  <bruno@clisp.org>
2374         unicase/locale-language: Fix link dependencies.
2375         * modules/unicase/locale-language (Link): New section.
2376         * modules/unicase/locale-language-tests (Makefile.am): Link
2377         test-locale-language program with $(LIBTHREAD).
2379 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2381         sys_socket: Add support for OpenVMS.
2382         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
2383         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
2385 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2387         sys_resource: Add support for OpenVMS.
2388         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
2389         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
2391 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2392             Bruno Haible  <bruno@clisp.org>
2394         math: Add support for OpenVMS.
2395         * lib/math.in.h [__VMS]: Include <fp.h>.
2396         * doc/posix-headers/math.texi: Mention OpenVMS issues.
2398 2017-07-15  Bruno Haible  <bruno@clisp.org>
2400         getdtablesize: Add minimal support for OpenVMS.
2401         Reported by John E. Malmberg <wb8tyw@qsl.net>.
2402         * modules/getdtablesize (Description): Fix.
2403         * lib/getdtablesize.c: Fix comment.
2404         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
2405         getdtablesize() function, even though the test fails.
2406         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
2407         limitation on OpenVMS.
2409 2017-07-13  Bruno Haible  <bruno@clisp.org>
2411         Revisit cross-compilation guesses.
2412         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
2414 2017-07-13  Bruno Haible  <bruno@clisp.org>
2416         Improve cross-compilation guesses for native Windows.
2417         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
2418         Windows.
2419         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
2420         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
2421         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2422         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
2423         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
2424         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2425         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2426         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2427         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2428         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
2429         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2430         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
2431         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
2432         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
2433         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
2434         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2435         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
2436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2437         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2438         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
2439         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2440         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2441         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
2442         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
2443         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
2444         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
2445         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2446         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2448         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
2449         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
2451         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2452         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
2453         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
2454         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
2455         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2456         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2457         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2458         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2459         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2461         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
2462         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
2463         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
2464         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
2465         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
2466         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
2467         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
2468         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
2469         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
2470         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
2471         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
2472         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
2473         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
2474         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
2475         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
2476         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2477         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
2478         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2479         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2480         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
2481         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
2482         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2483         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2485         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
2486         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2487         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
2488         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
2489         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
2490         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
2491         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2492         * m4/regex.m4 (gl_REGEX): Likewise.
2493         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2494         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
2495         gl_FUNC_REMAINDERF_WORKS): Likewise.
2496         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
2497         gl_FUNC_REMAINDERL_WORKS): Likewise.
2498         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2499         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2501         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2502         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2503         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2504         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2505         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2506         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
2507         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2508         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
2509         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
2510         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2511         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2512         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2513         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2514         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2515         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2516         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2517         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2518         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2519         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2520         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2521         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
2522         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2523         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2524         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2525         Likewise.
2526         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2527         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
2528         Windows. Enable also on Autoconf 2.70.
2529         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2530         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2531         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2532         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
2533         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2534         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
2535         for native Windows.
2536         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2537         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
2539 2017-07-13  Bruno Haible  <bruno@clisp.org>
2541         Improve cross-compilation guesses for native Windows.
2542         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
2543         Windows.
2544         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
2545         memchr.m4.
2546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2548 2017-07-13  Bruno Haible  <bruno@clisp.org>
2550         Improve cross-compilation guesses for native Windows.
2551         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
2552         native Windows.
2553         (gl_FUNC_FFLUSH): Update accordingly.
2554         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
2555         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2557 2017-07-11  Bruno Haible  <bruno@clisp.org>
2559         More systematic m4 quoting and indentation.
2560         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
2561         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2562         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
2563         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2564         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2565         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
2566         gl_WINSIZE_IN_PTEM): Likewise.
2567         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
2568         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2569         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2570         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
2571         Correct indentation.
2572         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2574         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
2575         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2576         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2577         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2579 2017-07-10  Bruno Haible  <bruno@clisp.org>
2581         round, roundf: Avoid compiler warning in configure test.
2582         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
2583         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2585 2017-07-10  Bruno Haible  <bruno@clisp.org>
2587         getlogin tests: Avoid #ifdefs when sharing code between modules.
2588         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
2589         * modules/getlogin-tests (Files): Likewise. Remove
2590         tests/test-getlogin_r.c.
2591         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
2592         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
2593         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
2594         getlogin().
2596 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2598         getlogin: don’t assume one name per uid
2599         Problem reported by Wolfgang F. Muthmann (Bug#27640).
2600         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
2601         (ttyname): Remove test.
2602         * modules/getlogin_r-tests (ttyname): Remove test.
2603         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
2604         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
2605         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
2606         getlogin rather than getlogin_r.  This avoids code duplication.
2607         (main): Use isatty and fstat rather than ttyname and stat.
2608         Use getpwnam instead of getpwuid, to be portable to test platforms
2609         that have multiple login names for the same uid.
2611 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
2612             Bruno Haible  <bruno@clisp.org>
2614         glob: Fix more memory leaks.
2615         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
2616         returning.
2617         Reported by Tim Rühsen.
2619 2017-07-10  Bruno Haible  <bruno@clisp.org>
2621         Make sure $host and $host_os are defined when used.
2622         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
2623         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
2624         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2625         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2626         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2628         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2629         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
2630         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2631         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2632         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
2633         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
2634         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2635         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
2636         m4_ifdef block.
2638 2017-07-09  Bruno Haible  <bruno@clisp.org>
2640         *printf: Fix cross-compilation guess for Solaris.
2641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
2642         2010-12-21.
2644 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2645             Bruno Haible  <bruno@clisp.org>
2647         vasnprintf: port to macOS 10.13
2648         Problem reported by comex in:
2649         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
2650         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
2652 2017-07-06  Bruno Haible  <bruno@clisp.org>
2654         imaxdiv tests: Fix logic.
2655         * tests/test-imaxdiv.c (main): Use == instead of =.
2656         Reported by Coverity.
2658 2017-07-06  Bruno Haible  <bruno@clisp.org>
2660         uninorm/filter: Fix use-after-free bug.
2661         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
2662         sortbuf == filter->sortbuf invariant.
2663         Reported by Coverity.
2665 2017-07-06  Bruno Haible  <bruno@clisp.org>
2667         glob: Fix more memory leaks.
2668         * lib/glob.c (glob): Free dirname before returning.
2669         Reported by Coverity and Tim Rühsen.
2671 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2673         parse-datetime: fix uninit var bug
2674         Reported by Bruno Haible in:
2675         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
2676         * lib/parse-datetime.y (parse_datetime2): Do not use
2677         uninitialized.
2679 2017-07-05  Bruno Haible  <bruno@clisp.org>
2681         doc: Update for MSVC 14.
2682         * doc/posix-headers/*.texi: Add info about MSVC 14.
2683         * doc/posix-functions/*.texi: Likewise.
2684         * doc/pastposix-functions/*.texi: Likewise.
2685         * doc/glibc-headers/*.texi: Likewise.
2686         * doc/glibc-functions/*.texi: Likewise.
2688 2017-07-05  Bruno Haible  <bruno@clisp.org>
2690         sched: Fix build failure on native Windows (regression from 2017-06-19).
2691         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
2693 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
2695         stdioext: Port to OpenVMS.
2696         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
2697         * lib/fpending.c (fpending): Remove non-working VMS specific code.
2698         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
2699         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
2700         * lib/fpurge.c (fpurge): Likewise.
2701         * lib/freadable.c (freadable): Likewise.
2702         * lib/freadahead.c (freadahead): Likewise.
2703         * lib/freading.c (freading): Likewise.
2704         * lib/freadptr.c (freadptr): Likewise.
2705         * lib/freadseek.c (freadseek): Likewise.
2706         * lib/fseeko.c (fseeko): Likewise.
2707         * lib/fseterr.c (fseterr): Likewise.
2708         * lib/fwritable.c (fwriteable): Likewise.
2709         * lib/fwriting.c (fwriting): Likewise.
2711 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
2713         glob: Declare variables at the very start of their scope.
2714         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
2715         its separate scope, so the functions will compile on Haiku.
2717 2017-07-01  Bruno Haible  <bruno@clisp.org>
2719         logbl: Work around a glibc bug on PowerPC64LE.
2720         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
2721         numbers.
2722         * doc/posix-functions/logbl.texi: Update.
2724 2017-06-29  Bruno Haible  <bruno@clisp.org>
2726         stat, fstat: Compile stat-w32.c only on platforms that need it.
2727         Suggested by Paul Eggert.
2728         * modules/stat (configure.ac): Request stat-w32.o only on native
2729         Windows.
2730         * modules/fstat (configure.ac): Likewise.
2732 2017-06-25  Bruno Haible  <bruno@clisp.org>
2734         stat: Improve last change.
2735         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
2737 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2739         stat: port to xlc 12.01
2740         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
2741         12.01 complains "Compilation unit is empty."
2743 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2745         xalloc-oversized: port to icc
2746         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
2747         __builtin_mul_overflow if ICC is defined, as this results in
2748         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
2749         20170213.
2751 2017-06-19  Bruno Haible  <bruno@clisp.org>
2753         classpath: Avoid including config.h twice, as it produces warnings.
2754         Reported by John E. Malmberg <wb8tyw@gmail.com>.
2755         * lib/classpath.h: Conditionalize the include of config.h.
2757 2017-06-19  Bruno Haible  <bruno@clisp.org>
2758             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
2760         sched: Fix compilation failure on OpenVMS.
2761         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
2762         test whether <pthread.h> exists and defines struct sched_param.
2763         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
2765 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2767         diffseq: port to GCC 7 with --enable-gcc-warnings
2768         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
2769         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
2770         not complain about big_snake being defined but not used.
2772 2017-06-15  Bruno Haible  <bruno@clisp.org>
2774         gettext-h: Update theoretical condition for use of variable size arrays.
2775         Reported by Paul Eggert.
2776         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
2777         to include the theoretical condition for availability of variable size
2778         arrays, if we could trust the value of __STDC_VERSION__.
2780 2017-06-12  Bruno Haible  <bruno@clisp.org>
2782         Relicense some modules under LGPLv2+.
2783         Daiki Ueno's approval is in
2784         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
2785         * modules/uniwidth/base (License): Change to LGPLv2+.
2786         * modules/uniwidth/width (License): Likewise.
2788 2017-06-11  Bruno Haible  <bruno@clisp.org>
2790         localename: Fix test failure on DragonFly BSD.
2791         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
2792         like FreeBSD.
2794 2017-06-11  Bruno Haible  <bruno@clisp.org>
2796         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
2797         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
2798         * lib/float.in.h: Likewise.
2799         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
2801 2017-06-11  Bruno Haible  <bruno@clisp.org>
2803         gnulib-tool: Clean up after autotools.
2804         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
2805         useless directory left over by the Autotools.
2807 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
2809         getopt-posix: port to glibc 2.25.90
2810         Problem reported by Daniel P. Berrange in:
2811         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
2812         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
2813         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
2814         #undef if __GETOPT_PREFIX is defined.
2816 2017-06-11  Bruno Haible  <bruno@clisp.org>
2818         strtod-obsolete: Fix license.
2819         * modules/strtod-obsolete (License): Change to LGPL.
2821 2017-06-10  Jim Meyering  <meyering@fb.com>
2823         maint: update to work with GCC7's -Werror=implicit-fallthrough=
2824         * lib/savewd.c (FALLTHROUGH): Define.
2825         (savewd_save, savewd_restore): Use this, rather than a comment,
2826         whenever one switch case falls through into the next.
2828 2017-06-08  Bruno Haible  <bruno@clisp.org>
2830         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
2831         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
2832         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
2833         case.
2835 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
2837         doc: remove robots, add prereqs
2838         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
2839         builds.  Simon's robot site does not seem to be up, so remove
2840         mentions of it for now.
2842 2017-06-08  Bruno Haible  <bruno@clisp.org>
2844         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
2845         * gnulib-tool (func_symlink_target): New function, extracted from
2846         func_symlink.
2847         (func_symlink, func_symlink_if_changed): Use it.
2849 2017-06-08  Bruno Haible  <bruno@clisp.org>
2851         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
2852         * gnulib-tool (func_ln_s): Determine cp_src correctly.
2854 2017-06-07  Bruno Haible  <bruno@clisp.org>
2856         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
2857         Reported by John E. Malmberg <wb8tyw@gmail.com> in
2858         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
2859         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
2860         override, pass 2 arguments to getcwd, not 3.
2862 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
2864         same-inode: port better to VMS 8.2 and later
2865         Problem reported by John E. Malmberg in:
2866         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
2867         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
2868         Use the usual POSIX definition.
2869         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
2871 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2873         error: fix POSIX violation for va_end
2874         Problem reported by Bruno Haible in:
2875         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
2876         * lib/error.c (error_tail): Do not call va_end here.
2877         (error, error_at_line): Call it here instead.
2879 2017-05-28  Bruno Haible  <bruno@clisp.org>
2881         c-strtod: Make it usable in C++ mode.
2882         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
2884 2017-05-25  Jim Meyering  <meyering@fb.com>
2886         quotearg: fix compilation failure due to FALLTHROUGH misuse
2887         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
2888         macro back to /* fall through */ comment.  The macro can apply only
2889         to a following case statement.  Reported by Assaf Gordon.
2891 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2893         intprops: port to recent icc
2894         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
2895         but does not support __builtin_add_overflow etc.
2896         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
2897         Define to 0.
2899 2017-05-23  Karl Berry  <karl@freefriends.org>
2901         * config/srclist.txt (iconv.m4): sync broken, comment out
2902         until (hopefully) the next gettext release.
2904 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
2906         Remove repeated words in comments.
2908 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
2910         fallthrough: reinstate a FALLTHROUGH instance in quotearg
2911         quotearg.c: Reinstate this instance which is significant
2912         when the if branch is not taken.
2914 2017-05-21  Bruno Haible  <bruno@clisp.org>
2916         gnulib-tool: Add options to create hard links.
2917         * gnulib-tool (func_usage): Document options --hardlink,
2918         --local-hardlink, --more-hardlinks.
2919         (func_symlink): Renamed from func_ln.
2920         (func_symlink_if_changed): Renamed from func_ln_if_changed.
2921         (func_hardlink): New function.
2922         (copymode, lcopymode): New variables.
2923         (symbolic, lsymbolic): Remove variables.
2924         (Options): Implement options --hardlink, --local-hardlink,
2925         --more-hardlinks.
2926         (func_should_link): Renamed from func_should_symlink. Set copyaction.
2927         (func_add_file, func_update_file): Update invocation of
2928         func_should_link. Invoke func_hardlink when appropriate.
2929         (func_import): Update comments.
2930         (func_create_testdir): Update invocation of func_should_link. Invoke
2931         func_hardlink when appropriate.
2932         Finally, invoke 'git update-index --refresh' to mitigate the effects of
2933         the hard links on git.
2935 2017-05-20  Bruno Haible  <bruno@clisp.org>
2937         argp: Simplify bit manipulation.
2938         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
2939         on a signed integer type.
2941 2017-05-20  Bruno Haible  <bruno@clisp.org>
2943         Avoid wrong configure results with gcc -fsanitize=address.
2944         This completes the work done on 2016-02-06 on this topic.
2945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
2946         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2948         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2949         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
2950         returning.
2951         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2952         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2953         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2955         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2956         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2957         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
2958         free allocated memory before returning.
2959         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2960         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
2961         objects before returning.
2962         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
2963         returning.
2965 2017-05-20  Bruno Haible  <bruno@clisp.org>
2967         gnulib-tool: Don't create hard links between gnulib and its testdirs.
2968         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
2970 2017-05-20  Bruno Haible  <bruno@clisp.org>
2972         argp, tsearch tests: Fix file list.
2973         * modules/argp-tests (Files): Add tests/macros.h.
2974         * modules/tsearch-tests (Files): Likewise.
2976 2017-05-20  Bruno Haible  <bruno@clisp.org>
2978         getopt-posix tests: Remove redundant include.
2979         * tests/test-getopt.h: Don't include "macros.h". It's already included
2980         by tests/test-getopt-main.h.
2982 2017-05-19  Jim Meyering  <meyering@fb.com>
2984         dfa: two small simplifications
2985         * lib/dfa.c (build_state): Avoid repeating longer expressions.
2987 2017-05-18  Jim Meyering  <meyering@fb.com>
2989         fallthrough: update for GCC 7/8
2990         * lib/quotearg.c (FALLTHROUGH): New macro.
2991         Use it whenever one switch case falls through into the next,
2992         replacing "/* Fall through */" comments.  This exposed one
2993         instance of an unwarranted "fall through" comment: unwarranted
2994         because it preceded a "goto" label not a case statement.
2995         * lib/freopen-safer.c (freopen_safer): Likewise.
2996         * lib/fts.c (leaf_optimization_applies): Likewise.
2997         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2998         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
2999         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
3000         tests/macros.h for the definition.
3001         * tests/test-argp.c (group1_parser): Likewise.
3002         * tests/test-getopt.h (getopt_loop): Likewise.
3004 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3006         argp: fix shift bug
3007         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
3008         behavior on shift overflow, caught by gcc -fsanitize=undefined.
3010         argp: fix pointer-subtraction bug
3011         * lib/argp-help.c (hol_append): Don’t subtract pointers to
3012         different arrays, as this can run afoul of -fcheck-pointer-bounds.
3013         See the thread containing Bruno Haible’s report in:
3014         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
3016 2017-05-19  Bruno Haible  <bruno@clisp.org>
3018         printf-posix tests: Avoid test failure with "gcc --coverage".
3019         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3020         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
3021         than 5000000.
3022         * tests/test-fprintf-posix2.c (main): Likewise.
3024 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3026         closeout: don’t close stderr when sanitizing
3027         * NEWS: Document this.
3028         * lib/closeout.c (__has_feature): New macro, if not already defined.
3029         (SANITIZE_ADDRESS): New constant.
3030         (close_stdout): Don’t close stderr if sanitizing addresses.
3032 2017-05-19  Bruno Haible  <bruno@clisp.org>
3034         get-rusage-data tests: Avoid failure on Linux/glibc.
3035         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
3036         on glibc systems.
3038 2017-05-18  Bruno Haible  <bruno@clisp.org>
3040         localename: Include necessary header files on Cygwin.
3041         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
3042         where NL_LOCALE_NAME is defined.
3044 2017-05-18  Bruno Haible  <bruno@clisp.org>
3046         gettext: Update macros from gettext git.
3047         * m4/intldir.m4: Require Autoconf >= 2.60.
3048         * m4/progtest.m4: Fix typos in copyright notice.
3050 2017-05-18  Bruno Haible  <bruno@clisp.org>
3052         copy-file tests: Fix link error (regression from 2017-05-01).
3053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3054         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
3055         $(LIB_CLOCK_GETTIME).
3057 2017-05-18  Bruno Haible  <bruno@clisp.org>
3059         unicase/special-casing: Fix incompatibility with gperf-3.0.4
3060         (regression from 2017-02-13).
3061         * lib/unicase/special-casing.in.h: Renamed from
3062         lib/unicase/special-casing.h.
3063         * modules/unicase/special-casing (Files): Add
3064         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
3065         (Makefile.am): Add rule for generating unicase/special-casing.h.
3066         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
3067         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
3068         not "special-casing.h".
3069         * lib/unicase/u*.c: Likewise.
3071 2017-05-17  Bruno Haible  <bruno@clisp.org>
3073         README: Don't ask people to read a TeXinfo file.
3074         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3075         * README: Tell people how to read the HTML formatted manual.
3077 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3079         parse-datetime: Fix memleak
3080         * lib/parse-datetime.y (parse_datetime2): Cleanup on
3081         localtime_rz() failure.
3083 2017-05-16  Bruno Haible  <bruno@clisp.org>
3085         javacomp: Fix handle leak.
3086         Found by Coverity.
3087         * lib/javacomp.c (get_classfile_version): Close fd before returning.
3089 2017-05-16  Bruno Haible  <bruno@clisp.org>
3091         relocate: Make it easier to reclaim allocated memory.
3092         * lib/relocatable.h (relocate2): New declaration/macro.
3093         * lib/relocatable.c (relocate2): New function.
3094         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
3095         relocate2 function.
3096         * lib/localcharset.c (relocate2): Define fallback.
3097         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
3098         allocated memory.
3099         * lib/javaversion.c (relocate2): Define fallback.
3100         (javaexec_version): Invoke relocate2 instead of relocate. Free the
3101         allocated memory.
3103 2017-05-16  Bruno Haible  <bruno@clisp.org>
3105         relocate: Simplify EMX specific code.
3106         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
3107         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
3109 2017-05-16  Bruno Haible  <bruno@clisp.org>
3111         sigpipe tests: Fix file list.
3112         * modules/sigpipe-tests (Files): Add tests/macros.h.
3114 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3116         manywarnings: update for GCC 7
3117         * build-aux/gcc-warning.spec:
3118         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
3119         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
3120         requires a non-comment fallthrough attribute.  This is a bit
3121         cleaner than the comment versions.
3122         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
3123         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
3124         Use it whenever one switch case falls through into the next.
3125         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
3126         Use FALLTHROUGH macro.
3128 2017-05-15  Bruno Haible  <bruno@clisp.org>
3130         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
3131         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
3132         @ALLOCA@, not @LTALLOCA@.
3134 2017-05-15  Bruno Haible  <bruno@clisp.org>
3136         sys_select: Avoid "was expanded before it was required" warning.
3137         * modules/sys_select (configure.ac): Require, not invoke,
3138         gl_HEADER_SYS_SELECT.
3140 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3142         gnulib-tool: improve GNU Make debugging
3143         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
3144         Report autoconf diagnostics when it fails, in the output makefile.
3146 2017-05-14  Bruno Haible  <bruno@clisp.org>
3148         stat-time tests: Improve comment.
3149         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
3151 2017-05-14  Bruno Haible  <bruno@clisp.org>
3153         same-inode: Adapt for windows-stat-inodes.
3154         * lib/same-inode.h: Include <sys/types.h>.
3155         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
3156         * modules/same-inode (Depends-on): Add sys_types.
3158 2017-05-14  Bruno Haible  <bruno@clisp.org>
3160         windows-stat-inodes: New module.
3161         * m4/windows-stat-inodes.m4: New file.
3162         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
3163         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
3164         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
3165         (_GL_WINDOWS_STAT_INODES): New macro.
3166         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
3167         (GetFileInformationByHandleExFunc): New variable.
3168         (initialize): Initialize it.
3169         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
3170         st_ino appropriately.
3171         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
3172         a fallback, because it does not provide st_dev and st_ino values.
3173         * modules/fstat (Depends-on): Add 'verify'.
3174         * modules/windows-stat-inodes: New file.
3175         * doc/windows-stat-inodes.texi: New file.
3176         * doc/gnulib.texi: Include it.
3177         * doc/posix-headers/sys_stat.texi: Mention the new module.
3179 2017-05-14  Bruno Haible  <bruno@clisp.org>
3181         stat-time tests: Workaround for native Windows.
3182         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
3183         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
3184         New variables.
3185         (initialize_filenames): New function.
3186         (main): Invoke it.
3187         (cleanup, prepare_test): Update.
3189 2017-05-14  Bruno Haible  <bruno@clisp.org>
3191         stat-time: Adapt for windows-stat-timespec.
3192         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
3193         entire st_ctim field.
3195 2017-05-13  Jim Meyering  <meyering@fb.com>
3197         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
3198         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
3199         file that uses the assume macro, claiming that verify.h is unused.
3201 2017-05-13  Bruno Haible  <bruno@clisp.org>
3203         Use symbolic values for _WIN32_WINNT.
3204         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
3205         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3207 2017-05-13  Bruno Haible  <bruno@clisp.org>
3209         year2038: New module.
3210         * m4/year2038.m4: New file.
3211         * modules/year2038: New file.
3212         * doc/year2038.texi: New file.
3213         * doc/gnulib.texi: Include it.
3215 2017-05-13  Bruno Haible  <bruno@clisp.org>
3217         largefile: Simplify.
3218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
3219         of _GL_WINDOWS_64_BIT_ST_SIZE.
3221 2017-05-13  Bruno Haible  <bruno@clisp.org>
3223         largefile: Improve and document.
3224         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
3225         the mingw headers already define 'stat' appropriately.
3226         * modules/largefile (Description): Clarify.
3227         * doc/largefile.texi: New file.
3228         * doc/gnulib.texi: Include it.
3229         * doc/posix-headers/sys_types.texi: Update.
3231 2017-05-13  Bruno Haible  <bruno@clisp.org>
3233         truncate: New module.
3234         * lib/unistd.in.h (truncate): New declaration.
3235         * lib/truncate.c: New file.
3236         * m4/truncate.m4: New file.
3237         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
3238         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
3239         REPLACE_TRUNCATE.
3240         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
3241         HAVE_TRUNCATE, REPLACE_TRUNCATE.
3242         * modules/truncate: New file.
3243         * tests/test-unistd-c++.cc (truncate): Test signature.
3244         * doc/posix-functions/truncate.texi: Mention the new module.
3246         * tests/test-truncate.c: New file.
3247         * modules/truncate-tests: New file.
3249 2017-05-13  Bruno Haible  <bruno@clisp.org>
3251         windows-stat-timespec: New module.
3252         * modules/windows-stat-timespec: New file.
3253         * m4/windows-stat-timespec.m4: New file.
3254         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
3255         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
3256         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
3257         fields st_atim, st_mtim, st_ctim.
3258         (st_atime, st_mtime, st_ctime): Define as macros.
3259         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
3260         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
3261         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
3262         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
3263         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
3264         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
3265         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3266         FILETIME to 'struct timespec', not 'time_t'.
3267         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3268         FILETIME to 'struct timespec', not 'time_t'.
3269         * lib/stat-time.h (STAT_TIMESPEC): Define also if
3270         _GL_WINDOWS_STAT_TIMESPEC.
3271         * doc/windows-stat-timespec.texi: New file.
3272         * doc/gnulib.texi: Include it.
3274 2017-05-13  Bruno Haible  <bruno@clisp.org>
3276         windows-stat-override: New module.
3277         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
3278         definition. Define GNULIB_defined_struct_stat.
3279         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
3280         link error if this symbol is used and the corresponding module is not
3281         in use.
3282         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
3283         GNULIB_OVERRIDES_STRUCT_STAT.
3284         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
3285         GNULIB_OVERRIDES_STRUCT_STAT.
3286         * modules/sys_stat (Makefile.am): Substitute
3287         GNULIB_OVERRIDES_STRUCT_STAT.
3288         * modules/windows-stat-override: New file.
3290 2017-05-13  Bruno Haible  <bruno@clisp.org>
3292         fstat: Fix module dependency conditions.
3293         * modules/fstat (Depends-on): Fix typo.
3295 2017-05-13  Bruno Haible  <bruno@clisp.org>
3297         stat, fstat: Complete removal of old native Windows code.
3298         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
3299         * lib/fstat.c: Likewise.
3300         * lib/stat-w32.c: Likewise.
3302 2017-05-13  Bruno Haible  <bruno@clisp.org>
3304         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
3305         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
3307 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3309         getopt-posix: port to mingw
3310         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
3311         Problem reported by Daniel P. Berrage in:
3312         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
3314 2017-05-11  Bruno Haible  <bruno@clisp.org>
3316         gettimeofday: Increase precision on mingw.
3317         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
3318         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
3319         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
3320         GetSystemTimePreciseAsFileTime based implementation always.
3321         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
3322         mingw.
3324 2017-05-11  Bruno Haible  <bruno@clisp.org>
3326         poll: Fix confusion between SOCKETs and FDs on native Windows.
3327         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
3328         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
3330 2017-05-11  Bruno Haible  <bruno@clisp.org>
3332         doc: Clarify doc about socket functions on native Windows.
3333         This reworks doc that was added on 2008-09-29.
3334         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
3335         clearer wording.
3336         * doc/posix-functions/accept.texi: Use clearer wording.
3337         * doc/posix-functions/bind.texi: Likewise.
3338         * doc/posix-functions/connect.texi: Likewise.
3339         * doc/posix-functions/getpeername.texi: Likewise.
3340         * doc/posix-functions/getsockname.texi: Likewise.
3341         * doc/posix-functions/getsockopt.texi: Likewise.
3342         * doc/posix-functions/ioctl.texi: Likewise.
3343         * doc/posix-functions/listen.texi: Likewise.
3344         * doc/posix-functions/recv.texi: Likewise.
3345         * doc/posix-functions/recvfrom.texi: Likewise.
3346         * doc/posix-functions/send.texi: Likewise.
3347         * doc/posix-functions/sendto.texi: Likewise.
3348         * doc/posix-functions/setsockopt.texi: Likewise.
3349         * doc/posix-functions/shutdown.texi: Likewise.
3350         * doc/posix-functions/socket.texi: Likewise.
3352 2017-05-10  Bruno Haible  <bruno@clisp.org>
3354         poll: Fix link error on native Windows.
3355         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
3357 2017-05-10  Bruno Haible  <bruno@clisp.org>
3359         time: Fix missing initialization of HAVE_TIMEZONE_T.
3360         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
3361         here...
3362         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
3363         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
3364         gl_HEADER_SYS_TIME_H_DEFAULTS.
3365         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
3366         (configure.ac): Remove useless quoting.
3368 2017-05-10  Bruno Haible  <bruno@clisp.org>
3370         Implement a way to opt out from MSVC support, part 2.
3371         * modules/msvc-inval (Include): Document recommended idiom.
3372         * modules/msvc-nothrow (Include): Likewise.
3374         Implement a way to opt out from MSVC support.
3375         This is useful for Emacs.
3376         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
3377         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
3378         * lib/error.c: Likewise.
3379         * lib/fcntl.c: Likewise.
3380         * lib/flock.c: Likewise.
3381         * lib/fstat.c: Likewise.
3382         * lib/fsync.c: Likewise.
3383         * lib/ioctl.c: Likewise.
3384         * lib/isapipe.c: Likewise.
3385         * lib/lseek.c: Likewise.
3386         * lib/nonblocking.c: Likewise.
3387         * lib/poll.c: Likewise.
3388         * lib/select.c: Likewise.
3389         * lib/sockets.h: Likewise.
3390         * lib/sockets.c: Likewise.
3391         * lib/stdio-read.c: Likewise.
3392         * lib/stdio-write.c: Likewise.
3393         * lib/utimens.c: Likewise.
3394         * lib/w32sock.h: Likewise.
3395         * lib/w32spawn.h: Likewise.
3396         * tests/test-cloexec.c: Likewise.
3397         * tests/test-dup-safer.c: Likewise.
3398         * tests/test-dup2.c: Likewise.
3399         * tests/test-dup3.c: Likewise.
3400         * tests/test-fcntl.c: Likewise.
3401         * tests/test-pipe.c: Likewise.
3402         * tests/test-pipe2.c: Likewise.
3403         * lib/ftruncate.c: Likewise.
3404         (chsize_nothrow): Renamed from chsize.
3405         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
3406         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
3407         * lib/close.c: Likewise.
3408         * lib/dup.c: Likewise.
3409         * lib/fclose.c: Likewise.
3410         * lib/raise.c: Likewise.
3411         * tests/test-fgetc.c: Likewise.
3412         * tests/test-fputc.c: Likewise.
3413         * tests/test-fread.c: Likewise.
3414         * tests/test-fwrite.c: Likewise.
3415         * lib/getdtablesize.c: Likewise.
3416         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
3417         * lib/isatty.c: Don't include msvc-inval.h if
3418         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
3419         Include <io.h> as an alternative to msvc-nothrow.h.
3420         * lib/read.c: Likewise.
3421         * lib/write.c: Likewise.
3422         * lib/dup2.c: Likewise.
3423         (dup2_nothrow): New function.
3424         (ms_windows_dup2): Use it.
3425         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
3426         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
3427         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3428         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3429         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
3430         * m4/read.m4 (gl_FUNC_READ): Likewise.
3431         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
3432         * doc/windows-without-msvc.texi: New file.
3433         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
3434         section.
3436 2017-05-10  Bruno Haible  <bruno@clisp.org>
3438         wait-process: Adjust native Windows support.
3439         * lib/wait-process.c: Use the usual condition for recognizing a native
3440         Windows platform.
3442 2017-05-10  Bruno Haible  <bruno@clisp.org>
3444         doc: New chapter "Native Windows Support".
3445         * doc/gnulib.texi (Native Windows Support): New chapter.
3446         * doc/windows-libtool.texi: Small wording changes.
3447         * doc/windows-sockets.texi: Small wording and formatting changes.
3449 2017-05-10  Bruno Haible  <bruno@clisp.org>
3451         doc: Move section "Library version handling".
3452         * doc/gnulib.texi: Move section "Library version handling"
3453         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
3455 2017-05-10  Bruno Haible  <bruno@clisp.org>
3457         doc: Move section "Running self-tests under valgrind".
3458         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
3459         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
3461 2017-05-10  Bruno Haible  <bruno@clisp.org>
3463         doc: New chapter "Build Infrastructure Modules".
3464         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
3466 2017-05-10  Bruno Haible  <bruno@clisp.org>
3468         Prepare for reordering sections in the manual.
3469         * doc/gnulib.texi: Move several sections to separate files. Include
3470         these files.
3471         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
3472         * doc/obsolete.texi: Likewise.
3473         * doc/extra-tests.texi: Likewise.
3474         * doc/transversal.texi: Likewise.
3475         * doc/namespace.texi: Likewise.
3476         * doc/check-version.texi: Likewise.
3477         * doc/windows-sockets.texi: Likewise.
3478         * doc/windows-libtool.texi: Likewise.
3479         * doc/licenses-texi.texi: Likewise.
3480         * doc/build-automation.texi: Likewise.
3481         * doc/c-locale.texi: Likewise.
3483 2017-05-10  Bruno Haible  <bruno@clisp.org>
3485         Fix instructions how to update manual on www.gnu.org.
3486         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
3488 2017-05-09  Bruno Haible  <bruno@clisp.org>
3490         tzset: Expand comment about TZ problem on native Windows.
3491         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
3492         Paul Eggert.
3493         * lib/ctime.c (rpl_ctime): Likewise.
3494         * lib/localtime.c (rpl_localtime): Likewise.
3495         * lib/mktime.c (mktime): Likewise.
3496         * lib/strftime-fixes.c (rpl_strftime): Likewise.
3497         * lib/wcsftime.c (rpl_wcsftime): Likewise.
3499 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3501         intprops: don’t depend on ‘verify’
3502         Problem reported by Ævar Arnfjörð Bjarmason in:
3503         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
3504         * lib/intprops.h: Do not include verify.h, and move compile-time
3505         checks from here ...
3506         * tests/test-intprops.c (main): ... to here, if they’re not here
3507         already.  Check widths of other standard integer types.
3508         * modules/intprops (Depends-on): Remove ‘verify’.
3510 2017-05-07  Bruno Haible  <bruno@clisp.org>
3512         utimens: On native Windows, support 100ns resolution also if fd < 0.
3513         * lib/utime.in.h: Include <time.h>.
3514         (_gl_utimens_windows): New declaration.
3515         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
3516         (utime): Invoke it.
3517         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
3518         instead of utime.
3519         * modules/utime (Depends-on): Add 'time'.
3521 2017-05-07  Bruno Haible  <bruno@clisp.org>
3523         utimens: Improve error code on native Windows.
3524         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
3525         error code EACCES, not EINVAL.
3527 2017-05-07  Bruno Haible  <bruno@clisp.org>
3529         utime: Handle more Windows error codes.
3530         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
3531         Based on explanations by Billy O'Neal.
3533 2017-05-05  Bruno Haible  <bruno@clisp.org>
3535         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
3536         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
3537         union.
3538         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
3539         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
3540         value of cipher->IV.
3542 2017-05-05  Bruno Haible  <bruno@clisp.org>
3544         wctype-h-c++-tests: Update.
3545         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
3547 2017-05-05  Bruno Haible  <bruno@clisp.org>
3549         wchar-c++-tests: Update.
3550         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
3552 2017-05-05  Bruno Haible  <bruno@clisp.org>
3554         utime-h-c++-tests: New module.
3555         * tests/test-utime-h-c++.cc: New file.
3556         (utime): Declare, missing since 2017-04-30.
3557         * modules/utime-h-c++-tests: New file.
3559 2017-05-05  Bruno Haible  <bruno@clisp.org>
3561         unistd-c++-tests: Update.
3562         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
3563         (read): Declare, missing since 2011-04-15.
3564         (sethostname): Declare, missing since 2011-12-03.
3566 2017-05-05  Bruno Haible  <bruno@clisp.org>
3568         time-c++-tests: Update.
3569         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
3570         (localtime, gmtime): Declare, missing since 2017-04-30.
3571         (ctime): Declare, missing since 2017-04-30.
3572         (strftime): Declare, missing since 2017-04-30.
3573         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
3574         2015-07-24.
3576 2017-05-05  Bruno Haible  <bruno@clisp.org>
3578         sys_resource-c++-tests: New module.
3579         * tests/test-sys_resource-c++.cc: New file.
3580         (getrusage): Declare, missing since 2012-04-13.
3581         * modules/sys_resource-c++-tests: New file.
3583 2017-05-05  Bruno Haible  <bruno@clisp.org>
3585         strings-c++-tests: New module.
3586         * tests/test-strings-c++.cc: New file.
3587         (ffs): Declare, missing since 2011-07-12.
3588         * modules/strings-c++-tests: New file.
3590 2017-05-05  Bruno Haible  <bruno@clisp.org>
3592         string-c++-tests: Update.
3593         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
3594         (ffsll): Declare, missing since 2011-07-15.
3596 2017-05-05  Bruno Haible  <bruno@clisp.org>
3598         stdlib-c++-tests: Update.
3599         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
3600         2011-10-18.
3601         (ptsname_r): Declare, missing since 2011-11-07.
3602         (qsort_r): Declare, missing since 2014-08-29.
3603         (random, srandom, initstate, setstate): Declare, missing since
3604         2012-01-14.
3605         (secure_getenv): Declare, missing since 2013-02-05.
3607 2017-05-05  Bruno Haible  <bruno@clisp.org>
3609         stdio-c++-tests: Update.
3610         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
3612 2017-05-05  Bruno Haible  <bruno@clisp.org>
3614         signal-h-c++-tests: Update.
3615         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
3617 2017-05-05  Bruno Haible  <bruno@clisp.org>
3619         math-c++-tests: Update.
3620         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
3621         (fma): Declare, missing since 2011-10-17.
3622         (fmal): Declare, missing since 2011-10-17.
3624 2017-05-05  Bruno Haible  <bruno@clisp.org>
3626         locale-c++-tests: Update.
3627         * tests/test-locale-c++.cc (localeconv): Declare, missing since
3628         2012-03-25.
3630 2017-05-05  Bruno Haible  <bruno@clisp.org>
3632         inttypes-c++-tests: New module.
3633         * tests/test-inttypes-c++.cc: New file.
3634         (strtoimax): Declare, missing since 2012-01-05.
3635         (strtoumax): Declare, missing since 2012-01-05.
3636         * modules/inttypes-c++-tests: New file.
3638 2017-05-05  Bruno Haible  <bruno@clisp.org>
3640         dirent-c++-tests: Update.
3641         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
3642         (rewinddir): Declare, missing since 2011-09-13.
3643         (dirfd): Declare, missing since 2010-03-08.
3645 2017-05-04  Bruno Haible  <bruno@clisp.org>
3647         argp: Fix mistake in 2017-04-23 commit.
3648         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
3649         assume that strerror_r returns 'int', not 'char *'.
3651 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
3653         argp: Fix typo.
3654         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
3656 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3658         utimens: port to Emacs + MS-Windows
3659         Skip the new MS-Windows-specific code if Emacs.
3660         * lib/utimens.c [EMACS_CONFIGUATION]:
3661         Avoid new MS-Windows-specific code.
3662         (USE_SETFILETIME): New macro.
3663         (fdutimens): Use it.
3665 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3667         tzset: update doc for TZ problems on MS-Windows
3668         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
3669         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
3670         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
3671         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
3672         * doc/posix-functions/wcsftime.texi:
3673         Mention some issues with TZ under MS-Windows.
3675 2017-05-01  Bruno Haible  <bruno@clisp.org>
3677         copy-file: Fix build error on mingw.
3678         * modules/copy-file (Depends-on): Add 'close'.
3680 2017-05-01  Bruno Haible  <bruno@clisp.org>
3682         tzset: Work around TZ problem on native Windows.
3683         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
3684         Windows, set REPLACE_TZSET to 1.
3685         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
3686         invoke '_tzset' instead of 'tzset'.
3687         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
3689         * modules/time_rz (Depends-on): Add tzset.
3690         * lib/time_rz.c (tzset): Remove fallback definition.
3691         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
3693 2017-05-01  Bruno Haible  <bruno@clisp.org>
3695         mktime: Fix dependencies.
3696         * modules/mktime (Depends-on): Add 'time'.
3698 2017-05-01  Bruno Haible  <bruno@clisp.org>
3700         New module 'localtime-buffer', split off from module 'gettimeofday'.
3701         * lib/localtime-buffer.h: New file.
3702         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
3703         * lib/time.in.h (tzset): New declaration.
3704         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
3705         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
3706         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
3707         moved to lib/localtime-buffer.c or lib/tzset.c.
3708         * m4/localtime-buffer.m4: New file.
3709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
3710         HAVE_TZSET, REPLACE_TZSET.
3711         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
3712         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
3713         gl_LOCALTIME_BUFFER_NEEDED.
3714         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
3715         since 2007-01-18.
3716         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
3717         tzset.
3718         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
3719         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
3720         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
3721         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
3722         * modules/localtime-buffer: New file.
3723         * modules/time (Depends-on): Remove 'gettimeofday'.
3724         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
3725         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
3726         * modules/tzset (Description): Enable hyperlink to POSIX spec.
3727         (Files): Add lib/tzset.c.
3728         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
3729         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
3730         gl_TIME_MODULE_INDICATOR.
3731         * modules/gettimeofday (Depends-on): Add localtime-buffer.
3733 2017-05-01  Bruno Haible  <bruno@clisp.org>
3735         copy-file: Preserve sub-second time stamps.
3736         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
3737         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
3738         transport the time stamps from the original file to the destination
3739         file.
3740         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
3741         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
3742         utime-h.
3744 2017-05-01  Bruno Haible  <bruno@clisp.org>
3746         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
3747         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
3748         also on MSVC.
3749         Reported by Eli Zaretskii <eliz@gnu.org>.
3751 2017-05-01  Bruno Haible  <bruno@clisp.org>
3753         wchar: Fix compilation error with the original mingw.org mingw.
3754         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
3755         <stddef.h> instead.
3756         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
3757         gl_WCTYPE_H.
3758         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
3759         gl_TYPE_WINT_T_PREREQ instead.
3760         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
3761         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
3762         Reported by Eli Zaretskii <eliz@gnu.org>.
3764 2017-04-30  Bruno Haible  <bruno@clisp.org>
3766         utimecmp: Add support for native Windows.
3767         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
3769 2017-04-30  Bruno Haible  <bruno@clisp.org>
3771         utimens: Add support for native Windows.
3772         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
3773         (fdutimens): Provide a native Windows implementation, like utime.c with
3774         added tv_nsec support.
3775         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
3776         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
3778 2017-04-30  Bruno Haible  <bruno@clisp.org>
3780         wcsftime: New module.
3781         * lib/wchar.in.h (wcsftime): New declaration.
3782         * lib/wcsftime.c: New file.
3783         * m4/wcsftime.m4: New file.
3784         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
3785         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
3786         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
3788         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3789         * modules/wcsftime: New file.
3790         * doc/posix-functions/wcsftime.texi: Mention the new module.
3792 2017-04-30  Bruno Haible  <bruno@clisp.org>
3794         strftime-fixes: New module.
3795         * lib/time.in.h (strftime): New declaration.
3796         * lib/strftime-fixes.c: New file.
3797         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
3798         (gl_FUNC_STRFTIME): Remove macro.
3799         * m4/strftime-fixes.m4: New file.
3800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
3801         REPLACE_STRFTIME.
3802         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
3803         REPLACE_STRFTIME.
3804         * modules/strftime-fixes: New file.
3805         * doc/posix-functions/strftime.texi: Mention the new module.
3807 2017-04-30  Bruno Haible  <bruno@clisp.org>
3809         mktime: Work around TZ problem on native Windows.
3810         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
3811         from the native Windows workaround.
3812         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
3813         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
3814         'guessing no'.
3815         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
3816         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
3817         NEED_MKTIME_WINDOWS.
3818         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
3819         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
3820         NEED_MKTIME_INTERNAL.
3821         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
3822         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
3823         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
3824         not REPLACE_MKTIME.
3825         * doc/posix-functions/mktime.texi: Mention the native Windows
3826         workaround.
3828 2017-04-30  Bruno Haible  <bruno@clisp.org>
3830         localtime: New module.
3831         * lib/time.in.h (localtime): Declare also if requested by module
3832         'localtime'.
3833         * lib/localtime.c: New file.
3834         * m4/localtime.m4: New file.
3835         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
3836         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
3837         * modules/localtime: New file.
3838         * doc/posix-functions/localtime.texi: Mention the new module.
3840 2017-04-30  Bruno Haible  <bruno@clisp.org>
3842         ctime: New module.
3843         * lib/time.in.h (ctime): New declaration.
3844         * lib/ctime.c: New file.
3845         * m4/ctime.m4: New file.
3846         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
3847         REPLACE_CTIME.
3848         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
3849         * modules/ctime: New file.
3850         * doc/posix-functions/ctime.texi: Mention the new module.
3852 2017-04-30  Bruno Haible  <bruno@clisp.org>
3854         gettimeofday: Provide higher resolution on native Windows.
3855         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
3856         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
3857         (initialize): Initialize it.
3858         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
3859         'struct timeval'. Don't use _ftime().
3860         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
3861         <sys/timeb.h> and _ftime.
3863 2017-04-30  Bruno Haible  <bruno@clisp.org>
3865         Document the problem with the Cygwin environment variable TZ.
3866         * doc/posix-functions/tzset.texi: Add note about TZ.
3867         * doc/posix-functions/ctime.texi: Likewise.
3868         * doc/posix-functions/localtime.texi: Likewise.
3869         * doc/posix-functions/mktime.texi: Likewise.
3870         * doc/posix-functions/strftime.texi: Likewise.
3871         * doc/posix-functions/wcsftime.texi: Likewise.
3872         * doc/pastposix-functions/ftime.texi: Likewise.
3874 2017-04-30  Bruno Haible  <bruno@clisp.org>
3876         utime-tests: New module.
3877         * tests/test-utime.c: New file, based on tests/test-utimens.h.
3878         * tests/test-utimens-common.h: Include <sys/stat.h>.
3879         * modules/utime-tests: New file.
3881 2017-04-29  Bruno Haible  <bruno@clisp.org>
3883         utime: New module.
3884         * lib/utime.in.h: Add comment for snippets.
3885         (utime): New declaration.
3886         * lib/utime.c: New file.
3887         * m4/utime.m4: New file.
3888         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
3889         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
3890         REPLACE_UTIME.
3891         * modules/utime-h (Depends-on): Add snippets.
3892         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
3893         Insert snippets.
3894         * modules/utime: New file.
3895         * doc/posix-functions/utime.texi: Mention the new module.
3897 2017-04-29  Bruno Haible  <bruno@clisp.org>
3899         utime-h: Modernize handling of 'struct utimbuf'.
3900         * lib/utime.in.h: Include next <utime.h> if it exists.
3901         (utimbuf): Define to _utimbuf on native Windows.
3902         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
3903         Set UTIME_H on native Windows.
3904         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
3905         * modules/utime-h (Depends-on): Add include_next.
3906         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
3907         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
3909         * lib/utimens.c (utimbuf): Remove fallback definition.
3910         * m4/utimens.m4 (gl_UTIMENS): Don't require
3911         gl_CHECK_TYPE_STRUCT_UTIMBUF.
3912         * m4/utimbuf.m4: Remove file.
3913         * modules/utimens (Files): Remove m4/utimbuf.m4.
3915 2017-04-29  Bruno Haible  <bruno@clisp.org>
3917         Make use of module 'utime-h'.
3918         * modules/copy-file (Depends-on): Add utime-h.
3919         * lib/copy-file.c: Assume that <utime.h> exists.
3920         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
3922         * modules/utimens (Depends-on): Add utime-h.
3923         * lib/utimens.c: Assume that <utime.h> exists.
3925 2017-04-29  Bruno Haible  <bruno@clisp.org>
3927         utime-h: New module.
3928         * m4/utime_h.m4: New file.
3929         * lib/utime.in.h: New file.
3930         * modules/utime-h: New file.
3931         * doc/posix-headers/utime.texi: Mention the new module.
3933         * tests/test-utime-h.c: New file.
3934         * modules/utime-h-tests: New file.
3936 2017-04-30  Bruno Haible  <bruno@clisp.org>
3938         Fix a few typos.
3939         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
3940         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
3941         * doc/posix-functions/fstat.texi: Fix a plural typo.
3942         * doc/posix-functions/stat.texi: Likewise.
3943         * m4/include_next.m4: Update comments.
3945 2017-04-29  Bruno Haible  <bruno@clisp.org>
3947         error: Fix mistake in 2017-04-23 commit.
3948         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
3949         assume that strerror_r returns 'int', not 'char *'.
3951 2017-04-29  Bruno Haible  <bruno@clisp.org>
3953         stat: Fix time_t values and other problems on native Windows platforms.
3954         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
3955         implementations of stat().
3956         * lib/stat.c: Include filename.h instead of dosname.h. Include
3957         malloca.h, stat-w32.h.
3958         (is_unc_root): New function.
3959         (rpl_stat): New implementation for native Windows. Remove
3960         REPLACE_FUNC_STAT_DIR code.
3961         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
3962         Don't define REPLACE_FUNC_STAT_DIR.
3963         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
3964         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
3965         (Depends-on): Remove dosname. Add filename, malloca.
3966         (configure.ac): Also compile lib/stat-w32.c.
3968 2017-04-29  Bruno Haible  <bruno@clisp.org>
3970         fstat: Fix time_t values on native Windows platforms.
3971         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
3972         * lib/stat-w32.h: New file.
3973         * lib/stat-w32.c: New file.
3974         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
3975         stat-w32.h instead.
3976         (fstat_nothrow): Remove function.
3977         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
3978         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
3979         always.
3980         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
3981         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
3982         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
3983         (configure.ac): Also compile lib/stat-w32.c.
3985 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3987         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
3988         Problem reported by Assaf Gordon and Gavin Smith in:
3989         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
3990         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
3991         #define this, too.
3993 2017-04-29  Bruno Haible  <bruno@clisp.org>
3995         strerror_r-posix: Fixes for MSVC 14.
3996         * lib/strerror_r.c: Include <stdarg.h>.
3997         (strerror_r): Provide error messages for errno values 100...140.
3998         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
4000 2017-04-28  Bruno Haible  <bruno@clisp.org>
4002         noreturn: New module.
4003         * lib/noreturn.h: New file.
4004         * modules/noreturn: New file.
4005         * tests/test-noreturn.c: New file.
4006         * modules/noreturn-tests: New file.
4007         * tests/test-noreturn-c++.cc: New file.
4008         * modules/noreturn-c++-tests: New file.
4010 2017-04-27  Bruno Haible  <bruno@clisp.org>
4012         wctype-h: Fix compilation error with the original mingw.org mingw.
4013         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
4014         HAVE_CRTDEFS_H.
4015         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
4016         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4017         <stddef.h> instead.
4018         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
4020 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4022         nap.h: Fix compilation on non windows platforms
4023         * tests/nap.h: Move misplaced endif.
4025 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4026         and Paul Eggert  <eggert@cs.ucla.edu>
4028         time_rz: fix heap buffer overflow vulnerability
4029         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
4030         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
4031         whether there is enough buffer space available, thus avoiding
4032         the problematic promotion of signed to unsigned causing an invalid
4033         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
4034         the start of the buffer.
4035         * tests/test-parse-datetime.c (main): Add a test case written by
4036         Paul Eggert, which overwrites enough of the heap so that
4037         standard glibc will fail with "free(): invalid pointer"
4038         without the patch applied.
4040 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4042         xalloc: add missing integer overflow check
4043         * lib/xalloc.h (x2nrealloc): Also check for multiplication
4044         overflow when P is null.
4046 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4048         parse-datetime: make it standalone
4049         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
4050         (_GL_ATTRIBUTE_FORMAT): New macro.
4051         These are needed to get './gnulib-tool --test parse-datetime' to work.
4053 2017-04-23  Bruno Haible  <bruno@clisp.org>
4055         nap.h: Port to native Windows.
4056         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
4057         use nap_fd instead. On native Windows, close and reopen nap_fd.
4058         (nap_works): Don't compare the ctimes, because on native Windows, these
4059         are the creation times.
4060         (nap): Update.
4062 2017-04-23  Bruno Haible  <bruno@clisp.org>
4064         nap.h: Fix logic.
4065         * tests/nap.h (nap): Avoid signed integer overflow in loop.
4067 2017-04-23  Bruno Haible  <bruno@clisp.org>
4069         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
4070         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
4071         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
4072         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
4073         * lib/argp-help.c (__argp_failure): Likewise.
4075 2017-04-23  Bruno Haible  <bruno@clisp.org>
4077         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
4078         * m4/strerror_r.m4: Revert changes since 2016-10-16.
4079         * lib/strerror_r.c: Likewise.
4081 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4083         Target a C99 subset, not a C89 subset
4084         For many years Gnulib has targeted C89 and has resisted using C99
4085         features, as some Gnulib-using programs still wanted to target
4086         C89.  As this no longer seems to be the case, relax the porting
4087         requirements to allow some C99 features.  This is merely a change
4088         to the documentation, to give other Gnulib developers a chance to
4089         weigh in on the topic.
4090         * doc/extern-inline.texi (extern inline):
4091         * doc/gnulib-readme.texi (Portability guidelines):
4092         * doc/gnulib-tool.texi (Initial import):
4093         * doc/gnulib.texi (Header files):
4094         Modernize to talk about C99 and C11 instead of C89 and C99.
4095         * doc/gnulib-readme.texi (Portability guidelines):
4096         Now a section, not merely a subsection, so that it
4097         can be split up.  Modernize a bit.
4098         (C language versions, C99 features assumed)
4099         (C99 features avoided):
4100         New sections.
4102 2017-04-23  Bruno Haible  <bruno@clisp.org>
4104         doc: New section "Modules that modify the way other modules work".
4105         * doc/gnulib.texi (Modules that modify the way other modules work): New
4106         section.
4108 2017-04-23  Bruno Haible  <bruno@clisp.org>
4110         stat-time: Update comments.
4111         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
4112         * tests/test-utimens-common.h: Add reference regarding st_ctime on
4113         Windows.
4115 2017-04-01  Bruno Haible  <bruno@clisp.org>
4117         glob: Fix more memory leaks.
4118         * lib/glob.c (glob): Free allocated memory before returning.
4119         Reported by Coverity via Tim Rühsen.
4121 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4123         poll: improve fast check for out-of-range NFD
4124         * lib/poll.c: Do not include intprops.h.
4125         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
4126         * modules/poll (Depends-on): Remove intprops.
4128         ftoastr: cite a newer paper
4129         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
4130         instead of Loitsch 2010.
4132 2017-04-22  Bruno Haible  <bruno@clisp.org>
4134         poll: Enable argument check also in the Windows implementation.
4135         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
4136         Reported by Paul Eggert.
4138 2017-04-22  Bruno Haible  <bruno@clisp.org>
4140         getlogin_r: Work around bug in Mac OS X 10.12.
4141         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
4142         bug.
4143         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
4144         given size minus 1, call getlogin_r a second time, on a larger buffer.
4145         * modules/getlogin_r (Depends-on): Add malloca.
4146         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
4148 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4150         parse-datetime: fix %z and prefer signed int
4151         %z problem reported by Pádraig Brady in:
4152         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
4153         While fixing it, I decided to prefer signed ints to size_t, as
4154         they are less error-prone (e.g., ubsan catches overflow).
4155         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
4156         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
4157         counts, since signed integers make for better debugging.
4158         (date): Don’t assume %z works in printf formats.
4159         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
4160         sizes of buffers known to be small, e.g., because we’re using snprintf.
4161         (parse_datetime2): Simplify call to debug_mktime_not_ok.
4163 2017-04-22  Bruno Haible  <bruno@clisp.org>
4165         *printf: Work around rounding bug on Mac OS X.
4166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
4167         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
4168         Mac OS X and FreeBSD.
4169         * doc/glibc-functions/*printf.texi: Likewise.
4171 2017-04-22  Bruno Haible  <bruno@clisp.org>
4173         vasnprintf tests: Avoid warnings.
4174         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
4175         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
4176         test.
4178 2017-04-22  Bruno Haible  <bruno@clisp.org>
4180         sys_file tests: Avoid warning.
4181         * tests/test-sys_file.c (main): Add a default clause to the switch
4182         statement.
4184 2017-04-22  Bruno Haible  <bruno@clisp.org>
4186         sethostname: Update doc.
4187         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
4188         Mac OS X.
4190 2017-04-22  Bruno Haible  <bruno@clisp.org>
4192         quotearg tests: Avoid warnings.
4193         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
4194         false.
4196 2017-04-22  Bruno Haible  <bruno@clisp.org>
4198         poll: Enable argument check.
4199         * lib/poll.c: Include intprops.h.
4200         (poll): Check value of nfd correctly.
4201         * modules/poll (Depends-on): Add intprops.
4203 2017-04-22  Bruno Haible  <bruno@clisp.org>
4205         get-rusage-data: Avoid warnings on Mac OS X.
4206         * lib/get-rusage-data.c: On Mac OS X, don't define
4207         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
4208         (get_rusage_data) [Mac OS X]: Just return 0.
4210 2017-04-22  Bruno Haible  <bruno@clisp.org>
4212         xbinary-io: Fix build error.
4213         * modules/xbinary-io (Depends-on): Add gettext-h.
4214         * lib/xbinary-io.c: Include gettext.h and define _().
4215         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4216         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
4218 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4220         parse-datetime: overflow and debug cleanups
4221         This long patch was triggered by this bug report from Ruediger Meier:
4222         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
4223         I fixed the bug he noted, then found some others nearby, and then
4224         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
4225         up some of the code to follow GNU standards while I was at it.
4226         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
4227         use c_isdigit.
4228         (EPOCH_YEAR): Remove; unused.
4229         (TM_YEAR_BASE): Now an enum rather than a macro.
4230         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
4231         time zone offset, since timezones now are in terms of seconds and
4232         not minutes.
4233         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
4234         appropriate.  Verify that intmax_t is wide enough.
4235         (time_overflow, time_zone_str): New functions, used to deal
4236         more reliably with overflow.
4237         (dbg_printf): Add printf attribute, to help catch integer width errors.
4238         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
4239         (%union, to_hour, yylex, parse_datetime2):
4240         Use intmax_t instead of long int and/or long_time_t.
4241         All uses changed.
4242         (DBGBUFSIZE): Move earlier.
4243         (relative_time, set_hhmmss, parser_control):
4244         Just use int for nanoseconds and for time zones; that’s wide enough.
4245         (parser_control): Use bool for members like year_seen that can
4246         be booleans instead of counters.  All uses changed.
4247         Remove debug_default_input_timezone; no longer needed.
4248         All uses removed.
4249         (apply_relative_time): Return a bool overflow flag.
4250         All uses changed to check for overflow.
4251         (apply_relative_time, zone, date, relunit, relunit_snumber)
4252         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
4253         Check for integer overflow portably.
4254         (str_days): Use just int for N, as it’s wide enough.
4255         Prefer 2D char arrays to arrays of char * when it looks like
4256         2D is a win on typical platforms.
4257         Prefer snprintf to strncpy/strncat, for simplicity;
4258         all buffers are smaller than INT_MAX so this is safe.
4259         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
4260         (debug_print_current_time): Don’t assume tv_nsec is of type long,
4261         as this is not true on x32.  Output "." before any nanoseconds.
4262         (debug_print_current_time, parse_datetime2):
4263         Output local zones using a more-consistent format.
4264         (debug_print_current_time, date, parse_datetime2):
4265         (main) [TEST]:
4266         Don’t assume time_t is the same width as long.
4267         (print_rel_part): New function, replacing ...
4268         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
4269         (debug_print_relative_time): Use bool for boolean.
4270         (local_zone): dsts_seen now counts only tDST instances.
4271         (date): Fix printf of size_t to use %z.  Do not assume numeric
4272         tokens have negative values merely because the context suggests
4273         a syntax with "-" separating tokens.
4274         (time_zone_hhmm): Return bool success indicator, which checks for
4275         overflow.  Store result into PC->time_zone instead.  All callers
4276         changed.
4277         (tm_year_str): New function.  Return a bool success indicator and
4278         store the result into a buffer.  All callers changed.  Output the
4279         numerically correct string even if adding 1900 to the year would
4280         overflow.
4281         (to_tm_year): New function, replacing the old to_year.  All
4282         callers changed.
4283         (tm_diff): Sync with glibc.
4284         (lookup_word): Use to_uchar instead of doing it by hand.
4285         (TZBUFSIZE): Now local to the only function that needs it.
4286         (debug_strfdatetime): Simplify now that time zones are int seconds.
4287         (debug_strfdate): Work even if tm_year + 1900 would overflow.
4288         (get_effective_timezone): Remove.  All uses removed.
4289         (parse_datetime2): Use fprintf in pieces instead of snprintfing
4290         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
4291         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
4292         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
4293         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
4294         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
4295         * modules/parse-datetime (Depends-on): Add inttypes.
4297 2017-04-21  Bruno Haible  <bruno@clisp.org>
4299         gettext-h: Avoid -Wundef warning.
4300         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
4301         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4302         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
4304 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
4306         error: Avoid "function declaration isn't a prototype" warning.
4307         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
4309 2017-04-21  Bruno Haible  <bruno@clisp.org>
4311         vasnprintf: Fix for MSVC 14.
4312         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
4313         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
4314         of !HAVE_SNPRINTF_RETVAL_C99.
4316 2017-04-21  Bruno Haible  <bruno@clisp.org>
4318         mbrtowc tests: Fix test failures on MSVC 14.
4319         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
4320         behaviour for invalid input.
4322 2017-04-21  Bruno Haible  <bruno@clisp.org>
4324         mbsinit: Fix for MSVC 14.
4325         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
4326         implementation that is in sync with mbrtowc.c. On other platforms, use
4327         an adequate ad-hoc implementation.
4329 2017-04-21  Bruno Haible  <bruno@clisp.org>
4331         Fix test-mbrtowc5.sh failure on native Windows.
4332         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
4333         "C".
4335 2017-04-21  Bruno Haible  <bruno@clisp.org>
4337         Avoid accidental use of native Windows APIs on Cygwin.
4338         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
4339         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
4340         * lib/localename.c (WINDOWS_NATIVE): Likewise.
4342 2017-04-20  Bruno Haible  <bruno@clisp.org>
4344         Remove red warnings from the generated MODULES.html.
4345         * modules/fcntl (Description): Disambiguate function references.
4346         * modules/getcwd-lgpl (Description): Likewise.
4347         * modules/hostent (Description): Likewise.
4348         * modules/servent (Description): Likewise.
4349         * modules/tempname (Description): Likewise.
4351 2017-04-20  Bruno Haible  <bruno@clisp.org>
4353         verify tests: Fix spurious failure with parallel make.
4354         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
4355         EXTRA_PROGRAMS.
4356         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
4357         * tests/test-verify-try.c: New file.
4358         * modules/verify-tests (Files): Add it.
4359         (EXTRA_PROGRAMS): Add test-verify-try.
4360         (MOSTLYCLEANFILES): Update accordingly.
4361         Reported by Adam James Stewart <ajstewart@anl.gov>.
4363 2017-04-18  Bruno Haible  <bruno@clisp.org>
4365         vma-iter: Fix compilation error on Solaris 7.
4366         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
4367         like on IRIX, OSF/1.
4368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4370 2017-04-18  Bruno Haible  <bruno@clisp.org>
4372         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
4373         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
4374         included.
4375         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
4376         <sys/procfs.h>.
4377         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
4378         <sys/procfs.h> cannot be included.
4379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4381 2017-04-18  Bruno Haible  <bruno@clisp.org>
4383         getopt-gnu: Add comments.
4384         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
4385         * modules/getopt-gnu (configure.ac): Likewise.
4387 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
4389         regex: port better to Solaris 10
4390         Solaris 10 <locale.h> includes <libintl.h>, which #defines
4391         gettext, and this causes a double #define.
4392         Problem reported by Gavin Smith in:
4393         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
4394         * lib/regex_internal.h (gettext): #undef before #defining.
4396 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4398         intprops: improve comments
4399         * lib/intprops.h: Improve and shorten commentary.
4400         For the record, if we ever run into a pedantic compiler that
4401         behaves differently from GCC when converting an out-of-range value
4402         to a signed integer, we can work around the problem with something
4403         like the following code, where UCT is the signed counterpart of T
4404         (UCT is sometimes narrower than UT) and all callers are changed
4405         accordingly:
4406         #if __SUNPRO_C <= 0x5120
4407         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
4408            ((t) ((ut) (a) op (ut) (b)))
4409         #else
4410         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
4411            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
4412             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
4413                + TYPE_MINIMUM (t)) \
4414             : (t) (uct) ((ut) (a) op (ut) (b)))
4415         #endif
4417 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4419         intprops: try to avoid tickling similar bugs
4420         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
4421         needs to be the same width as T; it can be wider.
4422         Change callers so that UT is at least as wide as unsigned int,
4423         as I suspect that this is less likely to run into compiler bugs.
4425         intprops: port to Oracle Studio 12.3 x86
4426         Problem reported by Gavin Smith in:
4427         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
4428         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
4429         Convert unsigned to signed via the usual rather than the standard way,
4430         to avoid a compiler bug in Oracle Studio 12.3 x86.
4432 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4434         getopt: prefer - to _ in new file names
4435         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
4436         * lib/getopt-core.h: Rename from lib/getopt_core.h.
4437         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
4438         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
4439         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
4440         All uses changed.
4442         getopt: port recent getopt changes to macOS
4443         Problem reported by Harald Maier (Bug#26398).
4444         The macOS C compiler uses __nonnull for its own purposes and that
4445         clashes with glibc's __nonnull.
4446         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
4447         * lib/getopt_cdefs.in.h (__nonnull): Remove.
4448         * lib/getopt_core.h (getopt):
4449         * lib/getopt_ext.h (getopt_long, getopt_long_only):
4450         Use _GL_ARG_NONNULL, not __nonnull.
4451         * lib/unistd.in.h: Move snippet hooks to before where the getopt
4452         .h files are included, so that _GL_ARG_NONNULL is defined in time.
4453         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
4454         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
4456 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4458         getopt-gnu: omit some duplicate code
4459         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
4460         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
4461         gnulib-tool already does this.
4462         * modules/getopt-gnu (configure.ac): Omit code duplicated from
4463         getopt-posix, which we depend on.
4465         getopt-posix: use angle-bracket include
4466         * lib/getopt1.c: Include <config.h>, not "config.h".
4468 2017-04-06  Zack Weinberg  <zackw@panix.com>
4470         getopt: annotate files with relationship to glibc
4472         As the final act in this patchset, adjust the message at the top of
4473         each file to indicate which files are synced with glibc.  (This has
4474         already been done for most of the headers.)
4476         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
4477         Mention in top-of-file boilerplate that these files are shared
4478         between glibc and gnulib.
4481         getopt: split up getopt.in.h and eliminate __need_getopt
4483         Over in glibc, all of the __need macros are being phased out in favor
4484         of small headers that declare only the necessary components, as this
4485         is much simpler and less prone to bugs.  As getopt is shared with
4486         glibc, gnulib needs to do the same for __need_getopt.
4488         __need_getopt is misnamed; what it really means is "we want only the
4489         getopt features specified in POSIX, not the GNU extensions".  glibc
4490         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
4491         these files can be shared verbatim with gnulib.  The portability
4492         wrapper, on the other hand, they have renounced altogether; glibc's
4493         getopt.h will no longer be shared with gnulib at all.  In exchange,
4494         certain glibc-specific quirks (having to do with __posix_getopt) no
4495         longer need appear in gnulib's headers at all.
4497         This patch merges getopt_core.h and getopt_ext.h from glibc, and
4498         splits up the current gnulib-side portability wrapper into three
4499         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
4500         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
4501         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
4502         unistd.in.h just use them.  All new files are clearly marked with
4503         whether they are shared with glibc.
4505         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
4506         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
4507         with glibc, and ...
4508         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
4509         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
4510         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
4511         instead of defining __need_getopt and including the full getopt.h.
4513         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
4514         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
4515         * modules/getopt-posix (Files): Add new headers and sort list.
4516         (Depends-on): No longer need snippet/arg-nonnull.
4517         (Makefile.am): Generate getopt_cdefs.h.
4520         getopt: better handling of ambiguous options
4522         glibc's getopt uses alloca to construct a linked list of possibilities
4523         for an "ambiguous" long option.  In gnulib, malloc should be used
4524         instead.  Providing for both cases complicates things a fair bit.
4526         This patch rewrites ambiguous-option handling to use a boolean vector
4527         instead of a linked list.  There is then only one allocation that
4528         might need freeing; in glibc it can honor __libc_use_alloca as usual,
4529         and in gnulib we define __libc_use_alloca to always be false, so we
4530         don't need ifdefs in the middle of the function.  This should also be
4531         slightly more efficient in the normal case of long options being fully
4532         spelled out -- I think most people aren't even aware they _can_
4533         sometimes abbreviate long options.
4535         One interesting consequence is that the list of possibilities is now
4536         printed in exactly the order they appear in the list of long options,
4537         instead of the first possibility being shuffled to the end.
4539         (The patch looks bigger than it really is because there's a fair bit
4540         of reindentation and code rearrangement.)
4542         * lib/getopt.c: When used standalone, define __libc_use_alloca
4543         as always false and alloca to abort if called.
4544         (process_long_option): Rewrite handling of ambiguous long options
4545         to use a single boolean vector, not a linked list; use
4546         __libc_use_alloca to decide whether to allocate this using alloca.
4549         getopt: refactor long-option handling
4551         There were two copies of the bulk of the code to handle long options.
4552         Now there is only one.
4554         This change temporarily removes the logic to avoid using alloca when
4555         standalone; the next patch in the series will restore it.
4557         * lib/getopt.c (process_long_option): New function split out
4558         from _getopt_internal_r.
4559         (_getopt_internal_r): Replace both copies of the long-option
4560         processing code with calls to process_long_option.
4563         getopt: tidy up _getopt_initialize a bit
4565         _getopt_data.__posixly_correct is completely redundant to
4566         _getopt_data.__ordering, and some work that logically belongs in
4567         _getopt_initialize was being done by _getopt_internal_r, making the
4568         code harder to understand.
4570         As a side effect, getenv will no longer be called if the first
4571         character of the options string is '+' or '-', which is probably a
4572         Good Thing.  (Perhaps we should have a flag character that
4573         specifically asks for the permutation behavior?)
4575         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
4576         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
4577         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
4580         getopt: merge from glibc: repetition reduction
4582         The definitions of the entry point functions 'getopt' and
4583         '__posix_getopt' can be made substantially less repetitive with a
4584         helper macro.
4586         While I was merging the const-correctness changes from gnulib into
4587         glibc I noticed there are still some unnecessary casts in
4588         _getopt_internal_r.
4590         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
4591         a macro.  Consistently cast 'argv' to 'char **' when calling
4592         _getopt_internal.
4593         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
4596         getopt: clean up error reporting
4598         getopt can print a whole bunch of error messages, and when used
4599         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
4600         cancellation point and getopt isn't, and also applying fprintf to a
4601         stream in wide-character mode is not allowed.  So every single error
4602         reporting case has an #ifdef _LIBC block in which it calls internal
4603         libc functions instead.  The counterpart patch series in glibc makes
4604         it possible to simplify all of that down to a set of #defines at the
4605         top of the file; core code is written as if it is safe to just call
4606         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
4607         call any *other* stdio functions.)
4609         * lib/getopt.c: When _LIBC is defined, define fprintf to
4610         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
4611         to _IO_funlockfile.  When neither _LIBC nor
4612         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
4613         funlockfile as no-ops.
4614         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
4615         standalone error-printing code can now be used for libc as well.
4616         Add an flockfile/funlockfile pair around one case where the error
4617         message is printed in several chunks.  Don't use fputc.
4620         getopt: fix fencepost error in ambiguous-W-option handling
4622         getopt_long contains an undocumented (AFAICT) feature in which, if you
4623         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
4624         treated as equivalent to '--foo'.  This is implemented with a partial
4625         second copy of the code for handling long options, and that code
4626         increments optind one too many times when recovering from an ambiguous
4627         abbreviated option, which can cause the main loop to walk past the end
4628         of argv and crash.
4630         I discovered this while writing a test case that tries to exercise all
4631         of getopt's error reporting paths; I wouldn't be surprised to learn
4632         that this feature is never used by real applications.
4634         * lib/getopt.c (_getopt_internal_r): Don't increment
4635         d->optind a second time when reporting ambiguous -W options.
4638         getopt: clean up getopt.c and getopt1.c file headers
4640         In getopt.c, there is no need to include wchar.h at all, and it is
4641         safe nowadays to assume that stdlib.h does declare getenv (several
4642         other gnulib modules make this assumption).
4644         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
4645         by using "" inclusions consistently, and there is no actual need to
4646         include stdlib.h (except in the #ifdef TEST block, where it should be
4647         unconditional), nor to provide a backup definition of NULL at all.
4649         * lib/getopt1.c: Simplify #ifdeffage at top of file.
4650         Move inclusion of stdlib.h to #ifdef TEST block and make
4651         unconditional.  Do not define NULL.
4652         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
4653         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
4654         * modules/getopt-gnu, modules/getopt-posix: Don't call
4655         gl_PREREQ_GETENV.
4658         getopt: harmonize comments with glibc
4660         The comments explaining how the behavior of 'getopt' varies depending
4661         on whether it's the standalone version and whether there are special
4662         characters at the beginning of the options string were inconsistent
4663         between gnulib and glibc, and also out of sync with the code.
4665         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
4668         getopt: remove USE_NONOPTION_FLAGS
4670         getopt includes code to parse an environment variable named
4671         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
4672         in decimal); but all of it has been #ifdefed out since 2001, with no
4673         official way to turn it back on.
4675         According to commentary in glibc's config.h.in, bash version 2.0
4676         set this environment variable to indicate argv elements that were
4677         the result of glob expansion and therefore should not be treated
4678         as options, but the feature was "disabled later" because "it
4679         caused problems".  According to bash's CHANGES file, "later" was
4680         release 2.01; it gives no more detail about what the problems
4681         were.
4683         Version 2.0 of bash was released on the last day of 1996, and version
4684         2.01 in June of 1997.  Twenty years later, I think it is safe to
4685         assume that this environment variable isn't coming back.
4687         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
4688         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
4689         __libc_argc and __libc_argv externs, which were only used by
4690         #ifdef USE_NONOPTION_FLAGS blocks.
4693         getopt: tabify, in preparation for merge with glibc
4695         glibc sticks to the GNU default of indenting with a mix of
4696         8-column tabs and spaces; make the gnulib copy match.
4698         getopt.h is not included because it is *not* going to be merged in its
4699         present form.
4701         * getopt.c, getopt1.c, getopt_int.h: Tabify.
4703 2017-04-02  Bruno Haible  <bruno@clisp.org>
4705         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
4706         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
4707         like it was done in modules/relocatable-lib on 2011-05-21 and in
4708         modules/relocatable-prog on 2011-08-15.
4709         Reported by Reuben Thomas <rrt@sc3d.org>.
4711 2017-03-31  Bruno Haible  <bruno@clisp.org>
4713         glob: Fix invalid free() call.
4714         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
4715         static storage to home_dir.
4716         Reported by Coverity via Tim Rühsen.
4718 2017-03-31  Bruno Haible  <bruno@clisp.org>
4720         glob: Fix memory leaks.
4721         * lib/glob.c (glob): Free allocated memory before returning.
4722         Reported by Coverity via Tim Rühsen.
4724 2017-03-31  Bruno Haible  <bruno@clisp.org>
4726         md5, sha1, sha256, sha512: Add comments regarding correctness.
4727         * lib/md5.h (buflen): Add comments regarding range.
4728         * lib/sha1.h (buflen): Likewise.
4729         * lib/sha256.h (buflen): Likewise.
4730         * lib/sha512.h (buflen): Likewise.
4731         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
4732         * lib/sha1.c (sha1_process_bytes): Likewise.
4733         * lib/sha256.c (sha256_process_bytes): Likewise.
4734         * lib/sha512.c (sha512_process_bytes): Likewise.
4735         Reported by Coverity via Tim Rühsen.
4737 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
4739         getopt: merge from glibc
4740         This does not change anything substantial; it merely simplifies
4741         hypothetical merges back to glibc.
4742         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
4743         Change copyright notice to match what is in glibc.
4744         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
4745         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
4746         __open_memstream rather than open_memstream and __glibc_likely
4747         instead of __builtin_expect.
4748         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
4750 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4752         dfa: make [0-9] faster in non-C locales
4753         Problem reported by John P. Linderman (Bug#26193).
4754         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
4755         If both ends of the range are ASCII digits, do not worry about
4756         multi-character collating sequences and the like.  Be consistent
4757         about using isalpha as a precondition for setbit_case_fold_c.
4759 2017-03-19  Bruno Haible  <bruno@clisp.org>
4761         lock: Fix compilation error with HP-UX IA64 cc.
4762         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
4763         weak on non-glibc platforms.
4765 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4767         stdalign: tweak version# and test for HP-UX IA64
4768         Problems reported by Bruno Haible in:
4769         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
4770         * lib/stdalign.in.h (_Alignas):
4771         * m4/stdalign.m4 (gl_STDALIGN_H):
4772         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
4773         used octal (as that is how they document it), but it is decimal in
4774         practice now and the ancient implementations no longer matter.
4775         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
4777 2017-03-19  Bruno Haible  <bruno@clisp.org>
4779         vma-iter: Add support for Solaris.
4780         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
4781         approach.
4782         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
4783         * lib/get-rusage-as.c: Update comment about Solaris.
4784         * lib/get-rusage-data.c: Likewise.
4786 2017-03-19  Bruno Haible  <bruno@clisp.org>
4788         vma-iter: Prefer HP-UX specific API on HP-UX.
4789         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
4790         * lib/vma-iter.h: Update.
4791         Just in case HP-UX ever implements mquery().
4793 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
4795         stdalign: restore previous behavior for HP-UX IA64
4796         See Bruno Haible's email in:
4797         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4798         which cites p 150 of a manual saying that 'aligned' works on Itanium.
4799         * lib/stdalign.in.h (_Alignas):
4800         Assume the '061200' applies to Itanium, not to PA-RISC.
4801         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
4803 2017-03-17  Bruno Haible  <bruno@clisp.org>
4805         stat-time, timespec: Support use of the header files in C++ mode.
4806         * lib/stat-time.h: Add "C" linkage declaration.
4807         * lib/timespec.h: Likewise.
4809 2017-03-17  Bruno Haible  <bruno@clisp.org>
4811         stdalign: Make it work with HP-UX cc.
4812         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
4813         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
4814         for HP-UX cc.
4816 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
4818         flexmember: try to detect HP-UX 11.31 cc bug
4819         Problem reported by Bruno Haible in:
4820         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4821         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4822         Attempt to detect bug in HP-UX 11.31 cc.
4824 2017-03-16  Bruno Haible  <bruno@clisp.org>
4826         stdint: Fix test compilation failure with HP-UX 11 cc.
4827         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
4828         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
4829         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
4830         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
4832 2017-03-14  Bruno Haible  <bruno@clisp.org>
4834         gnulib-tool: Don't produce a tests directory with only snippet .h files.
4835         * gnulib-tool (func_modules_transitive_closure_separately): If
4836         testsrelated_modules ends up with no "real" modules, aside from
4837         modules with applicability 'all', set it to empty.
4839 2017-03-14  Bruno Haible  <bruno@clisp.org>
4841         vma-iter: Add support for HP-UX.
4842         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
4843         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
4844         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
4845         * lib/get-rusage-as.c: Update comment about HP-UX.
4846         * lib/get-rusage-data.c: Likewise.
4847         (get_rusage_data): Use get_rusage_data_via_setrlimit.
4849 2017-03-14  Bruno Haible  <bruno@clisp.org>
4851         limits-h: Make it work with HP-UX cc.
4852         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
4853         defined.
4855 2017-03-14  Bruno Haible  <bruno@clisp.org>
4857         Fix test failures on DragonFlyBSD.
4858         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
4859         * tests/test-select.h (test_bad_fd): Likewise.
4860         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
4862 2017-03-14  Bruno Haible  <bruno@clisp.org>
4864         freadahead: Silence warning on DragonFlyBSD.
4865         * lib/freadahead.c (__sreadahead): Declare ourselves.
4867 2017-03-14  Bruno Haible  <bruno@clisp.org>
4869         vma-iter: Add comment about AIX.
4870         * lib/vma-iter.c: Add comment about why this module is not implemented
4871         on AIX.
4873 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4875         snippets: move unadjusted snippet sources to lib
4876         Problem reported by Michal Privoznik in:
4877         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
4878         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
4879         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
4880         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
4881         * lib/unused-parameter.h: Rename from
4882         build-aux/snippet/unused-parameter.h.
4883         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
4884         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
4885         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
4886         * modules/snippet/c++defs (Files:, CXXDEFS_H):
4887         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
4888         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
4889         Adjust to file renamings.
4891 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
4893         gnulib-tool: don't automatically distribute files from top/
4894         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
4895         not distribute top/README-release by default, don't distribute files
4896         from top/ unconditionally.
4897         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
4898         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
4900 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4902         gnulib-tool: fix typo in comment output
4903         * gnulib-tool (func_import): Fix typo with previous change.
4905         snippets: work around GNU Make 3.82 VPATH
4906         When using 'gnulib-tool --gnu-make' on Emacs, and building
4907         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
4908         an out-of-source (VPATH) build failed because the sans-copyright
4909         snippet file was not built before the file that used it.
4910         Presumably this is some sort of VPATH thing.  Work around the
4911         problem by using the original snippet, i.e., don’t bother to
4912         remove its copyright notice.
4913         * modules/snippet/_Noreturn, modules/snippet/link-warning:
4914         Don’t assume Automake in comments.  Omit long-incorrect comment.
4915         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
4916         (MOSTLYCLEANFILES):
4917         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
4918         (MOSTLYCLEANFILES):
4919         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
4920         (MOSTLYCLEANFILES):
4921         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
4922         (MOSTLYCLEANFILES):
4923         Remove.
4924         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
4925         * modules/snippet/c++defs (CXXDEFS_H):
4926         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
4927         * modules/snippet/warn-on-use (WARN_ON_USE_H):
4928         Don’t bother to remove the copyright notice; just use the
4929         original snippet as-is.
4931 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
4933         gnulib-tool: minor --gnu-make fixups
4934         * gnulib-tool (func_emit_lib_Makefile_am):
4935         Remove useless code that was a blind alley during implementation.
4936         Problem reported by Thien-Thi Nguyen in:
4937         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
4938         (func_import): Note the "--gnu-make" option in the output comment.
4940 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
4942         gnulib-tool: new option --gnu-make
4943         This is for applications like GNU Emacs that use GNU Make
4944         features instead of Automake.
4945         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
4946         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
4947         Do not assume Automake.
4948         * gnulib-tool (func_determine_path_separator)
4949         (func_modules_transitive_closure, func_update_file)
4950         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
4951         (func_import): Add support for --gnu-make.
4953 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
4955         gnulib-common.m4: avoid aclocal.m4 bloat
4956         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
4957         Hide AM_PROG_AR from aclocal, so that aclocal does not
4958         install irrelevant macro definitions into aclocal.m4.
4960 2017-03-10  Bruno Haible  <bruno@clisp.org>
4962         vma-iter: Let callers know about error.
4963         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
4964         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
4966 2017-03-05  Bruno Haible  <bruno@clisp.org>
4968         Fix value of LD for 64-bit compilers on AIX.
4969         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
4970         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
4972 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
4974         dtotimespec: simplify
4975         * lib/dtotimespec.c (dtotimespec): Simplify.
4977 2017-03-04  Bruno Haible  <bruno@clisp.org>
4979         test-calloc-gnu: Reenable test also for GCC 7.
4980         * tests/test-calloc-gnu.c (eight): New function.
4981         (main): Don't skip test; use eight() instead.
4983 2017-03-04  Jim Meyering  <meyering@fb.com>
4985         test-calloc-gnu: port to GCC7
4986         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
4987         that attempts to calloc more than SIZE_MAX bytes, because GCC7
4988         and newer would detect that at compilation time.
4990 2017-03-04  Bruno Haible  <bruno@clisp.org>
4992         tests: Avoid compiler warning about uses of null_ptr.
4993         * tests/null-ptr.h: New file.
4994         * tests/test-canonicalize.c: Include null-ptr.h.
4995         (null_ptr): Remove function.
4996         * tests/test-canonicalize-lgpl.c: Likewise.
4997         * tests/test-memmem.c: Likewise.
4998         * tests/test-ptsname_r.c: Likewise.
4999         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
5000         * modules/canonicalize-lgpl-tests: Likewise.
5001         * modules/memmem-tests: Likewise.
5002         * modules/ptsname_r-tests: Likewise.
5003         Reported by Jim Meyering.
5005 2017-03-03  Bruno Haible  <bruno@clisp.org>
5007         doc: Mention Mac OS X deficiencies regarding semaphores.
5008         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
5009         * doc/posix-functions/sem_destroy.texi: Likewise.
5010         * doc/posix-functions/sem_getvalue.texi: Likewise.
5012 2017-03-03  Bruno Haible  <bruno@clisp.org>
5014         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
5015         Reported by Assaf Gordon <assafgordon@gmail.com> via
5016         Pádraig Brady <P@draigBrady.com>.
5017         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
5018         semaphores.
5019         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
5020         (atomic_int_semaphore): New macro.
5022 2017-02-28  Bruno Haible  <bruno@clisp.org>
5024         perror tests: Tweak for z/OS.
5025         Reported by Daniel Richard G. <skunk@iskunk.org>.
5026         * tests/test-perror.sh: Don't fail z/OS style perror output.
5028 2017-02-26  Bruno Haible  <bruno@clisp.org>
5030         nproc: Refactor large function.
5031         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
5032         from num_processors.
5033         (num_processors): In this function, only deal with OMP.
5035 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5037         nproc: adjust handling of OpenMP environment variables
5038         to match the return value from omp_get_num_threads(), i.e.:
5039          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
5040          - Treat 0 as an invalid value and ignore
5041         Also remove the call to omp_get_num_threads() because
5042         it's ineffective without the omp pragmas in place.
5043         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
5044         so that it can be ignored.
5045         (num_processors): Honor OMP_THREAD_LIMIT even without
5046         OMP_NUM_THREADS being set.  Also fix a typo in the environment
5047         variable being checked, from the previous recent commit.
5049 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5051         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
5052         * lib/nproc.c (parse_omp_threads): A new function refactored
5053         from num_processors() to support parsing both of the
5054         above environment variables.
5055         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
5056         to accurately reflect the current OpenMP nesting level.
5057         Also support the OMP_THREAD_LIMIT environment variable
5058         to limit the max value determined from OMP_NUM_THREADS.
5059         * modules/nproc: Depend on minmax header.
5060         Suggested by Oliver Heimlich.
5062 2017-02-25  Bruno Haible  <bruno@clisp.org>
5064         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
5065         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
5067 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5069         ftoastr: port to -Wdouble-promotion
5070         Work around -Wdouble-promotion false alarm in recent GCCs.
5071         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
5072         (ftoastr_snprintf, FTOASTR): Use it.
5074 2017-02-21  Bruno Haible  <bruno@clisp.org>
5076         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
5077         Reported by Rene Saavedra <rennes@openmailbox.org> in
5078         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
5079         * lib/glthread/lock.h: On glibc systems without
5080         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
5081         implementation of rwlocks.
5082         * lib/glthread/lock.c: Likewise.
5084 2017-02-20  Bruno Haible  <bruno@clisp.org>
5086         lock tests: Fix build failure on z/OS.
5087         Reported by Daniel Richard G. <skunk@iskunk.org>.
5088         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
5089         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
5090         exist.
5092 2017-02-19  Bruno Haible  <bruno@clisp.org>
5094         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
5095         This helps when CC=clang.
5096         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
5097         of /usr/bin/gcc.
5099         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
5100         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
5102 2017-02-19  Bruno Haible  <bruno@clisp.org>
5104         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
5105         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
5106         --with-tests --single-configure is specified.
5108 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5110         users.txt: Update links, use HTTPS where possible
5111         * users.txt: Updated to HTTPS where possible,
5112         fixed some links to new locations.
5114 2017-02-16  Bruno Haible  <bruno@clisp.org>
5116         xbinary-io: Fix inlining.
5117         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
5119 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5121         xbinary-io: rename from xsetmode
5122         This patch is taken from suggestions by Bruno Haible in:
5123         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
5124         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
5125         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
5126         not ENOTTY, when it is an inappropriate device.
5127         * lib/binary-io.h (SET_BINARY): Resurrect.
5128         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
5129         (xset_binary_mode_error): Rename from xsetmode_error.
5130         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
5131         (xset_binary_mode): Rename from xsetmode.
5132         All uses changed.
5133         * modules/xbinary-io: Rename from modules/xsetmode.
5134         Update file names.
5135         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
5136         * NEWS: Update to match revised behavior.
5138 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5140         tests: Adjust to recent SET_BINARY change
5141         * tests/test-binary-io.c (main):
5142         * tests/test-binary-io.sh: Remove test for SET_BINARY.
5143         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
5144         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
5145         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
5147         xsetmode: new module
5148         This is to fix a problem noted by Eric Blake.
5149         Code was using xfreopen to change files to binary mode, but this
5150         fails for stdout when in append mode.  Such code should use
5151         xsetmode instead.
5152         * NEWS: Document incompatible changes to binary-io module.
5153         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
5154         New function.
5155         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
5156         (set_binary_mode): New function, which also checks for tty.
5157         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
5159 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5161         headers: fix begin-end typos
5162         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
5163         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
5165         selinux-h: port to PGI 16.10
5166         * lib/se-selinux.in.h: Don't assume that include_next skips over
5167         duplicate -I DIR options.
5169         argp: port to PGI 16.10
5170         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
5172 2017-02-13  Darshit Shah  <darnir@gnu.org>
5174         unicase: Update function protoype to match definition.
5175         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
5176         uses 'size_t' as the datatype for the 'len' parameter in the functions
5177         it generates. Update the prototype specified here to match the newly
5178         generated function.
5180 2017-02-12  Bruno Haible  <bruno@clisp.org>
5182         times test: Avoid gcc warnings on Linux/x32.
5183         * tests/test-times.c (main): Really cast printf arguments from clock_t
5184         to 'long int'.
5186 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5188         glob: port better to emscripten
5189         Problem reported by Bruno Haible in:
5190         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
5191         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
5193 2017-02-11  Bruno Haible  <bruno@clisp.org>
5195         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
5196         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
5197         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
5198         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
5199         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
5200         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
5201         Distinguish hppa64 from hppa.
5203 2017-02-10  Bruno Haible  <bruno@clisp.org>
5205         search: Don't assume that tsearch() exists if 'VISIT' is defined.
5206         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
5207         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
5208         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
5210 2017-02-09  Bruno Haible  <bruno@clisp.org>
5212         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
5213         * doc/gnulib.texi (Libtool and Windows): Recommend
5214         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
5215         Reported by Reuben Thomas <rrt@sc3d.org>.
5217 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5219         stddef-tests: port to SIZE_MAX <= INT_MAX
5220         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
5221         Do not assume that INT_MAX < SIZE_MAX.
5223 2017-02-01  Bruno Haible  <bruno@clisp.org>
5225         lock tests: Fix link error.
5226         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
5227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5229 2017-01-31  Bruno Haible  <bruno@clisp.org>
5231         lock: Fix link error (regression from 2017-01-05).
5232         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
5233         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
5234         pthread_rwlockattr_destroy weak.
5235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5237 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5239         Port to PGI 16.10 x86-64
5240         This patch fixes one real bug in gl_anylinked_list2.h, along with
5241         some minor glitches that are not bugs.  It does not silence PGI’s
5242         thousands of bogus warnings when compiling test-intprops.c.
5243         Fortunately, the warnings do not cause a failure.
5244         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
5245         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
5246         My goodness, PGI goes back a long ways - this predates C89!
5247         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
5248         For example, ASYNCSAFE (const void *) should expand to
5249         ‘const void *volatile’, not to ‘volatile const void *’.
5250         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
5251         * lib/verify.h (verify) [!__GNUC__]:
5252         Use shorter albeit meaningless string to bypass silly compiler limits.
5253         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
5254         * tests/nan.h (NaNf, NaNd, NaNl):
5255         Use static functions to avoid misguided compiler diagnostics.
5256         Is there some reason we don’t use static functions on all platforms?
5258 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
5260         parse-datetime: handle timezones reentrantly
5261         This API change was prompted by a report by Pádraig Brady in:
5262         https://bug.debian.org/851934#10
5263         To help fix the bug, make parse_datetime2 more reentrant.
5264         * NEWS: Document this incompatible change.
5265         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
5266         Add two arguments, the timezone and the timezone name.
5267         All callers changed.  If TZ="..." is specified, use it for
5268         calculating defaults.
5269         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
5270         this code should be usable in a library.
5271         (mktime_ok, get_effective_timezone):
5272         Accept timezone arg too.  All callers changed.
5273         (get_tz): Remove.
5274         (get_effective_timezone): Check for failures.
5276 2017-01-20  Eric Blake  <eblake@redhat.com>
5278         localename: port to cygwin 2.6
5279         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
5280         Cygwin.
5281         * modules/localename (Depends-on): Add extensions, since
5282         NL_LOCALE_NAME() is not visible without it.
5284 2017-01-17  Pádraig Brady  <P@draigBrady.com>
5286         parse-datetime: fix dependence on AC_PROG_SED
5287         * modules/parse-datetime: Use `sed` directly like all other modules.
5288         Reported by J William Piggott
5290 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
5292         intprops: update doc URLs
5293         * doc/intprops.texi (Integer Range Overflow): Update URLs.
5295 2017-01-16  Bruno Haible  <bruno@clisp.org>
5297         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
5298         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
5299         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
5300         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
5301         distinguish s390 and s390x.
5302         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
5303         * NEWS: Mention the change regarding 'armel'.
5305 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5307         localeinfo: case_folded_counterparts and WEOF
5308         * NEWS: Document this.
5309         * lib/localeinfo.c (case_folded_counterparts):
5310         First arg is now wint_t, not wchar_t.  This generalizes the
5311         function to also work on WEOF, where it returns 0.
5313         dfa: port to gcc -fsanitize=undefined
5314         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
5315         as this runs afoul of gcc -fsanitize=undefined.
5317 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
5319         strftime: %z is -00 if unknown
5320         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
5321         the caller's responsibility to set 'negative_number'.  All uses changed.
5322         (__strftime_internal): Put '-' before a zero UTC offset if the time
5323         zone abbreviation starts with "-", which is the recently-introduced
5324         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
5325         * tests/test-strftime.c: Test for this.
5327 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5329         dfa: port to older GCC
5330         Problem reported by Assaf Gordon in:
5331         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
5332         * modules/c99: New module.  This merely attempts to use the latest
5333         C version, which should be enough to solve this particular problem.
5334         The idea is to document which Gnulib modules assume C99 or later.
5335         * modules/dfa (Depends-on): Add it.
5337 2017-01-10  Bruno Haible  <bruno@clisp.org>
5339         Update DEPENDENCIES.
5340         * DEPENDENCIES: List only https URLs. Update recommended version for
5341         autoconf, automake, gperf.
5343 2017-01-10  Jim Meyering  <meyering@fb.com>
5345         maint.mk: enforce spelling of "timestamp" (i.e., no space)
5346         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5347         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
5349 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5351         dfa: minor simplification with emptyset
5352         * lib/dfa.c (build_state): Simplify by using emptyset.
5354 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5356         dfa: shrink constraints from 4 bits to 3
5357         * lib/dfa.c (newline_constraint, letter_constraint)
5358         (other_constraint, prev_newline_dependent)
5359         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
5360         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
5361         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
5362         Constraints need only 3 bits, not 4.  Using smaller integers
5363         shrinks the code a bit and makes grep a tad faster on x86-64.
5365         dfa: omit unnecessary ptrdiff_t check
5366         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
5367         overflow, since xnmalloc does that now.
5369         dfa: omit unnecessary allocation
5370         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
5371         an all-zero follow set works just fine.
5373         dfa: omit unused local
5374         * lib/dfa.c (build_state): Fix up recent change.
5376         maint: remove stray .texi files
5377         Although these were superseded by other files like
5378         doc/posix-functions/ctime.texi, the old files were not removed.
5379         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
5381 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
5383         getprogname: fix port to IRIX
5384         * lib/getprogname.c (getprogname) [__sgi]:
5385         Don't dump core if malloc returns NULL.
5387         dfa: fix reallocation bug when matching newlines
5388         Problem reported for sed by S. Gilles (Bug#25390).
5389         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
5390         (dfastate): Reallocate before moving any newline transition ...
5391         (build_state): ... instead of reallocating here, where it is too late.
5393 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5395         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
5396         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
5398 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5400         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
5401         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
5403 2017-01-07  Bruno Haible  <bruno@clisp.org>
5405         stdioext: Port to Minix 3.2 and newer.
5406         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
5407         * lib/fseeko.c (fseeko): Likewise.
5408         Reported by Nelson Beebe via Paul Eggert.
5410 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5412         getprogname: port to IRIX
5413         * lib/getprogname.c (getprogname): Port to IRIX.
5414         Based on an idea by Bastien Roucariès at:
5415         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
5416         via code from Bruno Haible at:
5417         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
5419         localename-tests: port to NetBSD 7
5420         Problem reported by Nelson H. F. Beebe.
5421         * tests/test-localename.c:
5422         Test newlocale and uselocale only if both exist.
5424         glob, intprops, xalloc: work around Clang bug
5425         Work around LLVM bug 16404, which is still not fixed.
5426         https://llvm.org/bugs/show_bug.cgi?id=16404
5427         Problem reported by Nelson H. F. Beebe.
5428         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
5429         Remove.
5430         * lib/glob.c (size_add_wrapv):
5431         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
5432         * lib/xalloc-oversized.h (xalloc_oversized):
5433         Do not use overflow builtins if Clang.
5435         dfa: fix 'return' typo
5436         Problem reported by Nelson H. F. Beebe.
5437         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
5439 2017-01-05  Pádraig Brady  <P@draigBrady.com>
5441         parse-datetime: fix generated paths for coverage files
5442         * modules/parse-datetime: Adjust the paths for parse-datetime.y
5443         within parse-datetime.c, so that gcc generates appropriate .gcno
5444         files, allowing lcov to proceed without error.  Previously it
5445         would error trying to find "lib/lib/parse-datetime.y".
5447 2017-01-05  Pádraig Brady  <P@draigBrady.com>
5449         maint.mk: support parallel execution of coverage
5450         * top/maint.mk (coverage): Run dependencies serially,
5451         thus supporting parallel processing of each one,
5452         particularly build-coverage, which builds and runs tests.
5454 2017-01-05  Bruno Haible  <bruno@clisp.org>
5456         lock tests: Prefer semaphore over mutex.
5457         * tests/test-lock.c (USE_SEMAPHORE): New constant.
5458         (struct atomic_int, init_atomic_int, get_atomic_int_value,
5459         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
5460         Suggested by Torvald Riegel <triegel@redhat.com>.
5462 2017-01-05  Bruno Haible  <bruno@clisp.org>
5464         lock: Provide guarantee to avoid writer starvation for rwlocks.
5465         The rationale is: 1) Read-preferring read-write locks are prone to
5466         writer starvation if the number of reader threads multiplied by the
5467         percentage of time they have the lock held is too high. 2) Write-
5468         preferring read-write locks are the only reliable way to avoid this.
5469         3) There have been reports of 'test-lock' hanging on glibc systems
5470         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
5471         and glibc indeed implements read-preferring rwlocks by default, see
5472         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
5473         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
5474         * m4/pthread_rwlock_rdlock.m4: New file.
5475         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
5476         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
5477         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
5478         of rwlock initialization on glibc systems without
5479         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
5480         of rwlocks altogether on non-glibc systems without
5481         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
5482         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
5483         * lib/glthread/lock.c [USE_POSIX_THREADS]
5484         (glthread_rwlock_init_for_glibc): New function.
5485         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
5486         comment.
5487         [USE_PTH_THREADS]: New implementation of rwlocks.
5488         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
5489         readers.
5490         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
5491         (Depends-on): Add 'extensions'.
5492         * tests/test-rwlock1.c: New file.
5493         * lock-tests (Files): Add it.
5494         (Depends-on): Add usleep.
5495         (Makefile.am): Add test-rwlock1 to the tests.
5497 2017-01-05  Bruno Haible  <bruno@clisp.org>
5499         thread: Fix pth port.
5500         * lib/glthread/thread.h (pth_init): Declare weak.
5501         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
5502         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
5503         function.
5505 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
5507         parse-datetime: fix debug message on lone year number
5508         Input dates such as
5509           date -d "Apr 11 22:59:00 2011"
5510         are parsed as date (Apr 11, with default year 2016), then time, then a
5511         number (2011). Based on the combination of previously seen tokens,
5512         'digits_to_date_time' determines 2011 to be a year value.
5513         This fixes the debug messages to correctly show the updated year.
5514         Before:
5515             $ date --debug -d 'Apr 11 22:59:00 2011'
5516             date: parsed date part: (Y-M-D) 2016-04-11
5517             date: parsed time part: 22:59:00
5518             date: parsed number part: today/this/now
5519         After:
5520             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
5521             date: parsed date part: (Y-M-D) 2016-04-11
5522             date: parsed time part: 22:59:00
5523             date: parsed number part: year: 2011
5524         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
5525         'debug_year_seen' member fields.
5526         (digits_to_date_time): Update 'year_seen' as needed.
5527         (debug_print_current_time): Inform about year updates.
5528         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
5530         parse-datetime: fix local timezone debug messages
5531         "Local timezones" are strings that affect only DST relative to the
5532         default timezone. The debug messages in parse-datetime.y printed
5533         wrong information when encountering local timezones.
5534         Examples:
5535         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
5536              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
5537              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
5538         When the default timezone relates to the zone strings, EET/EEST are
5539         parsed as local timezones (tLOCAL_ZONE), and only change the DST
5540         value (0/1, respectively):
5541              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
5542              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
5543         * lib/parse-datetime.y (debug_print_current_time): If local timezone
5544         was seen, inform about DST change, don't print actual timezone.
5545         (debug_strfdatetime): If local timezone was seen, use default timezone
5546         (and adjust as needed) instead of using incorrect timezone.
5547         (parse_datetime2): Use correct time-zone source string, and adjust
5548         default timezone as needed.
5550         parse-datetime: add debug warning about DST changes
5551         Incorrect date arithmetic due to daylight saving time (DST) are a
5552         common (false) bug report in coreutils.
5553         Detect two such cases and print a warning:
5554         1. year/month/day adjustments (performed on 'struct tm'),
5555            where 'mktime' returns a different isdst value.
5556         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
5557            where the result of 'localtime(3)' on the value will return a
5558            different isdst value.
5559         Note: DST changes could be harmless or unnoticeable.
5560         Examples (with 'TZ=America/New_York'):
5561         Unnoticeable: result is 2016-Dec-14
5562            $ date -d '2016-06-15 EDT + 6 months' +%b
5563            Dec
5564         Unnoticeable: result is 2016-Dec-15 11:00:00
5565            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
5566            2016-12-15
5567         This is unexpected:
5568            $ date -d '2016-06-01 EDT + 6 months' +%F
5569            2016-11-30
5570         The new debug warnings will show:
5571            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
5572            ...
5573            date: warning: daylight saving time changed after date adjustment
5574            ...
5575         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
5576         print an appropriate warning message.
5578         parse-datetime: add debug warning about date arithmetic
5579         Date arithmetic are done directly on the fields of 'struct tm',
5580         which can result in invalid dates. Normalization with 'mktime(3)'
5581         will then produce a different date - which might cause unexpected
5582         results.
5583         Examples:
5584           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
5585           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
5586         Note that date normalization is not inherently wrong and not rejected,
5587         as it has legitimate uses:
5588           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
5589         If the user asked to adjust months but 'mday' changed,
5590         or user asked to adjust years but 'month' changed - warn about it.
5591             $ ./src/date --debug -d '2016-10-31 - 1 month'
5592             ...
5593             date: warning: when adding relative months/years, \
5594                            it is recommended to specify the 15th of the month
5595             ...
5596             date: warning: month/year adjustment resulted in shifted dates:
5597             date:      adjusted Y M D: 2016 09 31
5598             date:    normalized Y M D: 2010 10 01
5599             ...
5600         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
5601         a warning message. Improve recommendation of when to use 15 of the
5602         month or noon for date arithmetic.
5604         parse-datetime: fix debug message of relative part after timezone
5605         Relative part (e.g '+8 days') after a timezone string was not
5606         reported (was only reported after a timezone number). Due to the
5607         parser's structure, timezone strings with numbers were handled
5608         separately.
5609         before:
5610              # Timezone number + relative part: OK
5611              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
5612              ...
5613              date: parsed relative part: -8 day(s)
5614              # Timezone string + relative part: missing
5615              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
5616              [ missing message ]
5617         After: messages are printed in both cases.
5618         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
5620         parse-datetime: fix incorrect debug message on lone number
5621         A lone number is an absolute value, not a relative time part.
5622         before:
5623            $ date --debug -d '20130101'
5624            date: parsed number part: today/this/now
5625         After:
5626            $ ./src/date --debug -d '20130101'
5627            date: parsed number part: (Y-M-D) 2013-01-01
5628         * lib/parse-datetime.y ('item'/'number' tokens): Call
5629         'debug_print_current_time' instead of 'debug_print_relative_time'.
5631 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5633         doc: modernize for C11 etc.
5634         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
5635         for C11, MinGW, etc.  This responds to Paul Smith's question in:
5636         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
5638         dfa: prefer functions to FETCH_WC macro
5639         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
5640         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
5641         wint_t result into DFA->lex.wctok instead of to a separate arg.
5642         All callers changed.  Move more local decls closer to where
5643         they're used.
5645         dfa: narrow more local var scopes
5646         * lib/dfa.c: Move more local decls to be more local.
5648         dfa: remove duplicate assignment
5649         Problem reported by Bruno Haible in:
5650         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
5651         * lib/dfa.c (parse_bracket_exp): Simplify.
5653 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5655         dfa: simplify constraint-dependency checking
5656         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
5657         (prev_other_constraint): Remove.
5658         (prev_newline_dependent, prev_letter_dependent):
5659         Simplify, to avoid an unnecessary bitwise AND operation.
5661         dfa: prefer functions and constants to macros
5662         * lib/dfa.c: Prefer constants to macros where either will do.
5663         (streq, isasciidigit, newline_constraint)
5664         (letter_constraint, other_constraint, succeeds_in_context)
5665         (prev_newline_constraint, prev_letter_constraint)
5666         (prev_other_constraint, prev_newline_dependent)
5667         (prev_letter_dependent, accepting, accepts_in_context):
5668         Now static functions instead of function-like macros.
5669         Use lower-case names accordingly.  All uses changed.
5671         dfa: narrow more local var scopes
5672         * lib/dfa.c: Move some more local decls down to nearer where
5673         they're needed.
5675 2016-12-31  Jim Meyering  <meyering@fb.com>
5677         dfa: narrow the scope of many local variables
5678         * lib/dfa.c: Now that we are no longer constrained to c89, move
5679         declarations of many variables (often indices) "down" into the
5680         scope(s) where used or to the point of definition.  This is a
5681         no-semantic-change diff.
5683 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5685         version-etc: new year
5686         * build-aux/gendocs.sh (version):
5687         * doc/gendocs_template:
5688         * doc/gendocs_template_min:
5689         * doc/gnulib.texi:
5690         * lib/version-etc.c (COPYRIGHT_YEAR):
5691         Update copyright dates by hand in templates and the like.
5692         * all files: Run 'make update-copyright'.
5694 2016-12-31  Eric Blake  <eblake@redhat.com>
5696         do-release-commit-and-tag: avoid shell syntax error
5697         * build-aux/do-release-commit-and-tag (curr_br): $branch can
5698         contain spaces when rebasing.
5700         maint.mk: hoist gnulib_dir definition earlier
5701         * top/maint.mk (gnulib_dir): Move near top of file.
5703 2016-12-31  Jim Meyering  <meyering@fb.com>
5705         maint.mk: do not always evaluate intprops-related shell
5706         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
5707         using gnulib_dir undefined (gnulib_dir is defined later in the
5708         file, which will be fixed separately), and besides, there is no
5709         need to incur the cost of this shell invocation for every single
5710         use of this .mk file.  Reported by Eric Blake in
5711         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
5713 2016-12-30  Jim Meyering  <meyering@fb.com>
5715         maint.mk: improve sc_prohibit_intprops_without_use
5716         * top/maint.mk (_intprops_names): Don't hard-code the list of
5717         symbol names.  Instead, derive it on the fly.
5719 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5721         dfa: shorten sbit, success
5722         * lib/dfa.c (struct regex_syntax.sbit):
5723         (struct dfa.success): Use char, not int, for array elements, since
5724         they are all in the range 0..7.
5726         dfa: simplify multibyte_prop etc.
5727         This follows up on a change made when dfa.c was in grep, namely grep
5728         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
5729         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
5730         That earlier simplification allows for some more simplification
5731         and trimming down here.
5732         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
5733         (struct lexer_state): New mamber brack.
5734         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
5735         since they must be in the range 0..3 now.
5736         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
5737         the brack member now supersedes them.
5738         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
5739         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
5740         (dfaparse): Remove unnecessary initializations of already-0 storage.
5741         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
5742         (dfassbuild): No need to clear sup->mbcsets.
5744         dfa: minor performance tweak
5745         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
5747         dfa: wrap charclass inside a struct
5748         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
5749         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
5750         about 5% faster, where list.txt is generated by 'aspell dump
5751         master | head -n 100000 >list.txt'.  See Bug#22239.
5752         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
5753         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
5754         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
5755         Adjust to this, e.g., by using charclass * rather than charclass.
5756         All callers changed as needed.
5757         (copyset): Remove.  All uses changed to simple assignment.
5758         (parse_bracket_exp): Use zeroset instead of memset.
5760 2016-12-30  Jim Meyering  <meyering@fb.com>
5762         maint.mk: update list of intprops.h symbol names
5763         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
5764         This avoids a false failure of the sc_prohibit_intprops_without_use
5765         rule in grep.
5767 2016-12-29  Eric Blake  <eblake@redhat.com>
5769         getopt: fix parallel test failure
5770         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
5771         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
5772         * tests/test-getopt-main.h (main): Use different file names
5773         in case test-getopt-gnu and test-getopt-posix run in parallel.
5775 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5777         xalloc: x2nrealloc check for ptrdiff_t overflow
5778         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
5779         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
5781 2016-12-24  Bruno Haible  <bruno@clisp.org>
5783         lock test: Fix performance problem on multi-core machines.
5784         * tests/test-lock.c (USE_VOLATILE): New macro.
5785         (struct atomic_int): New type.
5786         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
5787         functions.
5788         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
5789         as 'struct atomic_int'.
5790         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
5791         reclock_checker_thread, test_recursive_lock): Use the new functions.
5792         Reported by Eric Blake in
5793         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
5794         and by Pádraig Brady in
5795         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
5797 2016-12-19  Bruno Haible  <bruno@clisp.org>
5799         vma-iter: Fix endless loop on 64-bit Windows.
5800         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
5801         'unsigned long'.
5803 2016-12-19  Bruno Haible  <bruno@clisp.org>
5805         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
5806         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
5807         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
5808         Invoke gt_TYPE_WINT_T instead.
5809         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
5810         * modules/stdint (Files): Add m4/wint_t.m4.
5811         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
5812         * modules/wctype-h (Makefile.am): Likewise.
5813         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
5814         not only on MSVC.
5815         * lib/wctype.in.h (wint_t): Likewise.
5817 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5819         getopt-posix-tests: fix Makefile typo
5820         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
5821         Fix typo: the last ‘_’ was missing in the name.
5822         I suspect that the typo explains this build failure:
5823         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
5824         although I can’t reproduce the problem on Solaris 10 sparc.
5826 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5828         dfa: improve worst-case 'replace' performance
5829         See my note in Bug#22357#71.
5830         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
5831         (merge_constrained): New function, which is like
5832         the old 'merge' function, except with a new argument C2.
5833         Simplify the body by avoiding the need for different sections
5834         of code depending on whether one input is exhausted.
5835         (merge): Use the new function.
5836         (delete): Return the constraint of the deleted position,
5837         not the entire position.  Caller changed.
5838         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
5840 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5842         dfa: performance improvement for removal of epsilon closure
5843         See Bug#22357#32.
5844         * lib/dfa.c (delete): Use binary search to find deleted index.
5845         (replace): New function.  It replaces a position with the followed set.
5846         (epsclosure): Replace it with a new algorithm.  Update caller.
5848 2016-12-18  Bruno Haible  <bruno@clisp.org>
5850         Split tests for getopt-posix and getopt-gnu.
5851         * tests/test-getopt-posix.c: New file.
5852         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
5853         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
5854         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
5855         GNULIB_TEST_GETOPT_GNU.
5856         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
5857         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
5858         (Makefile.am): Test test-getopt-posix instead of test-getopt.
5859         * modules/getopt-gnu-tests: New file.
5860         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
5862 2016-12-18  Bruno Haible  <bruno@clisp.org>
5864         posix-modules: Add options for specific platforms.
5865         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
5866         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
5867         Invoke func_tmpdir. Filter out the excludes.
5869 2016-12-18  Bruno Haible  <bruno@clisp.org>
5871         getopt: Fix link error for users of getopt() in <unistd.h>.
5872         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
5873         __need_getopt is defined. Undefine all macros before defining them.
5874         * modules/getopt (Include): Clarify that including <unistd.h> is also
5875         OK.
5876         * tests/test-getopt.c: Add comment.
5878 2016-12-17  Bruno Haible  <bruno@clisp.org>
5880         getaddrinfo tests: Avoid compilation error on MSVC.
5881         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
5882         getaddrinfo on native Windows.
5884 2016-12-17  Bruno Haible  <bruno@clisp.org>
5886         getlogin, getlogin_r: Fix link errors on MSVC.
5887         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
5888         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
5889         (Link): New section.
5890         * modules/getlogin_r (Files): Add m4/getlogin.m4.
5891         (configure.ac): Require gl_LIB_GETLOGIN.
5892         (Link): New section.
5893         * NEWS: Mention the new link requirements.
5894         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
5895         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
5897 2016-12-17  Bruno Haible  <bruno@clisp.org>
5899         Un-deprecate the 'progname' module.
5900         * NEWS: Describe the appropriate use-cases of 'progname' versus
5901         'getprogname'. Based on discussion summary at
5902         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
5904 2016-12-17  Bruno Haible  <bruno@clisp.org>
5906         Reorganize NEWS a bit.
5907         * NEWS: Move some not so important changes away from section
5908         "Important Notes".
5910 2016-12-17  Bruno Haible  <bruno@clisp.org>
5912         tanhf: Avoid redefinition error on MSVC.
5913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
5914         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
5915         may be defined as an inline function.
5916         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
5917         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
5919 2016-12-17  Bruno Haible  <bruno@clisp.org>
5921         tanf: Avoid redefinition error on MSVC.
5922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
5923         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
5924         may be defined as an inline function.
5925         * modules/math (Makefile.am): Substitute REPLACE_TANF.
5926         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
5928 2016-12-17  Bruno Haible  <bruno@clisp.org>
5930         sqrtf: Avoid redefinition error on MSVC.
5931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
5932         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
5933         may be defined as an inline function.
5934         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
5935         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
5937 2016-12-17  Bruno Haible  <bruno@clisp.org>
5939         sinhf: Avoid redefinition error on MSVC.
5940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
5941         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
5942         may be defined as an inline function.
5943         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
5944         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
5946 2016-12-17  Bruno Haible  <bruno@clisp.org>
5948         sinf: Avoid redefinition error on MSVC.
5949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
5950         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
5951         may be defined as an inline function.
5952         * modules/math (Makefile.am): Substitute REPLACE_SINF.
5953         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
5955 2016-12-17  Bruno Haible  <bruno@clisp.org>
5957         logf: Avoid redefinition error on MSVC.
5958         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
5959         may be defined as an inline function.
5961 2016-12-17  Bruno Haible  <bruno@clisp.org>
5963         log10l: Avoid redefinition error on MSVC.
5964         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
5965         may be defined as an inline function.
5967 2016-12-17  Bruno Haible  <bruno@clisp.org>
5969         log10f: Avoid redefinition error on MSVC.
5970         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
5971         may be defined as an inline function.
5973 2016-12-17  Bruno Haible  <bruno@clisp.org>
5975         hypotl: Avoid redefinition error on MSVC.
5976         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
5977         may be defined as an inline function.
5979 2016-12-17  Bruno Haible  <bruno@clisp.org>
5981         hypotf: Avoid redefinition error on MSVC.
5982         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
5983         may be defined as an inline function.
5985 2016-12-17  Bruno Haible  <bruno@clisp.org>
5987         fmodl: Avoid redefinition error on MSVC.
5988         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
5989         may be defined as an inline function.
5991 2016-12-17  Bruno Haible  <bruno@clisp.org>
5993         fmodf: Avoid redefinition error on MSVC.
5994         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
5995         may be defined as an inline function.
5997 2016-12-17  Bruno Haible  <bruno@clisp.org>
5999         expf: Avoid redefinition error on MSVC.
6000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
6001         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
6002         may be defined as an inline function.
6003         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
6004         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
6006 2016-12-17  Bruno Haible  <bruno@clisp.org>
6008         coshf: Avoid redefinition error on MSVC.
6009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
6010         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
6011         may be defined as an inline function.
6012         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
6013         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
6015 2016-12-17  Bruno Haible  <bruno@clisp.org>
6017         cosf: Avoid redefinition error on MSVC.
6018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
6019         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
6020         may be defined as an inline function.
6021         * modules/math (Makefile.am): Substitute REPLACE_COSF.
6022         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
6024 2016-12-17  Bruno Haible  <bruno@clisp.org>
6026         atan2f: Avoid redefinition error on MSVC.
6027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
6028         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
6029         may be defined as an inline function.
6030         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
6031         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
6033 2016-12-17  Bruno Haible  <bruno@clisp.org>
6035         atanf: Avoid redefinition error on MSVC.
6036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
6037         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
6038         may be defined as an inline function.
6039         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
6040         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
6042 2016-12-17  Bruno Haible  <bruno@clisp.org>
6044         asinf: Avoid redefinition error on MSVC.
6045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
6046         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
6047         may be defined as an inline function.
6048         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
6049         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
6051 2016-12-17  Bruno Haible  <bruno@clisp.org>
6053         acosf: Avoid redefinition error on MSVC.
6054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
6055         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
6056         may be defined as an inline function.
6057         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
6058         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
6060 2016-12-17  Bruno Haible  <bruno@clisp.org>
6062         Avoid redefinition errors on MSVC.
6063         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
6064         the function may be defined as an inline function.
6065         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
6066         the function may be defined as an inline function.
6068 2016-12-17  Bruno Haible  <bruno@clisp.org>
6070         Avoid redefinition errors on MSVC.
6071         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
6072         * lib/unistd.in.h: Include <stdio.h> when necessary.
6074 2016-12-17  Bruno Haible  <bruno@clisp.org>
6076         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
6077         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
6078         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6079         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
6080         WINT_MAX.
6082 2016-12-17  Bruno Haible  <bruno@clisp.org>
6084         Avoid autoconf warning.
6085         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
6086         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
6088 2016-12-17  Bruno Haible  <bruno@clisp.org>
6090         fpending: Revert workaround against Emacs bug.
6091         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
6092         The Emacs bug is fixed by Eli Zaretskii in
6093         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
6095 2016-12-17  Bruno Haible  <bruno@clisp.org>
6097         getlogin_r tests: Port to mingw.
6098         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
6099         regression introduced on 2014-05-19.
6101 2016-12-17  Bruno Haible  <bruno@clisp.org>
6103         getlogin: Port to newer mingw.
6104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
6105         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
6106         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
6107         HAVE_GETLOGIN.
6108         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
6109         HAVE_GETLOGIN.
6110         * doc/posix-functions/getlogin.texi: Mention the issue.
6111         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
6112         regression introduced on 2014-05-14.
6114 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6116         builtin-expect: improve port to IBM XL C
6117         Problem reported for z/OS by Daniel Richard G. in:
6118         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
6119         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6120         Test for <builtins.h> directly.
6122         builtin-expect: port to IBM XL C
6123         Problem reported for z/OS by Daniel Richard G. in:
6124         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
6125         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6126         Also allow __builtin_expect defined via a standard include file.
6128         regex: fix dependency
6129         Problem reported by Bruno Haible in:
6130         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
6131         * modules/regex: Depend on builtin-expect.
6133         builtin-expect: new module
6134         Fix fnmatch to use it.
6135         Problem reported for z/OS by Daniel Richard G.
6136         * lib/fnmatch.c (__builtin_expect):
6137         * lib/glob.c (__builtin_expect):
6138         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
6139         * lib/memmem.c (__builtin_expect) [!_LIBC]:
6140         * lib/scandir.c (__builtin_expect):
6141         * lib/strstr.c (__builtin_expect) [!_LIBC]:
6142         Remove macro; config.h now does this.
6143         * lib/gl_anytreehash_list1.h (add_to_bucket):
6144         * lib/regex_internal.h (BE):
6145         Assume __builtin_expect.
6146         * m4/builtin-expect.m4, modules/builtin-expect: New files.
6147         * modules/avltreehash-list, modules/fnmatch, modules/glob:
6148         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
6149         * modules/scandir, modules/strstr-simple:
6150         Depend on builtin-expect.
6152 2016-12-15  Bruno Haible  <bruno@clisp.org>
6154         init.sh: Add possibility to not delete temporary files.
6155         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
6156         to yes, don't erase the temporary directory.
6158 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6160         regex: fix integer-overflow bug in never-used code
6161         Problem reported by Clément Pit–Claudel in:
6162         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
6163         * lib/regex_internal.h: Include intprops.h.
6164         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
6165         behavior on integer overflow.
6166         * modules/regex (Depends-on): Add intprops.
6168         fpending: fix port to MinGW on Emacs
6169         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
6170         Problem reported by Eli Zaretskii in:
6171         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
6172         Is Plan 9 still a valid porting target, anyway?
6174 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6176         safe-alloc: use xalloc-oversized
6177         * lib/safe-alloc.c: Include xalloc-oversized.h.
6178         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
6179         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
6181         xalloc: do not exceed PTRDIFF_MAX
6182         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
6183         xalloc_oversized check, since objects larger than PTRDIFF_MAX
6184         bytes have pointer-subtraction problems.
6186         malloca: do not exceed PTRDIFF_MAX
6187         * lib/malloca.h: Include xalloc-oversized.
6188         (nmalloca): Use xalloc_oversized instead of rolling our own.
6189         * modules/malloca (Depends-on):
6190         * modules/relocatable-prog-wrapper (Depends-on):
6191         Add xalloc-oversized.
6193         quotearg: pacify GCC better
6194         * modules/quotearg (Depends-on): Add minmax, stdint.
6195         * lib/quotearg.c: Include minmax.h, stdint.h.
6196         (nslots): Now int, as there seems little point to going to extra
6197         work merely to support the INT_MAX slot, which nobody ever uses.
6198         (quotearg_n_options): Redo size-overflow checks to pacify GCC
6199         and to catch (mostly-theoretical) ptrdiff_t problems too.
6200         This can be done via one comparison.
6202 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6204         xalloc-oversized: check for PTRDIFF_MAX too
6205         This avoids undefined behavior when subtracting pointers to
6206         objects containing more than PTRDIFF_MAX bytes.
6207         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
6208         Also return 1 if the result would exceed PTRDIFF_MAX>
6209         * modules/xalloc-oversized (Depends-on):
6210         Add stdint.
6212         dfa: fix glitches in previous commit
6213         Sorry, I don't know how I managed to commit the wrong version.
6214         * lib/dfa.c (MIN): Move up.
6215         (xpalloc): Now static.
6217         dfa: fix some unlikely integer overflows
6218         I found these while reviewing the recent Coverity-related fix.
6219         This patch changes part of dfa.c to prefer ptrdiff_t instead of
6220         size_t for object counts.  Using ptrdiff_t is the style typically
6221         used in Emacs; although it wastes a sign bit as sizes can never be
6222         negative, it makes -fsanitize=undefined more likely to catch
6223         integer overflows in index calculation, and nowadays the upside is
6224         typically more important than the downside.  Although perhaps the
6225         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
6226         of dfa.c already does, since it uses state_num which is signed),
6227         that is a bigger change and is not needed to fix the bugs I found.
6228         * lib/dfa.c: Include stdint.h and intprops.h.
6229         (TOKEN_MAX): New macro.
6230         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
6231         (charclass_index, parse_bracket_exp, addtok, insert, merge)
6232         (realloc_trans_if_necessary, free_mbdata):
6233         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
6234         This is safe because xpalloc checks that the sizes do not exceed
6235         either SIZE_MAX or PTRDIFF_MAX.
6236         (xpalloc): New function, mostly taken from Emacs.
6237         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
6238         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
6239         (charclass_index): Check for integer overflow in computing
6240         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
6241         added to it later.
6242         (alloc_position_set): Check for integer overflow.  On typical
6243         platforms this check has zero overhead, since the constant
6244         expression is false.
6245         (realloc_trans_if_necessary):
6246         Remove assertion, which I hope Coverity no longer needs.
6248         * modules/dfa (Depends-on): Add intprops, stdint.
6250 2016-12-12  Jim Meyering  <meyering@fb.com>
6252         dfa: add an assertion to avoid coverity false positive
6253         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
6254         warned that "newalloc1 - 2" could overflow.
6256 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
6258         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
6259         * dfa.h (DFA_CASE_FOLD): Remove.
6260         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
6262 2016-12-13  John W. Eaton  <gnu@jweaton.org>
6264         link: fix test to declare use of rename()
6265         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
6266         -Werror=implicit-function-declaration
6268 2016-12-12  Bruno Haible  <bruno@clisp.org>
6270         fpending: Port to native Windows with MSVC.
6271         * lib/fpending.c: Include stdio-impl.h.
6272         (__fpending): Include all known implementations. Err out if it's not
6273         ported.
6274         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
6275         * modules/fpending (Files): Add lib/stdio-impl.h.
6276         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
6278 2016-12-12  Bruno Haible  <bruno@clisp.org>
6280         stdioext: Port to native Windows with MSVC.
6281         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
6282         (struct _gl_real_FILE): New type.
6283         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
6284         Windows.
6285         * lib/fbufmode.c (fbufmode): Add code for native Windows.
6286         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
6287         other SystemV derived implementations.
6288         * lib/fpurge.c (fpurge): Likewise.
6289         * lib/freadable.c (freadable): Likewise.
6290         * lib/freadahead.c (freadahead): Likewise.
6291         * lib/freading.c (freading): Likewise.
6292         * lib/freadptr.c (freadptr): Likewise.
6293         * lib/freadseek.c (freadptrinc): Likewise.
6294         * lib/fseeko.c (fseeko): Likewise.
6295         * lib/fseterr.c (fseterr): Likewise.
6296         * lib/fwritable.c (fwritable): Likewise.
6297         * lib/fwriting.c (fwriting): Likewise.
6298         Reported by Gisle Vanem <gvanem@yahoo.no>.
6300 2016-12-11  Jim Meyering  <meyering@fb.com>
6302         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
6303         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
6304         to work with most shells, but not with the one provided by many
6305         Solaris 10 systems, so running configure with such a /bin/sh evokes
6306         e.g., "./configure: syntax error at line 33602: `(' unexpected".
6307         Reported by Assaf Gordon in
6308         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
6310 2016-12-10  Bruno Haible  <bruno@clisp.org>
6312         threadlib: Optimize out runtime test on Solaris >= 10.
6313         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
6314         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
6315         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
6317 2016-12-10  Bruno Haible  <bruno@clisp.org>
6319         stdint: Update doc about Solaris 9.
6320         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
6322 2016-12-09  Bruno Haible  <bruno@clisp.org>
6324         c-ctype tests: Fix link error on Solaris 9.
6325         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
6326         Reported at <https://savannah.gnu.org/bugs/?46827>.
6328 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6330         dfa: fix performance bug that recomputes trans
6331         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
6332         25 on-demand changes.  The bug caused build_state to reset all
6333         d->trans elements to -2 even when d->trans was already non-null.
6334         Use C99 style decls after statements in this function.
6336         same-inode: port to MinGW
6337         Here st_ino is always 0, so change the definition of SAME_INODE so
6338         that 1 means the two files are the same, 0 with st_ino != 0 means
6339         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
6340         reported by Bruno Haible (Bug#25146).
6341         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
6342         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
6344 2016-12-04  Bruno Haible  <bruno@clisp.org>
6346         javacomp: Support Java 7 and 8.
6347         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
6348         target-version 1.7, 1.8.
6350 2016-12-02  Daiki Ueno  <ueno@gnu.org>
6352         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
6353         GPLv2" rewriting.
6355 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
6357         * gnulib-tool (func_import): Adhere to the license guideline when
6358         rewriting the license text to "LGPLv3+ or GPLv2":
6359         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
6361 2016-12-02  Bruno Haible  <bruno@clisp.org>
6363         localcharset: Avoid theoretical buffer overrun.
6364         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
6365         return value from setlocale if it would lead to a buffer overrun.
6367 2016-12-01  Bruno Haible  <bruno@clisp.org>
6369         Relicense some modules under LGPLv2+.
6370         Kevin Cernekee's approval is in
6371         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
6372         * modules/fseterr (License): Change to LGPLv2+.
6373         * modules/mbchar (License): Likewise.
6374         * modules/mbiter (License): Likewise.
6375         * modules/mbsnlen (License): Likewise.
6376         * modules/wcwidth (License): Likewise.
6378 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6380         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
6381         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
6382         OS/2 kLIBC.
6384 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6386         alphasort, scandir: Port to OS/2 kLIBC
6387         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
6388         declaration.
6389         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
6391 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6393         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
6394         * lib/relocatable.c (relocate): Do not touch pathname if it is started
6395         with '/@unixroot'.
6397 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6399         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
6400         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
6401         OS/2 kLIBC unless TCPV40HDRS is defined.
6403 2016-11-29  Jim Meyering  <meyering@fb.com>
6405         dfa: avoid new infinite loop
6406         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
6407         * lib/dfa.c (dfastate): When constructing a new state table, we could
6408         initially declare that we had found a match, and later find that
6409         constraints eliminate that possibility, yet continue to use the
6410         now stale "matched" indicator.  That would lead to an infinite loop.
6411         The solution is to update "matched" when necessary.
6412         Introduced by commit v0.1-983-g403adf1.
6414 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6416         dfa: avoid match middle in multibyte character
6417         * lib/dfa.c (transit_state): If fails in matching single byte characters
6418         on a state including period expression in non-UTF8 multibyte locales,
6419         skip trailing bytes.
6420         (dfa_supported): Revert previous change.
6422 2016-11-27  Jim Meyering  <meyering@fb.com>
6424         dfa: avoid false match in non-UTF8 multibyte locales
6425         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
6426         as "not supported" so that callers will resort to using regex-based
6427         matcher.  This will surely hurt performance, but correctness trumps
6428         performance here, and the affected locales are less and less relevant,
6429         these days.  See grep's bug report https://bugs.gnu.org/24975.
6431 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
6433         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
6434         * lib/ptsname_r.c: Include the appropriate headers.
6435         [__sun]: Delete sys/sysmacros.h include.
6436         [_AIX || __osf__]: Likewise.
6437         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
6439 2016-11-27  Pádraig Brady  <P@draigBrady.com>
6441         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
6442         * lib/md4.c (md4_process_bytes): The existing define is made internal
6443         in recent versions of glibc, so also use this new public define.
6444         * lib/md5.c (md5_process_bytes): Likewise.
6445         * lib/sha1.c (sha1_process_bytes): Likewise.
6446         * lib/sha256.c (sha256_process_bytes): Likewise.
6447         * lib/sha512.c (sha512_process_bytes): Likewise.
6449 2016-11-27  Pádraig Brady  <P@draigBrady.com>
6451         maint: use a more standard return from mbrtowc test
6452         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
6453         from the test program as this often indicates an
6454         unhandled case in the test program.
6455         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
6456         (gl_MBRTOWC_SANITYCHECK): Likewise.
6457         (gl_MBRTOWC_NULL_ARG2): Likewise.
6458         (gl_MBRTOWC_NUL_RETVAL): Likewise.
6460 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
6462         freopen: work around glibc bug with closed fd
6463         Work around glibc bug#15589, where freopen mishandles the case
6464         where stdin etc. are already closed.
6465         * doc/posix-functions/freopen.texi (freopen): Document the bug.
6466         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
6467         instead of __need_FILE, as the latter does not work with glibc.
6468         Include <fcntl.h>, for open flags.
6469         (rpl_freopen): Work around glibc bug.
6470         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
6471         * modules/freopen (Depends-on): Add fcntl-h.
6472         * tests/test-freopen.c (main): Test for bug.
6474 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6476         fnmatch: fix typo introduced on 2016-08-17
6477         This fixes the port to non-GCC compilers that lack __builtin_expect.
6478         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
6480         dfa: simplify with new function fillset
6481         * lib/dfa.c (fillset): New function.
6482         Use it for clarity when applicable.
6484         dfa: fix glitches with on-demand states
6485         Also, adjust commentary to better match new code.
6486         Some of these glitches predate the recent change.
6487         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
6488         only non-initial states.
6489         (dfastate): Rename locals to better match new roles.
6490         Move them into nested scopes if this is easy.
6491         Omit unnecessary calls to zeroset.
6492         Simplify test for whether to throw in the positions of state 0.
6493         Omit C99-ism (decl after statement) since Gawk still wants C89.
6494         (build_state): Omit unnecessary test and assignment.
6495         Fix some confusion that counted transition tables inaccurately
6496         and could cause a memory leak.
6497         (dfaexec_main): Redo to make it clearer to the compiler that
6498         -1 and -2 are the only negative state numbers here.
6500 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6502         dfa: addition of new state on demand
6503         * src/dfa.c (dfastate): Add argument UC, the current input character.
6504         Fill only a group including the character in transition table.
6505         (realloc_trans_if_necessary): Add the dummy state which means that a
6506         transition table is assigned but the next state is not assigned.
6507         (build_state): Return the next state.  All callers updated.
6508         (transit_state_singlebyte): If we get the dummy state,
6509         fill the transition table.
6510         (dfaexec_main): Handle the dummy state.
6511         (free_mbdata, dfafree): Consider the dummy state.
6513 2016-11-24  Daiki Ueno  <ueno@gnu.org>
6515         srclist: sync with released gettext
6516         * config/srclist.txt: Set "release" option to the files under
6517         $GETTEXT.
6519 2016-11-24  Daiki Ueno  <ueno@gnu.org>
6521         srclist: add "release" option
6522         * config/srclist.txt: Change the format so that the first column
6523         of each line points to the top-level directory of the source
6524         archive.
6525         * config/srclist-update: Accept "release" option that checks files
6526         from the most recently tagged revision in the source archive.
6528 2016-11-21  Bruno Haible  <bruno@clisp.org>
6530         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
6531         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6532         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
6533         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
6534         Inline and remove member function 'rpl ()' of the wrapper struct.
6536 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6538         dfa: fix logic typo
6539         Problem reported by Stephane Chazelas (Bug#24973).
6540         * lib/dfa.c (using_simple_locale): Fix typo that caused some
6541         non-simple locales like fr_FR to be treated as simple.
6543 2016-11-20  Jim Meyering  <meyering@fb.com>
6545         fix test driver leaks: exclude, malloc, realloc
6546         * tests/test-exclude.c (main): Fix trivial leak.
6547         * tests/test-malloc-gnu.c (main): Likewise.
6548         * tests/test-realloc-gnu.c (main): Likewise.
6549         With these changes, grep's tests are now leak free.
6550         I.e., running them with ASAN elicits no failure:
6551           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
6552             AM_LDFLAGS='-fsanitize=address -static-libasan' check
6554 2016-11-11  Bruno Haible  <bruno@clisp.org>
6556         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
6557         * modules/libunistring: (License): Change from LGPL to
6558         "LGPLv3+ or GPLv2".
6559         * modules/libunistring-optional: Likewise.
6560         * modules/unicase/*: Likewise.
6561         * modules/uniconv/*: Likewise.
6562         * modules/unictype/*: Likewise.
6563         * modules/unigbrk/*: Likewise.
6564         * modules/unilbrk/*: Likewise.
6565         * modules/uniname/*: Likewise.
6566         * modules/uninorm/*: Likewise.
6567         * modules/unistdio/*: Likewise.
6568         * modules/unistr/*: Likewise.
6569         * modules/uniwbrk/*: Likewise.
6570         * modules/uniwidth/*: Likewise.
6572 2016-11-12  Bruno Haible  <bruno@clisp.org>
6574         Relicense some modules under LGPLv2+.
6575         Paul Eggert's approval is in
6576         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
6577         Eric Blake's approval is in
6578         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
6579         Ludovic Courtès's approval is in
6580         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
6581         * modules/isnand-nolibm (License): Change to LGPLv2+.
6582         * modules/isnanf-nolibm (License): Likewise.
6583         * modules/isnanl-nolibm (License): Likewise.
6585 2016-11-19  Bruno Haible  <bruno@clisp.org>
6587         Relicense some modules under LGPLv2+.
6588         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
6589         modules/vasnprintf.
6590         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
6591         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
6592         All other significant changes to the files in lib/ of these modules
6593         are from me.
6594         * modules/memcmp2 (License): Change to LGPLv2+.
6595         * modules/amemxfrm (License): Likewise.
6596         * modules/fpieee (License): Likewise.
6597         * modules/fpucw (License): Likewise.
6598         * modules/frexp-nolibm (License): Likewise.
6599         * modules/frexpl-nolibm (License): Likewise.
6600         * modules/printf-frexp (License): Likewise.
6601         * modules/printf-frexpl (License): Likewise.
6602         * modules/printf-safe (License): Likewise.
6603         * modules/signbit (License): Likewise.
6605 2016-11-17  Bruno Haible  <bruno@clisp.org>
6607         Enable Unicode decoder safety unconditionally.
6608         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
6609         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
6610         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6611         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6612         * lib/unistr/u8-prev.c (u8_prev): Likewise.
6613         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
6614         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
6615         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
6616         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
6617         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
6618         * lib/unistr/u16-prev.c (u16_prev): Likewise.
6619         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
6620         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
6621         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
6622         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
6623         * lib/unistr/u32-prev.c (u32_prev): Likewise.
6624         * lib/unistr/u32-next.c (u32_next): Likewise.
6625         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
6626         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
6627         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6628         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
6629         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
6630         CONFIG_UNICODE_SAFETY tests unconditionally.
6631         * tests/unistr/test-u32-mblen.c (main): Likewise.
6632         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
6633         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
6634         * tests/unistr/test-u32-next.c (main): Likewise.
6635         * tests/unistr/test-u32-strmblen.c (main): Likewise.
6636         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
6637         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
6638         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
6639         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
6640         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6641         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
6642         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
6643         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6644         * lib/unistr/u16-check.c (u16_check): Update comment.
6645         * NEWS: Mention the changes that callers should be aware of.
6647 2016-11-19  Bruno Haible  <bruno@clisp.org>
6649         relocatable-prog-wrapper: Fix breakage on Cygwin.
6650         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
6651         (Depends-on): Remove intprops.
6652         * lib/relocwrapper.c: Update dependency tree.
6653         (strerror): Undefine.
6654         * build-aux/install-reloc (func_create_wrapper): Do not compile
6655         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
6657 2016-11-19  Bruno Haible  <bruno@clisp.org>
6659         strerror: Make it compile in C++ mode.
6660         * lib/strerror.c (strerror): Ignore the return value of memcpy().
6662 2016-11-15  Pedro Alves  <palves@redhat.com>
6664         sys_time: add gnulib::timeval for C++
6665         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
6666         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
6667         timeval macro.
6669 2016-11-14  Pedro Alves  <palves@redhat.com>
6671         snippet/c++defs: fix real-floating arg functions in C++ mode
6672         Also, define isfinite, isinf, isnan, signbit in the gnulib
6673         namespace instead of in the global namespace.
6674         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
6675         (_GL_END_NAMESPACE): New.
6676         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
6677         (isfinite, isinf, isnan, signbit) [__cplusplus &&
6678         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
6679         instead of in the global namespace.
6680         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
6681         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
6682         of in the global namespace.
6684 2016-11-13  Jim Meyering  <meyering@fb.com>
6686         strftime: don't use __THROW
6687         Each use of __THROW would provoke this from gcc-7-to-be:
6689           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
6690             on unit local functions [-Wattributes]
6691           static int iso_week_days (int, int) __THROW;
6692           ^~~~~~
6693         * lib/strftime.c (__THROW): Don't define.
6694         Remove each use of __THROW.
6695         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
6696         (tm_diff, iso_week_days, __strftime_internal): Likewise.
6698 2016-11-14  Paul Eggert  <eggert@union>
6700         obstack: port to gcc -fcheck-pointer-bounds
6701         Problem found by 'make check' failure on bleeding-edge coreutils
6702         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
6703         6.2.0-5ubuntu12), configured via "./configure
6704         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
6705         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
6706         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
6707         New macro, copied from fts_.h.
6708         (struct _obstack_chunk.contents): Use it.
6710 2016-11-14  Eric Blake  <eblake@redhat.com>
6712         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
6713         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
6714         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
6716 2016-11-14  Pádraig Brady  <P@draigBrady.com>
6718         strptime: fix compile error in recent change
6719         * lib/strptime.c (__strptime_internal): Fix ported code.
6721 2016-11-11  Bruno Haible  <bruno@clisp.org>
6723         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
6724         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
6725         (func_import): Extend determination of license_incompatibilities.
6726         (func_create_testdir): Extend table of license compatibility. Handle
6727         also the licenses GPLv3+, GPL, LGPLv3+.
6729 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6731         strftime: tune %q
6732         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
6734         Merge strftime.c changes from glibc
6735         This incorporates:
6736         2007-10-16 [BZ #5184] Add tzset_called argument
6737         2008-06-13 [BZ #6612] pass reference to tzset_called around
6738         2009-10-30 Implement Burmese language locale for Myanmar
6739         2010-01-09 Add support for XPG7 testing
6740         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
6741         2015-10-20 Convert miscellaneous function definitions to prototype style
6742         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
6743         it anyway and this lessens the difference between gnulib and glibc.
6744         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
6745         (__THROW): Define if standard headers do not.
6746         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
6747         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
6748         Declare with __THROW.
6749         (__strftime_internal): Rename from strftime_case_. Add arg for
6750         whether tzset is called.  All uses changed.  Call tzset at most
6751         once.  Allow %OC, for Burmese.
6752         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
6753         Don't assume values are in range.
6755 2016-11-12  Eric Blake  <eblake@redhat.com>
6757         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
6758         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
6759         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
6760         different value.
6762 2006-11-12  Pedro Alves  <palves@redhat.com>
6764         Fix gnulib C++ namespace support and std::frexp
6765         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
6766         _GL_CXXALIASWARN.
6768 2006-11-12  Pedro Alves  <palves@redhat.com>
6770         GNULIB_NAMESPACE::func need not pull in rpl_func
6771         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6772         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
6773         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
6774         struct instead of a function pointer.
6776 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
6778         manywarnings: fix -Wno-missing-field-initializers detection
6779         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
6780         to be independent of -Wunused-variable.  I.E. ensure the latter
6781         warning doesn't occur so that detection of the former is accurate.
6783 2016-11-05  Pádraig Brady  <pbrady@fb.com>
6785         strftime,strptime: support %q to represent the quarter
6786         * lib/strftime.c (strftime_case_): Add %q case.
6787         * lib/strptime.c (__strptime_internal): Likewise.
6788         * tests/test-strftime.c (quarter_test): A new test case.
6790 2016-11-03  Eric Blake  <eblake@redhat.com>
6792         bootstrap: Fix get_version() for AIX 5.3
6793         * build-aux/bootstrap (get_version): Factor out sed script, since
6794         indented comments choke AIX 5.3 sed.
6795         Reported-by: Michael Felt <aixtools@gmail.com>
6797 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6799         intprops: port to older XL C
6800         Problem reported by Alexander Samoilov in:
6801         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
6802         http://savannah.nongnu.org/bugs/?49448
6803         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
6804         Define to 1 only for XL C 12.1 or later, since this bug
6805         occurs in XL C for AIX 6.0 but not in 12.1.
6807 2016-11-02  Pádraig Brady  <P@draigBrady.com>
6809         backupfile: initialize default suffix within the implementation
6810         * lib/backupfile.c (find_backup_file_name): Initialize the
6811         global variable here, to simplify usage, and to only call
6812         getenv() when needed.
6814 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6816         futimens: remove FIXME for old Linux kernels
6817         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
6818         this in 2012" FIXME, like that for utimensat.
6820         utimensat: remove FIXME for old Linux kernels
6821         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
6822         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
6823         this in 2012" FIXME, by assuming the file system bug is absent
6824         unless demonstrated to be present.  We no longer need to worry
6825         about Linux kernel 2.6.32 when building with newer kernels.
6827 2016-10-16  Bruno Haible  <bruno@clisp.org>
6829         qsort_r: Fix macrology for platforms that lack the function.
6830         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
6831         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
6832         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
6833         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
6834         not exist.
6835         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
6836         the function exists.
6837         * modules/qsort_r: Add comments.
6839 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6841         sys_types: fix Texinfo typos
6842         * doc/glibc-functions/gnu_dev_major.texi:
6843         * doc/glibc-functions/gnu_dev_makedev.texi:
6844         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
6846 2016-10-26  John David Anglin  <dave.anglin@bell.net>
6848         getprogname: port to HP-UX
6849         See Bug#24805.
6850         * lib/getprogname.c (getprogname) [__hpux]: Port.
6851         * tests/test-getprogname.c (STREQ) [__hpux]:
6852         Special-case for HP-UX limitations on program name length.
6854 2016-10-20  Bruno Haible  <bruno@clisp.org>
6856         Update doc about target platforms.
6857         * doc/gnulib-intro.texi (Target Platforms): Update list.
6859 2016-10-15  Bruno Haible  <bruno@clisp.org>
6861         opendir, readdir, closedir: Relicense under LGPLv2+.
6862         * modules/opendir (License): Change to LGPLv2+.
6863         * modules/readdir (License): Likewise.
6864         * modules/closedir (License): Likewise.
6866 2016-10-16  Bruno Haible  <bruno@clisp.org>
6868         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
6869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
6870         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
6871         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
6872         HAVE_DECL_STRERROR_R.
6874 2016-10-16  Bruno Haible  <bruno@clisp.org>
6876         Make the 'argp' module work without the 'error' module.
6877         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
6879 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6881         diffseq: restore TOO_EXPENSIVE heuristic
6882         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
6883         (Bug#24715).  The simplest solution is to restore the
6884         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
6885         using a higher threshold to avoid Bug#16848 on smaller files.
6886         * lib/diffseq.h (struct context): Restore member too_expensive.
6887         (struct partition): Restore members lo_minimal, hi_minimal.
6888         (diag, compareseq): Restore arg find_minimal.  All uses changed.
6889         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
6890         1993 to make 'diff' run faster (but not as well) on large inputs,
6891         but use a threshold of 4096 instead of the old 256.
6892         * lib/fstrcmp.c (strcmp_bounded):
6893         * lib/git-merge-changelog.c (compute_differences):
6894         Adjust to diffseq.h changes.
6896 2016-10-22  Bruno Haible  <bruno@clisp.org>
6898         iconv: Avoid compilation error when bootstrapping GNU libiconv.
6899         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
6900         declaration yet, define ICONV_CONST to empty.
6902 2016-10-15  Bruno Haible  <bruno@clisp.org>
6904         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
6905         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
6906         module.
6908 2016-10-16  Bruno Haible  <bruno@clisp.org>
6910         system-quote tests: Avoid compiler warning on AIX.
6911         * tests/test-system-quote-child.c (fopen): Redefine like the system's
6912         <stdio.h> does.
6914 2016-10-16  Bruno Haible  <bruno@clisp.org>
6916         Fix some "gcc -Wall" warnings.
6917         * tests/test-ffsl.c (main): Use variable x, not i.
6918         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
6919         freopen.
6920         * tests/test-sethostname1.c (main): Explicitly ignore the return value
6921         of sethostname.
6923 2016-10-16  Bruno Haible  <bruno@clisp.org>
6925         gnulib-tool: Make --create-testdir on all modules work again.
6926         * gnulib-tool (func_create_testdir): Don't include the
6927         non-recursive-gnulib-prefix-hack module.
6929 2016-10-21  Daiki Ueno  <ueno@gnu.org>
6931         libunistring: change the maintainer to 'all'
6932         * modules/gen-uni-tables, modules/libunistring:
6933         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
6934         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
6935         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
6936         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
6937         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
6938         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
6939         * modules/uniwidth/*: Change the maintainer to 'all'.
6941 2016-10-16  Bruno Haible  <bruno@clisp.org>
6943         Simplify "configure: checking ..." messages.
6944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
6945         AC_MSG_NOTICE.
6946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6948 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
6950         quotearg-tests: pacify gcc -Wall
6951         Problem reported by Bruno Haible in:
6952         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
6953         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
6954         * tests/test-quotearg.h: ... from here.
6956 2016-10-20  Pádraig Brady  <P@draigBrady.com>
6958         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
6959         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
6960         Needed on Centos <= 4.
6962 2016-10-20  Jim Meyering  <meyering@fb.com>
6964         printf.m4: fix a bug in detecting printf %j support
6965         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
6966         uintmax_t is defined in neither stdint.h nor inttypes.h.
6967         Before, this macro might have mistakenly set
6968         gl_cv_func_printf_sizes_c99=yes on such a system.
6969         Spotted by Zev Weiss.
6971 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
6973         sched: substitute HAVE_SYS_CDEFS_H too
6974         Problem reported by Tom G. Christensen in:
6975         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
6976         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
6977         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
6979 2016-10-19  Pádraig Brady  <P@draigBrady.com>
6981         quotearg: never write beyond the returned length
6982         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
6983         scan of the string when we initially encounter a single quote when
6984         shell quoting, so that if we then switch to a more concise quoting method
6985         we will not have written beyond that returned length.
6986         This is significant for sh-quote, which has separate routines
6987         to determine the length and do the actual quoting.
6988         * tests/test-quotearg.h: Reinstate the buffer bounds checking
6989         now that we never write more than the returned length.
6991 2016-10-18  Bruno Haible  <bruno@clisp.org>
6993         getprogname tests: Avoid failure in packages that use libtool.
6994         * tests/test-getprogname.c (main): Strip "lt-" prefix.
6995         Based on a patch by Jim Meyering.
6997 2016-10-16  Bruno Haible  <bruno@clisp.org>
6999         getprogname: Fix test failure on Cygwin. Comments.
7000         * lib/getprogname.h: Add comments.
7001         * lib/getprogname.c: Add comments. Fix #elif indentation.
7002         * tests/test-getprogname.c (main): On Cygwin, expect a result without
7003         ".exe" suffix.
7005 2016-10-16  Bruno Haible  <bruno@clisp.org>
7007         Make sure the libunistring detection rejects older versions with a
7008         known bug.
7009         * modules/unistr/u8-strtok (configure.ac): Bump required version.
7010         * modules/unistr/u16-strtok (configure.ac): Likewise.
7011         * modules/unistr/u32-strtok (configure.ac): Likewise.
7013 2016-10-18  Bruno Haible  <bruno@clisp.org>
7015         sh-quote, system-quote: revert regression of unit test.
7016         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
7017         * tests/test-system-quote-main.c (check_one): Likewise.
7019 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7021         quotearg: fix stale tests
7022         * tests/test-quotearg.c [locale_results]: Add the missing str7
7023         entries to the expected results.
7024         * tests/test-system-quote-main.c (check_one): Don't enforce that we
7025         don't write beyond the returned length, since that's no longer the
7026         case if we switch to a more concise quoting style.
7027         * tests/test-sh-quote.c (check_one): Likewise.
7028         (main): Adjust for the new more concise quoting style.
7029         Reported by Bruno Haible.
7031 2016-10-16  Jim Meyering  <meyering@fb.com>
7033         non-recursive-gnulib-prefix-hack: fix inconsequential typo
7034         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
7035         to "$1".  This macro is always invoked with $1 == lib.
7036         Spotted by Bruno Haible
7038 2016-10-16  Bruno Haible  <bruno@clisp.org>
7040         Fix a test crash.
7041         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
7042         fails.
7044 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7046         test-limits-h: suppress -Woverlength-strings
7047         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
7049 2016-10-15  Bruno Haible  <bruno@clisp.org>
7051         gettime, timespec, utimens: Relicense under LGPL.
7052         * modules/gettime (License): Change to LGPL.
7053         * modules/timespec (License): Likewise.
7054         * modules/utimens (License): Likewise.
7056 2016-10-14  Bruno Haible  <bruno@clisp.org>
7057             Pádraig Brady  <P@draigBrady.com>
7059         canonicalize-lgpl: Support the case path_max > INT_MAX.
7060         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
7061         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
7063 2016-10-13  Jim Meyering  <meyering@fb.com>
7065         getprogname: IBM z/OS: avoid NULL-dereference
7066         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
7067         upon strdup failure.
7069 2016-10-12  Jim Meyering  <meyering@fb.com>
7071         test-stdint: use _GL_VERIFY rather than "verify" for some tests
7072         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
7073         and an abbreviated diagnostic rather than verify with the full one,
7074         because the full-length strings would evoke warnings from gcc with
7075         -Woverlength-strings.
7077 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7079         stdint: port SIZE_MAX to glibc s390
7080         Problem reported by Eric Blake in:
7081         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
7082         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
7083         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
7084         correct type, if possible.
7086 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
7088         getprogname: port to IBM z/OS
7089         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
7091 2016-10-11  Jim Meyering  <meyering@fb.com>
7093         maint: remove stray space after "." in AC_DEFINE comment.
7094         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
7095         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7097 2016-10-05  Jim Meyering  <meyering@fb.com>
7099         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7100         * lib/long-options.c (parse_long_options): Add a break statement
7101         to avoid this new warning/failure:
7102         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7103           --create-testdir --dir=/t/x --with-tests --test long-options
7104         ../../gllib/long-options.c: In function 'parse_long_options':
7105         ../../gllib/long-options.c:66:12: error: this statement may \
7106           fall through [-Werror=implicit-fallthrough]
7107                    (*usage_func) (EXIT_SUCCESS);
7108                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7110 2016-10-05  Jim Meyering  <meyering@fb.com>
7112         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7113         Testing this module would fail when using GCC 7 like this:
7114         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7115           --dir=/tmp/x --with-tests --test utimecmp
7116         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7117         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7118           [-Werror=bool-operation]
7119                          time_t s = src_s & ~ (res == 2 * BILLION);
7120                                             ^
7121         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7122           [-Werror=bool-operation]
7123                src_s &= ~ (res == 2 * BILLION);
7124                         ^
7125         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7126         Instead, make it explicit that we intend to apply it to 0 or 1.
7128 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7130         dfa: save memory for states
7131         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
7132         states if dfa has a lot of caches.
7134 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
7136         wchar, wctype-h: fix for MinGW 3.22.2
7137         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
7138         special invocation, to fix issues with MinGW 3.22.2 wchar.h
7139         when included from <string.h>.
7140         * lib/wctype.in.h [__MINGW32__]: Add special invocation
7141         convention for MinGW 3.22.2, to solve issues with their
7142         wctype.h when included from <ctype.h>.
7144 2016-10-05  Jim Meyering  <meyering@fb.com>
7146         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7147         * lib/long-options.c (parse_long_options): Add a break statement
7148         to avoid this new warning/failure:
7149         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7150           --create-testdir --dir=/t/x --with-tests --test long-options
7151         ../../gllib/long-options.c: In function ‘parse_long_options’:
7152         ../../gllib/long-options.c:66:12: error: this statement may \
7153           fall through [-Werror=implicit-fallthrough]
7154                    (*usage_func) (EXIT_SUCCESS);
7155                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7157         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7158         Testing this module would fail when using GCC 7 like this:
7159         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7160           --dir=/tmp/x --with-tests --test utimecmp
7161         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7162         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7163           [-Werror=bool-operation]
7164                          time_t s = src_s & ~ (res == 2 * BILLION);
7165                                             ^
7166         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7167           [-Werror=bool-operation]
7168                src_s &= ~ (res == 2 * BILLION);
7169                         ^
7170         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7171         Instead, make it explicit that we intend to apply it to 0 or 1.
7173 2016-10-03  Pádraig Brady  <P@draigBrady.com>
7175         quotearg: minimize shell quoting using double quotes
7176         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
7177         quote in encountered then use double quotes (c style quoting)
7178         when possible, as it simplifies the quoting.
7179         * tests/test-quotearg-simple.c: Add test cases.
7180         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
7181         for the fact we now may write beyond the returned length.
7183 2016-10-02  Jim Meyering  <meyering@fb.com>
7185         vasnprintf.c: avoid spurious warning from GCC 7
7186         The presence of cpp directives renders this "FALLTHROUGH" comment
7187         ineffective, so does not suppress the -Wimplicit-fallthrough warning
7188         from GCC 7 built from git on 2016-10-02.
7189         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
7190         directives, so that it takes effect once again.  This is clearly
7191         not a proper change, and I will revert it once this bug is fixed:
7192         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
7194 2016-10-01  Jim Meyering  <meyering@fb.com>
7196         getprogname: correct the test for a __progname variable
7197         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
7198         and AC_LINK_IFELSE to check for a global __progname.  If found,
7199         define HAVE_VAR___PROGNAME.
7200         * lib/getprogname.c (getprogname): Reflect the new name of the
7201         feature- checked preprocessor symbol:
7202         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
7204 2016-09-28  Jim Meyering  <meyering@fb.com>
7206         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
7207         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
7208         fall-through case with a /* fallthrough */ comment.
7210         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
7211         * lib/dfa.c (dfassbuild): Mark the end of this case with a
7212         /* fallthrough */ comment.
7214         getprogname: avoid __progname vs program_invocation_short_name pitfall
7215         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
7216         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
7217         not with Fedora 24's glibc-2.23.1-10.
7218         * lib/getprogname.c (__progname): Move this declaration down...
7219         (getprogname): ... into the #elif block where used, and make it
7220         explicitly "extern".
7222         getprogname: port to OpenBSD 5.1
7223         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
7224         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
7225         * modules/getprogname (configure.ac): Move most of this code...
7226         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
7227         increment serial number, and add a test for __progname.
7228         https://bugs.gnu.org/24562
7229         Reported by Nelson H. F. Beebe.
7231 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7233         sched: port to GCC 6.2.1 on macOS Sierra
7234         Problem reported by Denis Davydov in:
7235         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
7236         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
7237         Include <sys/cdefs.h> before <sched.h>.
7238         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
7239         so that we needn’t worry about the sched.h include bug here.
7240         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
7241         and include it before <sched.h> if it exists, when
7242         checking for <sched.h>.
7244         tests/init.sh: port Alpine fix to AIX 7.1
7245         * tests/init.sh (compare_): When attempting to use diff -U3,
7246         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
7247         diff -u not outputting a space after leading '+', as the users
7248         of 'compare' should not be that picky about its output format.
7249         In the AIX 7.1 case, return with diff exit status (or with 2 if
7250         trouble), instead of some random nonzero exit status.
7251         * tests/test-init.sh (test_compare): Remove space after leading
7252         '+', so that AIX 7.1 'diff' passes the test.
7254 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7256         nl_langinfo: pacify GCC
7257         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
7258         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
7260         stdint: also set GL_GENERATE_LIMITS_H
7261         Problem reported by Jim Meyering in:
7262         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
7263         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
7265         limits-h, stdint: Don't assume extensions, fix typo
7266         * m4/limits-h.m4 (gl_LIMITS_H):
7267         * m4/stdint.m4 (gl_STDINT_H):
7268         Don't assume AC_USE_SYSTEM_EXTENSIONS.
7269         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
7270         reported by Jim Meyering in:
7271         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
7273 2016-09-21  Jim Meyering  <meyering@fb.com>
7275         getprogname: port to AIX
7276         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
7277         and strdup to obtain a short program name string.  Using code from
7278         Bruno Haible and an idea from Bastien ROUCARIÈS, in
7279         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7280         Assaf Gordon reported that this new file would fail to compile on
7281         AIX-7.1 32bit.
7283 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7285         extensions: fix typo in comment
7286         * m4/extensions.m4: Sync from Autoconf master.
7288         stdint: support new _WIDTH macros
7289         * doc/posix-headers/stdint.texi: Document this.
7290         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
7291         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
7292         support for INTMAX_WIDTH, etc. as well as for support for just C99.
7293         * modules/stdint (Depends-on): Add limits-h.
7294         (Makefile.am): Substitute HAVE_C99_STDINT_H.
7295         * modules/stdint-tests (Depends-on): Add extensions, so that
7296         INTMAX_MAX etc. are defined.
7297         * tests/test-stdint.c: Verify the new macros.
7299         limits-h: new module
7300         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
7301         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
7302         * doc/posix-headers/limits.texi: Document new module.
7303         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
7304         * modules/limit-h-tests, tests/test-limits-h.c: New files.
7306         stdio: don't redefine __USE_MINGW_ANSI_STDIO
7307         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
7308         if it is already defined.  Apparently GNU Emacs relies on this.  See:
7309         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
7311 2016-09-15  Eric Blake  <eblake@redhat.com>
7313         sys_types: avoid glibc 2.25 warnings about major()
7314         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
7315         older autoconf.
7316         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
7317         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
7318         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
7319         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
7321         mountlist: include sysmacros.h for glibc
7322         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
7323         AC_HEADER_MAJOR.
7324         * lib/mountlist.c (includes): Use correct headers.
7326 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
7328         extensions: port to more ISO C TSes
7329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
7330         master, to add support for more recent ISO C TRs and TSes.
7332 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7334         intprops: new macro TYPE_WIDTH
7335         * lib/intprops.h (TYPE_WIDTH): New macro.
7336         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
7337         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
7338         * lib/parse-datetime.y (parse_datetime2):
7339         Use it.
7341         extensions: port to recent ISO C TRs
7342         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7343         Sync from Autoconf master, to add support for recent ISO C TRs.
7344         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
7345         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
7346         the MinGW option is not an extension.
7348 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
7350         dfa: port to Solaris 9
7351         Problems reported by Tom G. Christensen in:
7352         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
7353         * modules/dfa (Depends-on): Add isblank.
7354         * modules/dfa-tests (dfa_match_aux_LDADD):
7355         Rename from test_stat_LDADD, to fix typo.
7356         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
7358 2016-09-10  Jim Meyering  <meyering@fb.com>
7360         strverscmp: avoid link failure on OS X
7361         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
7362         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
7364 2016-08-16  Jim Meyering  <meyering@fb.com>
7366         dfa: new module, importing grep's DFA matcher
7367         Since grep's DFA matcher is now being used by two gnulib-enabled
7368         projects, grep and sed, it makes sense to version-control its
7369         sources and unit tests in one place: here.
7370         * modules/dfa: New module.
7371         * modules/dfa-tests: New file.
7372         * lib/dfa.c: New file, from grep.
7373         * lib/dfa.h: Likewise.
7374         * lib/localeinfo.c: Likewise.
7375         * lib/localeinfo.h: Likewise.
7376         * tests/dfa-match-aux.c: Likewise.
7377         * tests/dfa-invalid-char-class.sh: Likewise.
7378         * tests/dfa-match.sh: Likewise, with minor changes.
7379         * MODULES.html.sh (Misc): Add "dfa" to this list.
7381 2016-09-09  Jim Meyering  <meyering@fb.com>
7383         getprogname-tests: don't depend on assert-h
7384         * modules/getprogname-tests (Depends-on): Remove assert-h.
7385         It was not needed, and in fact would cause build failure for
7386         coreutils on some systems.  Reported by Assaf Gordon in https:
7387         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
7389 2016-09-07  Jim Meyering  <meyering@fb.com>
7391         getprogname-tests: work also when EXEEXT is nonempty
7392         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
7393         * tests/test-getprogname.c (main): Use it.
7394         Suggested by Gisle Vanem.
7396 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
7398         getprogname: fix errors in previous change
7399         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
7400         s/program_invocation_name/base/
7401         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
7403 2016-09-08  Pádraig Brady  <P@draigBrady.com>
7405         parse-datetime: restrict debug output to input string
7406         * lib/parse-datetime.y (parse_datetime2): If we parse
7407         all of the input but determine it's invalid, ensure
7408         we don't output the now invalid input pointer.
7409         This issue was seen with `date -d 'now +1'`.
7411 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7413         flexmember: new macro FLEXALIGNOF
7414         * lib/flexmember.h: Include <stddef.h>, for offsetof.
7415         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
7416         this macro.  Update comments.
7418 2016-09-07  Jim Meyering  <meyering@fb.com>
7420         getprogname: port to systems with __argv (mingw, msvc)
7421         * lib/getprogname.c (getprogname): Include "dirname.h" and use
7422         last_component: more general than open coding it with hard-coded "/".
7423         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
7424         * modules/getprogname (Depends-on): Add dirname-lgpl.
7425         (configure.ac): Check for __argv in <stdlib.h>.
7426         * modules/getprogname-tests: New file.
7427         * tests/test-getprogname.c: New file.
7428         Suggested by Gisle Vanem in
7429         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
7431 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7433         flexmember: port better to GCC + valgrind
7434         With a char[] flexible array member in a struct with nontrivial
7435         alignment, GCC-generated code can access past the end of the
7436         array, because GCC assumes there are padding bytes to get the
7437         struct aligned.  So the common idiom of malloc (offsetof (struct
7438         s, m), n) does not properly allocate an n-byte trailing member, as
7439         malloc’s argument should be the next multiple of alignof (struct s).
7440         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
7441         Although C11 apparently permits this GCC optimization (i.e., there
7442         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
7443         See the thread containing:
7444         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
7445         * lib/flexmember.h: New file.
7446         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
7447         * lib/localename.c, lib/time_rz.c:
7448         Include flexmember.h.
7449         * lib/fnmatch_loop.c (struct patternlist):
7450         * lib/localename.c (struct hash_node):
7451         Use FLEXIBLE_ARRAY_MEMBER.
7452         * lib/fnmatch_loop.c (EXT):
7453         * lib/fts.c (fts_alloc):
7454         * lib/glob.c (glob_in_dir):
7455         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
7456         * lib/localename.c (gl_lock_define_initialized):
7457         * lib/time_rz.c (tzalloc):
7458         Use FLEXSIZEOF instead of offsetof.
7459         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7460         Check that the size of the struct can be taken.
7461         * modules/flexmember (Files): Add lib/flexmember.h.
7462         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
7463         Add flexmember.
7465 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7467         getprogname: port to Solaris 10
7468         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
7469         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
7470         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
7472         stdalign: correct mistake in alignof doc
7473         Problem reported by Joseph Myers in:
7474         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
7475         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
7476         alignof(S) where S is a structure containing a flexible array
7477         member.  The Gnulib substitute does not support this, but C11 does.
7479 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7481         main.mk: remove sc_program_name, since there is no more need to
7482         use set_program_name in tools (getprogname is enough for most
7483         of the cases).
7484         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
7485         * top/maint.mk (sc_program_name): Remove.
7487 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7489         Port tests away from progname, since modules that need the
7490         program name already depend on getprogname.
7491         * modules/acl-tests (Depends-on): Remove progname.
7492         * modules/argmatch (Depends-on): Likewise.
7493         * modules/argmatch-tests (Depends-on): Likewise.
7494         * modules/argp-tests (Depends-on): Likewise.
7495         * modules/argp-version-etc-tests (Depends-on): Likewise.
7496         * modules/array-list-tests (Depends-on): Likewise.
7497         * modules/array-oset-tests (Depends-on): Likewise.
7498         * modules/avltree-list-tests (Depends-on): Likewise.
7499         * modules/avltree-oset-tests (Depends-on): Likewise.
7500         * modules/avltreehash-list-tests (Depends-on): Likewise.
7501         * modules/carray-list-tests (Depends-on): Likewise.
7502         * modules/copy-file-tests (Depends-on): Likewise.
7503         * modules/exclude-tests (Depends-on): Likewise.
7504         * modules/fchownat-tests (Depends-on): Likewise.
7505         * modules/fdopendir-tests (Depends-on): Likewise.
7506         * modules/filenamecat-tests (Depends-on): Likewise.
7507         * modules/fstatat-tests (Depends-on): Likewise.
7508         * modules/fstrcmp-tests (Depends-on): Likewise.
7509         * modules/linked-list-tests (Depends-on): Likewise.
7510         * modules/linkedhash-list-tests (Depends-on): Likewise.
7511         * modules/mkdirat-tests (Depends-on): Likewise.
7512         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
7513         * modules/nonblocking-socket-tests (Depends-on): Likewise.
7514         * modules/obstack-printf-tests (Depends-on): Likewise.
7515         * modules/openat-tests (Depends-on): Likewise.
7516         * modules/parse-datetime-tests (Depends-on): Likewise.
7517         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
7518         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
7519         * modules/quotearg-simple-tests (Depends-on): Likewise.
7520         * modules/quotearg-tests (Depends-on): Likewise.
7521         * modules/rbtree-list-tests (Depends-on): Likewise.
7522         * modules/rbtree-oset-tests (Depends-on): Likewise.
7523         * modules/rbtreehash-list-tests (Depends-on): Likewise.
7524         * modules/spawn-pipe-tests (Depends-on): Likewise.
7525         * modules/system-quote-tests (Depends-on): Likewise.
7526         * modules/uniname/uniname-tests (Depends-on): Likewise.
7527         * modules/uninorm/nfc-tests (Depends-on): Likewise.
7528         * modules/uninorm/nfd-tests (Depends-on): Likewise.
7529         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
7530         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
7531         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
7532         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
7533         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
7534         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
7535         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
7536         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
7537         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
7538         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
7539         * modules/unlinkat-tests (Depends-on): Likewise.
7540         * modules/version-etc-tests (Depends-on): Likewise.
7541         * modules/xalloc-die-tests (Depends-on): Likewise.
7542         * modules/xmemdup0-tests (Depends-on): Likewise.
7543         * modules/xprintf-posix-tests (Depends-on): Likewise.
7544         * modules/xvasprintf-tests (Depends-on): Likewise.
7545         * tests/test-argmatch.c: Do not include progname.h.
7546         (main) Stop calling set_program_name.
7547         * tests/test-argp-version-etc.c: Likewise.
7548         * tests/test-argp.c: Likewise.
7549         * tests/test-argv-iter.c: Likewise.
7550         * tests/test-array_list.c: Likewise.
7551         * tests/test-array_oset.c: Likewise.
7552         * tests/test-avltree_list.c: Likewise.
7553         * tests/test-avltree_oset.c: Likewise.
7554         * tests/test-avltreehash_list.c: Likewise.
7555         * tests/test-carray_list.c: Likewise.
7556         * tests/test-copy-acl.c: Likewise.
7557         * tests/test-copy-file.c: Likewise.
7558         * tests/test-exclude.c: Likewise.
7559         * tests/test-fchownat.c: Likewise.
7560         * tests/test-fdopendir.c: Likewise.
7561         * tests/test-filenamecat.c: Likewise.
7562         * tests/test-fstatat.c: Likewise.
7563         * tests/test-fstrcmp.c: Likewise.
7564         * tests/test-linked_list.c: Likewise.
7565         * tests/test-linkedhash_list.c: Likewise.
7566         * tests/test-mkdirat.c: Likewise.
7567         * tests/test-nonblocking-pipe-main.c: Likewise.
7568         * tests/test-nonblocking-socket-main.c: Likewise.
7569         * tests/test-obstack-printf.c: Likewise.
7570         * tests/test-openat.c: Likewise.
7571         * tests/test-parse-datetime.c: Likewise.
7572         * tests/test-pipe-filter-gi1.c: Likewise.
7573         * tests/test-pipe-filter-gi2-main.c: Likewise.
7574         * tests/test-pipe-filter-ii1.c: Likewise.
7575         * tests/test-pipe-filter-ii2-main.c: Likewise.
7576         * tests/test-quotearg-simple.c: Likewise.
7577         * tests/test-quotearg.c: Likewise.
7578         * tests/test-rbtree_list.c: Likewise.
7579         * tests/test-rbtree_oset.c: Likewise.
7580         * tests/test-rbtreehash_list.c: Likewise.
7581         * tests/test-sameacls.c: Likewise.
7582         * tests/test-set-mode-acl.c: Likewise.
7583         * tests/test-spawn-pipe-main.c: Likewise.
7584         * tests/test-system-quote-main.c: Likewise.
7585         * tests/test-unlinkat.c: Likewise.
7586         * tests/test-version-etc.c: Likewise.
7587         * tests/test-xalloc-die.c: Likewise.
7588         * tests/test-xfprintf-posix.c: Likewise.
7589         * tests/test-xmemdup0.c: Likewise.
7590         * tests/test-xprintf-posix.c: Likewise.
7591         * tests/test-xvasprintf.c: Likewise.
7592         * tests/uniname/test-uninames.c: Likewise.
7593         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7594         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7595         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7596         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7597         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7598         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7599         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7600         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7601         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7602         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7603         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7604         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7605         * tests/test-c-stack.c: (program_name): Do not define.
7606         (main): Do not set program_name.
7607         * tests/test-closein.c: Likewise.
7608         * tests/test-xstrtol.c: Likewise.
7609         * tests/test-yesno.c: Likewise.
7611 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7613         Port modules to use getprogname explicitly, instead of requiring
7614         progname to be used (or program_name to be provided).
7615         * lib/argmatch.c: Do not include progname.h.
7616         [TEST] (program_name): Do not define.
7617         [TEST] (main): Call getprogname instead of using program_name.
7618         * lib/c-stack.c: Do not include progname.h.
7619         (program_name): Do not define.
7620         (die): Call getprogname instead of using program_name.
7621         * lib/chdir-long.c: Do not include progname.h.
7622         [TEST_CHDIR] (main): Do not set program_name.
7623         * lib/error.c [!_LIBC]: Include progname.h.
7624         [!_LIBC] (program_name): Define using getprogname.
7625         * lib/euidaccess.c: Do not include progname.h.
7626         [TEST] (main): Do not set program_name.
7627         * lib/git-merge-changelog.c: Include getprogname.h instead of
7628         progname.h.
7629         (usage): Call getprogname instead of using program_name.
7630         (main): Likewise.  Stop calling set_program_name.
7631         * lib/group-member.c: Do not include progname.h.
7632         [TEST] (main): Do not set program_name.
7633         * modules/argmatch (Depends-on): Add getprogname.
7634         * modules/c-stack (Depends-on): Likewise.
7635         * modules/error (Depends-on): Likewise.
7636         * modules/git-merge-changelog (Depends-on): Likewise.
7637         Also remove progname.
7639 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
7641         * NEWS: Document the deprecation of the 'progname' module.
7643 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7645         getprogname: new module
7646         This provides a LGPL module for getting the name of the current
7647         program, using the same API found on *BSD systems.
7648         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
7649         * modules/getprogname: New files.
7650         * MODULES.html.sh (Misc): Add getprogname.
7652 2016-09-02  Jim Meyering  <meyering@fb.com>
7654         manywarnings: add -fno-common
7655         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
7656         to the list.  Quoting the manual, "Compiling with -fno-common is
7657         useful on targets for which it provides better performance, or if
7658         you wish to verify that the program will work on other systems that
7659         always treat uninitialized variable declarations this way [putting
7660         it in the data section]."  If diffutils had been using this sooner,
7661         it would have prevented this duplicate declaration issue:
7662         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
7664 2016-08-31  Simon Josefsson  <simon@josefsson.org>
7666         parse-datetime: Fix typo.
7667         * lib/parse-datetime.y (parse_datetime2): Fix typo.
7669 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7671         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
7672         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
7673         GCC 5 and 6 that have __builtin_sub_overflow but not
7674         __builtin_sub_overflow_p.  With the recent changes, these
7675         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
7676         implementation than with INT_SUBTRACT_OVERFLOW implementation,
7677         since the former needs just one runtime comparison whereas the
7678         latter needs two.
7680         strverscmp: sync with glibc
7681         Although this doesn't exactly synchronize with glibc
7682         byte-for-byte, it makes the code behave the same as glibc.
7683         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
7684         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
7685         difference shouldn't matter in practical use.  All uses changed
7686         back to isdigit.
7687         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
7688         (next_state): Now unsigned char array; redo elements.
7689         (result_type): Now signed char array; redo elements.
7690         (__strverscmp): Fix glibc bug 9913 by using new states.
7691         * tests/test-strverscmp.c (main): Test glibc bug 9913.
7693 2016-08-29  Jim Meyering  <meyering@fb.com>
7695         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
7696         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
7697         similarly to how it was done to intprops.h.
7699 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
7701         intprops.h: port recent changes to GCC 6.2.0
7702         * lib/intprops.h (__has_builtin): Move earlier.
7703         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
7704         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
7705         the last argument can be null.  All uses changed.
7706         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
7707         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7708         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
7709         and it's not clear which GCC versions it works for.
7710         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
7711         its definiens.
7713         intprops.h: use __typeof__ with GCC 7
7714         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
7715         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
7716         This avoids computing the expression's value (which might overflow!).
7718 2016-08-29  Jim Meyering  <meyering@fb.com>
7720         intprops.h, xalloc-oversized.h: work with gcc 7
7721         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
7722         __builtin_mul_overflow each accept a NULL pointer as the third
7723         argument.  However in gcc 7, that is no longer accepted.
7724         Instead, one must use the "_p"-suffixed names, with which, the
7725         third parameter is no longer a pointer.
7726         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
7727         the definition: not true for gcc 7 and subsequent.
7728         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
7729         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7730         Provide new definitions for gcc 7 and subsequent.
7731         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
7732         that works with gcc-7.
7734         intprops.h: fix missing-backslash problems
7735         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
7736         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
7738 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7740         intprops: fix paren typo on old platforms
7741         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
7742         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
7743         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
7744         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
7745         && !defined LLONG_MAX]:
7746         Remove stray paren.
7748         intprops: port to OpenVMS
7749         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
7750         * doc/posix-headers/limits.texi: Document the problem.
7751         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
7752         Define if not already defined.
7754 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
7756         parse-datetime: improve debug implementation
7757         Follow-up to commit 12ad79069 ("add optional debug printing").
7758         Improve parse-datetime's debug implementation: remove macros,
7759         replace global debug flag variable with a function parameter,
7760         use nstrftime for formatting.
7761         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
7762         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
7763         (parse_datetime2): New function, accepts 'flags' parameter, supporting
7764         debug flag. Existing interface 'parse_datetime' left unmodified.
7765         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
7766         (struct parser_control): add 'parse_datetime_debug' member variable.
7767         (parse_datetime): Call new function 'parse_datetime2' without debug.
7768         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
7769         pc.parse_datetime_debug variable as needed.
7770         (to_year): Accept new flags parameter, instead of using global variable.
7771         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
7772         use struct 'debug' variable instead of global variable.
7773         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
7774         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
7775         correspnding functions directly instead of using macros.
7776         * modules/parse-datetime: Add gnulib's strftime module.
7778 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
7780         c-strcase-tests: port to EBCDIC
7781         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
7782         which assume ASCII encoding semantics to run only in ASCII
7783         mode, as they fail in EBCDIC.
7785         sigpipe-tests: fix typo
7786         * tests/test-sigpipe.sh: C, not B.
7788 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7790         canonicalize-lgpl: fix errno after malloca fails
7791         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
7792         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
7793         * lib/canonicalize-lgpl.c (__realpath):
7794         Don't assume malloca sets errno on failure.
7796 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7798         strtod: port errno handling to z/OS
7799         * lib/strtod.c (strtod): Save and restore errno more reliably.
7801 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7803         strtod: port to z/OS
7804         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7805         implementation.
7807 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7809         strtod: port to z/OS
7810         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7811         implementation.
7813         regex, string: rename to avoid '__string'
7814         * lib/regex.h, lib/string.in.h: Do not use the identifier
7815         '__string', as it is effectively reserved by string.h on z/OS.
7817         c-strcase-tests, wcwidth-tests: depend on c-ctype
7818         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
7819         Add c-ctype.
7821 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7823         thread: port to z/OS
7824         * lib/glthread/thread.c, lib/glthread/thread.h:
7825         Rudimentary gl_thread support for z/OS.
7827         maint: port tests to z/OS errno behavior
7828         * tests/test-nonblocking-reader.h:
7829         * tests/test-nonblocking-writer.h:
7830         Accommodate z/OS errno code preferences. (I believe this should
7831         still be within spec; IBM is good at following the letter if not
7832         the spirit of such things.)
7834         maint: preprocessor changes to support z/OS
7835         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
7836         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
7837         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
7838         * tests/test-nonblocking-pipe.h:
7840         fclose, strstr-simple, wchar: port to z/OS
7841         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
7842         Changes to the Autoconf M4 code to support z/OS.  Note that
7843         fclose() is broken in a different way on z/OS than it is on other
7844         systems, thus the special-case in fclose.m4.
7846         iconv_open-utf-tests, iconv-tests: port to EBCDIC
7847         * tests/test-iconv-utf.c, tests/test-iconv.c:
7848         Added appropriately conditional #pragmas so that the test strings
7849         in test-iconv-utf.c are correctly interpreted in ASCII instead of
7850         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
7851         addressed in a more portable way by simply rewriting all the ASCII
7852         literal characters as octal escapes, but then you would lose the
7853         partial readability that the strings have now. Also, iconv_open()
7854         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
7856         c-strcase-tests, wcwidth-tests: port to EBCDIC
7857         * tests/test-c-strcasecmp.c: Include c-ctype.h.
7858         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
7859         * tests/test-wcwidth.c: Likewise.
7861 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7863         stdbool: don't require _Bool for C++
7864         Problem reported by David Seifert in:
7865         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
7866         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
7867         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
7868         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
7869         stricter about checking that bool and _Bool are compatible in C.
7871 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
7873         getdelim: remove dependency on realloc-posix
7874         * lib/canonicalize-lgpl.c (alloc_failed)
7875         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
7876         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
7877         Use __set_errno where needed, for consistency.
7878         * lib/getdelim.c (alloc_failed): New function.
7879         (getdelim): Use it.
7881 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
7883         parse-datetime: add optional debug printing
7884         Print parsing information, warnings, and errors to stderr.
7885         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
7886         * lib/parse-datetime.y:
7887         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
7888         (PROGRESS*): Same as DEBUG, for progress reporting.
7889         (dbg_printf): Print message to stderr, with 'date' prefix.
7890         (struct parser_control): Add 'debug_*_seen' variables.
7891         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
7892         (debug_print_current_time, debug_print_relateive_time): Prints the
7893         current/relative date/time value of parser_control.
7894         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
7895         (to_year): Warn about 2-digit year parsing.
7896         (yylex):   Warn about unrecognized words.
7897         (get_effective_timezone): Returns current timezone in minutes.
7898         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
7899         clearly and unambigiously as possible.
7900         (debug_mktime_not_ok): Print detailed information about failed
7901         date/time values.
7902         (parse_datetime): Add DEBUG messages for failures, warnings. Add
7903         PROGRESS messages for status messages.
7904         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
7906 2016-08-06  Jim Meyering  <meyering@fb.com>
7908         tests/init.sh: exclude dash with bad "local" semantics
7909         * tests/init.sh (gl_shell_test_script_): Add a function to
7910         eliminate a shell like "dash" (unlike bash, zsh) that has
7911         surprising/risky "local var='...'" semantics.  Inspired by
7912         the problem and discussion in https://bugs.gnu.org/24116#11.
7914 2016-08-02  Ján Tomko  <jtomko@redhat.com>
7916         maint.mk: expand the prohibit_doubled_word regex
7917         This check has a static list of words that are checked for
7918         repetitions.  Expand it before running the perl script to
7919         avoid using expensive captures.  This decreases the cost
7920         for libvirt from 1.66s to 0.66s.
7921         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
7922         (sc_prohibit_doubled_word): Use it.
7924 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7926         useless-if-before-free: skip non-matching lines early
7927         * build-aux/useless-if-before-free: First match each line with the
7928         simple/quick /\bif\b/ and reject if there is no match. This often
7929         saves the cost of the much more involved regular expression.
7930         For libvirt, this decreases the cost from 1.44s to 1.02s.
7932 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7934         maint.mk: speed up sc_po_check
7935         sc_po_check would skip files based on their names, or on the
7936         existence of files with derived names. Rewrite it to use perl
7937         instead of shell to make the check faster.
7938         * top/maint.mk (perl_translatable_files_list_): Define.
7939         (sc_po_check): Use it.
7941 2016-07-30  Ján Tomko  <jtomko@redhat.com>
7943         maint.mk: speed up require_config_h_first
7944         Instead of spawning three processes per file,
7945         rewrite the check in perl and run it once for all the files.
7946         * top/maint.mk (perl_config_h_first_): Define.
7947         (sc_require_config_h_first): Use it in place of shell code.
7949 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7951         maint.mk: speed up sc_po_check
7952         sc_po_check would skip files based on their names, or on the
7953         existence of files with derived names. Rewrite it to use perl
7954         instead of shell to make the check faster.
7955         * top/maint.mk (perl_translatable_files_list_): Define.
7956         (sc_po_check): Use it.
7958 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7960         obstack: pacify GCC 6 with -Wnull-dereference
7961         Problem reported by Assaf Gordon in:
7962         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
7963         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
7964         Declare with __attribute_noreturn__.
7965         * lib/obstack.h (__attribute_noreturn__): New macro.
7967 2016-07-13  Eric Blake  <eblake@redhat.com>
7969         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
7970         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
7971         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
7973 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7975         doc: mention glibc SSIZE_MAX buglet
7976         * doc/posix-headers/limits.texi (limits.h): Document the bug.
7978 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
7980         printf-posix: Fix mingw build
7981         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
7982         expression for detecting C symbol prefixes but forgot to qoute square
7983         brackets in the command line arguments for grep.  That way when
7984         building with mingw the condition was false although it ought to be
7985         true instead.  In particular scenarios this led to the following
7986         compile error:
7988             Cannot export rpl_printf: symbol not found
7989             Cannot export rpl_scanf: symbol not found
7990             collect2: error: ld returned 1 exit status
7992         Fix this by properly quoting square brackets.
7994 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7996         mktime: call tzset as per POSIX
7997         Problem reported by Ludovic Courtès in:
7998         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
7999         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
8000         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
8002 2016-06-26  Pádraig Brady  <P@draigBrady.com>
8004         fts: handle readdir() errors
8005         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
8006         but also upon error when it will also set errno.  Therefore
8007         flag the error case from readdir().  We treat the case where
8008         no items are read the same as if the dir can't be accessed,
8009         i.e. by setting fts_errno to FTS_DNR.
8011 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8013         intprops: port better to GCC 7
8014         GCC 7 __builtin_add_overflow supports a new usage form, where the
8015         last argument is a null pointer, and which merely returns 1 if an
8016         overflow would occur.  This is a constant expression if all
8017         arguments are constants, and should generate faster code when code
8018         needs to be generated.
8019         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
8020         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8021         Use builtin operations if available.
8022         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
8023         operations are available, as it's almost surely faster.
8025 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8027         intprops-test: port to GCC 6
8028         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
8029         since the bug is not fixed in GCC 6.1.
8031 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8033         xalloc-oversized: port to GCC 7; fewer warnings
8034         GCC 7 will have a better way to deal with integer overflow.
8035         Plus, fix a warnings problem reported by Tim Ruehsen in:
8036         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
8037         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
8038         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
8039         For GCC 5, use __xalloc_oversized if both args are constants,
8040         or if pedantic.
8042 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8044         regex: port to Sun C
8045         Reported by Daiki Ueno.
8046         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
8047         __restrict, in prototype.  This fixes a problem I introduced in
8048         the 2016-02-19 merge from glibc.
8050 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8052         stdbool: Restore __bool_true_false_are_defined check
8053         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
8054         __bool_true_false_are_defined is still defined, even with C++11.
8056 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
8058         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
8059         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
8061 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8063         Use GCC_LINT, not lint
8064         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
8065         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
8066         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
8067         Document problem with lint and _Noreturn.
8068         * lib/diffseq.h (IF_LINT, IF_LINT2):
8069         * lib/fts.c (sccsid):
8070         * lib/getndelim2.c (IF_LINT):
8071         * lib/gl_anylinked_list2.h (gl_linked_iterator)
8072         (gl_linked_iterator_from_to):
8073         * lib/gl_anytree_list2.h (gl_tree_iterator)
8074         (gl_tree_iterator_from_to):
8075         * lib/gl_anytree_oset.h (gl_tree_iterator):
8076         * lib/gl_array_list.c (gl_array_iterator)
8077         (gl_array_iterator_from_to):
8078         * lib/gl_array_oset.c (gl_array_iterator):
8079         * lib/gl_carray_list.c (gl_carray_iterator)
8080         (gl_carray_iterator_from_to):
8081         * lib/idcache.c:
8082         * lib/inet_ntop.c (IF_LINT):
8083         * lib/regcomp.c (build_charclass_op, create_tree):
8084         * lib/regex_internal.c (re_acquire_state)
8085         (re_acquire_state_context):
8086         * lib/trigl.c (rcsid):
8087         * lib/trim.c (IF_LINT):
8088         * lib/vasnprintf.c (IF_LINT):
8089         * lib/verify.h (assume):
8090         Treat GCC_LINT like lint.
8092 2016-05-29  Bruno Haible  <bruno@clisp.org>
8094         secure_getenv: Port to many more platforms.
8095         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
8096         functions.
8097         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
8098         for non-BSD Unix platforms and for native Windows.
8099         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
8100         Prompted by a request from Nikos Mavrogiannopoulos.
8102 2016-05-27  Eric Blake  <eblake@redhat.com>
8104         canonicalize: Fix broken probe for realpath.
8105         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
8106         in logic introduced in 54615b95.
8108 2016-05-26  Eric Blake  <eblake@redhat.com>
8110         unsetenv: relax to LGPLv2+
8111         * modules/unsetenv (License): Match setenv license.
8113 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
8115         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
8116         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
8117         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
8118         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
8119         (commonarg, dirargs, dirs, infoarg, generate_ascii)
8120         (generate_html, generate_info, generate_tex, outdir)
8121         (source_extra, split, srcfile, texarg): Move above 'version'.
8122         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
8124 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8126         manywarnings: update for GCC 6.1
8127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
8128         Add GCC 6.1 options that apply to C.
8129         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
8130         do not apply to C, are obsolescent, etc.
8132 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
8134         glob: size_t overflow checks
8135         * lib/glob.c (__has_builtin): New macro.
8136         (size_add_wrapv, glob_use_alloca): New static functions.
8137         (glob, glob_in_dir): Check for size_t overflow in several places,
8138         and fix some size_t checks that were not quite right.
8140         glob: don't assume INT_MAX < SIZE_MAX
8141         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
8142         latter is not portable to (probably theoretical) hosts where
8143         SIZE_MAX <= INT_MAX.
8145 2016-05-09  Bruno Haible  <bruno@clisp.org>
8147         Fix undefined behaviour in gettext.h.
8148         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
8149         pointer's value after the storage it points to has been freed.
8150         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
8151         Spotted by Coverity.
8153 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8155         git-version-gen: avoid undefined shift
8156         Problem reported by Mosè Giordano in:
8157         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
8158         * build-aux/git-version-gen: Avoid undefined behavior if invoked
8159         with --prefix or --fallback but without a later argument.  While
8160         we're at it, omit unnecessary quotes.
8162 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
8164         glob: merge glibc changes into lib/glob.c
8165         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
8166         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
8167         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
8168           struct dirent [BZ #19779]
8169         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
8170           callback gl_readdir
8171         2015-10-20 Convert miscellaneous function definitions to prototype style
8172         2015-10-20 Convert 113 more function definitions to prototype style
8173           (files with assertions)
8174         2015-06-12 Fix getlogin_r namespace (bug 18527).
8175         2014-02-10 Use glibc_likely instead __builtin_expect.
8176         2013-10-20 When glob pattern contains a trailing slash match only
8177           directories. Fixes bug 10278.
8178         2013-09-04 glob: silence -Wattribute warnings
8179         2013-06-07 Avoid use of "register" as optimization hint.
8180         2012-09-25 Use size_t instead of int for internal variables in glob
8181           (bug 14621)
8182         2011-07-20 Check for overflows in expressions
8183         2011-05-28 Remove unused variable
8184         2011-05-22 Add a few more alloca size checks
8185         2010-03-27 Whitespace fixes
8186         2010-03-27 Fix one more issue with the glob patch
8187         2010-03-24 Fix glob with empty pattern
8188         2008-05-27 Remove useless more "if" tests before "free"
8189         * modules/glob (Depends-on): Add stdint.
8191 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8193         mktime: port to stricter signed overflow checking
8194         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
8195         (long_int): Require width for INT_MAX * 3 * (seconds per year),
8196         instead of merely for INT_MAX * 2.  In practice platforms that
8197         do the latter also do the former.
8198         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
8199         (shr): New static function, replacing SHR.  All uses changed.
8200         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
8201         and TIME_T_MAX.  All uses changed.
8202         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8203         Use long_int, not time_t.
8204         (long_int_avg): New static function, replacing time_t_avg.
8205         All uses changed.  Round toward positive infinity, as that
8206         generates slightly better code.
8207         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
8208         by INT_ADD_WRAPV.
8209         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
8210         (convert_time): New static function.
8211         (ranged_convert): Use it
8212         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
8213         Use simpler test for loop exit.
8214         (__mktime_internal): Store negative of guessed offset, to simplify
8215         overflow checking.  Remove no-longer-needed test for small time_t
8216         overflows.
8218         mktime: speed up DEBUG_MKTIME benchmarks
8219         Call tzset just once, at the start, rather than for every test
8220         case.  This lets us measure the CPU cost of mktime as opposed to
8221         that of tzset.  This is relevant when TZ is not set and glibc is
8222         being used.  This speeds up tests by a factor of 40 on my Fedora
8223         23 x86-64 platform.
8224         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
8225         to call tzset and as a sanity check.  Later on, use localtime_r
8226         instead of localtime.
8228         mktime: resurrect DEBUG_MKTIME testing
8229         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
8230         Include <string.h>, for strcmp.
8232         mktime: simplify DEBUG_MKTIME
8233         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
8234         Simplify later usage accordingly.
8236         Port mktime_internal offset to unsigned time_t
8237         This avoids some assumptions about wraparound arithmetic on
8238         signed integer overflow.
8239         * lib/mktime-internal.h (mktime_offset_t): New type.
8240         (mktime_internal): Use it in decl.
8241         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
8243         * lib/mktime.c (__mktime_internal, localtime_offset):
8244         * lib/timegm.c (timegm): Use it.
8245         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
8246         (gl_FUNC_MKTIME): Require it.
8248 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8250         xstrtol: prohibit monstrosities like "1bB"
8251         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
8252         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
8253         "B" only if the first suffix needs a base.
8254         * tests/test-xstrtol.sh: Test this.
8256 2016-04-21  Pádraig Brady  <P@draigBrady.com>
8258         xstrtod: reinstate setting of *result upon ERANGE
8259         * lib/xstrtod.c (XSTRTOD): The user may decide to use
8260         the returned limits upon ERANGE, so allow and document that.
8262 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
8264         xstrtod: modify *result only if no errors
8265         * lib/xstrtod.c (XSTRTOD).
8267 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8269         btowc: document problems in C locale
8270         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
8271         with mbrtowc.  See: http://bugs.gnu.org/23269#32
8273 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8275         mktime: improve integer overflow checking
8276         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
8277         (WRAPV): Remove; no longer needed.
8278         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
8279         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
8280         Remove.  Use intprops.h defns instead.
8281         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
8282         Use bool for Boolean, for clarity.
8283         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
8284         detect integer overflow.
8285         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
8287         intprops: check two's complement assumption
8288         Suggested by Eric Blake in:
8289         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
8290         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
8291         short, int, long, and (if available) long long are two's complement.
8292         * modules/intprops (Depends-on): Add 'verify'.
8294         intprops, mktime, strtol: assume two's complement
8295         These macros were not portable to every conforming C11 ones'
8296         complement platform.  It's not worth the hassle of porting to some
8297         platforms that use ones' complement or signed magnitude, as such
8298         platforms are almost purely theoretical nowadays and porting even
8299         to some of them makes the code harder to review for little
8300         practical benefit.  Problem reported by Florian Weimer in:
8301         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
8302         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
8303         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
8304         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
8305         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
8306         (TYPE_SIGNED_MAGNITUDE):
8307         Remove.  All uses rewritten to assume two's complement, which is
8308         all we can reasonably test nowadays anyway.
8309         * top/maint.mk (_intprops_names): Remove the removed macros.
8311 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8313         stdint: port to strict C11 left shift
8314         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
8315         Pacify clang -Wshift-negative-value, which should be an issue only
8316         on clang setups where stdint.h does not conform to C11 or to C++11.
8317         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
8319 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8321         mbrtowc: work around glibc bug#19932
8322         Fix mbrtowc so that it never returns -1 in the C locale,
8323         as this conflicts with a future version of POSIX
8324         http://austingroupbugs.net/view.php?id=663#c2738
8325         and causes problems with GNU grep: http://bugs.gnu.org/23234
8326         See glibc bug 19932:
8327         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
8328         * doc/posix-functions/mbrlen.texi (mbrlen):
8329         * doc/posix-functions/mbrtowc.texi (mbrtowc):
8330         Document the glibc bug.
8331         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
8332         Include hard-locale.h, locale.h.
8333         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
8334         if the bug is possible.
8335         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
8336         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
8337         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
8338         * modules/mbrtowc (Depends-on): Add hard-locale.
8339         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
8340         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
8341         * tests/test-mbrtowc5.sh: New file.
8343 2016-04-03  Pedro Alves  <palves@redhat.com>
8345         stdint: detect good enough pre-C++11 stdint.h in C++ mode
8346         When gnulib is configured in C++ mode for a system with a working C99
8347         implementation of stdint.h that predates C++11, gnulib ends up
8348         substituting stdint.h anyway.  This works on most targets, but on e.g.,
8349         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
8350         MinGW is LLP64.  Instead of trying to detect the right types, detect
8351         good-enough-pre-C++11 stdint.h and in such case define
8352         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
8353         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
8354         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
8355         conforms to C99.  If it does, check whether it hides symbols
8356         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
8357         does, define those macros in config.h.
8359 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
8361         argp: merge changes from glibc
8362         Among other things, this should fix problems found by a Coverity
8363         scan and reported by Andrei Borzenkov:
8364         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
8365         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
8366         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
8367         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
8368         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
8369         * lib/argp.h:
8370         Merge changes from glibc.
8371         * tests/test-argp-2.sh: Adjust to match new behavior.
8373 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8375         stddef: support configuring with g++
8376         Problem reported by Ángel González in:
8377         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
8378         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
8379         Do not define if _GCC_MAX_ALIGN_T is defined.
8381 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8383         test-framework-sh: minor cleanups
8384         * tests/init.sh (testdir_prefix_): Output a trailing newline,
8385         since strictly speaking POSIX requires this.
8386         (setup_): Do not use the variable 'fail', as that makes the
8387         trace output harder to read ('fail' is typically used by
8388         tests to mean the test failed).  Treat // portably.
8389         Check that new directory is not merely a sibling of the tmp dir.
8390         Avoid unnecessary invocation of tr.
8392         test-framework-sh: revert port to NetBSD 7.0
8393         It was a false alarm; I misinterpreted Assaf Gordon's report.
8394         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8395         Restore.
8396         (test_dir_): Adjust to mktempd_ change.
8397         (mktempd_): Restore 2nd arg.  Use -t again.
8398         (base_template_, template_, nx_): Resurrect old code.
8400         Port better to Alpine Linux
8401         Its diff implementation does not support -c, but does support -U3.
8402         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
8403         * tests/init.sh (diff_opt_): New var.
8404         (compare_): Prefer diff -U3 to diff -c to plain diff.
8406 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8408         test-framework-sh: port to NetBSD 7.0
8409         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
8410         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8411         Remove.  All uses removed.
8412         (test_dir_): Adjust to mktempd_ change.
8413         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
8414         (base_template_, template_, nx_): Simplify by hardcoding.
8416 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8418         gitlog-to-changelog: suppress ignored chatter
8419         * build-aux/gitlog-to-changelog: Do not warn about skipping
8420         an SHA if it would have been ignored anyway.
8422 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
8424         setlocale: add "sv" to Windows language table
8425         * lib/setlocale.c (language_table) [W32]: Add "sv".
8426         Reported in <https://savannah.gnu.org/bugs/?44588>.
8428 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8430         sys_select: port to new Cygwin
8431         Problem reported by Ken Brown in:
8432         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
8433         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
8434         diagnostics.
8436 2016-03-17  Jim Meyering  <meyering@fb.com>
8438         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
8439         * tests/test-userspec.c (main): Remove unnecessary braces and fix
8440         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
8441           test-userspec.c:176:9: error: statement is indented as if it were \
8442             guarded by... [-Werror=misleading-indentation]
8443                    {
8444                    ^
8445           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
8446                  if (!diag && !T[i].result)
8447                  ^~
8449 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
8451         time_rz: port to clang -Wunused-const-variable
8452         * lib/time_rz.c (TZ): Remove.  All uses removed.
8454         std-gnu11: improve clang support
8455         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
8456         2016-03-15 Also try clang
8457         2016-03-15 Port C11 and C++11 testing to clang
8459         select: port more to Intel 2016.1.150 compiler
8460         Problem reported by Balázs Hajgató in:
8461         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
8462         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
8464 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8466         select: try to port to 2016.1.150 compiler
8467         Problem reported by Balázs Hajgató in:
8468         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
8469         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
8470         POSIX specifies 'restrict'.
8472 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8474         localename-tests: memory allocation fixes
8475         * tests/test-localename.c (test_locale_name)
8476         (test_locale_name_thread): Don't call freelocale on a locale
8477         that was the base of a successful newlocale, as that
8478         results in a double free.  Problem reported by Assaf Gordon.
8479         (test_locale_name_thread): Free saved names after use, to pacify
8480         gcc -fsanitize=address.
8482 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
8484         intprops: make .h file license match module
8485         * lib/intprops.h: Change the license wording to match glibc format.
8486         This is what is in modules/intprops anyway.  See:
8487         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
8489 2016-03-08  Eric Blake  <eblake@redhat.com>
8491         acl: fix missing return on Cygwin
8492         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
8493         fall off end of function. Fixes http://bugs.gnu.org/22949
8495 2016-03-05  Bruno Haible  <bruno@clisp.org>
8497         extern-inline: port to PGI CC
8498         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
8499         keyword 'inline'.
8500         Reported by Adam James Stewart in:
8501         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
8503 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8505         signbit: port back to pre-C++11 GCC
8506         * lib/math.in.h (signbit): Do previous change only if
8507         __cplusplus < 201103.  See Jonathan Wakely in:
8508         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
8510 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
8512         mountlist: recognize autofs-mounted remote file systems, too
8513         Originally reported at: https://bugzilla.redhat.com/1309247
8514         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
8515         "-hosts" because it is used by autofs to mount remote file systems.
8517 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8519         signbit: port to C++ with GCC 6
8520         * lib/math.in.h (signbit) [__cplusplus]:
8521         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
8522         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
8524         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
8526         regex: make it closer to libc
8527         Make Idx a signed type, rather than possibly unsigned.
8528         The unsignedness was not really buying us anything, since the code
8529         overflows for other reasons before getting to PTRDIFF_MAX.  Making
8530         it signed allows us to use -1 and -2 with abandon, like libc does,
8531         thus lessening the number of differences between gnulib and libc.
8532         Also, it should help avoid gratuitous warnings like the one
8533         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
8534         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
8537         regex: merge patches from libc
8539         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8540         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8541         Convert miscellaneous function definitions to prototype style.
8542         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
8543         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
8544         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
8545         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
8546         (re_search_internal):
8547         Convert to prototype-style function definition.
8548         Use internal_function for internal functions.
8550 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
8552         stdalign: port to older HP and IBM cc
8553         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
8554         C compilers, by checking their version numbers.  These version
8555         numbers appear in MariaDB and in Qt code that dates way back and
8556         that conditiionally uses the 'aligned' attribute.
8558 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8560         stdalign: port to clang 3.7.0
8561         Problem reported by Herbert J. Skuhra in:
8562         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
8563         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
8564         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
8565         https://llvm.org/bugs/show_bug.cgi?id=26547
8567 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8569         readdir_r: now obsolescent
8570         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
8571         * lib/mountlist.c (read_file_system_list): Add a FIXME.
8573 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8575         misc: port better to gcc -fsanitize=address
8576         Without these patches, ./configure CFLAGS='-fsanitize=address'
8577         would compute incorrect values.  This patch fixes some (but not all)
8578         test failures with recent glibc, with this configuration.
8579         * m4/acl.m4 (gl_ACL_GET_FILE):
8580         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
8581         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
8582         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
8583         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
8584         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
8585         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
8586         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
8587         * m4/getline.m4 (gl_FUNC_GETLINE):
8588         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
8589         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
8590         * m4/regex.m4 (gl_REGEX):
8591         * m4/strndup.m4 (gl_FUNC_STRNDUP):
8592         * tests/test-calloc-gnu.c (main):
8593         * tests/test-duplocale.c (main):
8594         * tests/test-getgroups.c (main):
8595         * tests/test-getline.c (main):
8596         * tests/test-inttostr.c (main):
8597         * tests/test-localename.c (test_locale_name)
8598         (test_locale_name_thread, test_locale_name_environ)
8599         (test_locale_name_default):
8600         * tests/test-regex.c (main):
8601         * tests/test-setlocale1.c (main):
8602         * tests/test-stat.h (test_stat_func):
8603         Free heap-allocated storage before exiting.
8604         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
8605         Don't match *_foo symbols inserted by AddressSanitizer.
8606         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
8608 2016-02-02  Jim Meyering  <meyering@fb.com>
8610         verify-tests: also remove stray test-verify.Tpo
8611         * modules/verify-tests (Makefile.am): Arrange for "make clean"
8612         to remove the test-verify.Tpo file that is left behind by
8613         the automake-generated rule upon compilation failure.
8614         Otherwise, that .Tpo file would cause a failed "make distcheck"
8615         at least for grep.
8617 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8619         std-gnu11: new module
8620         This makes it easier for applications to prefer C11 and C++11
8621         to older variants, when compiling C and C++ code.
8622         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
8623         a nontrivial chunk of GPLed Autoconf source code.
8624         * COPYING: Mention the m4/*.m4 copyright situation.
8625         * MODULES.html.sh (std-gnu11): New module.
8626         * m4/std-gnu11.m4, modules/std-gnu11: New files.
8628 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8630         get-permissions, strftime: fix grammar in comments
8631         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
8632         some grammar fixes Alan Mackenzie made to GNU Emacs.
8634 2016-01-25  Daiki Ueno  <ueno@gnu.org>
8636         gettext: mark as obsolete
8637         Suggested by Paul Eggert in:
8638         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
8639         * modules/gettext (Status): Mark as obsolete.
8640         (Notice): Suggest to use 'gettext-h' instead.
8641         * modules/gettext-h (Description): Suggest GNU gettext, instead of
8642         the 'gettext' module.
8644 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8646         gnulib-tool: don't give up on ln -s so easily
8647         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
8648         because an earlier one failed.  The targets could be on different
8649         file systems.  Problem reported by KO Myung-Hun in:
8650         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
8652         closedir: fix OS/2-related typos
8653         Problem reported by KO Myung-Hun in:
8654         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
8655         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
8656         in the last couple of changes.
8658 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
8660         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
8661         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
8662         copying a directory.
8664 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8666         regex: treat [x] as x if x is a unibyte encoding error
8667         Problem reported by Aharon Robbins in:
8668         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
8669         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
8670         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
8672         closedir, dirfd, opendir: port to OpenSolaris 5.10
8673         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
8674         * m4/dirfd.m4 (gl_FUNC_DIRFD):
8675         * m4/opendir.m4 (gl_FUNC_OPENDIR):
8676         Don't use ${word##pat} substitution, as it doesn't work in
8677         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
8678         http://bugs.gnu.org/22443#11
8680 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8682         bootstrap: use American spelling
8683         * build-aux/bootstrap: Honor American spelling.
8685 2016-01-22  Karl Berry  <karl@freefriends.org>
8687         * doc/posix-functions/localtime.texi,
8688         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
8690 2016-01-21  Bruno Haible  <bruno@clisp.org>
8692         hash-pjw-bare: fix comment
8693         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
8695         wcwidth: Replace also on OpenBSD 5.8
8696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
8697         * doc/posix-functions/wcwidth.texi: Update.
8699 2016-01-20  Pádraig Brady  <P@draigBrady.com>
8701         gnu-web-doc-update: fix addition of new files
8702         If there were already added (emnpty) dirs,
8703         then cvs aborts the add with the message:
8704           cvs [add aborted]: there is a version in <./dirname> already
8705         * build-aux/gnu-web-doc-update: Add directories separately
8706         to the addition of files, to avoid the above issue
8707         impacting the addition of files.
8709 2016-01-19  Daiki Ueno  <ueno@gnu.org>
8711         utimens-tests: avoid pulling gettext .m4 files
8712         Although this is not the right fix to the original problem:
8713         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
8714         it makes it possible again for consumer projects to use arbitrary
8715         version of gettext, through the steps described at:
8716         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
8717         See here for details:
8718         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
8719         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
8720         'gettext'.
8721         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
8722         'gettext'.
8724 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8726         regex: pacify static checkers
8727         Problem and draft fix reported by Aharon Robbins in:
8728         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8729         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
8730         Clear memory to pacify static checkers.
8732         regex: fix [ diagnostic
8733         Problem and fix reported by Aharon Robbins in:
8734         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8735         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
8737         regex: fix memory leaks
8738         Problem and draft fix reported by Aharon Robbins in:
8739         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8740         * lib/regcomp.c (build_range_exp, build_charclass_op)
8741         * lib/regex_internal.c (re_dfa_add_node):
8742         Fix memory leak on failure.
8744 2016-01-18  Pádraig Brady  <P@draigBrady.com>
8746         fts: don't unconditionally use leaf optimization for NFS
8747         NFS st_nlink are not accurate on all implementations,
8748         leading to aborts() if that assumption is made.
8749         See <https://bugzilla.redhat.com/1299169>
8750         * lib/fts.c (leaf_optimization_applies): Remove NFS from
8751         the white list, and document the issue.
8753 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8754             KO Myung-Hun  <komh@chollian.net>
8756         gnulib-tool: don't assume ln -s works
8757         * gnulib-tool (func_ln_s): New function.
8758         (func_ln): Use it.
8760 2016-01-15  KO Myung-Hun  <komh@chollian.net>
8762         utimes: detect utimes() correctly on OS/2 kLIBC
8763         utimes() of OS/2 kLIBC has some limitations.
8764         1. OS/2 itself supports a file date since 1980 year in local time.
8765         2. OS/2 itself supports only even seconds for a file time.
8766         3. utimes() of OS/2 kLIBC does not work on an opened file.
8767         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
8768         * doc/posix-functions/utimes.texi: Document the above limitations of
8769         utimes() on OS/2 kLIBC.
8771 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8772             KO Myung-Hun  <komh@chollian.net>
8774         openat_proc_name: port to OS/2 kLIBC
8775         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
8776         instead of /proc/self/fd.
8777         * lib/openat-proc.c (openat_proc_name):
8778         Don't assume file name length is less than INT_MAX.
8779         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
8781 2016-01-14  KO Myung-Hun  <komh@chollian.net>
8783         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
8784         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
8785         definitions of intptr_t and uintptr_t (which use int and unsigned)
8786         to avoid clashes with declarations of system functions like sbrk.
8787         * lib/stdint.in.h (intptr_t, uintptr_t): Check
8788         _INTPTR_T_DECLARED before defining them.
8790         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
8791         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
8792         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
8793         Declare on kLIBC.
8794         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
8795         fd associated with dirp.
8796         (_gl_register_dirp_fd): New. Register fd associated with dirp to
8797         dirp_fd_list.
8798         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
8799         (dirfd): Implemented for kLIBC.
8800         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
8801         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
8802         succeeds.
8803         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
8804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8805         (REPLACE_DIRFD): Define to 1 if replaced.
8806         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
8807         * modules/closedir (Depends-on): Add dirfd.
8808         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
8809         condition.
8810         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
8811         * modules/opendir (Depends-on): Add dirfd.
8813         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
8814         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
8815         * lib/dup.c (dup_nothrow): New.
8816         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
8817         (klibc_dup2): New.
8818         * lib/fcntl.c (klibc_fcntl): New.
8819         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
8820         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
8821         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
8822         fd.
8824         pipe_filter_ii_execute: port to OS/2 kLIBC
8825         Pipes on kLIBC do not support O_NONBLOCK like Win32.
8826         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
8827         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
8828         Reuse Win32 code on OS/2 kLIBC.
8829         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
8830         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
8832         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
8833         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
8834         static inline function.  The implementation of wcwidth in wcwidth.c
8835         causes a "conflicting types" error.
8836         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
8838         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
8839         spawn() on OS/2 kLIBC is not silly like one on Windows
8840         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
8841         empty string on OS/2 kLIBC.
8843         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
8844         On OS/2 kLIBC, select() works only on sockets.
8845         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
8847         binary-io: don't put fd in binary mode if it is a console on EMX
8848         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
8849         a console on EMX.
8851 2016-01-15  Pádraig Brady  <P@draigBrady.com>
8853         doc: mention unfixed issues with unsupported localtime() values
8854         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
8855         returns nonsense for localtime(2^56).
8856         * doc/posix-functions/localtime_r.texi: Likewise.
8858 2016-01-14  Pádraig Brady  <P@draigBrady.com>
8860         doc: mention setlocale() issues on OpenBSD
8861         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
8862         never fails, and the need to check categories individually.
8864 2016-01-14  Pádraig Brady  <P@draigBrady.com>
8866         sig2str: list all signals on FreeBSD >= 7
8867         FreeBSD >= 7 is contravening POSIX by not defining NSIG
8868         to the maximal statically defined signal value.
8869         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
8870         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
8871         where available, even when NSIG is defined.
8873 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
8875         acl-permissions: port to USE_ACL==0 platforms
8876         I ran into this problem when building bleeding-edge GNU Emacs
8877         with gcc -fsanitize=address on Fedora 23.  On this platform
8878         the ACL library does not pass the 'configure' test and Emacs
8879         then does not build due in part to what appear to be typos in the
8880         ACL part of Gnulib.
8881         * lib/acl-internal.c (free_permission_context):
8882         * lib/acl-internal.h (struct permission_context):
8883         Test whether USE_ACL is nonzero, not whether it is defined.
8885 2016-01-12  Martin Sebor  <msebor@redhat.com>
8887         mktime: rename macro to avoid glibc clash
8888         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
8889         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
8891 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
8893         Port "$@" to OpenIndiana ksh93
8894         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
8895         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
8896         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
8897         bug long-dead shells, so remove the workaround.
8898         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
8899         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
8900         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
8901         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
8902         Use "$@" instead of ${1+"$@"}.
8904         Port Universal Time settings to strict POSIX
8905         * build-aux/announce-gen, build-aux/bootstrap:
8906         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
8907         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
8908         * build-aux/gnupload, build-aux/mkinstalldirs:
8909         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
8910         * build-aux/update-copyright, build-aux/useless-if-before-free:
8911         * build-aux/vc-list-files, tests/test-strftime.c:
8912         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
8913         but POSIX says the behavior of TZ="UTC" is undefined.
8915 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8917         msvc-inval: fix problem with unset shell var
8918         Problem reported by Karl Berry in:
8919         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
8920         * modules/msvc-inval (Depends-on):
8921         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
8922         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
8924 2016-01-01  Pádraig Brady  <P@draigBrady.com>
8926         tests: for compare_(), use cmp -s where available
8927         * tests/init.sh (compare_): Only fall back to cmp without
8928         the POSIX defined -s option, where this is not available.
8930 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8932         version-etc: new year
8933         * build-aux/gendocs.sh (version):
8934         * doc/gendocs_template:
8935         * doc/gendocs_template_min:
8936         * doc/gnulib.texi:
8937         * lib/version-etc.c (COPYRIGHT_YEAR):
8938         Update copyright dates by hand in templates and the like.
8939         * all files: Run 'make update-copyright'.
8941 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8943         human: fix output buffer overrun by 1
8944         * lib/human.c (human_readable): Fix off-by-one typo in buffer
8945         calculation that could lead to a one-byte buffer overrun.
8947 2015-12-28  Daiki Ueno  <ueno@gnu.org>
8949         maint: fix operator precedence in mbrtowc test
8950         This is a fix for test breakage introduced by commit 45228d96; the
8951         equality expression must be parenthesized when negated with '!',
8952         otherwise we always get:
8954           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
8956         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
8957         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
8959 2015-12-23  James Youngman  <jay@gnu.org>
8961         regexprops-generic: update from regex.h
8962         * doc/regexprops-generic.texi: update by running the regexprops binary
8963         from findutils (the command line is 'regexprops "Regular Expressions"
8964         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
8965         gnulib with GNU grep had made this document out-of-date.
8967 2015-12-23  Pádraig Brady  <P@draigBrady.com>
8969         strftime-tests: avoid false failure on OS X
8970         * tests/test-strftime.c (struct localtime_rz_test): Add an
8971         ahistorical member which is used to warn rather than fail
8972         when tm_isdst isn't set for such entries.  This is the case for
8973         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
8975 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
8977         fts: ensure leaf optimization is used for NFS
8978         NFS provides usable dirent.d_type but not necessarily for all entries
8979         of large directories.  See <https://bugzilla.redhat.com/1252549>
8980         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
8982 2015-12-20  Pádraig Brady  <P@draigBrady.com>
8984         fts: enable leaf optimization for XFS
8985         XFS provides usable dirent.d_type only for DT_DIR,
8986         but the noleaf optimization still applies.
8987         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
8989 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8991         intprops: comment fix
8992         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
8993         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
8995         intprops-test: work around GCC bug 68971
8996         Problem reported by Pádraig Brady in:
8997         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
8998         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
8999         (main): Add a case that better tests 64-bit long in this area.
9001 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
9003         gnulib-tool: allow multiple --local-dir usage
9004         * gnulib-tool: Use --local-dir to construct compound
9005         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
9006         PATH_SEPARATOR early.
9007         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
9008         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
9009         func_determine_path_separator because that needs to be detected
9010         earlier now.
9011         (func_determine_path_separator): New function.
9012         (func_path_foreach, func_path_foreach_inner): New functions.
9013         (func_path_prepend, func_path_append): Likewise.
9014         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
9015         (func_lookup_file, func_all_modules): Use new functions to work
9016         with local_gnulib_path.
9017         (func_modules_in_dir, func_exists_module): New callbacks for
9018         func_path_foreach.
9019         (func_exists_module, func_get_tests_module): Likewise.
9020         (func_is_local_file, func_should_symlink): New helper methods.
9021         (func_add_file, func_update_file): Use new func_should_symlink
9022         instead, DRY.
9023         (func_reconstruct_cached_local_gnulib_path): New helper.
9024         (func_reconstruct_cached_dir): New callback.
9025         (func_import): The cached_local_gnulib_dir renamed to
9026         cached_local_gnulib_path similarly to local_gnulib_dir.
9027         Use new func_reconstruct_cached_local_gnulib_path.
9028         (func_count_relative_local_gnulib_path): New sub-method.
9029         (func_create_testdir): Use func_should_symlink, DRY.
9030         (func_create_megatestdir): Use new functions to work with
9031         local_gnulib_path correctly.
9032         (func_append_local_dir): New helper.
9034 2015-12-08  Pádraig Brady  <P@draigBrady.com>
9036         fix freadptr to work with ungetc on all uClibc configs
9037         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
9038         where GNU coreutils cut(1) generates invalid output on uClibc
9039         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
9040         * lib/freadptr.c (freadptr): Return NULL if there are
9041         ungotten chars.  In this case freadseek() will iterate
9042         again to process the ungotten character.
9044 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9046         xalloc-oversized: improve performance with GCC 5
9047         * lib/xalloc-oversized.h (xalloc_oversized):
9048         Improve performance with GCC 5 by using __builtin_mul_overflow.
9050 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9052         intprops: new public macro EXPR_SIGNED
9053         Emacs can use this macro, so make it public.
9054         * doc/intprops.texi (Arithmetic Type Properties): Rename from
9055         'Integer Type Determination', since some of these macros apply
9056         to non-integer types.  Clarify what kinds of constant expressions
9057         these macros return.  Say when the arguments can be non-integers.
9058         Mention newly published macro EXPR_SIGNED.
9059         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
9060         make it public.  All uses changed.
9062         intprops: fix typo in clang port
9063         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
9064         '__builtin_add_overflow' that is not caught by compiler.
9066 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9068         test-timespec: fix typo in previous change
9069         * tests/test-timespec.c (main): Fix typo that reduced test quality.
9071         timespec-sub: fix overflow bug; add tests
9072         * lib/timespec-add.c (timespec_add):
9073         * lib/timespec-sub.c (timespec_sub):
9074         Work even if time_t is narrower than int (a theoretical
9075         possibility).  Redo code for a bit more clarity.
9076         * lib/timespec-sub.c (timespec_sub):
9077         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
9078         * modules/timespec-tests, tests/test-timespec.c: New files.
9080         intprops-test: suppress -Woverlength-strings
9081         Problem reported by Pádraig Brady in:
9082         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
9083         It is not worth the hassle to port this test to compilers that
9084         cannot handle long strings in diagnostics.
9085         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
9087 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9089         quotearg: add quotearg_n_style_colon()
9090         This quotes with default options of the specified style,
9091         but with quoting enabled for instances of ':'.
9092         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
9093         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
9095 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9097         intprops: revise _WRAPV macros, revert _OVERFLOW
9098         The incompatible changes to the _OVERFLOW macros were too much of
9099         a hassle in practice, so revert them.  Instead, change the new
9100         _WRAPV macros to make them closer in behavior to GCC 5's new
9101         builtin_add_overflow etc. functions.  No other software was using
9102         these newly-added macros yet, so this should be OK.
9103         * NEWS: Revert previous change, since the incompatible change
9104         has been reverted, and nobody used the incompatible version.
9105         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
9106         Document revised behavior.
9107         (Integer Range Overflow): Adjust example to match above revisions.
9108         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
9109         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
9110         these can be used in integer constant expressions again.
9111         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
9112         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
9113         needed.
9114         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9115         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9116         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
9117         Remove, as they did not seem that useful.
9118         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
9119         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
9120         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
9121         Support new semantics.
9122         (__has_builtin): New macro, if not alreay defined.
9123         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
9124         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9125         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9126         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9127         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
9128         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
9129         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
9130         New macros.
9131         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
9133 2015-11-03  Jim Meyering  <meyering@fb.com>
9135         intprops: add parentheses for when OP has precedence lower than "-"
9136         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
9137         "a OP b" must be parenthesized for when OP is like "<<", which has
9138         lower precedence than the following "-". Reported by Pádraig Brady.
9140 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9142         quotearg: constify get_quoting_style parameters
9143         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
9144         * lib/quotearg.c (get_quoting_style): Likewise.
9146 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9148         quotearg: add support for $'' shell escaping
9149         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
9150         items and descriptions.
9151         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
9152         above types by quoting like "shell", but using $'...' syntax
9153         for non printable characters, which should provide unambiguous
9154         printable output for any input.
9155         * tests/test-quotearg-simple.c: Update accordingly.
9157 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9159         maint: use a more standard return from mbrtowc test
9160         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
9161         from the test program as this is non standard and often
9162         indicates an unhandled case in the test program.
9163         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9165 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9167         intprops: add WRAPV and const flavors for GCC 5
9168         If available, use GCC 5's builtin functions for efficient integer
9169         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
9170         and safely compute the low-order bits of the correct answer.
9171         A downside of these efficient functions is that they cannot be
9172         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
9173         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
9174         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
9175         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
9176         Document the changes.
9177         (Wraparound Arithmetic): New section.
9178         (Integer Range Overflow):
9179         Put this subsection last, since it's least useful.
9180         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
9181         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
9182         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
9183         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9184         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9185         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
9186         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9187         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
9188         New macros.
9189         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9190         Generate calls to GCC builtins if available, for speed.
9191         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9192         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9193         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9194         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
9195         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
9196         (CHECK_QUOTIENT, CHECK_REMAINDER):
9197         Test WRAPV and CONST flavors (when available) too.
9199 2015-10-30  Pádraig Brady  <P@draigBrady.com>
9201         doc: use extended timezone format in iso-8601 example
9202         * doc/parse-datetime.texi: The standard states that extended format
9203         is to be used consistently throughout.
9204         Note that lib/parse-datetime.y can handle either tz format.
9206 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9208         stdalign: port to Sun C 5.9
9209         * doc/posix-headers/stdalign.texi: Document this.
9210         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
9211         __attribute__ ((__aligned__ (...))).
9213 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9215         time_rz: fix comment about tzalloc
9216         * lib/time_rz.c (tzalloc): Fix comment.
9218 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9220         stdalign: work around pre-4.9 GCC x86 bug
9221         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
9222         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
9223         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
9225 2015-10-18  Pádraig Brady  <P@draigBrady.com>
9227         maint.mk: sc_tight_scope: remove extraneous expressions
9228         * top/maint.mk (tight_scope): This is not really required since
9229         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
9230         that matches all nm entries.  But it does remove extraneous entries
9231         that may be confusing or cause issue in future maintenance.
9233 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9235         time_rz: return NULL if localtime_r fails
9236         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
9237         while still attempting to pacify bleeding-edge GCC.
9239         fts: port to C11 alignof
9240         * doc/posix-headers/stdalign.texi (stdalign.h):
9241         Document the C11 restriction.
9242         * lib/fts.c: Include stddef.h, for max_align_t.
9243         (fts_alloc): Align using max_align_t, not FTSENT.
9244         * modules/fts (Depends-on): Add stddef.
9246 2015-10-18  Jim Meyering  <meyering@fb.com>
9248         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
9249         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
9250         would see this:
9252         lib/time_rz.c: In function 'localtime_rz':
9253         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
9254           [-Werror=nonnull]
9255                    if (tm && !save_abbr (tz, tm))
9256                        ^
9258         That was complaining about "tm" because it is a parameter that was
9259         declared with the __nonnull__ attribute.
9260         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
9261         result of localtime_r.
9263 2015-10-17  Jim Meyering  <meyering@fb.com>
9265         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
9266         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
9267         name-extraction regexp mistakenly used \S+, and would mistakenly
9268         extract "*F" from "extern int *F()" rather than the desired "F".
9269         Use \w+ instead.
9271 2015-10-17  Jim Meyering  <meyering@fb.com>
9273         maint.mk: sc_tight_scope: factor and support OS X
9274         * top/maint.mk (_gl_tight_scope): Address three issues:
9275         - factor out four instances of code that wraps a string in "^...$"
9276         - allow nm-reported symbol names to have an optional leading "_"
9277         - add "main" to the list of ignored variable names, because on os x,
9278         "main" has nm-reported type "S" in the variable-checking section.
9280 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
9282         safe-alloc-tests: fix typo in license header
9283         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
9285 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
9287         copy-file: fix mem leak in error case
9288         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
9289         upon error opening or performing I/O to the src and dest files.
9291 2015-10-15  Mike Frysinger  <vapier@chromium.org>
9293         localename: control langinfo.h inclusion
9294         This header is only used to work around buggy behavior in old
9295         versions of glibc, so do not include it all the time.  Otherwise
9296         we get build failures on systems that do not provide langinfo.h.
9297         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
9298         in the source later on.
9299         The patch was originally submitted to gettext as:
9300         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
9302 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9304         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
9305         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
9306         * lib/u64.c, lib/unistd.c:
9307         Append 'typedef int dummy;', to pacify compilers that are picky
9308         about empty translation units.
9310 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
9312         accept4-tests: fix to avoid non portable flags
9313         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
9314         as they are the only documented ones, and passing others may trigger
9315         EINVAL (seen on FreeBSD 10.1-RELEASE).
9316         * doc/glibc-functions/accept4.texi: Mention that we don't provide
9317         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
9319 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
9321         gnulib-tool: fix tests of 'extensions' module
9322         This complements f8fe25fab60e3c687a124 commit.
9323         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
9324         emitting of initial gl_EARLY macros.
9325         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
9326         replaced with func_emit_pre_early_macros call.
9328 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9330         unicase/locale-language: fix typo in utf-8 cookie
9331         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
9332         Problem reported by Zbigniew Jędrzejewski-Szmek.
9334 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9336         xalloc: do not worry about GCC 5 warning on 32 bit
9337         * lib/xalloc.h: Revert previous change.
9338         I found a better way to fix this in coreutils.
9340 2015-10-02  Pádraig Brady  <P@draigBrady.com>
9342         xalloc: avoid GCC 5.1 warning on 32 bit
9343         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
9344         xalloc_oversized(), which was seen to give this warning
9345         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
9346         when simplifying conditional".
9348 2015-10-02  Daiki Ueno  <ueno@gnu.org>
9350         uniname/uniname-tests: avoid compiler warnings
9351         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
9352         unused local variables.
9353         (test_alias_lookup): Fix alias name display in failure cases.
9355 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9357         c-ctype: do not worry about EBCDIC + char signed
9358         Drop support for EBCDIC with char being signed, as this breaks too
9359         many programs.  Problem reported by Ben Pfaff in:
9360         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
9361         * lib/c-ctype.h: Verify that we are not using EBCDIC with
9362         char being signed.
9363         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
9364         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
9365         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
9366         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
9367         * tests/test-c-ctype.c (test_all):
9368         Simplify by assuming standard char values cannot be negative.
9369         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
9371 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9373         c-ctype: port better to z/OS EBCDIC
9374         Problems reported by Daniel Richard G. in:
9375         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
9376         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
9377         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
9378         (_C_CTYPE_OTHER_CNTRL): New macro.
9379         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
9380         from SCHAR_MIN, as the functions are defined only from values
9381         promoted from char or from unsigned char, not necessarily from
9382         signed char.
9384 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
9386         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
9388         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
9389         and ARFLAGS variables.  Doing this unconditionally could break
9390         later Automake's AM_PROG_AR invocation (at least it's
9391         AC_CHECK_TOOLS call to detect correct 'ar' binary).
9393         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
9394         Amsterdam Compiler Kit, so make the previous code to have effects
9395         only on ACK, and rather automatically call the Automake's
9396         AM_PROG_AR as soon as possible to decide other cases.
9398         References:
9399         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
9401         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
9402         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
9403         is possible, keep setting AR/ARFLAGS to reasonable defaults.
9404         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
9405         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
9406         'extensions' module is used.
9407         * modules/extensions (configure.ac-early): Remove as this snippet
9408         is added to gnulib-comp.m4 earlier anyway.
9410 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9412         sockets: MS Windows initalization fixes
9413         Problem reported by Test User in:
9414         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
9415         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
9416         Correct the endianness.
9417         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
9418         number mismatch, not just on <.  Cleanup before any such failure.
9420 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
9422         gc: fix detection of installed libgcrypt version
9423         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
9424         at least as recent as 1.4.4.  The previously used macro is not
9425         available now, since modules were removed in version 1.6.0.
9427 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9429         c-ctype: rewrite to use inline functions
9430         This simplifies maintenance, since it makes for just one
9431         implementation of each function, letting the compiler have the fun
9432         of optimization.  In practice this works well nowadays with GCC.
9433         E.g., c_isascii might need only three instructions even though the
9434         source code lists every ASCII character individually in a large
9435         switch statement.
9436         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
9437         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
9438         * NEWS: Document the API change.
9439         * lib/c-ctype.c: Drastically simplify, since this now just expands
9440         inline functions.
9441         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
9442         (C_CTYPE_INLINE): New macro.
9443         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
9444         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
9445         Verify that either ASCII or EBCDIC is being used.
9446         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
9447         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
9448         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
9449         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
9450         New private macros.
9451         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
9452         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
9453         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
9454         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
9455         (c_tolower, c_toupper): When converting, return the unsigned char,
9456         as that is what z/OS does.
9457         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
9458         of some c-ctype.h macros.
9459         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
9460         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
9461         c_tolower promotion to be compatible with z/OS.
9463 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
9465         gitlog-to-changelog: trim only trailing whitespaces
9466         This is fix for --format regression introduced by commit
9467         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
9468         doubled %n string) had no effect anymore.  This format
9469         specification has been used e.g. by GNU paxuitils (commit
9470         edfd8bcc3).
9472         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
9473         newlines in commmit messages.
9475 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9477         Test that c_iscntrl agrees with iscntrl, etc.
9478         Suggested by Daniel Richard G. in:
9479         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
9480         * modules/c-ctype-tests (Depends-on): Add ctype.
9481         * tests/test-c-ctype.c: Include <ctype.h>.
9482         (NCHARS): New constant.
9483         (test_agree_with_C_locale): New function.
9484         (main): Use it.
9485         (test_all): Use named constants.
9487         c-ctype: improve c_isascii testing
9488         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
9489         Add a test to count the number of ASCII characters.
9491 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9493         savewd: remove SAVEWD_CHDIR_READABLE
9494         It was problematic in the light of file systems that ignore umask.
9495         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
9496         * NEWS: Document this.
9497         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
9498         successful, -1 (setting errno) on failure, rather than something
9499         more complicated than that.
9500         * lib/mkdir-p.c (make_dir_parents):
9501         Do not use SAVEWD_CHDIR_READABLE.
9502         * lib/savewd.c (savewd_chdir):
9503         Remove support for SAVEWD_CHDIR_READABLE.
9504         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
9506         c-ctype: port better to EBCDIC
9507         Problems reported by Daniel Richard G. in
9508         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
9509         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
9510         Include "verify.h".
9511         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
9512         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
9513         Define as enum constants with value false, if not defined, so that
9514         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
9515         code more portable, as both branches of the 'if' are compiled on
9516         all platforms.
9517         (C_CTYPE_EBCDIC): New constant.
9518         Verify that the character set is either ASCII or EBCDIC.
9519         (to_char): New static function.
9520         (c_isascii, c_iscntrl):
9521         Assume standard control-character assignments for EBCDIC.
9522         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
9523         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
9524         Rewrite to use 'if' instead of 'ifdef'.
9525         Use to_char if non-ASCII.  Prefer <= to >=.
9526         Prefer true and false to 1 and 0, for booleans.
9527         (c_iscntrl): Use 'if', not 'ifdef'.
9528         * modules/c-ctype (Depends-on): Add verify.
9529         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
9530         (to_char): New function.
9531         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
9533 2015-09-21  Pádraig Brady  <P@draigBrady.com>
9535         nanosleep: fix return code for interrupted replacement
9536         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
9537         that we return -1 in the case the call is interrupted by a signal,
9538         rather than the current value of 1.
9539         Diagnosed and tested by Daniel Richard G.
9541 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9543         Diagnose ERE '()|\1'
9544         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
9545         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
9546         track of the set of previously-completed subexpressions available
9547         before the first alternative, and restore this set just before
9548         parsing each subsequent alternative.  This lets us diagnose the
9549         invalid back-reference in the ERE '()|\1'.
9551         regex: merge patches from libc
9553         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
9554         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
9555         * lib/regex_internal.h:
9556         Include <libc-lock.h> instead of <bits/libc-lock.h>.
9558         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
9559         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
9560         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
9561         wcscoll.
9562         * lib/regexec.c (check_node_accept_bytes): Likewise.
9564         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9565         Fix regex wcrtomb namespace (bug 18496).
9566         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
9567         instead of wcrtomb.
9569         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9570         Fix regex wctype namespace (bug 18495).
9571         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
9572         instead of towlower.
9573         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
9574         instead of iswlower.  Call __towupper instead of towupper.
9575         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
9576         instead of iswalnum.
9578         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
9579         * lib/regcomp.c (parse_bracket_exp): Initialize type to
9580         COLL_SYM in a couple of places to avoid uninitialized variable
9581         wanings on tilegx gcc 4.8.2.
9583         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9584         * lib/regex_internal.h: Remove NOT_IN_libc.
9586         2014-11-17  Andreas Schwab  <schwab@suse.de>
9587         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
9589         2014-09-11  Roland McGrath  <roland@hack.frob.com>
9590         Move findidx nested functions to top-level.
9591         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
9592         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
9593         Pass new arguments to findidx.
9594         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
9595         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
9596         Don't #include it inside the function.  Pass new arguments to findidx.
9597         * lib/regex_internal.h:
9598         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
9599         (re_string_elem_size_at): Don't #include it inside the function.
9600         Pass new arguments to findidx.
9602         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9603         Check if DEBUG is defined in regex_internal.c
9604         * lib/regex_internal.c: Check if DEBUG is defined and is set.
9606 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
9608         ceill: detect buggy OpenBSD implementation
9609         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
9610         which returns zero for small values.  Discussed here:
9611         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
9613 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
9615         mountlist: add me_mntroot field on Linux machines
9616         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
9617         mount_entry so Linux machines based on /proc/self/mountinfo can
9618         distinguish between bind mounts and original mounts.  In reality bind
9619         mounts aren't treated differently than mountroot=/ mounts by the
9620         kernel, but the user often wants these bind mounts distinguished.
9621         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
9622         More details at https://pad.lv/1432871
9624 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
9626         doc: Describe to use multiple instances of gnulib
9627         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
9628         instances of gnulib with different modules can be used, for example one
9629         for a lib and another one for associated tools.
9631 2015-09-01  Pádraig Brady  <P@draigBrady.com>
9633         base32: mark function as __attribute__ const
9634         * lib/base32.h (isbase32): Mark __attribute__ const as
9635         suggested by GCC, and consistent with the base64 module.
9637 2015-08-20  Daiki Ueno  <ueno@gnu.org>
9639         gnulib-tool: don't transform binary files with sed
9640         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
9641         .mo and .class files.
9642         Reported by Denis Denisov.
9644 2015-08-10  Daiki Ueno  <ueno@gnu.org>
9646         gperf: respect silent rules
9647         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
9648         V_GPERF_0 for silent rules.
9649         * modules/iconv_open (Makefile.am): Use V_GPERF.
9650         * modules/unicase/locale-language (Makefile.am): Likewise.
9651         * modules/unicase/special-casing (Makefile.am): Likewise.
9652         * modules/unictype/category-byname (Makefile.am): Likewise.
9653         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
9654         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
9655         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
9656         * modules/unictype/property-byname (Makefile.am): Likewise.
9657         * modules/unictype/scripts (Makefile.am): Likewise.
9658         * modules/uninorm/composition (Makefile.am): Likewise.
9660 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
9662         Improve port of stdalign to C++11
9663         Problem reported by Sundaram in:
9664         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
9665         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
9666         (__alignas_is_defined): Define if C++11 or newer.
9668 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
9670         pmccabe2html: fix gawk regex escaping
9671         * build-aux/pmccabe2html: Add one more backslash to properly
9672         escape the gsub replacement value.  Fixes this error:
9673         gawk: ./build-aux/pmccabe2html:425: \
9674         warning: escape sequence `\&' treated as plain `&'
9676 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9678         time_rz: port to pedantic memcpy
9679         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
9680         that reject memcpy (..., NULL, 0).
9682 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9684         time_rz: port better to MinGW
9685         Don't change tzname, as this makes MinGW dump core (Bug#21020).
9686         Instead, store the tzname copy in the struct tm_zone object.
9687         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
9688         * lib/strftime.c [!_LIBC]:
9689         * lib/time_rz.c: Include time-internal.h.
9690         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
9691         name from *TZ rather than from TZNAME, doable because *TZ now has
9692         a tzname_copy member.
9693         * lib/time-internal.h: New file, with contents taken from
9694         lib/time_rz.c.  It's separate because strftime.c now accesses
9695         struct tm_zone members.
9696         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9697         New member tzname_copy.
9698         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
9699         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9700         Initialize tzname_copy member.
9701         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
9702         in tzname_copy member.
9703         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
9704         (restore_tzname): Remove; no longer needed.  All calls removed.
9705         * modules/time_rz (Files): Add lib/time-internal.h.
9707         time: port __need_time_t to MinGW
9708         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
9709         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
9711 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9713         strftime: fix newly-introduced bug on Solaris
9714         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
9715         consistently at the start, rather than doing some of the setup at
9716         the start and some in the %Z format spec.  This is cleaner, and
9717         works better with time_rz on platforms like Solaris where struct
9718         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
9719         mktime_z and localtime_rz can mess up the tzname cache.
9721         test-strftime: test for Solaris bug
9722         * modules/strftime-tests (Depends-on): Add strerror.
9723         * tests/test-strftime.c: Include <errno.h>.
9724         (posixtm_test): New function, containing the old 'main'.
9725         (struct tzalloc_test, struct localtime_rz_test): New types.
9726         (TZ, LT): New static vars.
9727         (tzalloc_test): New function.
9728         (main): Rewrite in terms of posixtm_test and tzalloc_test.
9730         time_rz: port to Solaris etc.
9731         Works around a tzname problem on platforms like Solaris that have
9732         tzname but not tm_zone, by setting tzname at the appropriate time
9733         and restoring it later.
9734         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
9735         New static vars.
9736         (save_abbr) [HAVE_TZNAME]: Set them.
9737         (revert_tz) [HAVE_TZNAME]: Clear or use them.
9738         (restore_tzname): New function.
9739         (localtime_rz, mktime_z): Use it.
9741         time_rz: now LGPL
9742         * modules/time_rz (License): Now LGPL, because strftime depends on it.
9744         time_rz: make a constant 'const'
9745         * lib/time_rz.c (local_tz): Now const.
9747         time_rz: fix off-by-one typo
9748         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
9750 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9752         fprintftime, strftime: use timezone_t args
9753         * NEWS: Document the change.
9754         * lib/fprintftime.h (fprintftime):
9755         * lib/strftime.c (extra_args) [my_strftime]:
9756         * lib/strftime.h (nstrftime):
9757         Time zone arg is now of type timezone_t, not int.
9758         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
9759         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
9760         (my_strftime) [emacs && !my_strftime]:
9761         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
9762         Remove; Emacs doesn't need this any more.
9763         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
9764         fprintftime and nstrftime to call tzset.
9765         (ut) [!my_strftime]: Remove, replacing with ...
9766         (tz) [!my_stftime]: ... this new macro.  All uses changed.
9767         (strftime_case_): Use localtime_rz and mktime_z instead
9768         of localtime_r and mktime.
9769         * modules/fprintftime (Depends-on): Add time_rz.
9770         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
9771         * tests/test-strftime.c (main): Adjust to new nstrftime API.
9773         time_rz: new module
9774         * MODULES.html.sh: Add time_rz.
9775         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
9776         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
9777         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
9778         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
9779         New var HAVE_TIMEZONE_T (default 0).
9780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
9781         New var GNULIB_TIME_RZ (default 0).
9782         * modules/time (time.h): Substitute the new vars.
9784         flexmember: license is now unlimited
9785         * modules/flexmember (License): Change to unlimited,
9786         since its only source file gives an unlimited license.
9788 2015-07-15  Eric Blake  <eblake@redhat.com>
9790         maint: update copyright paper procedures
9791         * config/srclist.txt: Drop outdated files.
9792         * doc/Copyright/conditions.txt: Update to latest.
9793         * doc/Copyright/assign.changes.manual: Delete.
9794         * doc/Copyright/assign.future.manual: Likewise.
9795         * doc/Copyright/assign.manual: Likewise.
9796         * doc/Copyright/assign.translation.manual: Likewise.
9797         * doc/Copyright/disclaim.changes.manual: Likewise.
9798         * doc/Copyright/disclaim.manual: Likewise.
9799         * doc/Copyright/disclaim.program: Likewise.
9801 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9803         localename: fix link error on Illumos
9804         Illumos defines __sun, but does not have getlocalename_l nor the
9805         equivalent.  This partially reverts commit 387c214.
9806         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
9807         available, as well as uselocale.
9808         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
9809         use getlocalename_l if it is not available.
9811 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9813         unistr/uN-strtok-tests: avoid a trivial leak
9814         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
9815         input and delim after the multibyte delimiter tests.
9817 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
9819         file-has-acl, acl-permissions: fix HP-UX typos
9820         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
9821         * lib/file-has-acl.c (file_has_acl):
9822         * lib/set-permissions.c (context_acl_from_mode)
9823         (context_aclv_from_mode, set_acls):
9824         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
9825         They were introduced by the recent ACL changes.
9827         regex: match current GNU grep behavior
9828         These symbols have not matched GNU grep behavior for quite some time.
9829         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
9830         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
9831         Change to match current GNU behavior.
9832         Simplify by expressing it as differences from POSIX BREs and EREs.
9833         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
9835 2015-07-03  Jim Meyering  <meyering@fb.com>
9837         set-permissions.c: adjust acl_from_mode's cpp guard
9838         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
9839         directives identical to those guarding the sole use.
9840         Otherwise, on some systems, we'd get a warning about
9841         the function being defined but not used.
9842         Also, filter through cppi to correct misleading indentation
9843         of cpp directives.
9845 2015-07-03  Pádraig Brady  <P@draigBrady.com>
9847         tests: restrict shells to those that support 'local'
9848         The local keyword is very widely supported and used
9849         in tests in coreutils and grep at least.  Therefore
9850         restrict to testing with shells that support it.
9851         This mainly excludes /bin/sh on Solaris.
9852         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
9854 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
9855         and Daiki Ueno  <ueno@gnu.org>
9857         unistr/uN-strtok: handle multibyte delimiters
9858         Previously, uN_strtok moved PTR to the next unit to the token end.
9859         When DELIM contained a multibyte character, the new position could
9860         be a middle of a multibyte character.
9861         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
9862         after the token.
9863         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
9864         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
9865         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
9866         * modules/unistr/u8-strtok (Depends-on): Depend on
9867         unistr/u8-strmblen.
9868         * modules/unistr/u16-strtok (Depends-on): Depend on
9869         unistr/u16-strmblen.
9870         * modules/unistr/u32-strtok (Depends-on): Depend on
9871         unistr/u32-strmblen.
9872         * tests/unistr/test-u-strtok.h: New file.
9873         * tests/unistr/test-u8-strtok.c: New file.
9874         * tests/unistr/test-u16-strtok.c: New file.
9875         * tests/unistr/test-u32-strtok.c: New file.
9876         * modules/unistr/u8-strtok-tests: New file.
9877         * modules/unistr/u32-strtok-tests: New file.
9878         * modules/unistr/u16-strtok-tests: New file.
9880 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
9882         update-copyright: fix test failure with perl >= 5.22 (trivial)
9883         * build-aux/update-copyright: Escape a literal left curly bracket,
9884         required with perl >= 5.22
9886 2015-07-02  Daiki Ueno  <ueno@gnu.org>
9888         u{16,32}-strstr-tests: relax timeout condition
9889         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
9890         tests can take longer than 5 seconds to complete.
9891         Reported by Dagobert Michelsen in:
9892         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
9893         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
9894         seconds to 10 seconds.
9895         * tests/unistr/test-u32-strstr.c (main): Likewise.
9897 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
9899         gnulib-common.m4: change the ARFLAGS default to 'cr'
9900         In some GNU/Linux distributions people started to compile 'ar'
9901         binary with --enable-deterministic-archives (binutils project).
9902         That, however, in combination with previous autotools long time
9903         working default AR{_,}FLAGS=cru causes warnings on such
9904         installations:
9905         ar: `u' modifier ignored since `D' is the default (see `U')
9906         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
9907         set already.
9909 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
9911         selinux-h: avoid double free after *getfilecon()
9912         Originally reported by Ben Shelton on bug-tar:
9913         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
9914         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
9915         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
9916         param should be freed by freecon(3) (regardless the return value).
9918 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
9920         fix pty related tests issues on Windows (trivial)
9921         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
9922         however it's still present in tests/ subdirectory of the final project.
9923         Therefore avoid it to pass `make check`.
9924         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
9925         will just return -ENOSYS, so avoid this non applicable test allowing
9926         the build to proceed.
9928 2015-07-01  Pádraig Brady  <P@draigBrady.com>
9930         acl: fix definition of acl_from_mode on FreeBSD
9931         This was causing basic coreutils copy operations to fail
9932         with ENOTSUP or ENOENT error messages.
9933         * lib/acl-internal.h (acl_from_mode): Only define when
9934         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
9935         of acl_from_mode() defined in lib/set-permissions.c to
9936         be used on FreeBSD at least.
9937         * lib/set-permissions.c: Fix up comment spelling,
9938         and a redundant variable assignment; noticed in passing.
9940 2015-06-30  Pádraig Brady  <P@draigBrady.com>
9942         readutmp: port to FreeBSD >= 9
9943         * lib/readutmp.h: Map utmpxname() to setutxdb().
9944         With that coreutils who(1) and pinky(1) tests pass.
9946 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9948         mgetgroups: port to strict OS X
9949         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
9950         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
9951         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
9952         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
9954 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
9956         mgetgroups: port to strict OS X
9957         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
9958         Document the getgrouplist problem.
9959         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
9960         New macro.
9961         (mgetgroups): Use it.
9962         * m4/mgetgroups.m4 (gl_MGETGROUPS):
9963         Check for OS X signature for getgrouplist.
9965 2015-06-29  Jim Meyering  <meyering@fb.com>
9967         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
9968         It started like this when building coreutils' latest on OS X,
9969         invoking ./configure with a nonempty --cache=.cache:
9971           lib/linkat.c:46:42: error: operator '||' has no right operand
9972           lib/linkat.c: In function 'rpl_linkat':
9973           lib/linkat.c:330:27: error: #if with no expression
9975         Here's linkat.c's line 46:
9977           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
9979         Here's some context:
9981           $ grep linkat_nofoll .cache
9982           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
9983           $ grep LINKAT_SYM lib/config.h
9984           #define LINKAT_SYMLINK_NOTSUP
9986         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
9987         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
9988         but that violates a tenet of AC_CACHE_CHECK: it must
9989         have no side effect other than setting its cache variable.
9991         What happens is that when the cache is set, we'd skip the
9992         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
9993         defined to whatever value it happened to have in configure's
9994         environment.  In my case, it was not defined, so this later code:
9996           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
9997             [Define to 1 if linkat can create hardlinks to symlinks])
9999         would emit code with an empty RHS.
10001         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
10002         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
10004 2015-06-28  Jim Meyering  <meyering@fb.com>
10006         mountlist: avoid an unused-label warning on OS X
10007         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
10008         Building on OS X, I saw a warning about the "free_then_fail" label
10009         being unused.  Give it the _GL_UNUSED_LABEL attribute.
10011         error.c: correct printf-style format: %d -> %u
10012         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
10013         rather than %d, to match the type of "line_number", unsigned int.
10015 2015-06-25  Pádraig Brady  <P@draigBrady.com>
10017         fts: avoid reading beyond the heap allocation
10018         GCC 5.1.1 with -O2 and -fsanitize=address reports
10019         a read of size 4 from a heap object of size 3 is indeed invalid,
10020         though this may be due to incorrect padding assumptions by GCC, see:
10021         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
10022         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
10023         * modules/fts: Depend on stdalign.
10025 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10027         savedir: avoid undefined behavior in qsort call
10028         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10029         "runtime error: null pointer passed as argument 1,
10030          which is declared to never be null"
10031         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
10033 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10035         userspec: avoid undefined behavior in gettext call
10036         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10037         "runtime error: null pointer passed as argument 2,
10038          which is declared to never be null"
10039         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
10041 2015-06-20  Glenn Morris  <rgm@gnu.org>
10043         gitlog-to-changelog: improve gitmerge.el commits
10044         Let the Emacs ChangeLog generation process exclude "skipped"
10045         messages from merge commits (Bug#20717).
10046         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
10048 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10050         wchar: fix MinGW compilation warnings
10051         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
10052         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
10053         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
10055 2015-06-20  Daiki Ueno  <ueno@gnu.org>
10057         uniname/uniname-tests: use pristine data files
10058         For copyright and maintenance reasons, use the data files from UCD
10059         without modification.
10060         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
10061         (getfield): Remove.
10062         (aliases_count): New global variable.
10063         (fill_names): Skip comments and empty lines in the input.  Don't
10064         use getfield.
10065         (fill_aliases): Likewise.
10066         (main): Change the expected command line arguments to:
10067         NAMES... ["--" ALIASES...].
10068         * tests/uniname/test-uninames.sh: Adjust to the change in
10069         test-uninames.c.
10070         * tests/uniname/UnicodeDataNames.txt: Remove.
10071         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
10072         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
10073         file from Unicode 8.0.0.
10075 2015-06-19  Pádraig Brady  <P@draigBrady.com>
10077         linked-list, linkedhash-list: avoid compiler warnings
10078         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10079         -Werror=suggest-attribute=pure (from GCC 5.1.1).
10081 2015-06-19  Daiki Ueno  <ueno@gnu.org>
10083         libunistring: bump minimum version to 0.9.6
10084         * all modules depending on updated Unicode data: Regenerate.
10085         The modules are listed by a script that does:
10086         - for each file listed by: git show --oneline --name-only 705f4efc
10087           - deduce the containing modules, based on "Files:"
10088         - deduce the modules which depend on the containing modules, based
10089           on "Depends-on:"
10091 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10093         uniname/uniname: update to Unicode 8.0.0
10094         * lib/uniname/uninames.h: Regenerate.
10095         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
10096         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
10098 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10100         libunistring: update to Unicode 8.0.0
10101         * lib/gen-uni-tables.c (SIZEOF): New macro.
10102         (output_numeric): Increase the maximum number of fractions from
10103         128 to 160.  Increase the level3 value width from 7 bits to 8
10104         bits.  Use SIZEOF instead of a hard-coded integer.
10105         (output_blocks): Decrease the cut-off threshold from 0x30000 to
10106         0x28000.
10107         (fill_blocks): Increase the maximum number of blocks from 256 to
10108         384.  Use SIZEOF instead of a hard-coded integer.
10109         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
10110         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
10111         value width.
10112         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
10113         a new case added to LBP22.
10114         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
10115         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
10116         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
10117         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
10118         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
10119         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10120         lib/uniwidth/width.c.
10121         * all generated files under lib/uni* and tests/uni*: Regenerate.
10123 2015-06-16  Pádraig Brady  <P@draigBrady.com>
10125         gnu-web-doc-update: add --mirror to remove stale files
10126         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
10127         out of date files from the CVS server.  Since this is usually
10128         appropriate, a prompt is given when the option is not specified,
10129         along with the `cvs remove` command that would be run.
10131 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10133         acl-permissions: pacify -Wsuggest-attribute=const
10134         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
10135         * lib/acl-internal.h (free_permission_context):
10136         Declare with attribute const if ! (defined USE_ACL &&
10137         (HAVE_ACL_GET_FILE || defined GETACL)).
10139         fsync: document AIX misbehavior
10140         * doc/posix-functions/fsync.texi (fsync):
10141         Document failure on AIX with read-only file descriptor.
10143 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
10145         stdio: Don't redefine gets when using C++
10146         * lib/stdio.in.h (gets): Disable warning on C++.
10148 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10150         acl-permissions: port to AIX, C89 HP-UX
10151         Problems reported by Michael Felt.
10152         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
10153         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
10154         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
10155         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
10156         Add cast for AIX, whose system calls are declared to accept
10157         char * even though the arguments are really char const *.
10158         * lib/get-permissions.c (get_permissions):
10159         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
10160         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
10161         that broke a build.
10162         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
10163         Rework types to pacify xlc.
10165 2015-06-03  Pádraig Brady  <P@draigBrady.com>
10167         vasprintf-posix: avoid compiling vasnprintf where possible
10168         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
10169         module where not required.  For example on a GNU/Linux system
10170         when gnulib-tool is run with the --conditional-dependencies option.
10172 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10174         file-has-acl: fix build on Mac OS X 10
10175         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
10176         which has an incompatible 6 parameter getxattr() call.
10177         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
10178         call on Mac OS X >= 10.4.
10179         * doc/glibc-functions/fgetxattr.texi: Likewise.
10180         * lib/file-has-acl.c: Revert to more complete combined check.
10181         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
10182         Reported by Jack Howarth.
10184 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10186         prefix-gnulib-mk: remove no longer needed special case
10187         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
10188         continued lib_SOURCES lines are no longer present,
10189         so special case handling of such entries is not required.
10191 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10193         acl: don't depend on the deprecated qacl module
10194         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
10196 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10198         gnulib-tool: concatenate lib_SOURCES to a single line
10199         * gnulib-tool: Refactor the line merging sed logic,
10200         and use that to output a single lib_SOURCES line for each module.
10201         gnulib using projects often postprocess this output to prepend
10202         subdir paths to each item, and having a single line simplifies this
10203         processing allowing better decoupling from the gnulib-tool output.
10205 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
10207         pthread_sigmask: discount system version if a simple macro (trivial)
10208         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
10209         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
10210         function to ensure it's available.
10212 2015-05-31  Pádraig Brady  <P@draigBrady.com>
10214         readlinkat: avoid OS X 10.10 trailing slash bug
10215         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
10216         has this bug.
10217         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
10218         that OS X 10.10 has this function.
10219         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
10220         as done for readlink().
10221         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
10222         trailing slash bug, and assume readlinkat() has the same issue.
10223         Also fix a typo where $gl_cv_decl_readlink_works was tested,
10224         rather than the correct $gl_cv_decl_readlinkat_works.
10226 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10228         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
10229         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
10230         module rewrite.
10232         acl-permissions: Fix build on Solaris and Cygwin
10233         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
10234         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
10235         ace_entries variables have moved into struct permission_context but
10236         they were still accessed as local variables here.
10238 2015-05-29  Pádraig Brady  <P@draigBrady.com>
10240         linkat: avoid OS X 10.10 trailing slash with symlink bug
10241         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
10242         causes the symlink to be dereferenced, and if it points
10243         to a non existent file, that file will be created as
10244         a hard link to "path1".
10245         This fixes a test failure in test-linkat.c.
10246         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
10247         this case.  The existing workaround in linkat.c for
10248         trailing slash issues, suffices for this case.
10249         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
10250         the list of platforms with trailing slash issues.
10252 2015-05-28  Pádraig Brady  <P@draigBrady.com>
10254         unlinkat: handle ignoring of ".." on Darwin 14
10255         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
10256         on Mac OS X 10.10, where it ignores paths with a trailing "..",
10257         so handle in the same manner.
10258         * m4/unlinkat.m4: Comment on this Darwin issue.
10259         * doc/posix-functions/unlink.texi: Update the latest version
10260         where the issue was seen.
10261         * doc/posix-functions/unlinkat.texi: Mention this issue.
10262         Fixes a test failure in test-unlinkat.c.
10264 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10266         qacl: split into qcopy-acl and qset-acl
10267         Emacs needs the former, but not the latter.
10268         * modules/acl-permissions: New file, containing most of the old qacl.
10269         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
10270         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
10271         * modules/qcopy-acl, modules/qset-acl: New files.
10272         * MODULES.html.sh (File system functions):
10273         Mention the new modules, and mention qacl while we're at it.
10275 2015-05-27  Glenn Morris  <rgm@gnu.org>
10277         gitlog-to-changelog: new option --ignore-line
10278         (This patch is imported from the GNU Emacs master.)
10279         This option ignores individual commit lines matching a pattern.
10280         * build-aux/gitlog-to-changelog: Add --ignore-line option.
10282 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
10284         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
10285         Implement get_permissions and set_permissions primitives for getting all
10286         the permissions of a file, storing them, and later setting them. (In the
10287         minimal case, the permissions consist only of a file mode.) Reimplement
10288         qset_acl and qcopy_acl based on these new primitives: this avoids code
10289         duplication and makes error handling more consistent.
10290         The Solaris and Cygwin code still uses duplicate code paths for setting
10291         a file mode while making sure that no acls exist and setting an explicit
10292         acl; this is no worse than before, but could be cleaned up.  The AIX
10293         code still doesn't read ACLs, it only makes sure that acls don't get in
10294         the way when setting a file mode.
10295         * lib/acl-internal.h (struct permission_context): New data structure.
10296         (get_permissions, set_permissions, free_permission_context): Declare.
10297         * lib/acl-internal.c (free_permission_context): New helper function.
10298         * lib/get-permissions.c (get_permissions): New helper function split off
10299         from qcopy_acl.
10300         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
10301         AIX, set a file's permissions based only on a file mode.
10302         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
10303         other platforms construct a temporary acl from the file mode and set
10304         that acl in the same way as setting an acl read from the source file.
10305         This should help avoid code duplication and inconsistent / buggy
10306         behavior.
10307         (set_acls): New helper function Split off from qcopy_acl.
10308         (chmod_or_fchmod): Moved here from qset-acl.c.
10309         (set_permissions): New helper function.
10310         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
10311         set_permissions.
10312         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
10313         * modules/qacl: Add get-permissions.c and set-permissions.c.
10315         file-has-acl: Split feature tests again (Bug#20667)
10316         * lib/file-has-acl.c: Instead of testing for
10317         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
10318         define them when needed.
10319         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
10320         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
10322 2015-05-27  Pádraig Brady  <P@draigBrady.com>
10324         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
10325         This avoids a conflict with "FORTIFY_SOURCE" variants
10326         of the string functions when they're replaced on NetBSD-6.0.1
10327         and Darwin-14.3.0 at least.
10328         * lib/string.in.h: Avoid including our "lib/string.h" while
10329         including the system <string.h>.
10331 2015-05-26  Eric Blake  <eblake@redhat.com>
10333         stdio: limit __gnu_printf__ witness to gcc 4.4+
10334         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
10335         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
10337         error: use correct printf attributes on mingw
10338         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
10340         inttypes: force correct mingw PRIdMAX even without <stdio.h>
10341         * modules/inttypes (Depends-on): Require extensions, so that mingw
10342         always uses GNU style inttypes.
10343         * lib/inttypes.in.h: On mingw, include <stdio.h>.
10345         stdio: fix probe on mingw under gcc 5.1
10346         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
10347         around new gcc preprocessor rules.
10349 2015-05-07  Glenn Morris  <rgm@gnu.org>
10351         gitlog-to-changelog: parse "Tiny-change"
10352         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
10353         "Copyright-paperwork-exempt".  (Bug#20324)
10355 2015-05-06  Pádraig Brady  <P@draigBrady.com>
10357         doc: document glibc posix_fallocate() issues
10358         * doc/posix-functions/posix_fallocate.texi: Mention the
10359         glibc efficiency problems and issues with NFS.
10361 2015-05-05  Karl Berry  <karl@freefriends.org>
10363         * build-aux/gendocs.sh (usage): document new css default
10364         for HTML (--htmlarg).
10366 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10368         extern-inline: no need for workaround in GCC 5.1
10369         * doc/extern-inline.texi (extern inline):
10370         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
10371         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
10372         around these bugs in GCC 5.1 and later.  Maybe in a decade or
10373         two we can remove these workarounds.
10375 2015-04-28  Pádraig Brady  <P@draigBrady.com>
10377         eealloc, pagealign_alloc, xalloc: avoid clang warnings
10378         Avoid [-Wunknown-attributes] warnings like:
10379         warning: unknown attribute '__alloc_size__' ignored
10380         * lib/xalloc.h: Don't use the __alloc_size__  attribute
10381         with clang, as support has been fully removed as of clang 3.5:
10382         https://github.com/llvm-mirror/clang/commit/c047507a
10383         * lib/eealloc.h: Likewise.
10384         * lib/pagealign_alloc.h: Likewise.
10386 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10388         tests: pacify GCC 5.1's stricter printf checking
10389         * tests/test-dirname.c (main):
10390         * tests/test-getaddrinfo.c (simple):
10391         * tests/test-getlogin.c (main):
10392         * tests/test-getndelim2.c (main):
10393         * tests/test-inttostr.c (CK):
10394         * tests/test-md5.c (main):
10395         * tests/test-read-file.c (main):
10396         * tests/test-sha1.c (main):
10397         Fix mismatches between printf format and value signedness.
10398         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
10399         Remove, as CAST_VAL always returned a value of type uintmax_t.
10401         fts: port to GCC 5.1 with --enable-gcc-warnings
10402         Without this fix, GCC 5.1 (correctly) warns about a subscript
10403         error on the fts_name component of FTSENT.  It's actually a
10404         flexible member, so define it that way on C99 or later hosts.
10405         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
10406         structure that now has a flexible array member.
10407         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
10408         (FTSENT): fts_name is now flexible on C99-or-later platforms.
10409         * modules/fts (Depends-on): Add flexmember.
10411 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10413         file-has-acl: port to CentOS 6
10414         Problem reported by Tom G. Christensen in:
10415         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
10416         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
10417         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
10418         HAVE_GETXATTR.
10419         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
10420         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
10421         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
10422         file-has-acl.c actually needs.
10424 2015-04-26  Pádraig Brady  <P@draigBrady.com>
10426         file-has-acl: always return false when ACLs aren't supported
10427         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
10428         change the GNU/Linux getxattr path, to transform "not supported"
10429         errors to a false return rather than an error.  This is handled
10430         within file_has_acl() due to the platform specific tests to
10431         determine if ACLs are not supported.
10433 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10435         gettext: propagate po/Makefile.in.in too
10436         * build-aux/po/Makefile.in.in: Copy from latest gettext.
10437         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
10438         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
10439         between Makefile.in.in and the gettext-runtime m4 files.
10441 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10443         file-has-acl: new module, split from acl
10444         And add a new module file-has-acl-tests to match.
10445         I ran into a problem with the recent changes to the acl module,
10446         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
10447         When using the fixed version with Emacs, I discovered that
10448         file-has-acl wasn't separated out well enough for Emacs (e.g., it
10449         had multiple libraries, but needed only one), so I fixed that too.
10450         * NEWS: Document this incompatible change.
10451         * modules/file-has-acl, modules/file-has-acl-tests: New files.
10452         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
10453         Initialize gl_need_lib_has_acl.
10454         (gl_FUNC_ACL): Require it.
10455         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
10456         Move the file-has-acl.c-relevant stuff to ...
10457         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
10458         use_xattrs = 0' typo, and omit some needless work.  Set
10459         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
10460         when gl_FUNC_ACL is called.
10461         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
10462         (Link): Remove $(LIB_HAS_ACL).
10463         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
10464         (check_PROGRAMS): Move stuff relevant to file-has-acl to
10465         modules/file-has-acl-tests.
10466         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
10468         manywarnings: add GCC 5.1 warnings
10469         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
10470         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
10471         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
10472         -Wsuggest-override, -Wuse-without-only.  Change
10473         -Wnormalized=... operands to match 5.1.
10474         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
10475         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
10476         -Wdiscarded-qualifiers, -Wformat-signedness,
10477         -Wincompatible-pointer-types, -Wint-conversion,
10478         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
10479         -Wshift-count-negative, -Wshift-count-overflow,
10480         -Wsizeof-array-argument, -Wsuggest-final-methods,
10481         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
10482         and add -Warray-bounds=2 as a special case.
10484 2015-04-21  Simon Josefsson  <simon@josefsson.org>
10486         doc: update FDL template to match FDL examples.
10487         * doc/alloca-opt.texi:
10488         * doc/alloca.texi:
10489         * doc/c-ctype.texi:
10490         * doc/c-strcase.texi:
10491         * doc/c-strcaseeq.texi:
10492         * doc/c-strcasestr.texi:
10493         * doc/c-strstr.texi:
10494         * doc/c-strtod.texi:
10495         * doc/c-strtold.texi:
10496         * doc/ctime.texi:
10497         * doc/error.texi:
10498         * doc/gcd.texi:
10499         * doc/gnulib-tool.texi:
10500         * doc/inet_ntoa.texi:
10501         * doc/intprops.texi:
10502         * doc/lib-symbol-visibility.texi:
10503         * doc/maintain.texi:
10504         * doc/parse-datetime.texi:
10505         * doc/quote.texi:
10506         * doc/regexprops-generic.texi:
10507         * doc/standards.texi: Remove spurious 'with' in FDL license
10508         template.
10510 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
10512         lstat: fix cross-compilation 'ln -s' problem
10513         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10514         Have the test program call 'symlink' rather than a separate
10515         script run 'ln -s'; this is more likely to work in
10516         cross-compilation environments.  Reported by Pavel Fedin in:
10517         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
10519 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
10521         gendocs.sh: default to a common CSS style sheet for HTML output
10522         * build-aux/gendocs.sh (htmlarg): Change default value.
10524 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
10526         gnulib-tool: output bold attribute more portably
10527         * gnulib-tool (func_show_module_list): Change hexadecimal
10528         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
10529         encoded numbers as arguments to `printf' is not portable,
10530         and is not claimed by POSIX.  This is the case with FreeBSD.
10532 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10534         qacl: Simplify HP-UX acl_nontrivial check
10535         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
10536         acl_nontrivial. Check if the acl has at most three entries instead (it must
10537         have exactly three entries according to the HP-UX documentation). Ignore
10538         uids and gids as long as an entry is either for a user (i.e., the owner),
10539         a group (i.e., the owning group), or others.
10540         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
10541         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
10543 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
10545         acl: On Linux, check for acls without libacl
10546         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
10547         library function to check for the presence of acls, avoiding a library.
10548         * lib/file-has-acl.c: Include xattr headers if we have them.
10549         (file_has_acl): On Linux, use getxattr().
10550         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
10551         file_has_acl(). Check for xattr headers and getxattr().
10553 2015-04-14  Ángel González  <keisial@gmail.com>
10555         tempname: avoid unused parameter warnings (trivial)
10556         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
10557         (try_nocreate): Likewise.
10559 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
10561         fseeko: fix build failure on NetBSD >= 6 (trivial)
10562         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
10563         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
10565 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10567         gitlog-to-changelog: port to MS-Windows
10568         * build-aux/gitlog-to-changelog (git_dir_option):
10569         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
10570         MS-Windows Perl.  Reported by Eli Zaretskii in:
10571         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
10573 2015-04-07  Karl Berry  <karl@gnu.org>
10575         gendocs: new option --tex for passing args to texi2dvi.
10576         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
10577         (TEXI2DVI): cut to just command name.
10578         (usage): mention new option, and update copyright.
10579         <generate_tex>: use it.
10581 2015-04-07  Karl Berry  <karl@gnu.org>
10583         * config/srclistvars.sh (GETTEXT): new definition.
10584         * config/srclist.txt: use it for gettext .m4 files.
10585         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
10586         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
10587         and continuing into April.
10589 2015-04-07  Daiki Ueno  <ueno@gnu.org>
10591         uniname/uniname-tests: fix failure due to alias
10592         Reported by Jack Howarth in:
10593         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
10594         * tests/uniname/test-uninames.c (name_has_alias): New function.
10595         (test_inverse_lookup): Exclude character name with valid alias,
10596         from randomly generated character names.
10597         (main): Fill unicode_aliases before calling test functions.
10599 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
10601         hash: remove deprecated hash_insert0 function
10602         * lib/hash.h (hash_insert0): Remove deprecated function.
10603         * lib/hash.c (hash_insert0): Likewise.
10605 2015-04-02  Pádraig Brady  <P@draigBrady.com>
10607         mountlist: remove dependency on libmount
10608         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
10609         directly, rather than depending on libmount, which has many
10610         dependencies due to its dependence on libselinux, as detailed at:
10611         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
10612         Note we restrict this to __linux__ as that's probably where this
10613         interface will remain.  If ever porting, it would be best
10614         to first pull the makedev() wrapper from coreutils to a gnulib module.
10615         Note also we don't add a getline dependency to the mountlist module,
10616         as all Linux versions are sufficient.
10618 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10620         stddef: port to pre-C11 GCC on x86
10621         On this platform, max_align_t should have an alignment of 8 even
10622         though the storage alignments of double, long, etc. max out at 4.
10623         Inspired by a comment of Andreas Schwab's here:
10624         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
10625         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
10626         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
10627         * tests/test-stddef.c: Test __alignof__ too, if available.
10629 2015-03-24  Pádraig Brady  <P@draigBrady.com>
10631         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
10632         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
10634 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
10636         yesno: make EOL optional in ENABLE_NLS case also (trival)
10637         * lib/yesno.c (yesno): Check for EOL before replacing.
10638         * tests/test-yesno.sh: Add a test case (test along with gettext).
10640 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10642         fdopendir-tests: test it does not close its arg
10643         * tests/test-fdopendir.c (main): Test that fdopendir does not
10644         close its argument.  From a suggestion by David Grayson in:
10645         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
10647 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10649         gitlog-to-changelog: trim trailing white space
10650         * build-aux/gitlog-to-changelog (main):
10651         Trim trailing white space from commit message lines.
10652         This is helpful for processing the GNU Emacs repository,
10653         which dates back to 1985 and contains a lot of such lines.
10655         gitlog-to-changelog: new option --ignore-matching
10656         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
10657         Support new option --ignore-matching=PAT, which ignores all
10658         commit messages whose first line matches PAT.
10660 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10662         fdopendir: port better to MinGW
10663         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
10664         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
10665         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
10666         * modules/fdopendir (Depends-on): Add dirfd.
10668 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
10670         fdopendir: fix typo in comment
10671         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
10673 2015-03-09  Eric Blake  <eblake@redhat.com>
10675         error: document all entry points provided
10676         * doc/glibc-functions/error_print_progname.texi
10677         (error_print_progname): Mention the error module.
10678         * doc/glibc-functions/error_at_line.texi (error_at_line):
10679         Likewise.
10680         * doc/glibc-functions/error_message_count.texi
10681         (error_message_count): Likewise.
10682         * doc/glibc-functions/error_one_per_line.texi
10683         (error_one_per_line): Likewise.
10685 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
10687         vasnprintf: pacify clang 3.5.0
10688         Problem reported by Werner Lemberg in:
10689         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
10690         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
10691         The casts aren't needed, since the characters in question are ASCII.
10693 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10695         glob, etc.: port to MSVC v18 on MS-Windows 8.1
10696         * lib/dirent--.h (GNULIB_defined_opendir):
10697         * lib/dirent.in.h (GNULIB_defined_opendir)
10698         (GNULIB_defined_closedir):
10699         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
10700         #undef only if Gnulib defined it.
10702         poll: port to MSVC v18 on MS-Windows 8.1
10703         Problem reported by Gisle Vanem in:
10704         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
10705         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
10706         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
10707         Add sys_socket.
10709 2015-02-24  Pádraig Brady  <P@draigBrady.com>
10711         tests: support stderr verification with returns_()
10712         * tests/init.sh (returns_): Disable tracing for this wrapper
10713         function, so that stderr of the wrapped command is unchanged,
10714         allowing for verification of the contents.
10716 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
10718         passfd: avoid valgrind uninitalised data warning
10719         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
10720         to include just the fd we've initialized, rather than including
10721         the extra space used for alignment.
10723 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10725         uniwbrk/u32-wordbreaks-tests: fix copyright
10726         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
10728         dup2: doc and test for Android bug
10729         Reported by Kevin Cernekee in:
10730         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
10731         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10732         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
10734 2015-02-23  Kevin Cernekee  <cernekee@google.com>
10736         Replace dup2() on Android
10737         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
10738         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
10739         fails.  Using rpl_dup2() fixes this because it has an explicit test
10740         for this condition.
10742 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
10744         Android doesn't define RLIM_SAVED_*
10745         Portability problem reported by Kevin Cernekee in:
10746         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
10747         * doc/posix-headers/sys_resource.texi (sys/resource.h):
10748         Mention the portability problem.
10749         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
10750         Define if not defined.
10751         * m4/dup2.m4 (gl_FUNC_DUP2):
10752         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10753         Likewise.
10755 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10757         vasnprintf-posix-tests: use consistent test
10758         * tests/test-vasnprintf-posix.c (test_function):
10759         Use "<" in assert instead of "<=", for consistency with other tests.
10761 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10763         printf, isinf, etc.: noncanonical != NaN
10764         Do not require that isinf, printf, etc. treat noncanonical
10765         values as NaNs.  Instead, require only that they do not crash.
10766         Problem reported by Joseph Myers in:
10767         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
10768         * doc/posix-functions/dprintf.texi (dprintf):
10769         * doc/posix-functions/fprintf.texi (fprintf):
10770         * doc/posix-functions/isfinite.texi (isfinite):
10771         * doc/posix-functions/isinf.texi (isinf):
10772         * doc/posix-functions/isnan.texi (isnan):
10773         * doc/posix-functions/printf.texi (printf):
10774         * doc/posix-functions/snprintf.texi (snprintf):
10775         * doc/posix-functions/sprintf.texi (sprintf):
10776         * doc/posix-functions/vdprintf.texi (vdprintf):
10777         * doc/posix-functions/vfprintf.texi (vfprintf):
10778         * doc/posix-functions/vprintf.texi (vprintf):
10779         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10780         * doc/posix-functions/vsprintf.texi (vsprintf):
10781         Document this.
10782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
10783         * m4/isinf.m4 (gl_ISINFL_WORKS):
10784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
10785         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
10786         * tests/test-isfinite.c (test_isfinitel):
10787         * tests/test-isinf.c (test_isinfl):
10788         * tests/test-isnan.c (test_long_double):
10789         * tests/test-isnanl.h (main):
10790         * tests/test-snprintf-posix.h (test_function):
10791         * tests/test-sprintf-posix.h (test_function):
10792         * tests/test-vasnprintf-posix.c (test_function):
10793         * tests/test-vasprintf-posix.c (test_function):
10794 o       Test only that noncanonical values do not cause crashes, not that
10795         they are treated as NaNs.  In some cases this means a larger
10796         output buffer is needed.
10798 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
10800         fts: remove redundant close() (trivial)
10801         * lib/fts.c (fts_read): Remove redundant call to close().
10802         Spotted by coverity.
10804 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10806         getdtablesize: port better for Android
10807         Problem reported by Kevin Cernekee in:
10808         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
10809         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
10810         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
10811         Instead, just use getrlimit, taking care to avoid Cygwin bug.
10813         poll: fixes for large fds
10814         * lib/poll.c (poll): Don't check directly for NFD too large.
10815         Don't rely on undefined behavior in FD_SET when an arg exceeds
10816         FD_SETSIZE.  Always set revents afterwards, even if to zero.
10817         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
10818         as that makes the test a bit stricter.
10820 2015-02-19  Kevin Cernekee  <cernekee@google.com>
10822         fcntl: Fix cross compiling
10823         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
10824         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
10826 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10828         dup2, fcntl: cross-compile better for Android
10829         Problem reported by Kevin Cernekee in:
10830         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
10831         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
10832         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
10833         there's little need to cross-compile for older kernels nowadays.
10834         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
10835         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
10837 2015-02-18  Pádraig Brady  <P@draigBrady.com>
10839         getopt: don't crash on memory exhaustion
10840         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
10841         memory exhaustion.  In the _LIBC case we use alloca() as is
10842         already done in glibc, so we don't need to consider the separate
10843         error path in that awkward case.  Also fix a memory leak when
10844         ambiguous options are present.
10845         Reported by Tobias Stoeckmann
10847 2015-02-17  Mike Miller  <mtmiller@ieee.org>
10849         tempname: allow compilation with C++ (trivial)
10850         * lib/tempname.h [C++]: Specify extern "C" linkage.
10851         * lib/tempname.h (try_tempname):
10852         * lib/tempname.c (__try_tempname, __gen_tempname):
10853         Rename 'try' to 'tryfunc'.
10855 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10857         dup2, fcntl: port to AIX
10858         * m4/dup2.m4 (gl_FUNC_DUP2):
10859         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10860         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
10861         The former works on AIX 7.1 but the latter does not.
10862         Also, this may work better with Android; see:
10863         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
10865 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10867         getdtablesize, dup2, fcntl: port to Android
10868         Problem reported by Kevin Cernekee in:
10869         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
10870         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
10871         Mention that getdtablesize doesn't work on Android.
10872         * lib/getdtablesize.c: Use getrlimit substitute only if
10873         getdtablesize is declared.  This should suffice for Cygwin
10874         while not breaking Android.
10875         * m4/dup2.m4 (gl_FUNC_DUP2):
10876         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10877         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
10878         standardized but the latter is not, and sysconf works on Android.
10879         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
10880         Also check that getdtablesize is declared.
10881         This removes the need for a special case for Android.
10883 2015-02-16  Kevin Cernekee  <cernekee@google.com>
10885         localename: Implement gl_locale_name_thread_unsafe for Android
10886         * lib/localename.c: Android API level >= 21 supports two hardcoded
10887         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
10888         the internal __locale_t struct.
10890 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
10892         fts: avoid crash when a cycle is added while traversing
10893         This could be triggered by auto-mounting a recursive bind mount.
10894         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
10895         * lib/fts.c (fts_read): Avoid removing the original hash table item
10896         when leaving a directory that caused a cycle, and preserve the FTS_DC
10897         flag.
10899 2015-02-16  Daiki Ueno  <ueno@gnu.org>
10901         uniname/uniname: support character alias
10902         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
10903         Generate one-way mapping from aliases to codepoints in the
10904         generated tables.  Special case variation selectors to reduce
10905         table size.
10906         * lib/uniname/uniname.c (unicode_character_name): Special case
10907         variation selectors.
10908         (unicode_name_character): Special case variation selectors and
10909         their aliases.
10910         * lib/uniname/uninames.h: Regenerate.
10911         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
10912         * modules/uniname/uniname-tests (Files): Add
10913         tests/uniname/NameAliases.txt.
10914         * tests/uniname/test-uninames.c: Mark as static.
10915         (ALIASLEN): Define.
10916         (struct unicode_alias): New struct.
10917         (unicode_aliases): New variable.
10918         (fill_aliases): New function.
10919         (test_alias_lookup): New test function.
10920         (main): Run the 'test_alias_lookup' test if the second argument is
10921         given.
10922         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
10923         second argument.
10925 2015-02-11  Kevin Cernekee  <cernekee@google.com>
10927         Fix FILE struct compatibility with Android API level >= 21
10928         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
10929         __sferror.  Recent versions of Bionic's stdio.h no longer define
10930         __sferror.
10931         * lib/fbufmode.c: Likewise.
10932         * lib/fflush.c: Likewise.
10933         * lib/fpurge.c: Likewise.
10934         * lib/freadable.c: Likewise.
10935         * lib/freadahead.c: Likewise.
10936         * lib/freading.c: Likewise.
10937         * lib/freadptr.c: Likewise.
10938         * lib/freadseek.c: Likewise.
10939         * lib/fseeko.c: Likewise.
10940         * lib/fseterr.c: Likewise.
10941         * lib/fwritable.c: Likewise.
10943         Assume unbroken ungetc() on Android
10944         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
10945         test case passed when running on an Android host, and the code
10946         hasn't really changed since 2009.
10948         getdtablesize: Fix Android build
10949         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
10950         versions have this symbol in the .so library (at least 32-bit
10951         platforms) but are missing the declaration in the header file,
10952         causing the m4 logic to guess incorrectly.
10954         localename: Fix Android build
10955         * modules/localename (Depends-on): Add langinfo.
10957         getugroups: Fix Android build
10958         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
10959         functions.
10961         euidaccess: Fix Android build
10962         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
10963         AT_EACCESS gets declared.
10965         linkat_nofollow: Add fallback case for cross compiling
10966         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
10968         net_if: Handle content-free <net/if.h> system headers
10969         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
10970         struct if_nameindex.  If not, enable the replacement header.
10972         signal_h: Fix Android build
10973         * lib/signal.in.h: Add Android to the list of platforms that declare
10974         pthread_sigmask() in <pthread.h> instead of <signal.h>.
10976         duplocale: Fix Android build of duplocale-tests
10977         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
10978         is included by test-duplocale.c (but not by duplocale.c).
10979         * modules/duplocale-tests (configure.ac): Check for monetary.h.
10980         * tests/test-duplocale.c: Skip test if monetary.h is absent.
10981         * doc/posix-headers/monetary.texi: Add Android to the list of
10982         platforms missing monetary.h.
10984 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10986         tests: avoid recent -Werror=unused-variable regression in test-locale
10987         * tests/test-locale.c (main): Reference the variable to avoid the
10988         "unused variable" warning.
10990 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10992         maint: various whitespace cleanups in tempname
10993         * lib/tempname.c: Normalize spacing and line length.
10994         * lib/tempname.h: Likewise.
10995         * modules/tempname: Likewise.
10997 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10999         tests: provide returns_() to simplify exit status checking
11000         * tests/init.sh (returns_): A new function for use in tests,
11001         to allow for easier checking of return values, where you expect
11002         a command to exit with failure status.  By checking for a particular
11003         exit code, you don't hide any crashes for example.
11005 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11007         mountlist: only use libmount when specified
11008         There are currently many shared libs dependencies introduced by
11009         libmount with associated runtime and virt mem overhead.
11010         Therefore don't enable by default.
11011         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
11013 2015-02-08  Daiki Ueno  <ueno@gnu.org>
11015         uniname/unimame-tests: don't link with -lunistring
11016         * modules/uniname/uniname-tests (Makefile.am): Don't link against
11017         $(LIBUNISTRING).  Document the rationale why we need to
11018         conditionalize the test.
11020 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
11022         fstrcmp: don't assume strlen < INT_MAX
11023         * lib/fstrcmp.c: Include stddef.h and stdint.h.
11024         (uintptr_t): Remove, as we're now assuming stdint.
11025         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
11026         Prefer ptrdiff_t to int when the value could exceed INT_MAX
11027         if the input string is long.
11028         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
11029         uintptr_t to size_t when the underlying value is a pointer casted
11030         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
11031         * modules/fstrcmp (Depends-on): Add stdint.
11033         diffseq: prefer ptrdiff_t to ssize_t
11034         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
11035         ptrdiff_t is the natural type for signed indexes.
11036         On a few older platforms, ssize_t is narrower than size_t.
11038         xalloc: fix typo that suppressed warnings
11039         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
11040         This typo, introduced a couple of years ago, mistakenly suppressed
11041         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
11042         -Wmissing-declarations warnings.
11044         full-read: fix license notice typo
11045         * lib/full-read.h: Remove a stray line in the license notice.
11046         Reported by Sam Ellis in: http://bugs.gnu.org/19808
11048         crypto/gc: fix a -Wswitch warning
11049         Reported by Bruce Korb in:
11050         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
11051         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
11053 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11055         gnulib-tool: fix handling of patch(1) diagnostics
11056         * gnulib-tool: Send diagnostics from patch(1) to stderr,
11057         as otherwise gnulib-tool will reparse that output and attempt
11058         to lookup modules.
11060 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11062         bootstrap: exit immediately upon gnulib-tool failure
11063         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
11064         This was noticed when gnulib-tool exited early due to failure
11065         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
11066         but various confusing errors were then given as the build proceeded.
11068 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
11070         symlinkat: include all required header files
11071         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
11072         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
11073         Reported at https://savannah.gnu.org/bugs/index.php?44151
11074         and by Jack Howarth.
11076 2015-01-29  Pádraig Brady  <P@draigBrady.com>
11078         localename: support Solaris 12 and illumos
11079         * lib/localename.c (gl_locale_name_thread_unsafe): call
11080         getlocalename_l() on newer __sun platforms.
11081         Reported by Alexander Pyhalov.
11082         Fix suggested by Rich Burridge.
11084 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
11086         locale: fix tests on illumos (trivial)
11087         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
11088         so move from global scope to main().
11090 2015-01-24  Daiki Ueno  <ueno@gnu.org>
11092         unictype: avoid undefined left-shift behavior
11093         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
11094         gcc's -fsanitize=shift and running its tests triggered:
11095           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
11096             places cannot be represented in type 'int'
11097         Cast LHS to 'unsigned int' after integer promotion.
11098         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11099         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11101 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11103         libunistring: bump version of unitypes dependants
11104         Due to the header file search order, all the headers which depend
11105         on unitypes.h need to be generated, when the preinstalled
11106         libunistring is older.
11107         * modules/unicase/base (configure.ac): Bump minimum version to
11108         0.9.4.
11109         * modules/uniconv/base (configure.ac): Likewise.
11110         * modules/unilbrk/base (configure.ac): Likewise.
11111         * modules/uninorm/base (configure.ac): Likewise.
11112         * modules/unistdio/base (configure.ac): Likewise.
11113         * modules/unistr/base (configure.ac): Likewise.
11114         * modules/uniwbrk/base (configure.ac): Likewise.
11115         * modules/uniwidth/base (configure.ac): Likewise.
11117 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11119         unictype/category-none: fix link with libunistring
11120         Since _UC_CATEGORY_NONE is not a public symbol, it will be
11121         prefixed with "libstring_" when compiled as part of libunistring.
11122         To avoid undefined symbol at link time, increase the minimum
11123         version when the dependant modules are updated.
11124         * modules/unictype/category-none (configure.ac): Bump minimum
11125         version to 0.9.5.
11127 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11129         unitypes: fix build with installed libunistring
11130         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
11131         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
11132         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
11134 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11136         time: port to MinGW32 3.21
11137         Problem reported by Eli Zaretskii in:
11138         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
11139         * lib/time.in.h:
11140         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
11141         * modules/time (Depends-on):
11142         Fall back on unistd.h if the other include files don't define
11143         struct timespec.
11145         update-copyright: apply to self
11146         * build-aux/update-copyright: Fix copyright date.  How ironic!
11148 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11150         libunistring: update to Unicode 7.0.0
11151         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
11152         Manichaean names.
11153         * lib/unictype/joininggroup_name.h: Likewise.
11154         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
11155         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
11156         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
11157         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
11158         (fill_arabicshaping, joining_group_as_c_identifier): Support those
11159         enum values.
11160         (is_property_alphabetic): Accept newly added characters to
11161         cuneiform numeric signs.
11162         (is_property_default_ignorable_code_point): Reject U+0605.
11163         (FIELDLEN): Increase from 120 to 160.
11164         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
11165         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
11166         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
11167         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
11168         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
11169         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
11170         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
11171         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
11172         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
11173         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
11174         U+1E8D0..U+1E8D6.
11175         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
11176         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11177         lib/uniwidth/width.c.
11178         * all generated files under lib/uni* and tests/uni*: Regenerate.
11180 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11182         libunistring: update to Unicode 6.3.0
11183         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11184         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
11185         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
11186         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
11187         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
11188         Update WB5, WB9, WB10, WB13a, and WB13b.
11189         * tests/uniwbrk/test-uc-wordbreaks.c
11190         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
11191         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11192         (UC_BIDI_PDI): New enumeration values.
11193         (bidi_category_byname): Support those enum values.
11194         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
11195         dedicated property assigned.
11196         (is_property_case_ignorable): Check 0x0027.
11197         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11198         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11199         (output_wbp): Support those enum values.
11200         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11201         (UC_BIDI_PDI): New enumeration values.
11202         * lib/unictype/bidi_byname.gperf: Add those property names.
11203         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
11204         U+180E, U+1A1B, and U+2066..U+2069.
11205         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11206         lib/uniwidth/width.c.
11207         * all generated files under lib/uni* and tests/uni*: Regenerate.
11209 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11211         libunistring: update to Unicode 6.2.0
11212         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
11213         (unilbrk_table): Adjust table size.
11214         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11215         for LBP_RI.
11216         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
11217         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
11218         Normalize table index skipping ignored properties.
11219         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
11220         WBP_EXTEND and WBP_FORMAT, which are now computed without using
11221         the table.
11222         * lib/uniwbrk/wbrktable.h: Adjust table size.
11223         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
11224         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
11225         Support rule GB8a.
11226         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
11227         * tests/unigbrk/test-uc-is-grapheme-break.c
11228         (graphemebreakproperty_to_string): Support GBP_RI.
11229         * tests/uniwbrk/test-uc-wordbreaks.c
11230         (wordbreakproperty_to_string): Support WBP_RI.
11231         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
11232         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
11233         (output_lbp): Support LBP_RI.  Adjust some characters changed from
11234         LBP_AL to LBP_ID.
11235         (output_lbp): Support LBP_RI.
11236         (WBP_RI): New enumeration value.
11237         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11238         (output_wbp): Support WBP_RI.
11239         (GBP_RI): New enumeration value.
11240         (output_gbp_test, fill_org_gbp): Support GBP_RI.
11241         * all generated files under lib/uni* and tests/uni*: Regenerate.
11243 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11245         libunistring: update to Unicode 6.1.0
11246         * lib/gen-uni-tables.c (output_joining_group): Switch to
11247         3-level table to accommodate joining groups defined with higher
11248         codepoint value.  Since there are only 88 groups defined in
11249         Unicode 7.0.0, use 7-bit packed format for level3 entries.
11250         (get_lbp): Update for Unicode 6.1.0.
11251         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
11252         3-level table.
11253         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
11254         joining group name.
11255         * lib/unictype/joininggroup_name.h: Likewise.
11256         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
11257         (unilbrk_table): Adjust table size.
11258         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11259         for LBP_HL.
11260         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
11261         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
11262         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
11263         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
11264         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
11265         U+302E..U+302F.
11266         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11267         lib/uniwidth/width.c.
11268         * all generated files under lib/uni* and tests/uni*: Regenerate.
11269         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
11271 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11273         uniwbrk/u32-wordbreaks-tests: add conformance test
11274         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
11275         tests/uniwbrk/test-uc-wordbreaks.c,
11276         tests/uniwbrk/test-uc-wordbreaks.sh, and
11277         tests/uniwbrk/WordBreakTest.txt.
11278         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
11279         test-uc-wordbreaks to $(check_PROGRAMS), and define
11280         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
11281         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
11282         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
11284 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11286         uniwbrk: ignore Extended/Format characters at BOL not BOS
11287         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
11288         characters if the previous character property is one of
11289         WBP_NEWLINE, WBP_CR, and WBP_LF.
11291 2015-01-11  Jim Meyering  <meyering@fb.com>
11293         test-strstr.c: avoid a trivial leak
11294         * tests/test-strstr.c (main): Free haystack.
11296         update-copyright: recognize groff's \(co marker
11297         * build-aux/update-copyright (circle_c_re): Also accept
11298         uses of \(co, as found in gzip.1.
11300 2015-01-08  Pádraig Brady  <P@draigBrady.com>
11302         maint.mk: fix compatibility with OS X nm
11303         * top/maint.mk (_gl_tight_scope): Use the -g option to
11304         show exported items rather than the -e option which is
11305         ignored on all platforms except OS X where it gives an error.
11306         Reported by Assaf Gordon.
11308 2015-01-07  KO Myung-Hun  <komh@chollian.net>
11310         localcharset: improve charset detection on OS/2
11311         Use system codepage when appropriate.  Map OS/2 codepages to
11312         GNU canonical charset names if possible.
11313         * lib/config.charset: Don't output aliases if "$os" is os2*.
11314         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
11315         result for OS/2.
11316         (locale_charset) [OS2]: Use system codepage if codeset is omitted
11317         from the locale name which is neither "C" nor "POSIX".
11319 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
11321         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
11322         This reverts the last patch but one, as it shouldn't be needed now
11323         that the typo is fixed.
11324         * lib/count-leading-zeros.h (count_leading_zeros_ll):
11325         * lib/count-trailing-zeros.h:
11326         * lib/count-one-bits.h:
11327         Go back to using 64-bit intrinsics.
11329         count-leading-zeros: fix pragma typos
11330         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
11331         Fix typos in declaration of intrinsics when _MSC_VER.
11333 2015-01-06  Pádraig Brady  <P@draigBrady.com>
11335         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
11336         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
11337         intrinsics in this case.
11338         * lib/count-trailing-zeros.h: Likewise.
11339         * lib/count-one-bits.h: Likewise.
11341 2015-01-06  Daiki Ueno  <ueno@gnu.org>
11343         uniname/uniname: update to Unicode 7.0.0
11344         To accommodate new characters added since Unicode 5.1.0, this
11345         changes the internal representation of codepoint ranges.
11346         Previously, we grouped codepoint ranges by manually assigned 4-bit
11347         tag, which only allowed 16 groups.  This removes the limitation by
11348         switching to binary search on a table.  For the detail rationale
11349         and the benchmark results, see:
11350         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
11351         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
11352         to INDEX, as it no longer represents a codepoint.
11353         (range): New struct.
11354         (main): Switch to intervals list from a bit-pattern based
11355         classification.
11356         * lib/uniname/uninames.h: Regenerate.
11357         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
11358         * modules/uniname/base (configure.ac): Bump minimum version to
11359         0.9.5.
11360         * modules/uniname/uniname (configure.ac): Bump minimum version to
11361         0.9.5.
11363 2015-01-05  Eric Blake  <eblake@redhat.com>
11365         doc: update INSTALL from autoconf
11366         * doc/install.texi: Resync from autoconf.
11367         * doc/INSTALL: Reflect recent autoconf update.
11368         * doc/INSTALL.ISO: Likewise.
11369         * doc/INSTALL.UTF-8: Likewise.
11371         stdio: fix use of PRIdMAX on modern mingw
11372         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
11373         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
11374         to work with modern mingw.
11376 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
11378         pthread: detect git mingw builds with only partial pollution
11379         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
11380         pollution, as seen temporarily in Fedora 21.
11382 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11384         lib-symbol-versions: cache script check
11385         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
11386         Cache the check for linker version scripts.
11387         From a suggestion by Christophe Curis in:
11388         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
11390 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
11392         maint: fix grammar nits in propername (trivial change)
11393         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
11394         and use an adequate verb and tense.
11396 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
11398         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11399         * module/gendocs: Add 'doc/gendocs_template_min'.
11401         * build-aux/gendocs.sh: Change email addresses and upstream URLs
11402         from to Gnulib's.
11403         (scripturl, templateurl): Adjust accordingly.
11405 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11407         gendocs: copyright date and version fix
11408         Reported by Karl Berry in:
11409         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
11410         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
11411         Fix copyright date.
11412         * build-aux/gendocs.sh (scriptversion): Update.
11414 2015-01-01  Karl Berry  <karl@gnu.org>
11416         * doc/install.texi,
11417         * build-aux/mdate-sh,
11418         * build-aux/depcomp,
11419         * build-aux/config.guess,
11420         * build-aux/config.sub,
11421         * build-aux/ar-lib,
11422         * build-aux/compile: revert copyright updates (some from last
11423         year) in slaved files.
11425 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11427         version-etc: new year
11428         * doc/gnulib.texi:
11429         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
11430         * all files: Run 'make update-copyright'.
11432 2014-12-30  Pádraig Brady  <P@draigBrady.com>
11434         xstrtol: ensure errno is reset
11435         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
11436         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
11438         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
11440 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11442         utimens: fix dependency typo
11443         * modules/utimens (Depends-on): Remove 'assure'.
11444         This bug was introduced in the recent 'assure' patch.
11446 2014-12-22  Eric Blake  <eblake@redhat.com>
11448         docs: mention why libgen.h is bad
11449         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
11451 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11453         assure: new module
11454         This works better than 'assert' when compiling with -DNDEBUG,
11455         as it avoids some compiler diagnostics in that case.
11456         Reported by Norihiro Tanaka in:
11457         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
11458         * MODULES.html.sh (func_all_modules): Add 'assure'.
11459         * lib/assure.h, modules/assure: New files.
11460         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
11461         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
11462         Prefer 'assure' to 'assert'.
11463         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
11464         * modules/chdir-long, modules/cycle-check, modules/fchdir:
11465         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
11466         Depend on 'assure'.
11468 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11470         stdalign: port better to HP compilers
11471         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
11472         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
11474         stdalign: work around Apple GCC 4.0 bug
11475         Reported by David Fang in:
11476         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
11477         * lib/stdalign.in.h (_Alignas):
11478         * m4/stdalign.m4 (gl_STDALIGN_H):
11479         Do not use aligned attribute with GCC 4.0 on Apple.
11481 2014-12-16  Pádraig Brady  <P@draigBrady.com>
11483         getcwd: fix test failure on OS X 10.9
11484         * m4/getcwd-path-max.m4: Avoid the replacement if it
11485         won't be effective due to the PATH_MAX limitation of lstat().
11486         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
11487         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
11488         for this case for use in tests, and also exclude this
11489         case when setting REPLACE_GETCWD.
11490         * tests/test-getcwd.c (test_long_name): Restrict the
11491         tested path length so that lstat() will not be passed
11492         a path greater than PATH_MAX.
11493         Also key a test condition on HAVE_OPENAT_SUPPORT rather
11494         than AT_FDCWD, since the latter is set unconditionally
11495         since Sep 2009 in commit 52c658e9.
11497 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
11499         parse-datetime: avoid a compiler warning with byacc (trivial)
11500         * lib/parse-datetime.y (yylex): Use the same prototype in the
11501         function definition as the declaration, to avoid a -Wstrict-prototypes
11502         warning seen when using byacc.
11504 2014-12-12  Daiki Ueno  <ueno@gnu.org>
11506         unicase/locale-language-tests: fix LOCALE_FR test
11507         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
11508         a French locale with traditional encoding.
11509         Reported by umerqayam in:
11510         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
11512 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11514         stddef: support C11's max_align_t
11515         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
11516         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
11517         Do not undef, as that might cause max_align_t to be defined twice.
11518         Instead, change use to check for _GL_STDDEF_WINT_T too.
11519         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
11520         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
11521         Check for max_align_t.
11522         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
11523         * modules/stddef-tests (Depends-on): Add stdalign.
11524         * tests/test-stddef.c: Test max_align_t.
11526 2014-12-11  Daiki Ueno  <ueno@gnu.org>
11528         unistd: fix iOS check conditional
11529         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
11530         as 0 or 1 in <TargetConditionals.h>, and the previous check always
11531         yielded true on non-iOS environment.
11532         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
11533         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
11534         they are defined.
11536 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11538         posixtm: avoid compiler warning in a better way
11539         * lib/posixtm.c (IF_LINT): Remove.
11540         (year, posix_time_parse):
11541         Return true (not 0) if successful.  All callers changed.
11542         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
11544 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
11546         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
11547         started with '/' on EMX.
11549 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
11551         freopen: workaround freopen() on OS/2 kLIBC
11552         * lib/freopen.c (rpl_freopen): Workaround.
11553         * m4/freopen.m4: Add os2* case.
11555         get_shared_library_fullname: port to EMX
11556         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
11557         on EMX, respectively.
11558         (_DLL_InitTerm): New on EMX.
11559         (get_shared_library_fullname): Implement on EMX.
11561         find_executable: port to EMX
11562         * lib/progreloc.c (find_executable): Implement on EMX.
11564         sched: check struct sched_param in spawn.h as well
11565         * lib/sched.in.h: Include spawn.h on kLIBC.
11566         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
11568 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
11570         bootstrap: Allow perl modules in $buildreq
11571         * build-aux/bootstrap: Add case for perl modules.
11573 2014-12-08  Pádraig Brady  <P@draigBrady.com>
11575         apply _GL_ATTRIBUTE_PURE to some inline functions
11576         clang 3.4.2 flagged these inline functions as pure
11577         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
11578         * lib/sig-handler.h (get_handler): Likewise.
11579         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
11580         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
11582 2014-12-06  Pádraig Brady  <P@draigBrady.com>
11584         vasnprintf: fix potential use after free
11585         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
11586         flagged by clang-analyzer 3.4.2.
11588 2014-12-05  Pádraig Brady  <P@draigBrady.com>
11590         filevercmp, posixtm: avoid compiler warnings with -O3
11591         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
11592         * lib/posixtm.c: (IF_LINT): Define.
11593         (posix_time_parse): Use it to void a "may be used uninitialized"
11594         warning, seen only with -O3.
11596 2014-12-05  Bruno Haible  <bruno@clisp.org>
11598         Fix LDBL80_WORDS macro on big endian platforms.
11599         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
11600         LDBL80_WORDS macro.
11601         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11602         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11603         * tests/test-isfinite.c (test_isfinitel): Likewise.
11604         * tests/test-isinf.c (test_isinfl): Likewise.
11605         * tests/test-isnan.c (test_long_double): Likewise.
11606         * tests/test-isnanl.h (main): Likewise.
11607         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
11608         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
11609         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
11610         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
11611         Reported by Pádraig Brady.
11613 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
11615         git-version-gen: do not print new line characters
11616         * build-aux/git-version-gen: Use printf instead of echo and tr.
11618         gnulib-tool: recognize x:* as an absolute path
11619         * gnulib-tool (func_gnulib_dir): Add ?:* case.
11620         (func_relconcat): Likewise.
11622 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
11624         argp: avoid extraneous translation and mem leak with empty pre doc
11625         * lib/argp-help.c (argp_doc): Never translate the empty string,
11626         when "\v" is the first or last character of the string, as that
11627         has a reserved meaning to return the header info from a po file.
11628         This also fixes a small memory leak in the !post case.
11629         The issue can be seen with this command for example:
11630         LC_MESSAGES=en_US grub2-mknetdir --help
11632 2014-11-27  Daiki Ueno  <ueno@gnu.org>
11634         uniname/uniname-tests: skip if system's libunistring is used
11635         * modules/uniname/uniname-tests (Makefile.am): Skip test if
11636         uniname/uniname module is not compiled.
11638 2014-11-27  Pádraig Brady  <P@draigBrady.com>
11640         printf: fix configure check on big endian systems
11641         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
11643 2014-11-22  Daiki Ueno  <ueno@gnu.org>
11645         pipe-filter-gi, pipe-filter-ii: port to AIX
11646         On AIX 7.1, 'select' is defined as static and cannot be referred
11647         to from inline function.
11648         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
11649         the definition...
11650         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
11651         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
11653 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11655         gitlog-to-changelog: add --until
11656         * build-aux/gitlog-to-changelog: Support new --until option.
11657         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
11659 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
11661         extern-inline: update commentary about GCC bugs
11662         * m4/extern-inline.m4: Add another GCC bug number to comments.
11664 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11666         gen-uni-tables: untabify
11667         * lib/gen-uni-tables.c: Untabify.
11669 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11671         gen-uni-tables: check out-of-range values added to 3-level tables
11672         * lib/gen-uni-tables.c (output_category, output_bidi_category)
11673         (output_joining_type, output_ident_category): Check out-of-range
11674         values added to 3-level tables.
11676 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11678         gen-uni-tables: utilize 'assert'
11679         * lib/gen-uni-tables.c: Include <assert.h>.
11680         (output_category, output_combclass, output_decimal_digit_test)
11681         (output_decimal_digit, output_digit_test, output_digit)
11682         (output_numeric, get_mirror_value, fill_properties)
11683         (fill_property30, is_property_alphabetic)
11684         (is_property_default_ignorable_code_point)
11685         (is_property_uppercase, is_property_lowercase)
11686         (is_property_cased, is_property_case_ignorable)
11687         (is_property_changes_when_lowercased, is_property_iso_control)
11688         (is_property_math, fill_arabicshaping, output_joining_group)
11689         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
11690         (output_wbp, fill_org_gbp, get_decomposition)
11691         (output_decomposition, fill_composition_exclusions)
11692         (debug_output_composition_tables, output_composition_tables)
11693         (redistribute_casefolding_rules, output_casing_rules): Use
11694         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
11695         reporting.
11697 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11699         gen-uni-tables: cosmetic improvements
11700         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
11701         variables specification.
11702         (is_outdigit): Remove unused function.
11704 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
11706         fcntl-h-tests: port to PA-RISC GNU/Linux
11707         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
11709 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11711         fts: port to C89
11712         Problem reported for MSVC 16 by Gisle Vanem in:
11713         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
11714         * lib/fts.c (fts_build): Avoid declaration before statement.
11716 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11718         unistd: port to iOS
11719         Problem reported by André Klitzing in:
11720         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
11721         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
11723 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11725         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
11726         Problem reported by Alan Modra in:
11727         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
11728         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
11729         Always cast the function arg, reverting this part of the previous
11730         change.
11732 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11734         obstack: avoid potentially-nonportable function casts
11735         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
11736         Remove, replacing with ...
11737         (call_chunkfun, call_freefun): New static functions.
11738         All uses changed.  Avoid potentially-nonportable casts.
11739         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
11740         (_obstack_begin_worker): Omit last two args, since they
11741         rely on potentially-nonportable casts.  All callers changed.
11742         * lib/obstack.h (_OBSTACK_CAST): New macro.
11743         Use it everywhere the old API used a potentially-nonportable cast.
11744         The new API doesn't cast.
11745         (struct obstack): Use unions rather than requiring
11746         potentially-nonportable casts.
11747         (obstack_chunkfun, obstack_freefun): Return void.
11749 2014-11-03  Alan Modra  <amodra@gmail.com>
11751         obstack: fix macro return values
11752         * lib/obstack.h (obstack_next_free): Return void *.
11753         (obstack_1grow_fast, obstack_blank_fast): Return void.
11754         For __GNUC__ macros:
11755         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
11756         For !__GNUC__ macros:
11757         (obstack_make_room, obstack_grow, obstack_grow0)
11758         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
11760 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11762         obstack: do not assume system-supplied obstack is size_t safe
11763         * m4/obstack.m4: New file.
11764         * modules/obstack (Files): Add it.
11766         obstack: port to platforms that #define __alignof__
11767         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
11768         not if !_LIBC.  We don't know of any platforms that #define
11769         __alignof__, but it might be useful in tests.  Conversely,
11770         glibc assumes GCC.
11772 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11774         linkat: don't unconditionally replace on GNU/Linux
11775         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
11776         was redundant for a few reasons.  It was present to support compiling
11777         on new systems but running on the old narrow window of Linux 2.6.1[67].
11778         It setup and cleaned up test files which weren't actually used.
11779         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
11780         implicit in the following check.
11782 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11784         linkat: wrap to handle symlinks on OS X 10.10
11785         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
11786         but not usable because it doesn't support creating hardlinks
11787         to symlinks.  Therefore add a generic test for this capability
11788         and fallback to our emulation if linkat() fails with ENOTSUP.
11790 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11792         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
11793         * doc/posix-functions/open.texi (open):
11794         * doc/posix-functions/openat.texi (openat):
11795         Document that these functions do not set errno to ELOOP when
11796         a symlink is opened with O_NOFOLLOW.
11798 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11800         obstack: add NEWS entry for recent incompatible changes
11801         * NEWS: Describe recent changes.
11803 2014-10-30  Pádraig Brady  <P@draigBrady.com>
11805         mountlist: don't use libmount to decide on dummy/remote
11806         * lib/mountlist.c (read_file_system_list): Don't use the libmount
11807         routines to determine whether a file system is dummy or remote,
11808         as they're not currently compatible.  For example the remoteness
11809         is determined on file system type (for which the list seems incomplete),
11810         rather than simply checking for a ':' in the device name.
11811         Also libmount currently determines that 'tmpfs' is a dummy file system
11812         even though it has associated storage.
11814 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
11816         obstack: prefer __alignof__ to alignof
11817         This is for portability to pre-4.7 GCC when compiling glibc.
11818         See Joseph S. Myers in:
11819         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
11820         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
11821         New macro, defined by including and using <alignof.h>.
11822         (MAX): New macro.
11823         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
11824         Do not use enums as they are not portable to some broken compilers.
11825         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
11827         obstack: prefer alignof to calculating alignments by hand
11828         * lib/obstack.c: Include <stdalign.h>.
11829         (struct fooalign): Remove.
11830         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
11831         * modules/obstack (Depends-on): Add stdalign.
11833 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
11835         obstack: use size_t alignments and check for overflow
11836         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
11837         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
11838         * lib/obstack.h (struct obstack.alignment_mask):
11839         Use _OBSTACK_SIZE_T, not int, for alignments.
11840         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
11841         overflows, e.g., when adding the alignment.
11843 2014-10-29  Alan Modra  <amodra@gmail.com>
11845         obstack: 64-bit obstack support, part 3
11846         This finally enables full 64-bit obstack support.  The glibc
11847         shared library specific code is removed from obstack.c too, and
11848         the error handling code conditionally compiled under control of
11849         another macro, _OBSTACK_NO_ERROR_HANDLER.
11850         * lib/obstack.h: Include string.h earlier.
11851         (_OBSTACK_INTERFACE_VERSION): Define.
11852         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
11853         * lib/obstack.c: Don't include shlib-compat.h.
11854         (OBSTACK_INTERFACE_VERSION): Delete.
11855         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
11856         glibc code is compatible with version 2.  Don't include stdio.h for
11857         __GNU_LIBRARY.
11858         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
11859         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
11860         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
11861         glibc shared library specific source.
11863         obstack: 64-bit obstack support, part 2
11864         This gets us 4G obstack support, without changing ABI
11865         compatibility, apart from possibly introducing some
11866         signed/unsigned comparison warnings in code that uses obstack.h.
11867         a) Replace "int" size parameters, return values, and macro local vars
11868            with _OBSTACK_SIZE_T, an "unsigned int" for now.
11869         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
11870         c) Make all obstack macros checking available room use obstack_room.
11871            "next_free + desired > chunk_limit" may wrap the lhs for chunks
11872            allocated near the top of memory.
11873         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
11874         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
11875         in place of "int" size parameters, return values and local vars.
11876         (_CHUNK_SIZE_T): Define.
11877         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
11878         union use an _OBSTACK_SIZE_T integer type.
11879         For __GNUC__ versions of the following macros...
11880         (obstack_room): Rename local var.
11881         (obstack_make_room): Use obstack_room.
11882         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
11883         obstack_int_grow, obstack_blank): Likewise.
11884         (obstack_finish): Use unsigned comparison when comparing aligned
11885         next_free against chunk_limit.
11886         (obstack_free): Cast OBJ to remove possible const qualifier.
11887         For !__GNUC__ versions of the following macros...
11888         (obstack_make_room): Use obstack_room.
11889         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
11890         obstack_int_grow, obstack_blank): Likewise.
11891         (obstack_finish): Use unsigned comparision when comparing aligned
11892         next_free against chunk_limit.
11893         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
11894         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
11895         _OBSTACK_SIZE_T.
11896         (_obstack_begin, _obstack_begin_1): Likewise.
11897         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
11898         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
11900         obstack: 64-bit obstack support, part 1
11901         a) Correct calls to alloc function, to use a size_t arg.  "long" is
11902            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
11903            and "size_t" 64 bits.
11904         b) Consolidate _obstack_begin and _obstack_begin1 code.
11905         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
11906         use "size_t" rather than "long".
11907         (_obstack_begin, _obstack_begin1): Likewise.
11908         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
11909         obstack_chunkfun): Update alloc function casts.
11910         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
11911         (chunkfun_type, freefun_type): New typdefs.
11912         (_obstack_begin_worker): Split out from ..
11913         (_obstack_begin, _obstack_begin_1): ..here.
11915         obstack: tidy part 2
11916         a) Don't be concerned about "not polluting the namespace with stddef.h
11917            symbols" in obstack.h, since gnulib string.h includes stddef.h
11918            anyway, and it seems unlikely that anyone would care.
11919         b) Don't roll our own slow memcpy in _obstack_newchunk.
11920         c) Rename obstack_free to _obstack_free.  This makes the naming
11921            consistent with other obstack functions and obviates the need for
11922            __obstack_free.  Ancient obstack.c defined both obstack_free and
11923            _obstack_free.  We continue to do that for _LIBC via an alias.
11924         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
11925            is clever, but nowadays gcc warns on undefined macros.  You'll get
11926            an undefined macro warning if simulating an old gcc with -U__GNUC__
11927            -U__GNUC_MINOR__ -D__GNUC__=1.
11928         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
11929         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
11930         (__obstack_free): Delete, update refs.
11931         (_obstack_free): Rename from obstack_free.
11932         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
11933         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
11934         * lib/obstack.c: Don't include stddef.h.
11935         (COPYING_UNIT): Delete.
11936         (_obstack_begin): Formatting fix.
11937         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
11938         (_obstack_free): Rename from __obstack_free, update alias.  Move
11939         undef of obstack_free to where it is needed.
11941         obstack: tidy part 1
11942         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
11943            to me, and result in overlong lines after later patches.
11944         b) Move error handling code, to avoid a forward declaration and to
11945            simplify later patches in this series.
11946         * lib/obstack.h (struct obstack <temp>): Rename fields of union
11947         and update all uses.
11948         * lib/obstack.c: Include stdlib.h earlier.
11949         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
11950         in file.
11951         (print_and_abort): Remove now redundant forward declaration.
11953 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11955         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
11956         Without this change, in bleeding-edge fileutils Autoconf complains
11957         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
11958         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
11959         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
11960         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
11962 2014-10-24  Daiki Ueno  <ueno@gnu.org>
11964         iconv: avoid false detection of non-working iconv
11965         The INBUF arguments of iconv can be either 'const char **'
11966         or 'char **'.  If CC is g++, the difference causes a compile error
11967         and thus leads to a false detection of non-working iconv.
11968         Reported by Eli Zaretskii and Werner LEMBERG in:
11969         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
11970         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
11971         iconv.  Bump serial number.
11973 2014-10-23  Pádraig Brady  <P@draigBrady.com>
11975         bootstrap: print more diagnostics for missing programs
11976         * build-aux/bootstrap: only suppress stderr when checking for
11977         alternative program names.  This supports programs issuing non
11978         standard error messages.
11980 2014-10-23  Pádraig Brady  <P@draigBrady.com>
11982         bootstrap: only update the gnulib submodule
11983         * build-aux/bootstrap: Restrict the "submodule update" command
11984         to the gnulib path.
11986 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11988         symlinkat: port to AIX 7.1
11989         * doc/posix-functions/symlinkat.texi (symlinkat):
11990         Mention AIX porting problem.
11991         * lib/symlinkat.c: Always include errno.h.
11992         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
11993         * lib/unistd.in.h (symlinkat): Add replacement machinery.
11994         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
11995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
11996         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
11997         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
11998         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
12000         readlinkat: port to AIX 7.1
12001         * doc/posix-functions/readlink.texi (readlink):
12002         * doc/posix-functions/readlinkat.texi (readlinkat):
12003         Mention AIX porting problem.
12004         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
12005         New function.
12006         * lib/unistd.in.h (readlinkat): Add replacement machinery.
12007         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
12008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
12009         * modules/readlinkat (configure.ac): Also compile replacement
12010         if REPLACE_READLINKAT.
12011         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
12013 2014-10-12  Karl Berry  <karl@gnu.org>
12015         * doc/posix-functions/dirname.texi: remove spurious {.
12017 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
12019         basename, dirname: Improve documentation.
12020         * doc/posix-functions/basename.texi: Mention dirname module and
12021         base_name() function.
12022         * doc/posix-functions/dirname.texi: Mention dir_name() and
12023         mdir_name() functions.
12024         Suggested by Werner LEMBERG <wl@gnu.org>.
12026 2014-09-24  Jim Meyering  <meyering@fb.com>
12028         exclude: declare exclude_patopts static
12029         * lib/exclude.c (exclude_patopts): Declare static,
12030         to avoid triggering a -Wmissing-prototypes warning.
12031         The alternative (declaring it in the .h file) would
12032         require publicizing the private "struct patopts".
12034 2014-09-21  Werner Lemberg  <wl@gnu.org>
12036         dirname: support compilation with C++
12037         * lib/dirname.h: Add necessary C linkage declarations.
12039 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12041         qsort_r: include <config.h>
12042         Problem reported by Tom G. Christensen in:
12043         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
12044         * lib/qsort.c [!_LIBC]: Include <config.h> first.
12046 2014-09-16  Dylan Cali  <calid1984@gmail.com>
12048         avltree-list: avoid compiler warnings (trivial)
12049         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12050         -Werror=suggest-attribute=pure.
12051         * lib/gl_array_list.c: Likewise.
12052         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
12053         declaration to avoid -Werror=missing-prototypes.  This is not added
12054         to a header as only exported for tests.  Add (void) to the
12055         check_invariants() call to indicate we're discarding the result
12056         in this context which avoids -Werror=unused-value.  Note we don't
12057         use ignore_value here to avoid a dependency as we know we'll not
12058         be adding __attribute__((warn_unused_result)) to check_invariants().
12059         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
12061 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12063         qsort_r: new module, for GNU-style qsort_r
12064         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
12066 2014-09-15  Werner LEMBERG  <wl@gnu.org>
12068         strerror_r-posix: support compilation with C++
12069         * lib/strerror_r.c: Add necessary C linkage declarations.
12071 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
12073         fcntl-h: fix compilation with Intel C++ compiler (trivial)
12074         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
12076 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
12078         mountlist: use /proc/self/mountinfo when available
12079         Use libmount to propagate device IDs provided by Linux in
12080         /proc/self/mountinfo.  This will give more accurate output when
12081         using df in chroot'ed environments as the device IDs are not
12082         determined by stat() which may be inaccurate within the chroot.
12083         * lib/mountlist.c (read_file_system_list): Use the libmount routines
12084         from util-linux to parse "/proc/self/mountinfo" or fall back to
12085         standard getmntent() processing.
12086         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
12087         getmntent() is used, as is the case on GNU/Linux.
12089 2014-09-07  Eric Wong  <normalperson@yhbt.net>
12091         users.txt: add cmogstored
12092         cmogstored has used gnulib since the beginning in 2012 to support
12093         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
12095 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12097         Trivial change.
12098         * gnulib-tool: Use same options as build-aux/bootstrap to download
12099         PO files.
12101 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12103         Trivial change.
12104         * gnulib-tool: Fallback to wget when rsync of PO files fails.
12106 2014-09-04  Eric Blake  <eblake@redhat.com>
12108         maintainer-makefile: add syntax check for useless ';;'
12109         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
12111 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
12113         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
12114         Problem reported by Assaf Gordon in:
12115         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
12116         Apparently Ubuntu is doing some fancy link-time optimization
12117         that doesn't work with -lpthread but does work with -pthread.
12118         Work around the bug by preferring -pthread to -lpthread.
12119         * m4/pthread.m4 (gl_PTHREAD_CHECK):
12120         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
12121         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12122         Treat -pthread like -lpthread.
12124 2014-09-04  Eric Blake  <eblake@redhat.com>
12126         error: drop spurious semicolon
12127         * lib/error.c (__error_at_line): Fix ';;'.
12129 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12131         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
12132         * m4/gnulib-common.m4 (AC_C_RESTRICT):
12133         Override AC_C_RESTRICT unconditionally.
12134         Update from autoconf, incorporating:
12135         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
12136         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
12138 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12140         manywarnings: add GCC 4.9 warnings
12141         Also, make it easier to maintain this in the future.
12142         * build-aux/gcc-warning.spec: Add -Wabi-tag,
12143         -Wconditionally-supported, -Wdelete-incomplete,
12144         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
12145         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
12146         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
12147         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
12148         only for older GCC versions that need them.  Handle
12149         -Wnormalized=nfc specially, so that the 'comm' command used
12150         for maintenance doesn't get confused.
12152 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12154         vasnprintf: fix bugs in width computation
12155         * lib/vasnprintf.c (VASNPRINTF):
12156         Rework previous change, which introduced a bug,
12157         to avoid the warning in a different way.
12158         Avoid undefined behavior if the width arg is less than -INT_MAX.
12159         Avoid unnecessary use of HAS_WIDTH local.
12161 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
12163         vasnprintf: Avoid signed/unsigned comparison warning.
12164         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
12165         compare end addr of generated string w/ maximum end addr.
12167 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12169         parse-datetime: Avoid pointer difference.
12170         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
12171         instead of calculating difference of pointers.  This removes an
12172         annoying warning, devoid of any use.
12174 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12176         qsort_r: new module, for GNU-style qsort_r
12177         This works even on FreeBSD, which has an incompatible qsort_r API.
12178         * MODULES.html.sh: Add it.
12179         * doc/glibc-functions/qsort_r.texi: It's now supported.
12180         * lib/qsort.c: New file, taken from glibc with minor changes
12181         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
12182         removed.
12183         * lib/qsort_r.c: New file, compiled only on FreeBSD.
12184         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
12185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
12186         * modules/qsort_r, modules/qsort_r-tests: New files.
12187         * modules/stdlib (Makefile): Set up its defaults.
12188         * tests/test-qsort_r.c: New file.
12190 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
12192         vla: new module
12193         GNU RCS can use this, mostly for documentation I expect.  See:
12194         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
12195         * MODULES.html.sh: Add vla.
12196         * lib/vla.h, modules/vla: New files.
12198 2014-08-07  Daiki Ueno  <ueno@gnu.org>
12200         localename: make gl_locale_name_thread really thread-safe on Windows
12201         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
12202         "glthread/lock.h".
12203         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
12204         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
12206 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
12208         getpass: don't assume struct termios
12209         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
12210         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
12211         * lib/getpass.c (getpass): Port to systems lacking struct termios.
12213         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
12214         Problem reported by Jonas 'Sortie' Termansen in:
12215         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
12216         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
12217         Implement via sysconf for platforms that lack getdtablesize.
12219         vararrays: modernize AC_C_VARARRAYS for C11
12220         This backports a change I recently made to Autoconf.
12221         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
12222         VLAs are not supported, as this is what C11 does.  The old macro
12223         HAVE_C_VARARRAYS is still defined if they are supported, but is
12224         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
12226 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
12228         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
12229         * build-aux/install-reloc (func_create_wrapper): Also wrap
12230         strerror-override, stat, stat.
12232 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
12234         sys_select: fix FD_ZERO problem on Solaris 10
12235         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
12236         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
12237         to expand to an expression that invoked memset without necessarily
12238         including <string.h>.  The problem was that the first include
12239         defined _SYS_TIME_H, causing the second include to short-circuit.
12240         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
12241         Also, fix what appears to be a cut-and-paste typo, by replacing
12242         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
12243         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
12245         accept: document Solaris 10 type glitch
12246         * doc/posix-functions/accept.texi (accept): Mention that
12247         Solaris 10 'accept' takes void * last arg, not socklen_t *.
12249 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
12251         extern-inline: port to FreeBSD, DragonFly
12252         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
12253         is present if either __DragonFly__ or __FreeBSD__ is defined.
12254         FreeBSD problem reported by Andrey Borzenkov in:
12255         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
12256         Also, worry about __APPLE__ only if __MACH__ is also defined,
12257         as this is more consistent with the rest of gnulib.
12258         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
12259         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
12261 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12263         regex: Make #if/#ifdef usage consistent for DEBUG
12264         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
12265         of the inconsistent usage of #if and #ifdef as that works with
12266         both Glibc and Gnulib's style.
12268 2014-07-31  Eric Blake  <eblake@redhat.com>
12270         openat-die: use _Noreturn markup
12271         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
12272         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
12273         _Noreturn.
12275 2014-07-30  Eric Blake  <eblake@redhat.com>
12277         test-open: port to cygwin, which lacks Fortify
12278         * tests/test-open.h (ALWAYS_INLINE): New macro.
12279         (__always_inline): Don't abuse internal symbol on non-glibc.
12281 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
12283         localename: Enforce declarations before statements.
12284         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
12285         first statement.
12287 2014-07-18  Jim Meyering  <meyering@fb.com>
12289         test-userspec: don't look up numeric user names
12290         * tests/test-userspec.c: I found a system for which getpwnam("0")
12291         returned a pointer to a non-root user's entry, and that made the
12292         test fail.
12293         (T): Prefix each numeric input with "+", to inhibit lookup.
12295 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
12297         localcharset, localename: MS-Windows support for non-default locales
12298         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
12299         falling back on the default system codepage, try extracting
12300         the codepage from what 'setlocale' returns.  This allows to
12301         take into account changes of the codeset due to non-default
12302         locale set by a previous call to 'setlocale'.
12303         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
12304         Define if not already defined.
12305         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
12306         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
12307         current locale by calling 'setlocale', then converting the
12308         locale name into LCID by calling 'get_lcid'.  This allows to
12309         take into account changes in the current locale from the
12310         default one, in contrast to GetThreadLocale.
12312 2014-07-14  Daiki Ueno  <ueno@gnu.org>
12314         announce-gen: avoid failure when Digest::SHA is installed
12315         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
12316         Digest::SHA1->new in print_checksums fails.
12317         * build-aux/announce-gen (digest_classes): New associative array
12318         for available message digest implementations.
12319         (print_locations): Use it.
12321 2014-07-13  Pádraig Brady  <P@draigBrady.com>
12323         gettext: revert "update macros to version 0.19"
12324         This reverts commit 9b9370ca, as it currently requires that
12325         developers of any project that explicitly uses the gettext module
12326         or implicitly uses it through the utimens-tests or
12327         futimens-tests modules, use gettext >= 0.19.
12328         However there are some stability and availablity issues with
12329         that version at present.  We can reinstate this soon, when stability
12330         is addressed and packages are more readily available.
12332 2014-07-12  Jim Meyering  <meyering@fb.com>
12334         regex: don't deref NULL upon heap allocation failure
12335         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
12336         failure in one more place.
12337         To trigger the segfault, configure grep -with-included-regex,
12338         build it, and run these commands:
12339         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
12340         I discovered this while replying to a private report from
12341         Jens Schleusener about excessive memory consumption by grep
12342         when using a regular expression like the one above.
12344 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12346         regex: fix memory leak in compiler
12347         Fix by Andreas Schwab in:
12348         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
12349         * lib/regcomp.c (parse_reg_exp): Deallocate partially
12350         constructed tree before returning error.
12352 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12354         announce-gen: avoid perl warnings
12355         * build-aux/announce-gen: add two minor checks to avoid
12356         "use of uninitialized value" warnings when command-line parameters are
12357         missing.
12359 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12361         localename: avoid -Wsuggest-attribute={const,pure} warnings
12362         * lib/localename.c (string_has): Tag internal function as pure.
12363         * lib/localename.h (gl_locale_name_default): Tag extern declaration
12364         as const when appropriate.
12366 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
12368         nl_langinfo: Fix last change.
12369         * lib/nl_langinfo.c (includes): Drop redundant include.
12371 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12373         error: Fix -Wundef warnings in glibc
12374         * lib/error.c [_LIBC]: Define default macros for
12375         glibc.
12376         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
12377         Check _LIBC before STRERROR_R_CHAR_P.
12379         error: Sync from glibc master
12380         * lib/error.c [_LIBC]: Remove INTUSE usage.
12381         (error_tail): Remove unused macro ALLOCA_LIMIT.
12382         Fix potential buffer overflow.  Fix potential NULL dereference
12383         in strcmp.
12385 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
12387         nl_langinfo: fix build under mingw
12388         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
12390 2014-07-09  Andrew D Warshall  <warshall@99main.com>
12392         mountlist: do not classify a bind-mounted dir entry as "dummy"
12393         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
12394         1-argument getmntent() (instead of assuming absence).
12396 2014-07-08  Eric Blake  <eblake@redhat.com>
12398         maint.mk: less syntax-check noise when SIGPIPE is ignored
12399         * top/maint.mk (_sc_header_without_use)
12400         (sc_require_config_h_first): Parse full list.
12402 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
12403             Paul Eggert  <eggert@cs.ucla.edu>
12405         nl_langinfo: CODESET on MS-Windows and more items from localeconv
12406         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
12407         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
12408         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
12409         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
12410         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
12411         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
12412         Include <stdio.h> if Microsoft Windows.
12413         Include <time.h> if !REPLACE_NL_LANGINFO.
12414         (ctype_codeset): New function, taken from rpl_nl_langinfo,
12415         and with improvements for Microsoft Windows.
12416         (rpl_nl_langinfo): Use it.
12417         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
12418         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
12419         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
12420         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
12421         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
12422         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
12423         corresponding values returned by 'localeconv'.  Compute the values
12424         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
12425         'strftime' with a suitable struct tm value.
12427 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12429         Bruno Haible has stepped down as maintainer.
12430         See Karl Berry in:
12431         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
12432         Daiki Ueno has volunteered to maintain libunistring; see:
12433         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
12434         * modules/gen-uni-tables, modules/libunistring:
12435         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
12436         * modules/unicase/base, modules/unicase/cased:
12437         * modules/unicase/empty-prefix-context:
12438         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
12439         * modules/unicase/locale-language, modules/unicase/special-casing:
12440         * modules/unicase/tocasefold, modules/unicase/tolower:
12441         * modules/unicase/totitle, modules/unicase/toupper:
12442         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
12443         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
12444         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
12445         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
12446         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
12447         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
12448         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
12449         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
12450         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
12451         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
12452         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
12453         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
12454         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
12455         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
12456         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
12457         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
12458         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
12459         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
12460         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
12461         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
12462         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
12463         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
12464         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
12465         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
12466         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
12467         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
12468         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
12469         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
12470         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
12471         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
12472         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
12473         * modules/unicase/ulc-casexfrm, modules/unicodeio:
12474         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
12475         * modules/uniconv/u16-conv-to-enc:
12476         * modules/uniconv/u16-strconv-from-enc:
12477         * modules/uniconv/u16-strconv-from-locale:
12478         * modules/uniconv/u16-strconv-to-enc:
12479         * modules/uniconv/u16-strconv-to-locale:
12480         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
12481         * modules/uniconv/u32-strconv-from-enc:
12482         * modules/uniconv/u32-strconv-from-locale:
12483         * modules/uniconv/u32-strconv-to-enc:
12484         * modules/uniconv/u32-strconv-to-locale:
12485         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
12486         * modules/uniconv/u8-strconv-from-enc:
12487         * modules/uniconv/u8-strconv-from-locale:
12488         * modules/uniconv/u8-strconv-to-enc:
12489         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
12490         * modules/unictype/bidicategory-all:
12491         * modules/unictype/bidicategory-byname:
12492         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
12493         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
12494         * modules/unictype/bidiclass-byname:
12495         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
12496         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
12497         * modules/unictype/block-all, modules/unictype/block-list:
12498         * modules/unictype/block-of, modules/unictype/block-test:
12499         * modules/unictype/category-C, modules/unictype/category-Cc:
12500         * modules/unictype/category-Cf, modules/unictype/category-Cn:
12501         * modules/unictype/category-Co, modules/unictype/category-Cs:
12502         * modules/unictype/category-L, modules/unictype/category-LC:
12503         * modules/unictype/category-Ll, modules/unictype/category-Lm:
12504         * modules/unictype/category-Lo, modules/unictype/category-Lt:
12505         * modules/unictype/category-Lu, modules/unictype/category-M:
12506         * modules/unictype/category-Mc, modules/unictype/category-Me:
12507         * modules/unictype/category-Mn, modules/unictype/category-N:
12508         * modules/unictype/category-Nd, modules/unictype/category-Nl:
12509         * modules/unictype/category-No, modules/unictype/category-P:
12510         * modules/unictype/category-Pc, modules/unictype/category-Pd:
12511         * modules/unictype/category-Pe, modules/unictype/category-Pf:
12512         * modules/unictype/category-Pi, modules/unictype/category-Po:
12513         * modules/unictype/category-Ps, modules/unictype/category-S:
12514         * modules/unictype/category-Sc, modules/unictype/category-Sk:
12515         * modules/unictype/category-Sm, modules/unictype/category-So:
12516         * modules/unictype/category-Z, modules/unictype/category-Zl:
12517         * modules/unictype/category-Zp, modules/unictype/category-Zs:
12518         * modules/unictype/category-all, modules/unictype/category-and:
12519         * modules/unictype/category-and-not, modules/unictype/category-byname:
12520         * modules/unictype/category-longname, modules/unictype/category-name:
12521         * modules/unictype/category-none, modules/unictype/category-of:
12522         * modules/unictype/category-or, modules/unictype/category-test:
12523         * modules/unictype/category-test-withtable:
12524         * modules/unictype/combining-class:
12525         * modules/unictype/combining-class-all:
12526         * modules/unictype/combining-class-byname:
12527         * modules/unictype/combining-class-longname:
12528         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
12529         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
12530         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
12531         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
12532         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
12533         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
12534         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
12535         * modules/unictype/digit, modules/unictype/joininggroup-all:
12536         * modules/unictype/joininggroup-byname:
12537         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
12538         * modules/unictype/joiningtype-all:
12539         * modules/unictype/joiningtype-byname:
12540         * modules/unictype/joiningtype-longname:
12541         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
12542         * modules/unictype/mirror, modules/unictype/numeric:
12543         * modules/unictype/property-all, modules/unictype/property-alphabetic:
12544         * modules/unictype/property-ascii-hex-digit:
12545         * modules/unictype/property-bidi-arabic-digit:
12546         * modules/unictype/property-bidi-arabic-right-to-left:
12547         * modules/unictype/property-bidi-block-separator:
12548         * modules/unictype/property-bidi-boundary-neutral:
12549         * modules/unictype/property-bidi-common-separator:
12550         * modules/unictype/property-bidi-control:
12551         * modules/unictype/property-bidi-embedding-or-override:
12552         * modules/unictype/property-bidi-eur-num-separator:
12553         * modules/unictype/property-bidi-eur-num-terminator:
12554         * modules/unictype/property-bidi-european-digit:
12555         * modules/unictype/property-bidi-hebrew-right-to-left:
12556         * modules/unictype/property-bidi-left-to-right:
12557         * modules/unictype/property-bidi-non-spacing-mark:
12558         * modules/unictype/property-bidi-other-neutral:
12559         * modules/unictype/property-bidi-pdf:
12560         * modules/unictype/property-bidi-segment-separator:
12561         * modules/unictype/property-bidi-whitespace:
12562         * modules/unictype/property-byname:
12563         * modules/unictype/property-case-ignorable:
12564         * modules/unictype/property-cased:
12565         * modules/unictype/property-changes-when-casefolded:
12566         * modules/unictype/property-changes-when-casemapped:
12567         * modules/unictype/property-changes-when-lowercased:
12568         * modules/unictype/property-changes-when-titlecased:
12569         * modules/unictype/property-changes-when-uppercased:
12570         * modules/unictype/property-combining:
12571         * modules/unictype/property-composite:
12572         * modules/unictype/property-currency-symbol:
12573         * modules/unictype/property-dash:
12574         * modules/unictype/property-decimal-digit:
12575         * modules/unictype/property-default-ignorable-code-point:
12576         * modules/unictype/property-deprecated:
12577         * modules/unictype/property-diacritic:
12578         * modules/unictype/property-extender:
12579         * modules/unictype/property-format-control:
12580         * modules/unictype/property-grapheme-base:
12581         * modules/unictype/property-grapheme-extend:
12582         * modules/unictype/property-grapheme-link:
12583         * modules/unictype/property-hex-digit:
12584         * modules/unictype/property-hyphen:
12585         * modules/unictype/property-id-continue:
12586         * modules/unictype/property-id-start:
12587         * modules/unictype/property-ideographic:
12588         * modules/unictype/property-ids-binary-operator:
12589         * modules/unictype/property-ids-trinary-operator:
12590         * modules/unictype/property-ignorable-control:
12591         * modules/unictype/property-iso-control:
12592         * modules/unictype/property-join-control:
12593         * modules/unictype/property-left-of-pair:
12594         * modules/unictype/property-line-separator:
12595         * modules/unictype/property-logical-order-exception:
12596         * modules/unictype/property-lowercase, modules/unictype/property-math:
12597         * modules/unictype/property-non-break:
12598         * modules/unictype/property-not-a-character:
12599         * modules/unictype/property-numeric:
12600         * modules/unictype/property-other-alphabetic:
12601         * modules/unictype/property-other-default-ignorable-code-point:
12602         * modules/unictype/property-other-grapheme-extend:
12603         * modules/unictype/property-other-id-continue:
12604         * modules/unictype/property-other-id-start:
12605         * modules/unictype/property-other-lowercase:
12606         * modules/unictype/property-other-math:
12607         * modules/unictype/property-other-uppercase:
12608         * modules/unictype/property-paired-punctuation:
12609         * modules/unictype/property-paragraph-separator:
12610         * modules/unictype/property-pattern-syntax:
12611         * modules/unictype/property-pattern-white-space:
12612         * modules/unictype/property-private-use:
12613         * modules/unictype/property-punctuation:
12614         * modules/unictype/property-quotation-mark:
12615         * modules/unictype/property-radical:
12616         * modules/unictype/property-sentence-terminal:
12617         * modules/unictype/property-soft-dotted:
12618         * modules/unictype/property-space:
12619         * modules/unictype/property-terminal-punctuation:
12620         * modules/unictype/property-test, modules/unictype/property-titlecase:
12621         * modules/unictype/property-unassigned-code-value:
12622         * modules/unictype/property-unified-ideograph:
12623         * modules/unictype/property-uppercase:
12624         * modules/unictype/property-variation-selector:
12625         * modules/unictype/property-white-space:
12626         * modules/unictype/property-xid-continue:
12627         * modules/unictype/property-xid-start:
12628         * modules/unictype/property-zero-width, modules/unictype/scripts:
12629         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
12630         * modules/unictype/syntax-c-whitespace:
12631         * modules/unictype/syntax-java-ident:
12632         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
12633         * modules/unigbrk/u16-grapheme-breaks:
12634         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
12635         * modules/unigbrk/u32-grapheme-breaks:
12636         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
12637         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
12638         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
12639         * modules/unigbrk/uc-is-grapheme-break:
12640         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
12641         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
12642         * modules/unilbrk/u16-width-linebreaks:
12643         * modules/unilbrk/u32-possible-linebreaks:
12644         * modules/unilbrk/u32-width-linebreaks:
12645         * modules/unilbrk/u8-possible-linebreaks:
12646         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
12647         * modules/unilbrk/ulc-possible-linebreaks:
12648         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
12649         * modules/uniname/uniname, modules/uninorm/base:
12650         * modules/uninorm/canonical-decomposition:
12651         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
12652         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
12653         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
12654         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
12655         * modules/uninorm/nfkc, modules/uninorm/nfkd:
12656         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
12657         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
12658         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
12659         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
12660         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
12661         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
12662         * modules/unistdio/base, modules/unistdio/u-printf-args:
12663         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
12664         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
12665         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
12666         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
12667         * modules/unistdio/u16-u16-sprintf:
12668         * modules/unistdio/u16-u16-vasnprintf:
12669         * modules/unistdio/u16-u16-vasprintf:
12670         * modules/unistdio/u16-u16-vsnprintf:
12671         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
12672         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
12673         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
12674         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
12675         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
12676         * modules/unistdio/u32-u32-asnprintf:
12677         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
12678         * modules/unistdio/u32-u32-sprintf:
12679         * modules/unistdio/u32-u32-vasnprintf:
12680         * modules/unistdio/u32-u32-vasprintf:
12681         * modules/unistdio/u32-u32-vsnprintf:
12682         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
12683         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
12684         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
12685         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
12686         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
12687         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
12688         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
12689         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
12690         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
12691         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
12692         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
12693         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
12694         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
12695         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
12696         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
12697         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
12698         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
12699         * modules/unistr/u16-check, modules/unistr/u16-chr:
12700         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
12701         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
12702         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
12703         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
12704         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
12705         * modules/unistr/u16-move, modules/unistr/u16-next:
12706         * modules/unistr/u16-prev, modules/unistr/u16-set:
12707         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
12708         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
12709         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
12710         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
12711         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
12712         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
12713         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
12714         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
12715         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
12716         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
12717         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
12718         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
12719         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
12720         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
12721         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
12722         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
12723         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
12724         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
12725         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
12726         * modules/unistr/u32-next, modules/unistr/u32-prev:
12727         * modules/unistr/u32-set, modules/unistr/u32-startswith:
12728         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
12729         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
12730         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
12731         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
12732         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
12733         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
12734         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
12735         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
12736         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
12737         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
12738         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
12739         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
12740         * modules/unistr/u8-check, modules/unistr/u8-chr:
12741         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
12742         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
12743         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
12744         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
12745         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
12746         * modules/unistr/u8-next, modules/unistr/u8-prev:
12747         * modules/unistr/u8-set, modules/unistr/u8-startswith:
12748         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
12749         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
12750         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
12751         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
12752         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
12753         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
12754         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
12755         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
12756         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
12757         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
12758         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
12759         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
12760         * modules/uniwbrk/base, modules/uniwbrk/table:
12761         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
12762         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
12763         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
12764         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
12765         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
12766         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
12767         * modules/uniwidth/width, modules/utf16-ucs4:
12768         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
12769         * modules/utf8-ucs4-unsafe:
12770         Change maintainer from Bruno Haible to Daiki Ueno.
12771         This is my guess at the libunistring modules; please feel free
12772         to fix if I guessed incorrectly.
12773         * modules/accept4, modules/acl, modules/acos, modules/acosf:
12774         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
12775         * modules/areadlink, modules/array-list, modules/array-mergesort:
12776         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
12777         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
12778         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
12779         * modules/binary-io, modules/bison-i18n, modules/btowc:
12780         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
12781         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
12782         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
12783         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
12784         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
12785         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
12786         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
12787         * modules/closedir, modules/concat-filename, modules/copy-file:
12788         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
12789         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
12790         * modules/csharpcomp-script, modules/csharpexec:
12791         * modules/csharpexec-script, modules/ctype, modules/diffseq:
12792         * modules/dprintf, modules/dprintf-posix, modules/dup:
12793         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
12794         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
12795         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
12796         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
12797         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
12798         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
12799         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
12800         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
12801         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
12802         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
12803         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
12804         * modules/findprog, modules/findprog-lgpl, modules/floor:
12805         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
12806         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
12807         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
12808         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
12809         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
12810         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
12811         * modules/freadable, modules/freadahead, modules/freadptr:
12812         * modules/freadseek, modules/freopen, modules/frexp:
12813         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
12814         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
12815         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
12816         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
12817         * modules/ftello, modules/full-read, modules/full-write:
12818         * modules/fwritable, modules/fwriteerror, modules/gcd:
12819         * modules/get-rusage-as, modules/get-rusage-data:
12820         * modules/getdtablesize, modules/getrusage, modules/gettext:
12821         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
12822         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
12823         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
12824         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
12825         * modules/iconv, modules/iconv-h, modules/iconv_open:
12826         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
12827         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
12828         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
12829         * modules/integer_length_ll, modules/ioctl, modules/isatty:
12830         * modules/isblank, modules/isnand, modules/isnand-nolibm:
12831         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
12832         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
12833         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
12834         * modules/javaexec, modules/javaexec-script, modules/javaversion:
12835         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
12836         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
12837         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
12838         * modules/lib-symbol-visibility, modules/libsigsegv:
12839         * modules/linked-list, modules/linkedhash-list, modules/list:
12840         * modules/localcharset, modules/locale, modules/localeconv:
12841         * modules/localename, modules/lock, modules/log, modules/log-ieee:
12842         * modules/log10, modules/log10-ieee, modules/log10f:
12843         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
12844         * modules/log1p, modules/log1p-ieee, modules/log1pf:
12845         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
12846         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
12847         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
12848         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
12849         * modules/logf, modules/logf-ieee, modules/login_tty:
12850         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
12851         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
12852         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
12853         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
12854         * modules/mbscspn, modules/mbsinit, modules/mbslen:
12855         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
12856         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
12857         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
12858         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
12859         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
12860         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
12861         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
12862         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
12863         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
12864         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
12865         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
12866         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
12867         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
12868         * modules/posix_spawn, modules/posix_spawn-internal:
12869         * modules/posix_spawn_file_actions_addclose:
12870         * modules/posix_spawn_file_actions_adddup2:
12871         * modules/posix_spawn_file_actions_addopen:
12872         * modules/posix_spawn_file_actions_destroy:
12873         * modules/posix_spawn_file_actions_init:
12874         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
12875         * modules/posix_spawnattr_getpgroup:
12876         * modules/posix_spawnattr_getschedparam:
12877         * modules/posix_spawnattr_getschedpolicy:
12878         * modules/posix_spawnattr_getsigdefault:
12879         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
12880         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
12881         * modules/posix_spawnattr_setschedparam:
12882         * modules/posix_spawnattr_setschedpolicy:
12883         * modules/posix_spawnattr_setsigdefault:
12884         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
12885         * modules/pow, modules/powf, modules/printf-frexp:
12886         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
12887         * modules/progname, modules/propername, modules/pselect:
12888         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
12889         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
12890         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
12891         * modules/read, modules/readdir, modules/readlink:
12892         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
12893         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
12894         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
12895         * modules/relocatable-script, modules/remainder:
12896         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
12897         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
12898         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
12899         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
12900         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
12901         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
12902         * modules/setlocale, modules/sh-quote, modules/shutdown:
12903         * modules/signal, modules/signbit, modules/sigpipe:
12904         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
12905         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
12906         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
12907         * modules/snippet/link-warning, modules/snippet/unused-parameter:
12908         * modules/snprintf, modules/snprintf-posix, modules/spawn:
12909         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
12910         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
12911         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
12912         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
12913         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
12914         * modules/streq, modules/strerror_r-posix, modules/striconv:
12915         * modules/striconveh, modules/striconveha, modules/strncat:
12916         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
12917         * modules/sublist, modules/sys_resource, modules/sys_utsname:
12918         * modules/sys_wait, modules/system-posix, modules/system-quote:
12919         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
12920         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
12921         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
12922         * modules/truncf, modules/truncf-ieee, modules/truncl:
12923         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
12924         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
12925         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
12926         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
12927         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
12928         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
12929         * modules/wait-process, modules/waitpid, modules/wcpcpy:
12930         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
12931         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
12932         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
12933         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
12934         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
12935         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
12936         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
12937         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
12938         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
12939         * modules/write, modules/xconcat-filename, modules/xlist:
12940         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
12941         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
12942         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
12943         * modules/y0, modules/y1, modules/yn:
12944         Remove Bruno Haible as maintainer; if he's the sole maintainer,
12945         change the maintainer to 'all'.  Let's hope someone volunteers.
12947 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
12949         mktime: merge #if/#ifdef usage from glibc
12950         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
12951         as that works with both Glibc's and Gnulib's style.
12952         See thread starting at Siddhesh Poyarekar's bug report at:
12953         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
12955 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
12957         git-version-gen: improve option descriptions
12958         * build-aux/git-version-gen: Mention that --prefix and --fallback
12959         have a mandatory argument.
12961 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12963         regex: fix memory leak in compiler
12964         Fix by Andreas Schwab in:
12965         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
12966         * lib/regcomp.c (parse_expression): Deallocate partially
12967         constructed tree before returning error.
12969         regex: merge patch from libc
12970         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
12971         Combine __USE_BSD and __USE_SVID into __USE_MISC.
12972         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
12974 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12976         acl: port to gcc -Wredundant-decls
12977         From a request by Dmitry Antipov in:
12978         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
12979         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
12980         "#ifndef _GL_ACL_H".
12982 2014-06-11  Bruce Korb  <bkorb@gnu.org>
12983         Jim Meyering  <meyering@fb.com>
12985         parse-duration: eliminate 68-year duration limit
12986         * lib/parse-duration.c: Include "intprops.h".
12987         (TIME_MAX): Rename to MAX_DURATION and define to
12988         TYPE_MAXIMUM(time_t).
12989         * modules/parse-duration (Depends-on): Add intprops.
12990         Reported by Jonas 'Sortie' Termansen.
12992 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12994         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
12995         * modules/pthread (Depends-on): Add 'extensions', as it defines
12996         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
12997         (configure.ac-early): New section.
12998         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
12999         it is no longer needed.
13001 2014-06-14  Pádraig Brady  <P@draigBrady.com>
13003         pthread: define thread-safe macros on some platforms
13004         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
13005         for thread-safe operation on some platforms.
13007 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13009         regex: don't be multithreaded if USE_UNLOCKED_IO.
13010         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
13011         * lib/regex_internal.h: Do not use multithreaded version if
13012         USE_UNLOCKED_IO is defined.  This is a hack, but it works
13013         around a porting bug with coreutils 8.22 on AIX 7.1.
13015 2014-06-11  Daiki Ueno  <ueno@gnu.org>
13017         gettext: update macros to version 0.19
13018         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
13019         depend on gl_EXTERN_INLINE and drop support for older Bison
13020         versions.
13022 2014-06-10  Pádraig Brady  <P@draigBrady.com>
13024         select,poll: fix console handle check on windows 8
13025         lib/poll.c (IsConsoleHandle): Change from testing the lower
13026         2 bits of the handle to the more expensive but accurate syscall.
13027         lib/select.c: Likewise.
13029 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13031         select: fix waiting on anonymous pipes on MS-Windows
13032         * lib/select.c (rpl_select): Fall back to polling when select()
13033         indicates there is nothing to check, while due to the timeout not
13034         expiring, activity is indicated on one of the handles.
13035         Also clear the TIMEOUT argument if the timer does expire.
13037 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13039         times: fix to return non constant value on MS-Windows
13040         * lib/times.c (times): Don't use the process creation time,
13041         rather clock() which on windows returns the number of
13042         clock ticks since the process started.
13044 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
13046         isatty: fix to work on windows 8
13047         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
13048         2 bits of the handle to the more expensive but accurate syscall.
13050 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13052         maint: fix typo in fdl.texi
13053         * doc/fdl.texi: Fix typo (missing '@').
13054         Somehow this was in fdl.texi but not fdl-1.3.texi.
13056 2014-06-06  Ben Walton  <bdwalton@gmail.com>
13058         mountlist: avoid hasmntopt const type warning on solaris
13059         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
13060         with char * instead of const char *.  Passing the constant string
13061         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
13062         to avoid the warning.
13064 2014-06-04  Eric Blake  <eblake@redhat.com>
13066         maintainer-makefile: delete obsolete code
13067         * top/maint.mk (build_aux): Drop old code, as threatened.
13069         maintainer-makefile: avoid spurious error messages
13070         * top/maint.mk (syntax-check): Guard definition and use of
13071         $(shell) by whether Makefile is present.
13073 2014-06-03  Ben Walton  <bdwalton@gmail.com>
13075         rename: avoid unused-but-set-variable compiler warning
13076         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
13077         it is possible that dst_exists may be set but not used.  Mark it with
13078         the unused attribute to avoid compiler warnings.
13080 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13082         rename: mark a label as potentially unused
13083         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
13084         by marking the out label as potentially unused.
13085         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
13087 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13089         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
13090         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
13092 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13094         acl: apply pure attribute to two functions
13095         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
13096         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
13098 2014-06-01  Pádraig Brady  <P@draigBrady.com>
13100         gnulib-common.m4: add _GL_UNUSED_LABEL
13101         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
13102         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
13104 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
13106         dup2, fcntl, fcntl-h: port to AIX 7.1
13107         This fixes some porting problems discovered when testing the latest
13108         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
13109         in grep but it could be important for other applications.
13110         * doc/posix-functions/dup2.texi:
13111         * doc/posix-functions/fcntl.texi:
13112         * doc/posix-headers/fcntl.texi:
13113         Document AIX bugs.
13114         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
13115         Define to 0 if outside 'int' range.
13116         * m4/dup2.m4 (gl_FUNC_DUP2):
13117         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13118         Check for getdtablesize.  If it's available, test a value just
13119         outside its range instead of testing 1000000.  When cross-compiling,
13120         guess that AIX will fail this improved test.
13122 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13124         printf, config.rpath: Port to FreeBSD 10.
13125         Problem reported by Tijl Coosemans in:
13126         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
13127         * build-aux/config.rpath (hardcode_libdir_flag_spec)
13128         (hardcode_direct): Simplify FreeBSD configuration.
13129         (library_names_spec): Don't mishandle FreeBSD 10+.
13130         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
13131         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
13132         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
13133         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
13134         Don't mishandle FreeBSD 10+ when cross-compiling.
13136         ftoastr: work around compiler bug in IBM xlc 12.1
13137         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
13138         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
13139         around a compiler bug in IBM xlc 12.1.0.0: it complains
13140         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
13141         _GL_FLT_PREC_BOUND.'
13143 2014-05-30  Kieran Colford  <colfordk@gmail.com>
13145         valgrind-tests: fixed misleading help message
13146         * m4/valgrind-tests.m4: The help message generated by configure
13147         implied that valgrind was disabled by default, which it wasn't.
13148         Adjusted the help message using s/enable/disable/ to clarify.
13150 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
13152         isfinite, isinf, isnan tests: fix for little-endian PowerPC
13153         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
13154         first double of a PowerPC "double double" pair.
13155         * tests/test-isinf.c (test_isinfl): Likewise.
13156         * tests/test-isnan.c (test_long_double): Likewise.
13157         * tests/test-isnanl.h (main): Likewise.
13158         * tests/test-signbit.c (test_signbitl): Likewise.
13160 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13162         exclude-tests: port to AIX 7.1
13163         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
13164         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
13165         the regex code uses locks.
13167 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
13169         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
13170         Without this fix, Emacs would sometimes call sigprocmask instead
13171         of pthread_sigmask, which is a no-no in multithreaded applications.
13172         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
13173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13174         Suppress check for pthread_sigmask working without -lpthread if
13175         the application always links with -lpthread.  Do not link with
13176         $LIBMULTITHREAD if gl_THREADLIB is not defined.
13177         * m4/timer_time.m4 (gl_TIMER_TIME):
13178         Require gl_THREADLIB only if it is defined.  Do not append
13179         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
13181 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
13183         gnulib-tool: wget translations using --no-verbose rather than --quiet
13184         This allows the user to see error messages if any (--quiet hides them)
13185         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
13187 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
13189         gnulib-tool: adjust translation wget to avoid a https redirection
13190         Context: http://translationproject.org/latest/gnulib redirects to
13191            https://translationproject.org/latest/gnulib/
13192         Rationale: if the user falls back to wget, she doesn't have rsync and
13193         is probably in a minimal build environment, where packages such as
13194         'ca-certificates' are missing as well, resulting in a failed (and
13195         difficult to detect since ignored) translation initial fetch.
13196         Consequently let's avoid https if possible, and add the missing
13197         trailing slash.  This also avoids an unnecessary 302 redirection.
13198         * gnulib-tool: Add trailing slash to gnulib URL.
13200 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13202         getlogin_r-tests: check return value rather than errno
13203         * tests/test-getlogin_r.c (main): As per POSIX we should be
13204         verifying the return value from getlogin_r() rather than errno.
13206 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13208         getlogin_r-tests: fix various issues in recent change
13209         * tests/test-getlogin_r.c: Include required headers that were
13210         missed in recent commit eec20b4e.
13211         Also consistently check the errno rather than the return value from
13212         getlogin_r as POSIX only specifies that non zero is returned on error.
13213         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
13215 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13217         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
13218         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
13219         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
13220         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
13221         * lib/spawn-pipe.c:
13222         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
13223         and then 'int open64(const char *, int, ...);', which means the
13224         declaration for 'open' gets lost if we later '#undef open'.
13225         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
13226         where the compilation reported the non-fatal error "In function
13227         'openat_proc_name' ... warning: implicit declaration of function
13228         'open'".  In this case the error is relatively harmless, but in
13229         other cases it might not be so minor.
13231 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13233         xalloc: don't potentially generate invalid code for xmemdup calls
13234         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
13235         this function can initialize the newly-allocated storage with new
13236         pointers, which means this function is not malloc-like.  See:
13237         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
13239 2014-05-19  Pádraig Brady  <P@draigBrady.com>
13241         getlogin_r-tests: avoid false failure under sudo/ssh etc.
13242         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
13243         changes from commit 97249cf29 to not depend on environment variables.
13245 2014-05-18  Pádraig Brady  <P@draigBrady.com>
13247         getlogin-tests: avoid false failure under cron
13248         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
13249         since that's not what's under test.  Centos 6 was seen to return
13250         EINVAL for ttyname() when run from cron.
13252 2014-05-16  Jim Meyering  <meyering@fb.com>
13254         mbrtowc.m4: fix a comment typo
13255         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
13256         emitted documentation string.
13258 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13260         mbrlen, mbrtowc: fix bug with empty input
13261         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
13262         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
13263         so this is mainly for documentation.
13264         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
13265         (gl_FUNC_MBRTOWC): Use it.
13266         * tests/test-mbrtowc.c (main): Test for the bug.
13268 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13270         doc: document mbrtowc and mbrlen problem with empty input
13271         * doc/posix-functions/mbrlen.texi (mbrlen):
13272         * doc/posix-functions/mbrtowc.texi (mbrtowc):
13273         Document portability problem when the input string is empty.  See:
13274         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
13276         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
13277         Problem reported by Eli Zaretskii in:
13278         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
13279         * doc/posix-functions/execl.texi (execl):
13280         * doc/posix-functions/execle.texi (execle):
13281         * doc/posix-functions/execlp.texi (execlp):
13282         * doc/posix-functions/execv.texi (execv):
13283         * doc/posix-functions/execve.texi (execve):
13284         * doc/posix-functions/execvp.texi (execvp):
13285         Mention spawn+exit problem on non-Cygwin Windows platforms.
13287 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
13289         getlogin-tests: avoid false failure under sudo/ssh etc.
13290         * modules/getlogin-tests (configure.ac): Check for ttyname().
13291         * tests/test-getlogin.c (main): Don't depend on environment variables
13292         to correlate with getlogin(), since sudo and ssh etc. can tamper
13293         with the LOGNAME and USER env vars.  Instead lookup the name from
13294         the uid associated with the stdin tty.
13296 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13298         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
13299         These were found when building the latest grep snapshot on IRIX 6.5.
13300         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
13301         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
13302         never used later.
13303         * lib/quotearg.c (quoting_options_from_style):
13304         * lib/xstrtol.c (__xstrtol):
13305         Use enum instead of 0, to pacify IRIX 6.5 cc.
13307 2014-04-18  Pádraig Brady  <P@draigBrady.com>
13309         gitlog-to-changelog: revert inclusion of git-log-fix file
13310         * build-aux/git-log-fix: Delete dummy file.
13311         * modules/gitlog-to-changelog: Don't reference (overwrite)
13312         the project specific git-log-fix file.
13314 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
13316         maint.mk: Relax the copyright check to cater for non FSF projects
13317         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
13318         to not require the "Free" suffix after the copyright years.
13320 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
13322         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
13323         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
13324         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
13325         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
13326         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
13328 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
13330         exclude: port to strict C99
13331         Strict C does not allow converting a function pointer to void *
13332         and vice versa.  Pass a pointer to a function pointer instead.
13333         * lib/exclude.c (add_exclude_file):
13334         Pass the address of the function pointer.
13335         (call_addfn): And deference the address here, to match.
13337 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13339         regex: do not depend on malloc-gnu
13340         * modules/regex (Depends-on): Remove malloc-gnu.
13341         It's no longer needed, because of the 2012-12-29 patch
13342         "regex: port to hosts where malloc (0) == NULL".
13343         Reported by Nathan Kennedy in:
13344         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
13346 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
13348         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
13349         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
13350         * doc/posix-functions/expl.texi: Mention the workaround.
13352 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13354         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
13355         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
13356         size to be zero even when the pointer is nonnull.  This
13357         accommodates the use case where P is malloc (0) and *PN is 0 on a
13358         host where malloc (0) yields nonnull.
13360 2014-04-09  Eric Blake  <eblake@redhat.com>
13362         fts: avoid unnecessary strlen calls
13363         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
13365 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13367         fts: avoid unnecessary strlen calls
13368         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
13369         when that can be faster than strlen.
13371 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13373         fts: avoid unnecessary strlen calls
13374         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
13375         (fts_build): Store the length of the dp->d_name entry in a local variable
13376         instead of calling strlen() several times via the above, removed macro.
13377         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
13378         run by ~4%, yet this reduces the execution time by about a third if run
13379         via "ltrace -c rm -rf some-dir".
13381 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13383         obstack: Remove ancient NeXTSTEP gcc support conditional
13384         This change will ease merging with glibc.  The "#if ... __NEXT__"
13385         causes a warning with -Wundef which glibc now enables by default.
13386         Problem reported by Will Newton in
13387         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
13388         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
13389         so go with that.
13390         * lib/obstack.h (__extension__):
13392 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13394         obstack: merge with glibc changes
13395         * lib/obstack.c, lib/obstack.h: Merge from glibc.
13396         This is mostly indenting and commentary changes.
13397         Instances of 'register' have been removed.
13399 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13401         strftime: wrap macros in "do {...} while(0)"
13402         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
13403         this macro in "do {...} while(0)" to prevent false use as a
13404         single statement, e.g., in an un-braced "{}" else-block.
13405         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
13406         (strftime_case_): Remove 'else' after 'goto' - which was the
13407         only non-fatal, un-braced use of one of the above macros.
13408         Spotted by coverity (NESTING_INDENT_MISMATCH).
13410 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13412         modechange: avoid memory leaks for invalid octal modes
13413         * lib/modechange.c (mode_compile): During the parsing of
13414         notations like +40, free the 'mc' buffer for invalid mode
13415         strings like +17777 (greater than the maximum octal mode),
13416         =18 (bad octal mode characters) or u=1 ('affected' with
13417         octal modes).
13418         Reproducer, e.g.:
13419             $ valgrind --leak-check=full chmod +17777 file
13420         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
13421         add notations +40, 00440, etc.".
13422         Spotted by coverity (RESOURCE_LEAK).
13424 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13426         gitlog-to-changelog: include a dummy git-log-fix file
13427         Problem reported by Nathan Stratton Treadway in:
13428         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
13429         * build-aux/git-log-fix: New file.
13431 2014-03-13  Jim Meyering  <meyering@fb.com>
13433         gitlog-to-changelog: also include the file, git-log-fix
13434         * modules/gitlog-to-changelog (Files): Add git-log-fix.
13435         Reported by Assaf Gordon.
13437 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
13439         regex: port to OS X 10.8.5 en_US.UTF-8 locale
13440         This fixes a bug when ignoring case and when comparing the
13441         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
13442         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
13443         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
13444         titlecase letter is neither lowercase nor uppercase, but
13445         uppercasing the titlecase letter (via towupper) yields the
13446         uppercase letter, so the two letters should match when ignoring case.
13447         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
13448         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
13449         Don't test whether a character is lowercase before uppercasing it.
13451 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
13453         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
13454         This is basically one of the options Bruno Haible proposed in:
13455         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
13456         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
13457         * lib/stdint.in.h: Use it.
13458         * modules/stdint (Depends-on): Add sys_types.
13460 2014-02-26  Pádraig Brady  <P@draigBrady.com>
13462         parse-datetime: fix crash or infloop in TZ="" parsing
13463         * lib/parse-datetime.y (parse_datetime): Break out of the
13464         TZ="" parsing loop once the second significant " is found.
13465         Also skip over any subsequent whitespace to be consistent
13466         with the non TZ= case.
13467         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
13469 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
13471         savedir: new symbol for fast-read version
13472         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
13473         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
13474         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
13475         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
13477 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
13479         unistd: port readlink to Mac OS X 10.3.9
13480         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
13481         around self-include problem in Mac OS X 10.3.9 when combined with
13482         readlink module.  Problem reported by Klaus Zietler in
13483         <http://bugs.gnu.org/16825>.
13485 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13487         diffseq: remove TOO_EXPENSIVE heuristic
13488         Problem with diffutils reported by Vincent Lefevre in
13489         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
13490         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
13491         Although appropriate for circa-1993 hardware, these days the heuristic
13492         seems to be more trouble than it's worth.
13493         * lib/diffseq.h: Modernize citations.
13494         (struct context): Remove member too_expensive.
13495         All uses changed.
13496         (struct partition): Remove members lo_minimal, hi_minimal.
13497         All uses changed.
13498         (diag, compareseq): Remove arg find_minimal.  All uses changed.
13499         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
13500         1993 to make 'diff' run faster (but not as well) on large inputs.
13501         These days, computers are fast enough that it's typically better
13502         to run slower but more accurately.
13503         * lib/fstrcmp.c: Remove duplicate comment.
13504         * lib/fstrcmp.c (strcmp_bounded):
13505         * lib/git-merge-changelog.c (compute_differences):
13506         Adjust to diffseq.h changes.
13507         * NEWS: Document the change.
13509         savedir: simplify by using stpcpy
13510         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
13511         (streamsavedir): Use stpcpy instead.
13512         * modules/savedir (Depends-on): Add stpcpy.
13514 2014-02-21  Pádraig Brady  <P@draigBrady.com>
13516         spawn: fix link error on uclibc
13517         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
13518         to incorporate -lrt if needed (on uclibc for example).
13519         * modules/posix_spawn: Reference the substituted LIB.
13521 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
13522         timer: fix uClibc detection of threading
13523         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
13524         enabled in uClibc.
13526 2014-02-21  Eric Blake  <eblake@redhat.com>
13528         maintainer-makefiles: provide AC_PROG_SED for older autoconf
13529         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
13531 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
13533         exclude: add support for posix regexps
13535         This commit adds support for POSIX extended regular expressions
13536         and fixes a long-standing memory leak (pattern buffer was never
13537         freed).  It also implements a new interface function to read
13538         exclude patterns from a FILE, which passes an additional parameter
13539         to its callback function, thereby allowing to preserve its state
13540         between invocations.
13542         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
13543         (pattern_buffer): New struct.
13544         (exclude): New member patbuf.
13545         (exclude_add_pattern_buffer): New function.
13546         (free_exclude_segment): Free regexps.
13547         (free_exclude): Free allocated pattern buffers.
13548         (exclude_patopts): New function.
13549         (file_pattern_matches): Use exclude_patopts.
13550         (add_exclude): support regexps.
13551         (add_exclude_fp): New function.
13552         (add_exclude_file): Rewrite using add_exclude_fp.
13553         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
13554         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
13555         (add_exclude_fp)
13556         (add_exclude_file): Rewrite using add_exclude_fp.
13557         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
13558         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
13559         (add_exclude_fp)
13560         (exclude_add_pattern_buffer): New prototypes.
13561         * modules/exclude: Depends on regex and filename.
13563 2014-02-20  Eric Blake  <eblake@redhat.com>
13565         maintainer-makefiles: use $(SED) for syntax check
13566         * modules/maintainer-makefile (configure.ac): Check for sane sed.
13567         * top/maint.mk: Change sed to $(SED).
13569 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
13570             Paul Eggert  <eggert@cs.ucla.edu>
13572         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
13573         Patch based on an idea by Dick Streefland in
13574         <https://savannah.gnu.org/patch/?7892>.
13575         * NEWS: Document this.
13576         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
13577         (direntry_t, comparison_function): New types.
13578         (direntry_cmp_name): New function.
13579         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
13580         (streamsavedir, savedir): New arg OPTION.
13581         (streamsavedir): Simplify memory allocation.
13582         (fdsavedir): Remove.
13583         * lib/savedir.h (enum savedir_option): New type.
13584         (streamsavedir, savedir): New arg OPTION.
13585         (fdsavedir): Remove.
13587 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13589         file-type: add support for doors and other less-common file types
13590         Problem with S_ISDOOR reported by Rich Burridge.
13591         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
13592         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
13593         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
13595 2014-01-23  Eric Blake  <eblake@redhat.com>
13597         pthread: work around winpthread header pollution on mingw
13598         * lib/time.in.h: Move pthread workarounds...
13599         * lib/pthread.in.h: ...here.
13600         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
13601         detect macro pollution on mingw.
13602         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
13604 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13606         qacl: check for fchmod
13607         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
13608         and qset-acl.c both use HAVE_FCHMOD.
13610 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13612         fdopen-tests: port to Tru64
13613         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
13614         descriptor that is not open, as POSIX doesn't specify the
13615         resulting behavior and the test does not work on Tru64.
13616         Problem reported by Steven M. Schweda in:
13617         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
13619         stdalign: port to HP-UX compilers
13620         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
13621         if __HP_cc or __HP_aCC are nonzero.
13623 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13625         strtoimax: port to platforms lacking 'long long'
13626         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
13627         check whether strtoll is declared, which causes the C file to
13628         wrongly report an error.  Problem reported by Steven M. Schweda in:
13629         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
13630         * lib/strtoimax.c (strtoull):
13631         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
13632         (strtoll): Declare only if HAVE_LONG_LONG_INT.
13634 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
13636         relocatable-perl: fix texi syntax
13637         * doc/relocatable-maint.texi: Escape braces.
13639 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
13641         relocatable-perl: like relocatable-script, but for Perl scripts
13642         * build-aux/relocatable.pl.in: Add.
13643         * doc/relocatable-maint.texi: Add documentation.
13644         * modules/relocatable-perl: Add.
13646 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
13648         tests: fix export bug in previous patch
13649         Problem reported by Jim Meyering.
13650         * tests/init.sh (re_shell): New var, which is exported instead of
13651         re_shell_.
13653         tests: simplify porting to Solaris 10 /bin/sh
13654         Some test cases in 'grep' need a shell that groks '$(';
13655         export re_shell_ for their benefit.  Problem reported for 'grep'
13656         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
13657         * tests/init.sh (re_shell_): Export if it's used.
13659 2014-01-06  Eric Blake  <eblake@redhat.com>
13661         md5, sha1, sha256, sha512: support older autoconf
13662         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
13663         for autoconf < 2.63b.
13665         include_next: port to autoconf 2.63
13666         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
13668 2014-01-04  Jim Meyering  <meyering@fb.com>
13670         maint: add a gnulib-local rule to keep non-ascii out of .texi files
13671         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
13672         so that "make sc_maint" will ding anyone who puts non-ascii
13673         in any of gnulib's .texi files.
13675 2014-01-03  Jim Meyering  <meyering@fb.com>
13677         freadable, fwritable, fwriting: declare with the "pure" attribute
13678         * lib/freadable.h (freadable): Declare with the "pure" attribute.
13679         * lib/fwritable.h (fwritable): Likewise.
13680         * lib/fwriting.h (fwriting): Likewise.
13681         Suggested by Bruno Haible.
13683         maint.mk: adapt openat.h-include-without-use test
13684         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
13685         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
13686         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
13687         With this change, running "make sc_maint" in gnulib's top-level
13688         directory now passes for me.
13690 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13692         doc: use ASCII in .texi files where UTF-8 isn't needed
13693         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
13694         * doc/posix-functions/setkey.texi, doc/regex.texi:
13695         Use ASCII input, not UTF-8.
13697 2014-01-02  Jim Meyering  <meyering@fb.com>
13699         freading: declare with the "pure" attribute
13700         * lib/freading.h (freading): Declare with the "pure" attribute.
13702         manywarnings: remove -Wmudflap
13703         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
13704         it is no longer supported in gcc-4.9-to-be.
13706 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13708         relocatable-script: remove unused code
13709         Problem reported by Reuben Thomas in:
13710         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
13711         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
13713 2014-01-01  Jim Meyering  <meyering@fb.com>
13715         maint: fix public-submodule-commit to work with newer git
13716         * top/maint.mk (public-submodule-commit): Remove excess quoting.
13717         We were over-quoting the test arguments, and somewhere prior to
13718         version 1.8.5.2.229, git stopped removing those excess quotes,
13719         which made the test fail, since the unexpanded strings would
13720         always differ; using GIT_TRACE=1 confirmed that the git merge-base
13721         command wasn't even being run.
13723 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13725         doc: update main copyright year
13726         * doc/gnulib.texi: Update copyright date.
13728 2014-01-01  Eric Blake  <eblake@redhat.com>
13730         version-etc: new year
13731         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
13732         * all files: run 'make update-copyright'
13734 2013-12-24  Eric Blake  <eblake@redhat.com>
13736         passfd: give nicer error for recvfd at eof
13737         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
13738         * tests/test-passfd.c (main): Enhance test to cover this.
13740 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13742         gettimeofday: port recent C++ fix to Emacs
13743         Without this further patch, Emacs won't build due to
13744         the portcheck failing.  Also, this simplifies the patch a bit.
13745         * lib/time.in.h (localtime, gmtime): Don't replace unless
13746         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
13747         * lib/time.in.h (localtime, gmtime):
13748         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
13749         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13750         * modules/time (time.h):
13751         Don't worry about the possibility of localtime and gmtime
13752         being absent; they're present in all C libraries we know about.
13753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13754         Don't assume sys_time is present and has been initialized.
13755         Instead, use a hack that should work even if it hasn't been.
13756         Don't use a portcheck for gmtime or localtime; this supports
13757         the hack.
13758         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
13760 2013-12-17  John W. Eaton  <jwe@gnu.org>
13762         gettimeofday: fix C++ crosscompilation
13764         Never replace gmtime and localtime by macros when compiling with
13765         C++, this prevents <ctime> from being included.
13767         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
13768         define gmtime and localtime as preprocessor macros.  Instead
13769         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
13770         REPLACE_LOCALTIME substitutions.
13771         * lib/time.in.h: Declare gmtime and localtime when needed.
13772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
13773         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
13774         * modules/time: Depend on gettimeofday, and substitute the above
13775         variables in time.h.
13777 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13779         qacl: port to Windows better
13780         See Eli Zaretskii in
13781         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
13782         * lib/file-has-acl.c (acl_access_nontrivial):
13783         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
13784         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
13786 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
13788         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
13789         * lib/gl_openssl.h: Cast void pointers to a specific type.
13791 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13793         open-tests: fix build failure with -Werror=old-style-declaration
13794         * tests/test-open.h: Reorder the inline to avoid the issue.
13796 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13798         md5, sha1, sha256, sha512: fix link error with partial libcrypto
13799         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
13800         init time, so that if early checks find crypto routines,
13801         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
13802         avoiding link failures.
13804 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13806         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
13807         This provides a new way to specify the default for
13808         gl_CRYPTO_CHECK, one that is reflected in the --help message.
13809         Emacs uses this, as well as the old way.
13810         This attempts to implement a suggestion by Pádraig Brady in
13811         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
13812         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
13813         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
13815         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
13816         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
13817         Add support for a new option, --with-openssl=auto, which causes
13818         the library to be used if available and silently ignored if not.
13819         Add support to allow configure.ac to specify its own
13820         default, by setting with_openssl_default before invoking gl_INIT.
13822 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13824         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
13825         Problem reported by Daiki Ueno in:
13826         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
13827         * tests/test-open.h (__always_inline):
13828         New macro, if not already defined.
13829         (test_open): Use it.
13831 2013-12-04  Eric Blake  <eblake@redhat.com>
13833         include_next: minimize code duplication
13834         * modules/include_next (Depends-on): Add absolute-header.
13835         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
13836         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
13838 2013-12-04  Pádraig Brady  <P@draigBrady.com>
13840         getcwd: fix compile error in configure check
13841         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
13843 2013-12-04  Pádraig Brady  <P@draigBrady.com>
13845         regex: suppress core dumps from detection code
13846         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
13847         to suppress core dumps that may well occur on glibc systems.
13848         These core dumps might not be cleaned up automatically, or could
13849         trigger some system core dump handling logic.
13851 2013-12-03  Pádraig Brady  <P@draigBrady.com>
13853         md5, sha1, sha256, sha512: support mandating use of openssl
13854         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
13855         description, to list the now 3 separate options.  also don't
13856         mention the default=no, since this is implicit given the option
13857         is described as --with-openssl rather than --without-openssl.
13858         If projects change the default they're free to document that.
13859         with --with-openssl[=yes] we now error out when the specified
13860         hash algorithm is not available in libcrypto.
13862 2013-12-03  Ivailo  <xakepa10@gmail.com>
13864         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
13865         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
13866         -Wformat-nonliteral checks, as these edge cases are part of the test.
13868 2013-12-03  Eric Blake  <eblake@redhat.com>
13870         regex: avoid glibc deadlock during configure
13871         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
13872         glibc bug 15078 in turn triggers bug 16159.
13873         Reported by Michal Privoznik.
13875 2013-12-02  Pádraig Brady  <P@draigBrady.com>
13877         md5, sha1, sha256, sha512: use openssl routines if available.
13878         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
13879         routines will be used if available, requiring apps to link @LIB_CRYPTO@
13880         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
13881         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
13882         in the standard system location.
13883         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
13884         * m4/sha256.m4: Likewise with SHA256.
13885         * m4/sha512.m4: Likewise with SHA512.
13886         * m4/md5.m4: Likewise with MD5.
13887         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
13888         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
13889         * lib/sha256.h: Likewise with SHA256.
13890         * lib/sha512.h: Likewise with SHA512.
13891         * lib/md5.h: Likewise with MD5.
13892         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
13893         * lib/sha256.c: Likewise with SHA256.
13894         * lib/sha512.c: Likewise with SHA512.
13895         * lib/md5.c: Likewise with MD5.
13896         * modules/crypto/sha1 (Link:): Add the new optional lib.
13897         (Depends-on:): Add dependency on extern-inline.
13898         * modules/crypto/sha256: Likewise.
13899         * modules/crypto/sha512: Likewise.
13900         * modules/crypto/md5: Likewise.
13901         * modules/crypto/sha1-tests: Reference the lib here too.
13902         * modules/crypto/md5-tests: Likewise.
13903         * modules/crypto/gc-des-tests: Likewise.
13904         * modules/crypto/gc-hmac-md5-tests: Likewise.
13905         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13906         * modules/crypto/gc-hmac-sha256-tests: Likewise.
13907         * modules/crypto/gc-hmac-sha512-tests: Likewise.
13908         * modules/crypto/gc-md5-tests: Likewise.
13909         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13910         * modules/crypto/gc-sha1-tests: Likewise.
13911         * modules/crypto/gc-tests: Likewise.
13912         * modules/crypto/hmac-md5-tests: Likewise.
13913         * modules/crypto/hmac-sha1-tests: Likewise.
13914         * modules/crypto/hmac-sha256-tests: Likewise.
13915         * modules/crypto/hmac-sha512-tests: Likewise.
13917 2013-11-29  RV1971  <rv1971@web.de>
13919         base64: (trivial) fix compilation regression on some compilers
13920         * lib/base64.c: Don't return the void function,
13921         instead split to a separate return statement.
13923 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13925         ignore-value: revert previous code change
13926         * lib/ignore-value.h (ignore_value): Use __extension__ and
13927         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
13928         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
13929         Change the comment to try to explain this better.
13931 2013-11-27  Pádraig Brady  <P@draigBrady.com>
13933         selinux-h: improve stub types and add more stub functions
13935         * lib/se-selinux.in.h: Change security_context_t to a typedef
13936         rather than a define, as it's a pointer type and so is better
13937         as a typedef to avoid issues declaring multiple variables
13938         with the comma operator.  Also add stub for string_to_security_class().
13939         * lib/se-context.in.h: Add stub functions for
13940         context_{type,range,role,user}_get().
13942 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13944         ignore-value: prefer GCC version back through 2.0
13945         The code didn't match the comments, so I did a bit of software
13946         archaeology.  GCC 2.0 seems to support __extension__ and
13947         __typeof__, so fix both code and comments to use 2.0.
13948         * lib/ignore-value.h (ignore_value): Use __extension__ and
13949         __typeof__ for GCC 2.0 through 3.3, too.
13951 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
13953         pty: Activate the signature wrapper of forkpty.
13954         The intended preprocessor macro HAVE_FORKPTY is
13955         never defined, yet `lib/forkpty.c' depends on it.
13957         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
13958         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
13959         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
13961 2013-11-18  Jim Meyering  <meyering@fb.com>
13962         and Paul Eggert  <eggert@cs.ucla.edu>
13964         quotearg: don't attempt to store 1 << 31 into an "int"
13965         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
13966         gcc's new -fsanitize=undefined and running its tests triggered some
13967         new test failures due to undefined behavior, all with this diagnostic:
13968           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
13969             cannot be represented in type int
13970         Rather than shifting "1" left to form a mask, shift the bits right and
13971         simply use "1" as the mask.
13973 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13975         error: depend on stdio
13976         Problem reported by Nikos Mavrogiannopoulos in
13977         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
13978         * modules/error (Depends-on): Add stdio.
13980 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
13982         * doc/relocatable-maint.texi (Supporting Relocation): Improve
13983         wording.
13984         Reported by Reuben Thomas <rrt@sc3d.org>.
13986 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13988         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
13989         New function and macro, to work around _DARWIN_C_SOURCE problem.
13990         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
13992 2013-11-11  Pádraig Brady  <P@draigBrady.com>
13994         base64: provide a fast path for encoding well sized buffers
13995         Avoid conditionals in the base64 encoding loop,
13996         which was seen to give 60% better throughput.
13997         * lib/base64.c (base64_encode_fast): A new function to be called
13998         when we don't want to NUL terminate, and we have enough space
13999         in the output to encode the given input.
14000         (base64_encode): Call the _fast() version when appropriate.
14001         Also remove a redundant mask with 0x3F on the first encoded byte.
14003 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14005         extern-inline: port better to OS X 10.9
14006         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
14007         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
14008         OS X 10.9, except for g++ where the bug is still present.
14009         See <http://trac.macports.org/ticket/41033>.
14011 2013-11-08  Eric Blake  <eblake@redhat.com>
14013         fpending: fix regression on DragonFly BSD
14014         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
14015         * lib/fpending.h (__fpending): Don't declare twice.
14016         Reported by GW in
14017         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
14019 2013-11-05  Jim Meyering  <meyering@fb.com>
14021         hash: relax license to LGPLv2+, for libguestfs
14022         * modules/hash (License): Change from GPL to LGPLv2+.
14024 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14026         intprops: port to Oracle Studio c99
14027         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
14028         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
14030 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14032         obstack: pacify HP C
14033         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
14034         warning "conversion from pointer to smaller integer" from HP
14035         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
14036         C89 or later nowadays, so cast to void instead of int.  Privately
14037         reported by H.Merijn Brand.  Also, change header to match glibc's,
14038         to make checking against glibc easier.
14040 2013-10-29  Jim Meyering  <meyering@fb.com>
14042         maint.mk: prefer gpgv2 over gpgv
14043         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
14044         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
14045         Reported by Gary Vaughan.
14047 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14049         isnan: port to VAX
14050         Reported by John Klos for NetBSD-5/VAX in
14051         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
14052         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
14053         (FUNC): Use it.
14055 2013-10-28  Jim Meyering  <meyering@fb.com>
14057         gnulib-tool: protect against CDPATH
14058         * gnulib-tool: Many "cd" built-in functions print a directory name
14059         to stdout when CDPATH is set, e.g.,
14060           $ bash -c 'CDPATH=/; cd tmp'
14061           /tmp
14062         Unset it, when possible.  Prompted by a comment from Bruce Korb.
14064         maint.mk: restore functionality removed by recent change...
14065         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
14066         the context of a shallow-cloned gnulib repository: "git describe"
14067         would fail in such a directory.  However, that change made it so
14068         the reported gnulib revision no longer includes the version number
14069         or a commit count, even when run from a full clone.
14070         * top/maint.mk (gnulib-version): Use the full "git describe"
14071         output when possible, e.g., the form above, rather than the
14072         abbreviated, no-tag, no-commit-count string, and fall back to
14073         using a 10-byte hash, rather than the default minimal-length
14074         hash prefix, since while the minimal-length one may be fine today,
14075         it is likely not to be unique for very long.
14077 2013-10-26  Jim Meyering  <meyering@fb.com>
14079         maint.mk: fix "release" target to build _version
14080         This fixes a bug in README-release whereby following the outlined
14081         steps, one would publish a tarball whose programs would report
14082         --version output not consistent with the package version number.
14083         This bug caused grep-2.15 to produce a grep program whose
14084         --version option made it print 2.14.56-1e3d rather than 2.15.
14085         * top/maint.mk (release): Making this target build "_version"
14086         ensures that the new version number is reflected in configure.
14088 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
14090         install-reloc: Support multi-binary installation.
14091         * build-aux/install-reloc: Support installing multiple programs in
14092         one invocation, as done by Automake starting with commit
14093         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
14094         Haible <bruno@clisp.org>, archived at
14095         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
14096         Reported by Sylvain <beuc@gnu.org>.
14098 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14100         selinux-h: Really build without selinux when library is missing.
14101         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
14102         continue without selinux, as already told in the warning message.
14104 2013-10-21  Jim Meyering  <meyering@fb.com>
14106         regex: also remove dependency on HAVE_WCSCOLL
14107         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
14109 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
14111         xfreopen: Fix typo. s/frepoen/freopen/
14112         * lib/xfreopen.c: Fix description.
14113         * modules/xfreopen: Likewise.
14115 2013-10-21  Jim Meyering  <meyering@fb.com>
14117         regex: don't depend on wcscoll
14118         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
14119         It is no longer used.
14121 2013-10-20  Jim Meyering  <meyering@fb.com>
14123         error: add the printf attribute to a static function
14124         * lib/error.c (error_tail): Add the printf attribute, to placate
14125         gcc's -Werror=suggest-attribute=format option.
14127 2013-09-30  Jim Meyering  <meyering@fb.com>
14129         fpending, obstack, strerror-override: use pure+const function attrs
14130         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
14131         * lib/obstack.c (_obstack_allocated_p): Likewise.
14132         * lib/obstack.h (_obstack_memory_used): Likewise.
14133         (_obstack_memory_used): Likewise.
14134         * lib/strerror-override.h (strerror_override): Declare with
14135         the "const" attribute.
14137 2013-10-18  Eric Blake  <eblake@redhat.com>
14139         extern-inline: make safe for -Wundef usage
14140         Reported by Vladimir 'phcoder' Serbinenko in
14141         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
14142         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
14144 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14146         mkfifo-tests, etc.: allow HP-UX 11.11 bug
14147         Problem reported by Daniel Richard G. in
14148         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
14149         * doc/posix-functions/mkfifo.texi (mkfifo):
14150         * doc/posix-functions/mkfifoat.texi (mkfifoat):
14151         * doc/posix-functions/mknod.texi (mknod):
14152         * doc/posix-functions/mknodat.texi (mknodat):
14153         Document the HP-UX 11.11 bug.
14154         * tests/test-mkfifo.h (test_mkfifo):
14155         Allow the HP-UX 11.11 bug.
14157 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14159         acl: allow cross-compilation to Gentoo
14160         Problem reported by Gabriel Marcano in
14161         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
14162         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
14163         test only whether it links.
14165 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14167         mgetgroups: remove dependency on realloc-gnu
14168         The dependency violates the comment in realloc-gnu, which
14169         says that tests can't depend on realloc-gnu; some tests depend
14170         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
14171         Problem reported by Daniel Richard G. in
14172         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
14173         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
14174         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
14175         not realloc-gnu.
14177 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14179         regex-tests: port to HP-UX 11.11
14180         Problem reported by Daniel Richard G. in
14181         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
14182         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
14184 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14186         verify: document some 'assume' pitfalls
14187         * doc/verify.texi (Compile-time Assertions):
14188         Mention that 'assume (E)' can sometimes slow things down.
14189         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
14191 2013-10-10  Eric Blake  <eblake@redhat.com>
14193         strtoumax: fix typo in previous commit.
14194         * modules/strtoumax (Depends-on): Fix typo.
14195         * modules/strtoimax (Depends-on): Likewise.
14197 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14199         strtoumax: port to Solaris 8
14200         This problem was introduced in the recent HP-UX patch.
14201         Reported by Tom G. Christensen in
14202         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
14203         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
14204         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
14206 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
14208         strtoimax, strtoumax: port to HP-UX 11.11
14209         Problem reported by Daniel Richard G. in
14210         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
14211         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
14212         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
14213         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
14214         REPLACE_STRTOUMAX.
14215         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
14216         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
14217         Replace the function if defined as a macro but not as a function.
14218         * modules/inttypes-incomplete (inttypes.h): Substitute
14219         REPLACE_STRTOUMAX.
14220         * modules/strtoumax (configure.ac): Replace strtoumax if
14221         REPLACE_STRTOUMAX.
14223 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14225         strtoimax: port to HP-UX 11.11
14226         Problem reported by Daniel Richard G.
14227         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
14228         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
14229         they might clash with inttypes.h.
14231 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14233         New module 'count-trailing-zeros'.
14234         * MODULES.html.sh: Mention it.
14235         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
14236         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
14237         * modules/count-trailing-zeros-tests:
14238         * tests/test-count-trailing-zeros.c:
14239         New files.
14241         count-leading-zeros: port to MSC; support types wider than 64 bits
14242         The ideas behind the MSC port are stolen from Emacs.
14243         * lib/count-leading-zeros.h:
14244         Don't include verify.h: it's no longer needed, as types wider than
14245         64 bits are now supported.
14246         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
14247         performance with MSC.  All uses changed.  Do not assume that TYPE
14248         has at most 64 bits.
14249         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
14250         All uses changed.  Fold the subtraction from 31 into the table.
14252         count-one-bits: port to MSC; support types wider than 64 bits
14253         The ideas behind the MSC port are stolen from Emacs.
14254         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
14255         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
14256         Don't include verify.h: it's no longer needed, as types wider than
14257         64 bits are now supported.
14258         (COUNT_ONE_BITS_GENERIC): New macro.
14259         (popcount_supported) [_MSC_VER]: New inline function.
14260         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
14261         performance with MSC.  All uses changed.  Do not assume that TYPE
14262         has at most 64 bits.
14263         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
14265 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
14267         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
14268         * lib/mountlist.c (read_file_system_list): fix leak of directory
14269         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
14271 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14273         tests: improve diagnostic when an assertion fails
14274         * tests/macros.h (ASSERT): Report the assertion that failed.
14276 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14278         verify: new macro 'assume'
14279         This is taken from Emacs, and should be generally useful.
14280         * doc/verify.texi (assume): Document it.
14281         * lib/verify.h (assume): New macro.
14282         (__has_builtin): Expand to 0 if not defined.
14284 2013-09-26  Eric Blake  <eblake@redhat.com>
14286         dup2, dup3: work around another cygwin crasher
14287         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
14288         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
14289         * tests/test-dup2.c (main): Likewise.
14290         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
14291         * lib/dup3.c (dup3): Likewise.
14292         * doc/posix-functions/dup2.texi (dup2): Document it.
14293         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14295         getdtablesize: work around cygwin issue
14296         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
14297         * modules/getdtablesize (configure.ac): Build replacement.
14298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
14299         * modules/unistd (Makefile.am): Expose the witness.
14300         * lib/unistd.in.h (getdtablesize): Declare replacement.
14301         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
14302         * tests/test-getdtablesize.c (main): Test it.
14303         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
14305 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
14307         pmccabe2html: escaping of special characters
14308         Escape all '<', '>', and '&' in HTML output.
14309         * build-aux/pmccabe2html (html_fnc): Call gsub()
14310         instead of sub() to capture all '<', '>', and '&'.
14311         Neither of '<' and '>' is special in a regexp,
14312         so first arguments to gsub() are corrected. Also,
14313         in replacement strings, ampersand must be escaped.
14314         Finally, '&' must be handled first, then '<' and '>'.
14316 2013-09-24  Eric Blake  <eblake@redhat.com>
14318         manywarnings: enable nicer gcc warning messages
14319         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
14320         some -f options for optimal warnings.
14322 2013-09-21  Jim Meyering  <meyering@fb.com>
14324         timespec: use the new TIMESPEC_RESOLUTION in a few more places
14325         * lib/timespec-add.c (timespec_add): Also replace 999999999
14326         with TIMESPEC_RESOLUTION - 1.
14327         * lib/timespec-sub.c (timespec_sub): Likewise.
14329 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14331         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
14332         Problem reported by Dagobert Michelsen via Eric Blake in
14333         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
14334         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
14335         not AC_COMPILE_IFELSE.
14337 2013-09-23  Eric Blake  <eblake@redhat.com>
14339         configmake: support new --runstatedir option
14340         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
14341         even if autoconf was too old to provide the command line option.
14342         * modules/configmake (Makefile.am): Propagate it to .h file.
14344 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14346         ctype, string: depend on extern-inline
14347         This is needed to complete the recent OS X fixes.
14348         Also, fix related documentation as suggested by Eric Blake.
14349         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14350         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
14351         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
14352         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
14353         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
14354         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
14355         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
14356         * doc/posix-functions/toupper.texi:
14357         List the 'ctype' gnulib module.
14358         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
14359         * doc/posix-functions/strncpy.texi:
14360         List the 'string' gnulib module.
14361         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
14362         Add string.
14363         * modules/ctype, modules/string (Depends-on): Add extern-inline.
14365 2013-09-19  Pádraig Brady  <P@draigBrady.com>
14367         userspec: support optional parameters to parse_user_spec()
14368         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
14369         then avoid group processing and treat the full spec as a user.
14370         (parse_with_separator): Allow the USERNAME and GROUPNAME to
14371         be optional params (NULL), in which case they're ignored.
14373 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14375         timespec: new function make_timespec, and new constants
14376         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
14377         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
14378         (make_timespec): New function.
14379         * lib/dtotimespec.c (dtotimespec):
14380         * lib/timespec-add.c (timespec_add):
14381         * lib/timespec-sub.c (timespec_sub):
14382         * lib/utimens.c (validate_timespec):
14383         * lib/utimensat.c (rpl_utimensat):
14384         Use these new constants and functions.
14386         stdio: OS X port of putc_unlocked + extern inline
14387         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
14388         * doc/posix-functions/putc_unlocked.texi:
14389         * doc/posix-functions/putchar_unlocked.texi:
14390         Document this portability problem.
14392         signal: OS X port of sigaddset etc. + extern inline
14393         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
14394         (sigismember): #undef on problematic Apple platforms.
14395         * doc/posix-functions/sigaddset.texi:
14396         * doc/posix-functions/sigdelset.texi:
14397         * doc/posix-functions/sigemptyset.texi:
14398         * doc/posix-functions/sigfillset.texi:
14399         * doc/posix-functions/sigismember.texi:
14400         Document this portability problem.
14402         extern-inline: do not always suppress extern inline on OS X
14403         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
14404         extern inline on Apple only if the particular compile-time
14405         configuration is known to have the problem.
14406         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
14407         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
14408         other Gnulib modules.
14410         extern-inline: document fixes for ctype and wctype macros
14411         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14412         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
14413         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
14414         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
14415         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
14416         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
14417         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
14418         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
14419         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
14420         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
14421         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
14422         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
14423         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
14424         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
14425         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
14426         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
14427         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
14428         * doc/posix-functions/strncpy.texi:
14429         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
14430         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
14431         Document that Gnulib fixes portability problems with these
14432         functions on OS X 10.8 and earlier when called from plain inline
14433         or extern inline functions.
14435 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
14437         fflush, freadahead, fseeko: Fix for Android
14438         Suggested by Bruno Haible in:
14439         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
14440         * lib/stdio-impl.h: Use local __sfileext definition.
14442 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
14444         pmccabe2html: Portability to other awk versions.
14445         The functions systime() and strftime() are available
14446         in Gawk only.  Properly close two HTML-tags 'style'
14447         and 'span'.
14448         * build-aux/pmccabe2html (BEGIN): Store timing
14449         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
14450         systime() in HTML_COMMENT.
14451         (html_header): Correctly close tag 'style'.
14452         (END): Replace strftime() by CHRONOS_TIME.  Close
14453         tag 'span' correctly, not as 'div'.
14455 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14457         getgroups: statement without effect
14458         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
14459         Change equality conditional to expected assignment.
14461 2013-09-09  Eric Blake  <eblake@redhat.com>
14463         glob: fix compilation
14464         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
14466 2013-09-07  Eric Blake  <eblake@redhat.com>
14468         glob: fix build for platforms without __THROW
14469         * lib/glob.in.h (__THROW): Add definition again.
14471 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
14473         regex-quote: fix buffer access out of bounds
14474         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
14475         * lib/regex-quote.c (regex_quote_spec_pcre):
14476         Fix typo that resulted in an out-of-bounds read.
14478 2013-09-04  Eric Blake  <eblake@redhat.com>
14480         glob: avoid -Wattribute warnings on glibc
14481         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
14482         __THROWNL, not __THROW, on static functions.
14483         * lib/glob.in.h (__THROW): Adjust...
14484         (__THROWNL): ...accordingly.
14486 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14488         headers: check that _GL_INLINE_HEADER_BEGIN is defined
14489         Suggested by Bruce Korb in:
14490         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
14491         * doc/extern-inline.texi (extern inline):
14492         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
14493         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
14494         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
14495         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
14496         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
14497         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
14498         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
14499         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
14500         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
14501         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
14502         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
14503         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
14504         * lib/xtime.h:
14505         Check that _GL_INLINE_HEADER_BEGIN is defined.
14507 2013-08-29  Pádraig Brady  <P@draigBrady.com>
14509         bootstrap: remove the --version requirement from ancillary tools
14510         * build-aux/bootstrap (check_exists): A new refactored function to
14511         determine if a command exists.
14512         (find_tool): Use the new function which does not require the
14513         --version option to be supported.
14514         (check_versions): Use the new function.
14516 2013-08-26  Simon Josefsson  <simon@josefsson.org>
14518         gc: support HMAC-SHA256 and HMAC-SHA512.
14519         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
14520         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
14521         functions.
14522         (gc_hmac_md5): Use symbolic constant.
14523         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
14524         (gc_hmac_sha256, gc_hmac_sha512): New functions.
14525         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
14526         * m4/sha256.m4: Protect against empty expansion.
14527         * m4/sha512.m4: Likewise.
14528         * lib/hmac-sha256.c: New file.
14529         * lib/hmac-sha512.c: Likewise.
14530         * m4/gc-hmac-sha256.m4: Likewise.
14531         * m4/gc-hmac-sha512.m4: Likewise.
14532         * m4/gc-sha256.m4: Likewise.
14533         * m4/gc-sha512.m4: Likewise.
14534         * modules/crypto/gc-hmac-sha256: Likewise.
14535         * modules/crypto/gc-hmac-sha256-tests: Likewise.
14536         * modules/crypto/gc-hmac-sha512: Likewise.
14537         * modules/crypto/gc-hmac-sha512-tests: Likewise.
14538         * modules/crypto/hmac-sha256: Likewise.
14539         * modules/crypto/hmac-sha256-tests: Likewise.
14540         * modules/crypto/hmac-sha512: Likewise.
14541         * modules/crypto/hmac-sha512-tests: Likewise.
14542         * tests/test-gc-hmac-sha256.c: Likewise.
14543         * tests/test-gc-hmac-sha512.c: Likewise
14544         * tests/test-hmac-sha256.c: Likewise.
14545         * tests/test-hmac-sha512.c: Likewise
14547 2013-08-24  Daiki Ueno  <ueno@gnu.org>
14549         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
14550         of AC_CHECK_DECLS.
14552 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14554         selinux-at: omit unnecessary include
14555         * lib/selinux-at.c: Don't include dosname.h; not needed, since
14556         this source file doesn't use its macros, and subsidiary files that
14557         use the macros already include it.
14559 2013-08-21  Eric Blake  <eblake@redhat.com>
14561         d-ino: avoid false negative on symlink
14562         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
14563         Reported by Stephane Chazelas.
14565 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
14567         bootstrap: port to OpenBSD sed
14568         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
14569         does not interpret `-' as a file argument to mean stdin.
14571 2013-08-15  Eric Blake  <eblake@redhat.com>
14573         warnings: minor optimization
14574         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
14576         warnings: check -Wfoo rather than -Wno-foo
14577         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
14578         -Wno-, test if the compiler recognizes the positive form instead.
14580 2013-08-15  Karl Berry  <karl@gnu.org>
14582         * config/srclist-update: add option "doclicense" to placate
14583         pulling *.texi files from Emacs.  Write terse usage
14584         documentation at the top.
14586 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
14588         xvasprintf-tests: port to GCC with hardening flags
14589         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
14590         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
14591         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
14593 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14595         fpending: port to recent Cygwin change to stdio_ext.h
14596         Reported by LRN in
14597         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
14598         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
14599         just declare __fpending unless it's a macro.
14600         A duplicate decl shouldn't hurt.
14601         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
14602         call compiles and links, instead of separately checking for
14603         decl and lib function.
14604         * modules/fpending (configure-ac):
14605         Adjust to fpending.m4's renaming of shell variable.
14607 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14609         sys_time: port to OpenBSD
14610         * lib/sys_time.in.h: Simply delegate to the system's header
14611         in the BSDish cases as well.  Problem reported by Mike Miller in
14612         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
14613         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
14614         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
14615         wider than time_t.
14617 2013-08-09  Pádraig Brady  <P@draigBrady.com>
14619         bootstrap: support checksum utils having -c but not --status
14620         * build-aux/bootstrap: Only look for sha1sum if updating po files.
14621         Add sha1 to the list of supported checksum utils since it's now
14622         supported through adjustments below.
14623         (update_po_files): Remove the use of --status
14624         in a way that will suppress all error messages, but since this is
14625         only used to minimize updates, it shouldn't cause an issue.
14626         Exit early if there is a problem updating the po file checksums.
14627         (find_tool): Remove the check for --version support as this
14628         is optional as per commit 86186b17.  Don't even check for the
14629         presence of the command as if that is needed, it's supported
14630         through configuring prerequisites in bootstrap.conf.
14631         Prompt that when a tool isn't found, one can define an environment
14632         variable to add to the hardcoded search list.
14634 2013-08-05  Jim Meyering  <meyering@fb.com>
14636         regex: port to non-glibc/lock-using systems
14637         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
14638         system with GNULIB_LOCK would fail due to absence of the
14639         included "glthread/lock.h".  This would affect any package
14640         for which the "lock" module is used only by the regex module,
14641         and not explicitly used.
14642         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
14643         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
14644         Add a dependency on the "lock" module.
14646 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14648         localecharset: make locale_charset thread-safe on Mac OS X
14649         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
14650         instead of MB_CUR_MAX.
14652 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14654         gettext: update to version 0.18.3
14655         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
14656         require AC_PROG_SED to allow user to specify custom sed command when
14657         generating en@quot PO file.
14659 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
14661         bootstrap: use correct source when copying build-aux files
14662         * build-aux/bootstrap (gnulib_extra_files): This variable is
14663         relative to upstream gnulib layout, not downstream.
14665 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14667         tmpdir: fix bug in VMS port
14668         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
14669         See Steven M. Schweda in
14670         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
14672 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14674         tmpdir: port to VMS, to // != /, and to long dirs
14675         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
14676         __secure_getenv, so that we're more like the glibc version.
14677         All uses changed.
14678         (path_search): Don't put slash after directory if __VMS.
14679         Problem reported by Steven M. Schweda in
14680         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
14681         Simplify code to add slash; no need for a loop.
14682         Do not remove trailing slash from "//".
14683         Do not assume dlen <= INT_MAX.
14685 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14687         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
14688         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
14689         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
14690         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
14692         accept4, dup3, pipe2: port to Cygwin
14693         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
14694         * lib/accept4.c (accept4) [O_BINARY]:
14695         * lib/dup3.c (dup3) [O_BINARY]:
14696         * lib/pipe2.c (pipe2) [O_BINARY]:
14697         Use set_binary_mode, not setmode.
14698         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
14699         * modules/binary-io (Depends-on): Remove module indicator.
14700         These last two bits undo the previous change to pipe2 and binary-io.
14702 2013-07-09  Pádraig Brady  <P@draigBrady.com>
14704         mountlist: add support for deallocating returned list entries
14705         * lib/mountlist.c (free_mount_entry): A new exported function
14706         to deallocate a mount list entry.
14707         (read_file_system_list): Refactor to use the new deallocation function.
14708         Suggested by Anton Ovchinnikov.
14710 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14712         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
14713         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
14714         * lib/stdalign.in.h (_Alignas, _Alignof):
14715         Port to FreeBSD 9.1, and to C11 and C++11.
14716         (_Alignas): Also support ICC.
14717         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
14718         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
14720 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14722         fnmatch: don't goto over declaration
14723         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
14724         undefined behavior for goto over a declaration.
14725         Problem reported by Charlie Brown in
14726         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
14728         pipe2: decouple from binary-io a bit
14729         This is for Emacs, which needs pipe2 but not binary-io.
14730         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
14731         * modules/binary-io (Depends-on): Add module indicator.
14733 2013-07-03  Eric Blake  <eblake@redhat.com>
14735         mgetgroups: relax license to LGPLv2+
14736         * modules/getugroups (License): Change from GPLv3+.
14737         * modules/mgetgroups (License): Likewise.
14738         * modules/getgroups (License): Change from LGPLv3+.
14740         xalloc-oversized: relax license to LGPLv2+
14741         * modules/xalloc-oversized (License): Change from GPLv3+.
14743         nproc: relax license to LGPLv2+
14744         * modules/nproc (License): Change from LGPLv3+.
14746         bootstrap: honor --no-git
14747         * build-aux/bootstrap: Don't even try to use git when user is
14748         pointing to a static checkout.
14750 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14752         ignore-value: port to gcc -pedantic
14753         * lib/ignore-value.h (ignore_value):
14754         Port to gcc -pedantic, by using __extension__.
14755         Reindent as per usual gnulib style nowadays.
14756         Simplify GCC version check.
14758 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14760         extern-inline: port to gcc -std=c89
14761         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14762         Do not use __gnu_inline__ if pedantic and pre-C99.
14764 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14766         doc: document extern-inline
14767         * doc/extern-inline.texi: New file.
14768         * doc/gnulib.texi (alloca-opt): Include it.
14769         * m4/extern-inline.m4: Move some comments to documentation,
14770         and others closer to what they describe.
14772         doc: chatter less
14773         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
14774         (updated-stamp): Use it.  This causes 'make' to output just
14775         one file name rather than zillions.
14777         fflush, fseeko: port to musl cross-compiles
14778         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
14779         on some implementation that (1) is not known to be buggy,
14780         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
14781         cross-compiled to so we can't easily check for lack of
14782         conformance.  This is for cross-compiling to musl.
14783         Reported by Rich Felker in
14784         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
14785         * m4/fclose.m4 (gl_FUNC_FCLOSE):
14786         * m4/fflush.m4 (gl_FUNC_FFLUSH):
14787         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
14788         Adjust to above change.
14789         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
14790         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
14791         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
14792         known not to work, or unknown.
14794 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14796         msvc-inval: port to mingw-w64
14797         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
14798         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
14799         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
14801 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14803         getcwd-lgpl: port to Tru64
14804         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
14805         Problem reported by Steven M. Schweda in
14806         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
14808         tests: port large-fd POSIX spawn tests to OS X
14809         Problem reported by Daiki Ueno in
14810         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
14811         * tests/test-posix_spawn_file_actions_addclose.c:
14812         * tests/test-posix_spawn_file_actions_adddup2.c:
14813         * tests/test-posix_spawn_file_actions_addopen.c:
14814         Include <limits.h>, for OPEN_MAX, if available.
14815         (big_fd): New static function.
14816         (main): Use it.
14818 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
14820         tests/nap.h: use an adaptive delay to avoid ctime update issues
14821         The recent change in nap.h (5191133e) decreased the probability of lost
14822         races to about a third, however such problems could still be observed
14823         in virtual machines and openSUSE's OBS.
14824         Before, nap() detected the needed time once empirically and then used
14825         that delay (together with a small correction multiplier) in further
14826         calls.  This problem has been reported and discussed several times,
14827         including guesses about possible kernel issues:
14828         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
14829         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
14830         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
14831         http://bugs.gnu.org/12820
14832         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
14833         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
14834         Now, nap() avoids the race alltogether by verifying on a reference
14835         file whether a timestamp difference has happened.
14836         * tests/nap.h (nap_fd): Define file descriptor variable for the
14837         witness file.
14838         (nap_works): Change return value to bool.  Change passing
14839         the old file's status by value instead of by reference as this function
14840         does no longer update that timestamp; rename the function argument from
14841         st to old_st.  Remove the local variables cdiff and mdiff because that
14842         function now returns true/false instead of the precise delay.
14843         (guess_delay): Remove function.
14844         (clear_tmp_file): Add new function to close and unlink the witness file.
14845         (nap): Instead of re-using the delay which has been calculated during
14846         the first call, avoid the race by actually verifying that a timestamp
14847         difference can be observed on the current file system.  Use an adaptive
14848         approach for the delay to minimize execution time.  Assert that the
14849         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
14850         = 2^31 - 1 = 2.1s.
14851         Use atexit to call clear_tmp_file when the process terminates.
14853 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14855         sig2str: port to C++
14856         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
14857         Reported by Daniel J Sebald in
14858         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
14860 2013-05-30  Eric Blake  <eblake@redhat.com>
14862         docs: mention cygwin shortcoming in <sys/un.h>
14863         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
14865         vasnprintf: silence mingw compiler warning
14866         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
14868 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14870         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
14871         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
14872         This fixes a porting bug I recently reintroduced in regex, and
14873         some other instances that I discovered while testing the fix.
14874         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
14875         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
14876         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
14877         with an empty argument if this is a pedantic pre-C99 GCC.
14878         * lib/verify.h: Do not use _Static_assert if this is a pedantic
14879         pre-C11 GCC.
14881         regex: adapt to locking regime instead of depending on pthread
14882         Instead of depending on pthread, adapt to whatever thread
14883         modules are in use.  Problem reported by Ludovic Courtès in
14884         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
14885         and by Mats Erik Andersson in
14886         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
14887         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
14888         Support either the 'lock' module, or the 'pthread' module, or
14889         no module.
14890         (lock_lock, lock_unlock): New macros.
14891         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
14892         * modules/lock, modules/pthread (configure.ac): Add module indicator.
14893         * modules/regex (Depends-on): Remove pthread.
14895 2013-05-22  Eric Blake  <eblake@redhat.com>
14897         getgroups: document portability issues
14898         * doc/glibc-functions/initgroups.texi (initgroups): Mention
14899         multithread safety.
14900         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
14901         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
14902         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
14903         getugroups.
14904         * doc/posix-functions/getgroups.texi (getgroups): Mention
14905         multithread safety and mgetgroups.
14907 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
14909         test-lchown, test-chown: also skip test if chown fails with EPERM
14910         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
14911         skip this test, to handle FAT file systems.
14912         * tests/test-chown.h (test_chown): Likewise.
14914 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14916         regex: fix dfa race in multithreaded uses
14917         Problem reported by Ludovic Courtès in
14918         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
14919         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
14920         New macros.  All uses of __libc_lock_define, __libc_lock_init
14921         changed to use the first two of these.
14922         (__libc_lock_lock, __libc_lock_unlock): New macros, for
14923         non-glibc platforms.
14924         (struct re_dfa_t): Define the lock unconditionally.
14925         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
14926         '#ifdef _LIBC"s.
14927         * modules/regex (Depends-on): Add pthread, if we use the
14928         included regex.
14930         * lib/regcomp.c: Do actions that are not needed for glibc,
14931         but may be needed elsewhere.
14932         (regfree, re_compile_internal): Destroy the lock.
14933         (re_compile_internal): Check for lock-initialization failure.
14935         malloca: port to compilers that reject size-zero arrays
14936         This fixes a bug introduced in my previous patch.
14937         * lib/malloca.c (struct preliminary_header): Use an int
14938         rather than a character array of size int; that's simpler.
14939         (struct header): Remove, replacing with ...
14940         (union header): New type.  This avoids the need for declaring a
14941         character array of size zero, which is not allowed on some platforms.
14942         All uses changed.
14944 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
14946         parse-datetime, tests: don't use "string" + int
14947         Recent versions of 'clang' complain about C source code that
14948         uses expressions of the form '"string literal" + integer',
14949         I guess on the theory that it's confusing for readers who are
14950         used to C++.  On those grounds I suppose it's OK to make this
14951         minor style change.
14952         * lib/parse-datetime.y (parse_datetime):
14953         * tests/test-fchdir.c (main):
14954         * tests/test-snprintf-posix.h (test_function):
14955         * tests/test-snprintf.c (main):
14956         * tests/test-vasnprintf-posix.c (test_function):
14957         * tests/test-vasnprintf.c (test_function):
14958         * tests/test-vsnprintf.c (main):
14959         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
14960         Rewrite '"str" + E' to '&"str"[E]'.
14962 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
14964         argmatch: port to C++
14965         * lib/argmatch.h [__cplusplus]: Add extern "C".
14967         argp: typo fix
14968         * lib/argp-help.c: Typo in comment.
14970 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14972         manywarnings: update for GCC 4.8.0
14973         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14974         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
14975         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
14976         -Wmissing-noreturn, as they are duplicates of other warnings.
14977         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
14978         was documented to be flaky in earlier versions of GCC.
14980         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
14981         * tests/test-spawn.c (main):
14982         * tests/test-sys_socket.c (main):
14983         * tests/test-sys_wait.c (main):
14984         Don't have a switch value that isn't covered by a case.
14986         getaddrinfo-tests: port --enable-gcc-warnings to clang
14987         * tests/test-getaddrinfo.c (simple):
14988         Avoid casts from looser to stricter-aligned pointers.
14990         thread: port --enable-gcc-warnings to clang
14991         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
14992         Include <signal.h>, to pacify a warning about pthread_sigmask.
14994         stdio: use __REDIRECT for fwrite, fwrite_unlocked
14995         * lib/stdio.in.h (fwrite):
14996         When working around bug 11959, use __REDIRECT rather than '#define
14997         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
14998         fix the -Wunused-value issue with clang, and it works with GCC too.
14999         Problem with targeting reported by Eric Blake in
15000         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
15001         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
15002         debugging the fwrite issue.
15004         stdio: port --enable-gcc-warnings to clang
15005         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
15006         since the GCC workaround for fwrite does not pacify clang.
15008         sig2str: port --enable-gcc-warnings to clang
15009         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
15011         obstack: port --enable-gcc-warnings to clang
15012         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
15013         Avoid casts from looser to stricter-aligned pointers.
15015         memchr2: port --enable-gcc-warnings to clang
15016         * lib/memchr2.c (memchr2):
15017         Avoid casts from looser to stricter-aligned pointers.
15019         mbsstr: port --enable-gcc-warnings to clang
15020         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
15021         Avoid casts from looser to stricter-aligned pointers.
15023         malloca: port --enable-gcc-warnings to clang
15024         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
15025         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
15027         inttostr: port --enable-gcc-warnings to clang
15028         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
15030         warnings: port to clang
15031         Problem reported by Daniel P. Berrange via Eric Blake in
15032         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
15033         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
15034         (gl_WARN_ADD): Use it.
15036 2013-05-11  Jim Meyering  <meyering@fb.com>
15038         quotearg: do not read beyond end of buffer
15039         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
15040         end of an ARG for which no length was specified.  With an N-byte
15041         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
15042         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
15043         via coreutils' misc/sort-debug-keys.sh test and detected by running
15044         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
15045         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
15046         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
15047         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
15048         characters correctly."
15050 2013-05-11  Daiki Ueno  <ueno@gnu.org>
15052         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
15053         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
15054         compilation target is Mac OS X 10.6.
15055         Problem reported by parafin and Andoni Morales in
15056         <http://savannah.gnu.org/bugs/?37844> and
15057         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
15059 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15061         mkdir-p: remove assumptions about umask and mode
15062         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
15063         umask is 0, or that MODE is a subset of MODE_BITS.
15065 2013-05-10  Eric Blake  <eblake@redhat.com>
15067         maint.mk: catch more abuse of HAVE_DECL in syntax-check
15068         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
15070 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
15072         deps: require Automake >= 1.9.6 in generated Makefile fragments
15074         That is the same minimal version required in the DEPENDENCIES file.
15075         Moreover, the old code generated a requirement of Automake >= 1.5,
15076         and that is an insanely outdated version.
15078         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
15079         * tests/havelib/rpathlx/Makefile.am: Likewise.
15080         * tests/havelib/rpathly/Makefile.am: Likewise.
15081         * tests/havelib/rpathlyx/Makefile.am: Likewise.
15082         * tests/havelib/rpathlz/Makefile.am: Likewise.
15083         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
15084         * tests/havelib/rpathx/Makefile.am: Likewise.
15085         * tests/havelib/rpathy/Makefile.am: Likewise.
15086         * tests/havelib/rpathz/Makefile.am: Likewise.
15088 2013-05-08  Eric Blake  <eblake@redhat.com>
15090         bootstrap: AC_INIT may have more than four parameters
15091         * build-aux/bootstrap (extract_package_name): Correctly extract
15092         non-empty tarname field.  Avoid range in regex.
15093         Based on a report by Sami Kerola <kerolasa@iki.fi>.
15095 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15097         qacl: port to MS-Windows port of GNU Emacs
15098         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
15099         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
15100         port of GNU Emacs.  Problem reported by Eli Zaretskii in
15101         <http://bugs.gnu.org/14295#14>.
15103 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
15105         acl: include quote.h
15106         * lib/copy-acl.c: Include quote.h.
15107         * lib/set-acl.c: Likewise.
15109 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
15111         fchownat, renameat, unlinkat: update statat dependencies
15112         These modules use statat and lstatat, not fstatat; so depend on
15113         the statat module, which was split out recently from fstatat.
15114         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
15115         * modules/renameat: Likewise.  Also delete fstat.
15116         URL: http://bugs.gentoo.org/468790
15118 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
15120         Assume gnulib is checked out from Git, not CVS
15122         In fact, access to the gnulib repository through CVS has been
15123         disabled, or more precisely, got broken and was never restored; see:
15124         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
15126         Note that support for CVS is not removed completely and unthinkingly
15127         by this change: only support for CVS checkouts of gnulib itself is
15128         removed.  For example, the 'bootstrap' script still cater to .cvsingore
15129         files and CVS directories, for the benefit of those poor gnulib clients
15130         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
15132         * gnulib-tool: Simplify accordingly.
15133         * posix-modules: Likewise.
15134         * MODULES.html.sh: Likewise.
15135         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
15136         repository.
15137         * doc/gnulib-intro.texi: Likewise.
15138         * doc/gnulib-readme.texi: Likewise.
15139         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
15140         sample '.gitignore' file rather than a sample '.cvsignore'.
15141         * NEWS: Update.
15142         * m4/extensions.m4: While at it, remove a comment mistakenly referring
15143         to "CVS Autoconf" rather than "git Autoconf".
15145 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15147         utimensat-tests, etc.: try to fix some races
15148         Problem reported by Bernhard Voelker in
15149         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
15150         I don't know whether this patch fixes that race condition, but it
15151         fixes *some* race conditions, so it should be a win.
15152         * modules/chown-tests (Depends-on):
15153         * modules/fchownat-tests (Depends-on):
15154         * modules/fdutimensat-tests (Depends-on):
15155         * modules/futimens-tests (Depends-on):
15156         * modules/lchown-tests (Depends-on):
15157         * modules/stat-time-tests (Depends-on):
15158         * modules/utimens-tests (Depends-on):
15159         * modules/utimensat-tests (Depends-on):
15160         Depend on nanosleep, not usleep.
15161         * modules/chown-tests (test_chown_LDADD):
15162         * modules/lchown-tests (test_lchown_LDADD):
15163         * modules/stat-time-tests (test_stat_time_LDADD):
15164         New macro.
15165         * modules/fchownat-tests (test_fchownat_LDADD):
15166         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
15167         * modules/futimens-tests (test_futimens_LDADD):
15168         * modules/utimens-tests (test_utimens_LDADD):
15169         * modules/utimensat-tests (test_utimensat_LDADD):
15170         Add $(LIB_NANOSLEEP).
15171         * modules/stat-time-tests (Files): Add tests/nap.h.
15172         * tests/nap.h: Include <limits.h>, for INT_MAX.
15173         (lt_mtime): Remove.
15174         (diff_timespec): New function.
15175         (get_stat): Rename from get_mtime.  All callers changed.
15176         (nap_works): Determine the needed delay by inspecting the
15177         file system's timestamp jumps; this should be more reliable.
15178         Look at both mtime and ctime, and take the maximum of the two jumps.
15179         (nap_works, guess_delay):
15180         Return a nanosecond count, not a microsecond count.
15181         All callers changed.
15182         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
15183         failure.
15184         (nap): Multiply the guess by 1.125, to accommodate the case where
15185         the file system's clock is a bit slower than nanosleep's clock.
15186         * tests/test-stat-time.c (BASE): New macro.
15187         Include nap.h.
15188         (nap): Remove; nap.h now defines this.  This removes a duplicate
15189         implementation of 'nap'.
15191         utimens, utimensat: work around Solaris UTIME_OMIT bug
15192         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
15193         Linux kernel 2.6.32 does.  Work around it in the same way.
15194         * doc/posix-functions/futimens.texi (futimens):
15195         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
15196         * lib/utimens.c (fdutimens, lutimens):
15197         * lib/utimensat.c (rpl_utimensat): Work around the bug.
15199         gettext: now it's your responsibility to add -I$(top_builddir)/intl
15200         Formerly, it was your responsibility to do this for all Makefile.ams
15201         other than Gnulib's.  Now it's your responsibility to do it for
15202         Gnulib's Makefile.am, too.
15203         * NEWS: Document this.
15204         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
15206         acl: include errno.h to get errno
15207         Reported by Daiki Ueno in
15208         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
15209         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
15211 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15213         tests: don't assume getdtablesize () <= 10000000
15214         * modules/cloexec-tests:
15215         * modules/dup2-tests:
15216         * modules/dup3-tests:
15217         * modules/nonblocking-tests:
15218         * modules/posix_spawn_file_actions_addclose-tests:
15219         * modules/posix_spawn_file_actions_adddup2-tests:
15220         * modules/posix_spawn_file_actions_addopen-tests:
15221         * modules/unistd-safer-tests:
15222         Depend on the getdtablesize module.
15223         * tests/test-cloexec.c:
15224         * tests/test-dup-safer.c:
15225         * tests/test-dup2.c:
15226         * tests/test-dup3.c:
15227         * tests/test-fcntl.c:
15228         * tests/test-nonblocking.c:
15229         * tests/test-posix_spawn_file_actions_addclose.c:
15230         * tests/test-posix_spawn_file_actions_adddup2.c:
15231         * tests/test-posix_spawn_file_actions_addopen.c:
15232         Don't assume getdtablesize () <= 10000000.
15234 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
15236         extern-inline: work around bug in Sun c99
15237         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15238         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
15240 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15242         qacl: new module, broken out from the acl module
15243         This is for GNU Emacs, which wants the acl functions but does
15244         not want 'error' invoked when they fail.
15245         * lib/acl-internal.h: Do not include error.h, quote.h.
15246         (ENOSYS, ENOTSUP): Remove; no longer needed.
15247         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
15248         * lib/acl.h: Include <stdbool.h>.
15249         (acl_errno_valid): New function.
15250         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
15251         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
15252         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
15253         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
15254         (ACL_INTERNAL_INLINE): Remove; no longer needed.
15255         * lib/file-has-acl.c (file_has_acl):
15256         * lib/qcopy-acl.c (qcopy_acl):
15257         * lib/qset-acl.c (qset_acl):
15258         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
15259         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
15260         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
15261         lib/file-has-acl.c, m4/acl.m4 to qacl module.
15262         Add lib/set-acl.c.
15263         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
15264         Add qacl.
15265         (configure.ac): Move gl_FUNC_ACL to qacl module.
15266         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
15267         Rename set-mode-acl.c to set-acl.c.
15268         * lib/acl-errno-valid.c: New file.
15269         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
15270         copy_acl function remains in copy-acl.c.
15271         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
15272         (_): Remove; not needed.
15273         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
15274         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
15275         * modules/qacl: New file, moved from the old modules/acl.
15276         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
15277         Remove set-mode-acl.c, copy-acl.c.
15278         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
15280         alignof, intprops, malloca: port better to IBM's C compiler
15281         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
15282         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
15283         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
15285 2013-04-25  Daiki Ueno  <ueno@gnu.org>
15287         wctype-h: fix gettext link error on mingw
15288         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
15289         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
15290         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
15291         rpl_towupper and rpl_towupper.
15293 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
15295         regex-tests, regex: allow glibc re_search behavior
15296         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
15297         re_search input data to make the multi-character collating element
15298         in it clearly visible, and treat re_search return code 0 as valid.
15299         * m4/regex.m4 (gl_REGEX): Likewise.
15301 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15303         stdalign: doc fix
15304         * doc/posix-headers/stdalign.texi (stdalign.h):
15305         Gnulib doesn't support '_Alignof expr'.
15307 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15309         stdalign: port to stricter ISO C11
15310         ISO C11 says that _Alignof's operand must be a parenthesized type.
15311         Problem reported by Eli Zaretskii in
15312         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
15313         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
15314         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
15316 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
15318         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
15319         Problem reported by Marco Atzeri in
15320         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
15321         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
15322         Simply delegate to the system <sys/select.h> in this case too.
15323         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
15324         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
15325         be needed on Solaris either.
15326         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
15327         Simply delegate to the system <sys/time.h> in this case.
15329 2013-03-19  Karl Berry  <karl@gnu.org>
15331         * build-aux/gnupload: check for erroneous (with gnupload) use of
15332         ftp-upload.gnu.org, tweak help.
15334 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15336         copy-file, rpmatch: fix problems found by cppcheck
15337         Reported by Arno Onken in
15338         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
15339         * lib/rpmatch.c (try): Fix memory leak.
15340         * lib/copy-file.c: Include "ignore-value.h".
15341         (qcopy_file_preserving): Ignore chown value.
15342         * modules/copy-file (Depends-on): Add ignore-value.
15344 2013-01-27  Jim Meyering  <jim@meyering.net>
15346         prefix-gnulib-mk: give better diagnostics
15347         * build-aux/prefix-gnulib-mk: Don't just "die".
15348         Give better diagnostics upon failure.
15350 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
15352         putenv: port to Solaris 10
15353         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
15354         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
15355         is not what is wanted here.
15356         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
15357         declaration, not for its existence.
15359 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
15361         mktime: fix configure typo
15362         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
15364 2013-03-12  Eric Blake  <eblake@redhat.com>
15366         regex-tests: skip UTF-8 test on mingw
15367         * modules/regex-tests (Depends-on): Add localcharset.
15368         * tests/test-regex.c (main): Use it to skip test on mingw.
15370 2013-03-11  Eric Blake  <eblake@redhat.com>
15372         tests: make it easier to bypass alarm time in debugger
15373         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
15374         * tests/test-memmem.c (main): Likewise.
15375         * tests/test-passfd.c (main): Likewise.
15376         * tests/test-ptsname.c (main): Likewise.
15377         * tests/test-ptsname_r.c (main): Likewise.
15378         * tests/test-strcasestr.c (main): Likewise.
15379         * tests/test-strstr.c (main): Likewise.
15381         regex: port to mingw's recent addition of undeclared alarm
15382         * doc/posix-functions/alarm.texi (alarm): Document that alarm
15383         exists but still doesn't work in newer mingw.
15384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
15385         not existence.  Ensure SIGALRM is not trapped.
15386         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
15387         * m4/regex.m4 (gl_REGEX): Likewise.
15388         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
15389         * tests/test-regex.c (main): Use correct probe for alarm.
15391         putenv: avoid compilation warning on mingw
15392         * lib/putenv.c (_unsetenv): Protect variable declaration.
15393         (putenv): Fix indentation.
15395 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
15397         unistd: don't prevent Tru64 Unix from using gnulib strtod.
15398         * lib/unistd.in.h: be careful not to include un-needed system
15399         stdlib.h from here, because that prevents gnulib stdlib.h from
15400         defining rpl_strtod correctly.
15402 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
15404         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
15405         changesets, but for the 'precision 0' test.
15406         * tests/test-vasprintf-posix.c (test_function): Don't insist on
15407         round-to-even, since POSIX says rounding is implementation-defined
15408         and OS X 10.8.2 rounds 1.51 to 1 here.
15410         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
15411         changeset.
15412         * tests/test-vasprintf-posix.c (test_function): Don't insist on
15413         round-to-even, since POSIX says rounding is implementation-defined
15414         and OS X 10.8.2 rounds 1.5 to 1 here.
15416 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15418         vasnprintf-posix-tests: allow rounding 1.5 to 1
15419         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
15420         round-to-even, since POSIX says rounding is implementation-defined
15421         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
15422         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
15424         bootstrap: port to FreeBSD
15425         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
15426         that treat '--' differently.  Reported by Mats Erik Andersson in
15427         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
15429 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
15431         regex: rename remaining __attribute calls to __attribute__.
15432         2012-02-25 changed definition of __attribute, but left some uses
15433         unchanged, preventing compilation of regex module on most non-gcc
15434         environments.
15435         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
15436         (lookup_collation_sequence_value, build_range_exp)
15437         (build_collating_symbol): Set attributes with newly renamed
15438         __attribute__ decorator.
15439         * lib/regex_internal.c (re_string_peek_byte_case)
15440         (re_node_set_compare, re_node_set_contains): Likewise.
15441         * lib/regexec.c (acquire_init_state_context): Likewise.
15443 2013-03-06  Bruno Haible  <bruno@clisp.org>
15445         execute: Revert last change, but use a different condition.
15446         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
15447         on Windows.
15449 2013-03-05  Eric Blake  <eblake@redhat.com>
15451         execute: drop dead code
15452         * lib/execute.c (nonintr_close, nonintr_open): Delete.
15454 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
15456         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
15457         * m4/non-recursive-gnulib-prefix-hack.m4
15458         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
15459         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
15460         <http://bugs.gnu.org/10305#237>.
15462 2013-03-04  Eric Blake  <eblake@redhat.com>
15464         test-getsockopt: avoid compiler warning
15465         * tests/test-getsockopt.c (includes): Ensure close is declared.
15467 2013-03-02  Bruno Haible  <bruno@clisp.org>
15469         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
15470         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
15472 2013-03-02  Bruno Haible  <bruno@clisp.org>
15474         gettext: Update to version 0.18.2.
15475         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
15476         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
15477                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
15479 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15481         regex: merge patches from libc
15483         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15484         * lib/regex_internal.h (__attribute__): Rename from __attribute.
15485         All uses changed.
15486         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
15487         (re_string_wchar_at, re_string_elem_size_at):
15488         Mark function as possibly unused.
15490         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
15491         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
15492         elements compare against the byte sequence of it, not its name.
15494 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15496         putenv: port better to native Windows
15497         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
15498         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
15499         (_unsetenv): Use _putenv if available.
15500         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
15501         a bit less likely to cause damage.
15502         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
15503         Fix the wrong value with SetEnvironmentVariable.
15504         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
15505         code better.
15507 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15509         regex: ignore old-style-definition warnings
15510         * lib/regex.c: Add pragma to ignore these warnings.
15511         Problem reported for GNU tar by Pavel Raiskup.
15513 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
15515         getcwd: support coreutils better
15516         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
15517         but this might not be correct in coreutils, which disables
15518         the raw decl checks.  Problem reported by Nagendra in
15519         <http://bugs.gnu.org/10305#192>.
15520         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
15521         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15522         Test the getcwd function, not any macro, since getcwd.c wants the
15523         function.
15524         * m4/getcwd.m4 (gl_FUNC_GETCWD):
15525         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
15526         compile, as might happen if there's a macro but no function.
15528         strtod: support coreutils better
15529         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
15530         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
15531         disables the raw decl checks.  This assumes there is an underlying
15532         strtod, but that's a safe assumption these days.
15533         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
15535         mountlist: port to HP NonStop
15536         Reported by Joachim Schmitz in
15537         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
15538         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
15539         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
15541 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15543         extern-inline: avoid compilation error with HP-UX cc
15544         Reported by Richard Lloyd in
15545         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
15546         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15547         Suppress extern inline with HP-UX cc.  This should be safe,
15548         though it may hurt performance.  Perhaps someone with some HP-UX
15549         experience can come up with a higher-performance fix.
15551 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15553         putenv: fix heap corruption with mixed putenv/_putenv
15554         Problem reported by Michael Goffioul in
15555         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
15556         * lib/putenv.c (putenv) [HAVE__PUTENV]:
15557         Rely on _putenv to allocate the new environment.
15558         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
15559         * modules/putenv (configure.ac): Use it.
15561 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
15563         unsetenv etc.: port to Solaris 11 + GNU Emacs
15564         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
15565         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
15566         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
15567         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
15568         idea but is too painful to fix right now), and without this gnulib
15569         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
15570         compiling unsetenv.c on Solaris 11.  Fix the problem for
15571         unsetenv.c, and fix other similar occurrences.
15573 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15575         secure_getenv: fix C++ declaration typo
15576         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
15577         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
15578         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
15580 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15582         careadlinkat: stop exporting careadlinkatcwd
15583         Only Emacs used it directly, and Emacs no longer needs it.
15584         * NEWS: Document this simplification.
15585         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
15586         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
15587         for readlink.
15588         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
15589         Don't include stdlib.h; no longer needed.
15590         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
15591         * lib/relocwrapper.c: Adjust comment to match new dependencies.
15592         * modules/areadlink (Depends-on): Add readlink.
15593         (Maintainer): Add self.
15594         * modules/careadlinkat (Depends-on): Remove readlink.
15596         extensions: port better to HP-UX
15597         This is merged from git Autoconf.
15598         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15599         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
15600         so that it's compatible with the value used when compiling.
15602         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
15603         Problem reported by Mats Erik Andersson in
15604         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
15605         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15606         openpty function exists, not merely when we intend to replace it.
15607         This corrects the 2013-01-31 patch, which mistakenly defined
15608         HAVE_OPENPTY even on hosts that lacked it.
15610 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15612         secure_getenv: fix include typo
15613         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
15615         secure_getenv: port better to FreeBSD and Solaris
15616         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
15617         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
15618         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
15619         This works better on BSDish platforms.
15620         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
15621         Test for issetugid if __secure_getenv is missing.
15623 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15625         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
15626         Some of these changes are merged in from git Autoconf.
15627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15628         When deciding whether to define _XOPEN_SOURCE, inspect the
15629         preprocessor macro __hpux instead of the more-heavyweight
15630         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
15631         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
15632         as the key for __EXTENSIONS__.
15634         unistd: avoid namespace pollution on non-glibc systems
15635         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
15636         This avoids namespace pollution on non-glibc systems, by causing
15637         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
15638         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
15639         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
15641 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15643         tmpdir: use secure_getenv
15644         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
15645         Define to secure_getenv, not getenv.
15646         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
15647         as that's now secure_getenv's job.
15648         * modules/tmpdir (Depends-on): Add secure_getenv.
15650         tempname: use secure_getenv
15651         * lib/tempname.c (__secure_getenv) [!_LIBC]:
15652         Define to secure_getenv, not getenv.
15653         * modules/tempname (Depends-on):
15654         Add secure_getenv.
15656         secure_getenv: new module
15657         * MODULES.html.sh (Extra functions based on ANSI C 89):
15658         Add secure_getenv.
15659         * doc/glibc-functions/secure_getenv.texi: New file.
15660         * doc/gnulib.texi: Include it.
15661         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
15662         New files.
15663         * lib/stdlib.in.h (secure_getenv): New decl.
15664         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
15665         * modules/stdlib (stdlib.h):
15666         Add secure_getenv checks.
15668 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15670         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
15671         Reported for OS X 10.8.2 by Assaf Gordon in
15672         <http://bugs.gnu.org/13516>.
15673         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
15674         !HAVE_OPENAT && !HAVE_FDOPENDIR.
15675         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
15676         so that they can be kept in sync more easily.  Avoid PATH_MAX
15677         test on the Hurd.  Sync from test-getcwd.c for errno tests after
15678         mkdir or chdir failure.
15679         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
15680         lib/getcwd.c.
15681         (test_abort_bug): Do not test for the deep directory bug unless we
15682         have openat support.  Avoid PATH_MAX test on the Hurd.
15684         regex-tests, regex: fix bug: memset undeclared
15685         * tests/test-regex.c: Don't include regex.h twice.  Include
15686         string.h, to declare memset.  Christensen's report also mentioned
15687         this issue.
15688         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
15689         test-regex.c, to avoid future problems like this.  Remove
15690         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
15691         twice.
15693         regex-tests: fix link errors on older Solaris
15694         These need to link with @LIBINTL@ to get libintl_gettext.
15695         Problem reported by Tom G. Christensen in
15696         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
15697         * modules/regex-tests (test_regex_LDADD): New macro.
15699 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15701         regex-tests: new module
15702         * modules/regex-tests, tests/test-regex.c: New files.
15704         regex: fix off-by-one error in configure test
15705         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
15707 2013-01-31  Eric Blake  <eblake@redhat.com>
15709         regex: avoid infinite configure test
15710         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
15712 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
15714         openpty: fix bug where HAVE_OPENPTY wasn't defined
15715         See the thread starting at:
15716         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
15717         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15718         openpty function exists, not merely when we intend to replace it.
15720 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15722         sys_time: port to Solaris 2.6
15723         There is a circularity problem on Solaris 2.6, where <time.h> includes
15724         <sys/time.h> for struct timespec.  The include nesting is gnulib
15725         <time.h>, system <time.h>, gnulib <sys/time.h>, system
15726         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
15727         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
15728         <sys/siginfo.h>; the last, innermost file needs struct
15729         timestruc_t, which is defined in <sys/time.h>, which has not been
15730         fully parsed.  Problem reported by Tom G. Christensen in
15731         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
15732         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
15733         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
15734         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
15735         uses split double-inclusion guards.
15737 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15739         regex: test for buffer overrun
15740         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
15741         for the just-fixed regex bug.
15743 2013-01-29  Andreas Schwab  <schwab@suse.de>
15745         regex: fix buffer overrun in regexp matcher [BZ #15078]
15746         * lib/regexec.c (extend_buffers): Add parameter min_len.
15747         (check_matching): Pass minimum needed length.
15748         (clean_state_log_if_needed): Likewise.
15749         (get_subexp): Likewise.
15751 2013-01-28  Pádraig Brady  <P@draigBrady.com>
15753         mountlist: don't consider "devtmpfs" as dummy
15754         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
15755         as there is storage associcated with it.
15757 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
15759         futimens-tests, utimens-tests: Depend on gettext.
15760         This works around a problem introduced in my 2013-01-12 patch,
15761         which added @LIBINTL@ to these modules.
15762         * modules/futimens-tests (Depends-on):
15763         * modules/utimens-tests (Depends-on): Add gettext.
15765 2013-01-26  Eric Blake  <eblake@redhat.com>
15767         test-getpeername: fix typo
15768         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
15770 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
15772         bootstrap: remove the need for a sorted .gitignore file
15773         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
15774         rename to insert_if_absent(), so that we don't need or generate
15775         a sorted .gitignore file.  We do require a .gitignore with no
15776         existing duplicate entries and enforce that.
15777         (sort_patterns): Remove this function as we now use the simpler
15778         technigue of inserting blacklist entries at the top of the file,
15779         assuming gnulib won't be inserting !whitelist entries.
15781 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15783         readlinkat: don't depend on gl_FUNC_OPENAT
15784         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
15785         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
15786         renameat.m4, symlinkat.m4; but one thing at a time.
15788         statat: new module, split out from fstatat
15789         GNU Emacs needs the POSIX-specified fstatat, but not the
15790         gnulib-specified statat and lstat.  Split the latter two into a
15791         new module 'statat'.
15792         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
15793         * lib/openat.h, lib/statat.c (STATAT_INLINE):
15794         Rename from FSTATAT_INLINE. All uses changed.
15795         * modules/fstatat (Files): Remove lib/statat.c.
15796         (gl_MODULE_INDICATOR([fstatat])): Remove.
15797         (lib_SOURCES): Remove.
15798         (Maintainer): Add self.
15799         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
15800         * tests/test-fstatat.c (BASE): Don't define if already defined.
15801         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
15803 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15805         tests: don't assume fd 99 is closed
15806         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
15807         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
15808         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
15809         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
15810         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
15811         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
15812         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
15813         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
15814         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
15815         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
15816         * tests/test-fwrite.c, tests/test-getpeername.c:
15817         * tests/test-getsockname.c, tests/test-getsockopt.c:
15818         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
15819         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
15820         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
15821         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
15822         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
15823         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
15824         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
15825         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
15826         * tests/test-unlinkat.c, tests/test-unlockpt.c:
15827         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
15828         Close file descriptor 99, instead of assuming it's already closed.
15830 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15832         stpncpy: port to OS X 10.8
15833         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
15834         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
15836 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15838         unistd: port to recent mingw
15839         * lib/unistd.in.h: Remove special invocation convention for mingw,
15840         which breaks for the latest mingw version.  See John W. Eaton in
15841         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
15843         largefile: port better to Mac OS X 10.5
15844         This patch is backported from Autoconf git.
15845         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
15846         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
15847         with ino_t size being different for configuration time versus
15848         build/run time.  Problem reported by PHO in
15849         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
15851 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15853         doc: clarify -Werror
15854         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
15855         clarify that it's intended for developers, not for ordinary builds,
15856         and mention --enable-gcc-warnings as one possible use.
15858 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
15860         stdint: fix build with Android's Bionic fox x86
15861         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
15862         was already included as _SSIZE_T_DEFINED_ might also be defined
15863         in include/machine/_types.h, which is included by stdio.h
15865 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
15867         net_if-tests: port to Solaris 7 + GCC 3.4.6
15868         Problem reported by Tom G. Christensen in
15869         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
15870         * tests/test-net_if.c (ni): Move to next the code that uses it,
15871         so that it's declared only if needed.
15873 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
15875         net_if-tests: port to older Solaris
15876         Problem reported by Tom G. Christensen in
15877         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15878         * modules/net_if-tests (NET_IF_LIB): New substitution.
15879         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
15880         (HAVE_IF_NAMEINDEX): New C macro.
15881         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
15883         system-quote-tests: port to older Solaris
15884         Problem reported by Tom G. Christensen in
15885         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15886         * tests/test-system-quote-child.c (fopen, fread): Undef.
15888         c-xvasprintf etc.: fix link errors on older Solaris
15889         These need to link with @LIBINTL@ to get libintl_gettext.
15890         Problem reported by Tom G. Christensen in
15891         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15892         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
15893         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
15894         * modules/futimens-tests (test_futimens_LDADD):
15895         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
15897 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15899         locale: port to Solaris 2.6 and 7 + GNU gettext
15900         * lib/locale.in.h: Just include_next <locale.h> when
15901         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
15902         when combining the localename module with GNU gettext 0.18.2.
15903         Problem reported by Tom G. Christensen in
15904         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
15906 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15908         stdlib: port to Solaris 2.6
15909         Also, the code worked on Solaris 7 through 9 only by accident.
15910         Problem reported by Tom G. Christensen in
15911         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
15912         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
15913         simply include the system stdlib.h.
15914         * lib/getopt.in.h (__need_system_stdlib_h):
15915         * lib/pthread.in.h (__need_system_stdlib_h):
15916         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
15917         Define when including <stdlib.h>, to avoid problems at least for
15918         the pthread case on Solaris 2.6 and 7.  These .h files can get by
15919         with the system stdlib.h.
15921 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15923         doc: update main copyright year
15924         * doc/gnulib.texi: Update copyright date.
15926         doc: improve ISO 8601 discussion
15927         * doc/parse-datetime.texi (Combined date and time of day items):
15928         Specify more carefully what formats are supported and what is
15929         done with excess precision.
15931 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15933         doc: avoid small caps
15934         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
15935         they're more trouble than they're worth.  Suggested by Karl Berry
15936         in <http://bugs.gnu.org/13360>.
15938         regex: conform to strict C
15939         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
15940         From Aharon Robbins.
15942         gnulib-tool: fix incompatibility with autopoint 0.18.2
15943         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
15944         Problem reported by Tom G. Christensen in
15945         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
15947 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15949         fprintftime: bring back and reword fwrite comment
15950         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
15952         stdio: remove now-unnecessary stdio.c
15953         Since stdio.in.h no longer uses inline functions, we no longer
15954         need to compile the extern versions.
15955         * lib/stdio.c: Remove.
15956         * modules/stdio (Files): Remove lib/stdio.c.
15957         (lib_SOURCES): Remove.
15959         unicodeio: depend on stdio, not ignore-value
15960         * lib/unicodeio.c: Do not include ignore-value.h.
15961         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
15962         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
15964         fprintftime: depend on stdio, not ignore-value
15965         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
15966         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
15967         since the stdio module arranges to silence that warning now.
15968         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
15970 2012-10-04  Simon Josefsson  <simon@josefsson.org>
15972         stdint-tests: Fix expanded-before-required-warning.
15973         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
15975 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15977         fwrite: silence __wur only for older glibc versions
15978         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
15979         This will help us remove this workaround some time in the far future.
15981 2013-01-03  Eric Blake  <eblake@redhat.com>
15983         fwrite: silence __wur without using inline
15984         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
15985         just gcc, and in a way that avoids inline issues.
15986         * modules/stdio (Depends-on): Drop extern-inline.
15988 2013-01-03  Jim Meyering  <jim@meyering.net>
15990         update-copyright: avoid copyright notice date corruption
15991         Given a sequence of copyright year numbers in which the final
15992         one was a two-digit number that happened to be a substring of
15993         a preceding four-digit year number, we would mistakenly update
15994         the substring (from two- to four-digit) rather than the two-digit
15995         number at the end, which, combined with the addition of the current
15996         4-digit year number would yield two 5-digit year numbers, e.g.,
15997         here, it would convert the first "99" to "1999, 2013" rather than
15998         the final one:
15999           1991, 99
16000           11999, 20131, 1999
16001         * build-aux/update-copyright: Tighten a regexp.
16002         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
16003         Reported by Joseph Myers in
16004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
16006 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16008         regex: omit needless signed-pointer casts
16009         * lib/regcomp.c (build_charclass, build_charclass_op):
16010         Use char *, not unsigned char *, for class name and extra.
16011         The char values are always nonnegative so there's no need to
16012         insist on unsigned char * here, and using char * removes the need
16013         for casts.  Reported by Aharon Robbins in
16014         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16016         regex: support Gawk, which never uses alloca
16017         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
16018         Do not include in this case.  Gawk doesn't supply a substitute
16019         alloca.h and doesn't need one.
16021         regex: port __libc_lock_define usage to C89
16022         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
16023         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
16024         does not conform to C89, as it has an empty macro argument.
16025         Reported by Aharon Robbins in
16026         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16028 2013-01-01  Eric Blake  <eblake@redhat.com>
16030         maint: update all copyright year number ranges
16031         Run "make update-copyright".
16033         version-etc: bump copyright year reported in --version
16034         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
16036 2012-12-31  Eric Blake  <eblake@redhat.com>
16038         sigprocmask-tests: skip test if pid is unexpectedly large
16039         * tests/test-sigprocmask.c (main): Add range check.
16041         git-version-gen: avoid test -z portability glitch
16042         * build-aux/git-version-gen: Prefer portable test spelling, since
16043         git-version-gen is run on more than just developer machines.
16045 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
16047         git-version-gen: add --fallback option to use if git is not present
16048         * build-aux/git-version-gen: Add support for the new option --fallback,
16049         which comes into play when there is no $tarball_version_file and
16050         git is not working.
16051         (scriptversion): Update.
16053         maint.mk: handle missing git with more grace
16054         * top/maint.mk (no-submodule-changes, public-submodule-commit):
16055         Quietly proceed if git is not present.
16057 2012-12-31  Eric Blake  <eblake@redhat.com>
16059         dup2: work around cygwin bug
16060         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
16061         * lib/dup2.c (rpl_dup2): Work around it.
16062         * doc/posix-functions/dup2.texi (dup2): Document it.
16064 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16066         regex: remove unnecessary dependency on localcharset.h
16067         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
16068         hasn't been needed for years.
16069         * modules/regex (Depends-on): Remove localcharset.
16071         regex: revert single-byte change
16072         * lib/regexec.c (check_node_accept_bytes): Revert previous change
16073         to this function.  This was alredy fixed in a different way, at
16074         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
16075         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
16076         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
16078         regex: simplify based on Gawk version
16079         * lib/regex_internal.c (re_dfa_add_node): Simplify.
16080         Reported by Aharon Robbins in
16081         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16083 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16085         regex: check that pattern char is single-byte
16086         Reported by Aharon Robbins in
16087         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16088         * lib/regexec.c (check_node_accept_bytes):
16089         Return 0 if the pattern string has a multibyte character here.
16091         regex: implement rational ranges
16092         Reported by Aharon Robbins in
16093         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16094         * lib/regcomp.c (build_range_exp) [!_LIBC]:
16095         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
16096         Implement rational ranges.
16098         regex: avoid redefining __wctype
16099         Reported by Aharon Robbins in
16100         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16101         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
16102         #undef before defining.
16104         regex: port to hosts where malloc (0) == NULL
16105         Reported by Aharon Robbins in
16106         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16107         * lib/regex_internal.c (re_node_set_alloc):
16108         Don't assume that malloc (0) yields nonnull.
16109         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
16110         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
16111         * modules/regex (Files): Add m4/eealloc.m4.
16113         regex: port to C89
16114         Reported by Aharon Robbins in
16115         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16116         * lib/regcomp.c (init_word_char): Declaration before statement.
16118         regex: merge glibc changes
16119         Also, copy the license wording from glibc.  This simplifies
16120         merging changes.  gnulib-tool will change the wording to GPL as
16121         appropriate, when importing it to other packages.  The only
16122         glibc change made since the last merge, which needs merging, is:
16123         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
16124         * lib/regex_internal.h (gettext): Remove use of INTUSE.
16126         * users.txt: Add Emacs.
16128         doc: omit mention of version when not needed
16129         * doc/gnulib-intro.texi (Portability and Application Code):
16130         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
16131         Don't mention particular dates or versions when not necessary, so
16132         that the documentation won't go out of date so quickly.
16134         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
16136 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
16138         bootstrap: pass --force to autoreconf.
16139         * build-aux/bootstrap (AUTORECONFFLAGS): New.
16140         Add "--force" so that Automake's ylwrap and other such tools
16141         be updated at each bootstrap invocation.
16142         Use it.
16144 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16146         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
16147         The earlier patch forgot to update one of the #if conditions, causing
16148         a problem on Debian testing i386 reported by Mats Erik Andersson
16149         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
16150         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
16151         (__argp_fmtstream_puts, argp_fmtstream_puts)
16152         (__argp_fmtstream_write, argp_fmtstream_write)
16153         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
16155         * doc/gnulib-readme.texi: Minor fixups.
16156         (Portability guidelines): Modernize URLs.  Remove some repetition.
16157         (Indent with spaces not TABs): Reword to avoid too-long lines.
16158         Remove some '@ifset standalone' stuff that isn't used.
16160         * doc/gnulib-readme.texi (Portability guidelines):
16161         ctype.h, not ctime.h.
16163         Correct name of POSIX.1-2001.
16164         * doc/posix-functions/fgetc.texi (fgetc):
16165         * doc/posix-functions/fgets.texi (fgets):
16166         * doc/posix-functions/fread.texi (fread):
16167         * doc/posix-functions/fscanf.texi (fscanf):
16168         * doc/posix-functions/getc.texi (getc):
16169         * doc/posix-functions/getchar.texi (getchar):
16170         * doc/posix-functions/scanf.texi (scanf):
16171         POSIX.1-2001, not POSIX-2001.
16173         doc: move README into manual
16174         * README: Move contents to new file doc/gnulib-readme.texi.
16175         Replace with a one-line summary.
16176         * doc/gnulib.texi (Brief Overview): New section,
16177         with old intro preface.  Include gnulib-readme.texi for contents.
16178         (Philosophy): Rename from "Introduction", since this
16179         section no longer introduces the rest.  Write a new preface.
16180         * doc/gnulib-readme.texi: New file, with the old contents of
16181         README texinfo-ized.  This way, the README info appears
16182         in the online and printed manual.
16184 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
16186         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
16187         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
16188         c_vasprintf() prototype.
16190 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
16192         c-vasprintf: Fix "empty declaration" warning reported by GCC.
16193         * lib/c-vasprintf.h: Remove stray semicolon.
16195 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16197         gettext: avoid obsolete macro AM_PROG_MKDIR_P
16198         It is obsolete and is planned to be removed from Automake 1.14; see
16199         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
16200         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
16201         (installdirs-data, installdirs-data-yes):
16202         Use $(MKDIR_P), not $(mkdir_p).
16203         * m4/intl.m4 (AM_INTL_SUBDIR):
16204         * m4/po.m4 (AM_PO_SUBDIRS):
16205         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
16207 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16209         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
16210         On this platform, we are not optimizing but we are using
16211         the substitute for extern inlines, so compile as if
16212         C99-style extern inline, or a substitute, is available.
16213         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
16214         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
16215         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
16216         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
16217         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
16218         Declare as ARGP_FS_EI, not as extern.
16219         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
16220         (__option_is_short, _option_is_end, __option_is_end)
16221         [!_LIBC && __USE_EXTERN_INLINES]:
16222         Declare as ARGP_EI, not as extern.
16224 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16226         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
16227         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
16228         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
16229         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
16230         ...), as the latter is fatal with older Autoconfs.
16231         Problem reported and fix suggested by Eric Blake in thread starting at
16232         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
16234 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16236         AC_PROG_MKDIR_P: don't workaround if not buggy
16237         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
16238         Define only for Autoconf versions before 2.62.
16239         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
16240         undocumented m4_PACKAGE_VERSION, for consistency with the
16241         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
16242         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
16243         was introduced in 2.62.
16245 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
16247         New 'c-*printf' modules for formatted output in C locale.
16249         New module 'c-vasnprintf'.
16250         * modules/c-vasnprintf: New file.
16251         * lib/c-vasnprintf.c: New file.
16252         * lib/c-vasnprintf.h: New file.
16254         New module 'c-snprintf'.
16255         * modules/c-snprintf: New file.
16256         * modules/c-snprintf-tests: New file.
16257         * lib/c-snprintf.c: New file.
16258         * lib/c-snprintf.h: New file.
16259         * tests/test-c-snprintf.c: New file.
16260         * tests/test-c-snprintf.sh: New file.
16262         New module 'c-vsnprintf'.
16263         * modules/c-vsnprintf: New file.
16264         * modules/c-vsnprintf-tests: New file.
16265         * lib/c-vsnprintf.c: New file.
16266         * lib/c-vsnprintf.h: New file.
16267         * tests/test-c-vsnprintf.c: New file.
16268         * tests/test-c-vsnprintf.sh: New file.
16270         New module 'c-vasprintf'.
16271         * modules/c-vasprintf: New file.
16272         * modules/c-vasprintf-tests: New file.
16273         * lib/c-asprintf.c: New file.
16274         * lib/c-vasprintf.c: New file.
16275         * lib/c-vasprintf.h: New file.
16276         * tests/test-c-vasprintf.c  +: New file.
16277         * tests/test-c-vasprintf.sh: New file.
16279         New module 'c-xvasprintf'.
16280         * modules/c-xvasprintf: New file.
16281         * modules/c-xvasprintf-tests: New file.
16282         * lib/c-xasprintf.c: New file.
16283         * lib/c-xvasprintf.c: New file.
16284         * lib/c-xvasprintf.h: New file.
16285         * tests/test-c-xvasprintf.c: New file.
16286         * tests/test-c-xvasprintf.sh: New file.
16288 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16290         argp: better 'inline'
16291         Use extern-inline module to declare extern inline functions.
16292         This avoids some bogus warning diagnostics.  Problem discovered
16293         when modifying GNU tar to use the manywarnings module.
16294         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
16295         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
16296         Define based on extern-inline.
16297         * modules/argp (Depends-on): Add extern-inline.
16299 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16301         filemode, sys_stat: Handle MPX files a la AIX.
16302         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
16303         * lib/sys_stat.in.h (S_ISMPX): New macro.
16304         * tests/test-sys_stat.c: Add tests for MPX files.
16306 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16308         x-to-1: honor $PERL
16309         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
16310         a chance to use his preferred version of Perl.  This is typically
16311         required by Darwin users whose default /usr/bin/perl does not have all
16312         the libraries required by help2man, and who need to use their MacPorts
16313         installation of Perl instead.
16315 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
16317         gnu-web-doc-update: add all the new files, even in new directories
16318         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
16319         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
16320         Use it.
16321         (main): Don't use cvsutils to get the list of unknown files,
16322         just add all the existing files and directories.
16324 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
16326         gnu-web-doc-update: improve --help
16327         * build-aux/gnu-web-doc-update: Move comments into --help.
16329 2012-12-07  Eric Wong  <normalperson@yhbt.net>
16331         mountlist: recognize more "dummy" file systems
16332         * lib/mountlist.c (ME_DUMMY_0):
16333         Add these dummy FS names to the list:
16334         - "debugfs" virtual filesystem for kernel debugging
16335         - "devpts" PTY slave filesystem
16336         - "devtmpfs" device filesystem on top of tmpfs/ramfs
16337         - "fusectl" control filesystem for FUSE
16338         - "mqueue" enumerates POSIX message queues
16339         - "rpc_pipefs" kernel <-> userspace bridge for NFS
16340         - "sysfs" is for exporting kernel objects
16341         - "devfs" device filesystem for Linux 2.4 and FreeBSD
16343 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16345         extern-inline: avoid incompatibility with Darwin Libc
16346         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
16347         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
16348         Problem reported by Akim Demaille in
16349         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
16351 2012-12-11  Simon Josefsson  <simon@josefsson.org>
16353         gnupload: Work with GnuPG using gpg-agent (for smartcards).
16354         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
16355         let it handle password prompting.
16357 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
16359         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
16360         * lib/canonicalize.c (canonicalize_filename_mode):
16361         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
16362         fetching the current directory.  Don't overrun the beginning of
16363         rpath if there's no slashes after the MS-Windows drive letter.
16365 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
16367         maint.mk: avoid extra forks
16368         * top/maint.mk (_cfg_mk): The GNU make manual documents that
16369         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
16370         So use that instead of "$(shell test -f FILE && echo FILE)".
16372 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16374         vasnprintf: fix ASCII_ONLY typo
16375         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16376         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16377         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16378         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
16379         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
16381 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16383         list, oset, xlist, xoset: fix extern inline issue with C99
16384         This was introduced by my recent changes for 'inline'.
16385         Problem reported for gettext by Daiki Ueno in
16386         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
16387         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
16388         (gl_list_nx_create, gl_list_size, gl_list_node_value)
16389         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
16390         (gl_list_previous_node, gl_list_get_at)
16391         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
16392         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
16393         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
16394         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
16395         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
16396         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
16397         (gl_list_iterator_free, gl_sortedlist_search)
16398         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
16399         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
16400         (gl_sortedlist_remove):
16401         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
16402         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
16403         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
16404         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
16405         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
16406         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
16407         (gl_list_add_at, gl_sortedlist_add):
16408         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
16409         Wrap these extern decls inside "#if 0", because they are implemented
16410         as inline functions, and extern inline is not what's wanted here.
16411         It would simplify these .h files to remove the extern decls entirely,
16412         although a downside would be less-clear separation between
16413         specification and implementation.
16415 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16417         sys_stat: no 'static inline'
16418         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
16419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
16421         extern-inline: no 'static inline'
16422         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16423         Do not require AC_C_INLINE.
16424         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
16425         'static inline', for older compilers.
16427         snippet/warn-on-use: no 'static inline'
16428         * build-aux/snippet/warn-on-use.h:
16429         Remove unnecessary 'inline' in comment.
16431         rbtree-list, rbtreehash-list: no 'static inline'
16432         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
16433         * lib/gl_anytree_list2.h (node_at):
16434         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
16435         (gl_oset_first, add_nodes_to_buckets):
16436         Now static, not static inline.
16438         regex: no 'static inline'
16439         * lib/regex_internal.c (calc_state_hash):
16440         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
16441         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
16442         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
16443         Now static, not static inline.
16444         (inline) [__GNUC__ < 3 && _LIBC]:
16445         Remove macro; no longer needed.
16447         xvasprintf: no 'static inline'
16448         * lib/xvasprintf.c (xstrcat):
16449         Now static, not static inline.
16450         * m4/xvasprintf.m4 (gl_XVASPRINTF):
16451         Do not require AC_C_INLINE.
16453         parse-datetime, parse-duration: no 'static inline'
16454         * lib/parse-datetime.y (to_uchar):
16455         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
16456         (scale_n_add):
16457         Now static, not static inline.
16458         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
16459         * modules/parse-duration (configure.ac):
16460         Do not require AC_C_INLINE.
16462         getaddrinfo: no 'static inline'
16463         * lib/getaddrinfo.c (validate_family):
16464         Now static, not static inline.
16465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
16466         Do not require AC_C_INLINE.
16468         ftruncate, fts, lstat, openat, raise: no 'static inline'
16469         * lib/ftruncate.c (chsize_nothrow):
16470         * lib/fts.c (opendirat, diropen):
16471         * lib/lstat.c (orig_lstat):
16472         * lib/openat.c (orig_openat):
16473         * lib/raise.c (raise_nothrow):
16474         Now static, not static inline.
16475         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
16476         * m4/fts.m4 (gl_FUNC_FTS_CORE):
16477         * m4/lstat.m4 (gl_PREREQ_LSTAT):
16478         * m4/openat.m4 (gl_PREREQ_OPENAT):
16479         * m4/raise.m4 (gl_PREREQ_RAISE):
16480         Do not require AC_C_INLINE.
16482         fflush, stat: no 'static inline'
16483         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16484         (clear_ungetc_buffer, disable_seek_optimization)
16485         (restore_seek_optimization, update_fpos_cache):
16486         * lib/stat.c (orig_stat):
16487         Now static, not static inline.
16488         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
16489         (update_fpos_cache):
16490         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
16491         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
16492         * m4/stat.m4 (gl_PREREQ_STAT):
16493         Do not require AC_C_INLINE.
16495         error, filevercmp: no 'static inline'
16496         * lib/error.c (is_open, flush_stdout):
16497         * lib/filevercmp.c (order):
16498         Now static, not static inline.
16499         * m4/error.m4 (gl_PREREQ_ERROR):
16500         * modules/filevercmp (configure.ac):
16501         Do not require AC_C_INLINE.
16503         dup, execute, fatal-signal, etc.: no 'static inline'
16504         * lib/dup.c (dup_nothrow):
16505         * lib/execute.c (nonintr_close, nonintr_open):
16506         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
16507         * lib/fopen.c (orig_fopen):
16508         * lib/freadseek.c (freadptrinc):
16509         * lib/freopen.c (orig_freopen):
16510         * lib/fstat.c (orig_fstat, fstat_nothrow):
16511         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
16512         (get_rusage_as_via_iterator):
16513         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
16514         * lib/getdtablesize.c (_setmaxstdio_nothrow):
16515         * lib/isatty.c (_isatty_nothrow):
16516         * lib/open.c (orig_open):
16517         * lib/read.c (read_nothrow):
16518         * lib/sigprocmask.c (signal_nothrow):
16519         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
16520         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
16521         * lib/wait-process.c (unregister_slave_subprocess):
16522         * lib/write.c (write_nothrow):
16523         Now static, not static inline.
16524         * lib/spawn-pipe.c (nonintr_open): Define only if
16525         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
16526         * m4/dup.m4 (gl_PREREQ_DUP):
16527         * m4/execute.m4 (gl_EXECUTE):
16528         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
16529         * m4/fopen.m4 (gl_PREREQ_FOPEN):
16530         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
16531         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
16532         * m4/fstat.m4 (gl_PREREQ_FSTAT):
16533         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
16534         * m4/isatty.m4 (gl_PREREQ_ISATTY):
16535         * m4/open.m4 (gl_PREREQ_OPEN):
16536         * m4/read.m4 (gl_PREREQ_READ):
16537         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
16538         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
16539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
16540         * m4/wait-process.m4 (gl_WAIT_PROCESS):
16541         * m4/write.m4 (gl_PREREQ_WRITE):
16542         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
16543         Do not require AC_C_INLINE.
16545         c-strtod, memcoll, readutmp: no 'static inline'
16546         * lib/c-strtod.c (c_locale):
16547         * lib/memcoll.c (strcoll_loop):
16548         * lib/readutmp.c (desirable_utmp_entry):
16549         Now static, not static inline.
16550         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
16551         * m4/memcoll.m4 (gl_MEMCOLL):
16552         * m4/readutmp.m4 (gl_READUTMP):
16553         Do not require AC_C_INLINE.
16555         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
16556         * lib/arctwo.c (to_uchar):
16557         * lib/md4.c (set_uint32):
16558         * lib/md5.c (set_uint32):
16559         * lib/sha1.c (set_uint32):
16560         * lib/sha256.c (set_uint32):
16561         * lib/sha512.c (set_uint64):
16562         Now static, not static inline.  This is a bit simpler, and doesn't
16563         affect performance with GCC and default optimization.
16564         * m4/arctwo.m4 (gl_ARCTWO):
16565         * m4/md4.m4 (gl_MD4):
16566         * m4/md5.m4 (gl_MD5):
16567         * m4/sha1.m4 (gl_SHA1):
16568         * m4/sha256.m4 (gl_SHA256):
16569         * m4/sha512.m4 (gl_SHA512):
16570         Do not require AC_C_INLINE.
16572         cond, lock, thread: better 'inline'
16573         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
16574         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
16575         New macros.  Use them instead of static inline, for header functions.
16576         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
16577         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16578         * lib/glthread/lock.c (gl_waitqueue_init)
16579         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16580         * lib/glthread/thread.c (get_current_thread_handle):
16581         Change 'static inline' to 'inline'.
16582         * lib/glthread/cond.h, lib/glthread/thread.h:
16583         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16584         * m4/cond.m4 (gl_COND):
16585         * m4/lock.m4 (gl_PREREQ_LOCK):
16586         * m4/thread.m4 (gl_THREAD):
16587         Do not require AC_C_INLINE.
16588         * modules/cond, modules/thread (Depends-on): Add extern-inline.
16590         chdir-long, cycle-check, savewd: better 'inline'
16591         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
16592         (find_non_slash):
16593         * lib/cycle-check.c (is_zero_or_power_of_two):
16594         * lib/savewd.c (savewd_delegating):
16595         Change 'static inline' to 'inline'.
16596         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
16597         Replace all remaining uses of 'static inline' with it.
16598         * lib/savewd.h:
16599         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16600         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
16601         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16602         * m4/savewd.m4 (gl_SAVEWD):
16603         Do not require AC_C_INLINE.
16604         * modules/savewd (Depends-on): Add extern-inline.
16606         base32, base64: no need for 'inline'
16607         * lib/base32.c (to_uchar, get_8, decode_8):
16608         * lib/base64.c (to_uchar, get_4, decode_4):
16609         Change 'static inline' to 'inline'.
16610         * m4/base32.m4 (gl_PREREQ_BASE32):
16611         * m4/base64.m4 (gl_PREREQ_BASE64):
16612         Do not require AC_C_INLINE.
16614         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
16615         * lib/gl_array_oset.c (gl_array_nx_add_at):
16616         (gl_array_remove_at):
16617         * lib/gl_linkedhash_list.c (hash_resize_after_add)
16618         (add_to_bucket, remove_from_bucket):
16619         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
16620         Change 'static inline' to 'static', as it's simpler to omit
16621         'inline' unless there's a significant performance advantage.
16623         list, oset, xlist, xoset, xsublist: simplify via extern inline
16624         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
16625         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
16626         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
16627         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
16628         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
16629         New macro.  Replace all uses of 'static inline' with it.
16630         [HAVE_INLINE]: Implement functions as *_INLINE functions,
16631         instead of as macros FOO that are defined to static inline
16632         functions FOO_inline.
16633         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
16634         * lib/gl_xsublist.c:
16635         Reimplement from scratch, by defining the corresponding *_INLINE
16636         macro and including the corresponding .h file.  This is simpler.
16637         * modules/list, modules/oset, modules/xlist, modules/xoset:
16638         (Files): Remove m4/gl_list.m4.
16639         (configure.ac): Remove gl_LIST.
16640         * m4/gl_list.m4: Remove.
16641         * modules/list, modules/oset, modules/xlist, modules/xoset:
16642         * modules/xsublist:
16643         (Depends-on): Depend on extern-inline, not inline.
16645         xalloc: better 'inline'
16646         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
16647         New macro.  Replace all uses of 'static inline' with it.
16648         (static_inline): Remove.
16649         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
16650         Let 'extern inline' do the work automatically, instead of doing
16651         it by hand.
16652         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
16653         Remove.  All uses removed.
16654         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
16656         gethrxtime: better 'inline'
16657         * lib/xtime.c: New file.
16658         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
16659         * lib/xtime.h (XTIME_INCLUDE):
16660         New macros.  Replace all uses of 'static inline' with them.
16661         * lib/gethrxtime.c (gethrxtime): Define only if
16662         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
16663         this source file is now always compiled, because of the extern inline.
16664         * lib/gethrxtime.h, lib/xtime.h:
16665         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16666         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
16667         if gethrtime works, as they're not needed in that case.
16668         (gl_XTIME): Do not require AC_C_INLINE.
16669         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
16670         compiled now.  Move the check into gl_GETHRXTIME.
16671         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
16672         (Depends-on): Add extern-inline.
16673         (configure.ac): gethrxtime is always compiled now.
16674         (lib_SOURCES): Add gethrxtime.c.
16676         wctype-h: better 'inline'
16677         * lib/wctype-h.c: New file.
16678         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
16679         New macro.  Replace all uses of 'static inline' with it.
16680         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16681         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
16682         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
16683         (Depends-on): Add extern-inline.
16685         unistd: better 'inline'
16686         * lib/unistd.c: New file.
16687         * lib/unistd.in.h (_GL_UNISTD_INLINE):
16688         New macro.  Replace all uses of 'static inline' with it.
16689         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16690         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
16691         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
16692         (Depends-on): Add extern-inline.
16694         sys_socket: better 'inline'
16695         * lib/sys_socket.c: New file.
16696         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
16697         New macro.  Replace all uses of 'static inline' with it.
16698         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
16700         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
16701         (Depends-on): Add extern-inline.
16703         stdio: better 'inline'
16704         * lib/stdio.c: New file.
16705         * lib/stdio.in.h (_GL_STDIO_INLINE):
16706         New macro.  Replace all uses of 'static inline' with it.
16707         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16708         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
16709         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
16710         (Depends-on): Add extern-inline.
16712         sigaction: better 'inline'
16713         * lib/sig-handler.c: New file.
16714         * lib/sig-handler.h (SIG_HANDLER_INLINE):
16715         New macro.  Replace all uses of 'static inline' with it.
16716         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16717         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
16718         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
16719         (Depends-on): Add extern-inline.
16721         selinux-h: better 'inline'
16722         * lib/se-context.c, lib/se-selinux.c: New files.
16723         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
16724         * lib/se-context.in.h (SE_CONTEXT_INLINE):
16725         New macro.  Replace all uses of 'static inline' with it.
16726         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16727         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
16728         New macro.  Replace all uses of 'static inline' with it.
16729         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16730         * modules/selinux-h (Files, lib_SOURCES):
16731         Add lib/se-context.c, lib/se-selinux.c.
16732         (Depends-on): Add extern-inline.
16733         (configure.ac): Do not require AC_C_INLINE.
16735         pthread: better 'inline'
16736         * lib/pthread.c: New file.
16737         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
16738         New macro.  Replace all uses of 'static inline' with it.
16739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16740         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16741         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
16742         * modules/pthread (Files): Add lib/pthread.c.
16743         (Depends-on): Add extern-inline.
16745         math: better 'inline'
16746         * lib/math.c: New file.
16747         * lib/math.in.h (_GL_MATH_INLINE):
16748         New macro.  Replace all uses of 'static inline' with it.
16749         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16750         * m4/math_h.m4 (gl_MATH_H):
16751         Do not require AC_C_INLINE.
16752         * modules/math (Files, lib_SOURCES):
16753         Add lib/math.c.
16754         (Depends-on): Add extern-inline.
16756         count-one-bits: better 'inline'
16757         * lib/count-one-bits.c: New file.
16758         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
16759         New macro.  Replace all uses of 'static inline' with it.
16760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16761         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
16762         Do not require AC_C_INLINE.
16763         * modules/count-one-bits (Files, lib_SOURCES):
16764         Add lib/count-one-bits.c.
16765         (Depends-on): Add extern-inline.
16767         count-leading-zeros: better 'inline'
16768         * lib/count-leading-zeros.c: New file.
16769         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
16770         New macro.  Replace all uses of 'static inline' with it.
16771         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16772         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
16773         Do not require AC_C_INLINE.
16774         * modules/count-leading-zeros (Files, lib_SOURCES):
16775         Add lib/count-leading-zeros.c.
16776         (Depends-on): Add extern-inline.
16778         bitrotate: better 'inline'
16779         * lib/bitrotate.c: New file.
16780         * lib/bitrotate.h (BITROTATE_INLINE):
16781         New macros.
16782         Replace all uses of 'static inline' with them.
16783         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16784         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
16785         (Depends-on): Add extern-inline.
16786         (configure.ac): Do not require AC_C_INLINE.
16788 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
16790         maint.mk: avoid gratuitous failure
16791         Reported by Stefano Lattarini in
16792         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
16793         * top/maint.mk (public-submodule-commit): Quote more safely.
16795 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
16797         canonicalize, canonicalize-lgpl: support MS-Windows file names
16798         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
16799         for test cases, which it'd be nice to add at some point.
16800         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
16801         * lib/canonicalize.c (canonicalize_filename_mode):
16802         * lib/canonicalize-lgpl.c (__realpath):
16803         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
16804         slash is at the beginning of the file name.  Use ISSLASH, instead
16805         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
16806         the first character with '/'.  Test for
16807         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
16808         with a drive letter.
16809         * lib/canonicalize.c (SLASHES): New macro.
16810         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
16812 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
16814         fts: introduce FTS_VERBATIM
16815         * lib/fts_.h (FTS_VERBATIM): New bit flag.
16816         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
16817         * lib/fts.c (fts_open): Honor it.
16819 2012-11-09  Pádraig Brady  <P@draigBrady.com>
16821         getlogin-tests: allow errno == ENXIO
16822         * tests/test-getlogin.c (main): Skip tests if getlogin fails
16823         with errno == ENXIO (No controlling tty).
16824         getlogin_r-tests: Likewise. Also allow errno == ENOENT
16825         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
16826         with errno == ENOENT.  This was reported to happen in various
16827         situations on GNU/Linux.
16829 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16831         getlogin-tests: allow errno == ENOENT
16832         * tests/test-getlogin.c (main): Skip tests if getlogin fails
16833         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
16834         when running a test in an Emacs shell buffer.
16836 2012-11-08  Jim Meyering  <jim@meyering.net>
16838         tests/nap.h: avoid warning about unused variable
16839         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
16841         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
16842         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
16843         white space before each of the special-cased file names, to avoid
16844         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
16845         in http://bugs.gnu.org/12830.
16847 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16849         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
16850         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
16851         fails with errno == EBADF when fd is opened with O_PATH.
16852         Reported by Jim Meyering in
16853         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
16854         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
16855         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
16857 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16859         test-utimens: speed up by taking shorter naps
16860         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
16861         New functions.
16862         (nap): Use them, to do a better job of guessing the delay.
16863         On Fedora 17 with ext4 atop md atop hard disks, this made
16864         test-utimens run 10x faster, because the test napped for
16865         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
16866         <http://bugs.gnu.org/12820#11>.
16868 2012-11-07  Jim Meyering  <jim@meyering.net>
16870         mountlist.c: fix a compilation failure
16871         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
16872         I introduced while transforming commit v0.0-7683-g613bcb6
16874 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16876         errno: port to LynxOS 178 2.2.2
16877         Problem reported by Joel Brobecker in
16878         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
16879         * doc/posix-headers/errno.texi (errno.h): Document this.
16880         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
16881         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
16882         Supply a string for EILSEQ.
16883         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
16885 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16887         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
16888         Linux kernel 2.6.39 introduced O_PATH (see
16889         <http://lwn.net/Articles/433854/>) and this is a better fallback
16890         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
16891         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
16892         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
16893         * lib/fcntl.in.h (O_ACCMODE):
16894         * tests/test-fcntl-h.c (main):
16895         Do not reject O_ACCMODE merely because it has more than the
16896         minimal number of bits, as POSIX allows extensions here.
16898 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
16900         mountlist: do not classify a bind-mounted dir entry as "dummy"
16901         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
16902         the "none"-testing clause.
16903         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
16904         exception for bind-mounted directories.
16906 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
16908         quote: provide a means to escape strings with nul characters
16909         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
16910         (quote, quote_n): Rename formal arguments for consistency with
16911         quotearg.
16913 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16915         test-raise: don't assume 199 is an invalid signal
16916         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
16918         sh-quote-tests: port to Solaris 9
16919         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
16920         Problem reported by Dagobert Michelsen in
16921         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
16923 2012-10-28  Jim Meyering  <jim@meyering.net>
16925         maint.mk: rename a new configurable variable
16926         * top/maint.mk (_gl_translatable_string_re): Rename from
16927         translation-markers: _gl_ prefix to insulate from user Makefile code,
16928         and the _re suffix to inform that it's a regular expression.
16930 2012-10-26  Eric Blake  <eblake@redhat.com>
16932         maint.mk: let packages tweak sc_po_check pattern
16933         * top/maint.mk (sc_po_check): Add translation-markers, to allow
16934         finding files with other translation markers.
16936 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16938         euidaccess: speed up 'configure' on GNU hosts
16939         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
16940         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
16941         it's needed only in this case.  Use AC_CHECK_DECLS, not
16942         AC_CHECK_DECLS_ONCE.
16943         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
16944         or AC_REQUIRE for AC_FUNC_GETGROUPS.
16946         * lib/regexec.c (re_search_internal): Fix grammar in comment.
16948 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16950         fchmodat, fchownat, fstatat: port to non-inlining compilers
16951         Problem reported for FreeBSD 9 by Jim Meyering in
16952         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
16953         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
16954         New files, which define FCHMODAT_INLINE etc.
16955         * lib/fchmodat.c (FCHMODAT_INLINE):
16956         * lib/fchownat.c (FCHOWNAT_INLINE):
16957         * lib/fstatat.c (FSTATAT_INLINE):
16958         Remove, as chmodat.c etc. now do this.
16959         * modules/fchmodat (Files): Add lib/chmodat.c.
16960         * modules/fchownat (Files): Add lib/chownat.c.
16961         * modules/fstatat (Files): Add lib/statat.c.
16963 2012-10-15  Jim Meyering  <jim@meyering.net>
16965         fchmodat.c, fchownat.c: compile-impeding typos
16966         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
16967         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
16968         Introduced in commit v0.0-7636-gd202279.
16970 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16972         fcntl-h: support GNU flags like O_IGNORE_CTTY
16973         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
16974         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
16975         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
16976         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
16977         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
16978         Define to 0 if not already defined.
16979         * tests/test-fcntl-h.c: Test these new flags.
16981 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16983         faccessat, etc.: support AT_FDCWD-only use
16984         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
16985         this function only if its first argument is AT_FDCWD.
16986         Emacs wants faccessat for AT_EACCESS but not for any first-arg
16987         values other than AT_FDCWD, so it doesn't want all the openat
16988         machinery with fchdir etc.
16989         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
16990         * modules/fstatat, modules/mkdirat, modules/openat (Files):
16991         * modules/unlinkat (Files):
16992         Remove lib/openat-priv.h, as at-internal supplies this file.
16993         Removing this file here allows us to support programs like Emacs
16994         that avoid at-internal.
16996         faccessat: speed up 'configure' on mainstream hosts
16997         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
16998         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
16999         since it's only on unusual platforms that we need to check for
17000         'access', and it's better not to slow 'configure' down on all
17001         platforms.
17003         faccessat: port to Solaris 10
17004         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
17005         Needed on Solaris 10, which doesn't have AT_EACCESS,
17006         so we need the Gnulib fcntl.h, which defines it.
17008 2012-10-14  Pádraig Brady  <P@draigBrady.com>
17009         canonicalize: fix C89 compilation
17010         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
17011         declarations so C89 is supported.  Also remove the comment
17012         referencing memorty allocation as the suggested feature could
17013         not be implemented as suggested.
17014         Reported by Michael Goffioul.
17016 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17018         group-member: omit unnecessary dependencies
17019         This is for Emacs, which has its own allocator and where we
17020         don't want to use xalloc.
17021         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
17022         since we no longer use xmalloc.  Do not include stdbool.h, since
17023         the changes below happen to remove the only use of bool.
17024         (GROUPBUF_SIZE): New constant.
17025         (struct group_info): Remove n_groups member.  Add groupbuf member.
17026         This lets us get the groups without using malloc, usually.
17027         (free_group_info, get_group_info): Adjust to this.
17028         (get_group_info): Return the number of groups found, or -1 on error.
17029         Use plain malloc not xmalloc, and treat its failure as if there
17030         are no groups, as the user already loses in case of error.
17031         (group_member): Simplify, based on changes to get_group_info.
17032         * modules/group-member (Depends-on): Remove dependencies on
17033         xalloc and stdbool.  Add dependency on xalloc-oversized.
17035 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
17037         gethrxtime: port to C++
17038         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
17040 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17042         ptsname: fix macro-name typo
17043         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
17045 2012-10-03  Simon Josefsson  <simon@josefsson.org>
17047         inttostr: Relax license.
17048         * modules/inttostr (License): Change from LGPL to LGPLv2+.
17050 2012-10-03  Eric Blake  <eblake@redhat.com>
17052         ptsname_r: support ptys returned by FreeBSD posix_openpt
17053         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
17054         lives in /dev/pts/.
17056 2012-10-02  Eric Blake  <eblake@redhat.com>
17058         pselect: reject invalid file descriptors
17059         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
17060         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
17061         * modules/pselect (Depends-on): Add dup2.
17062         * doc/posix-functions/pselect.texi (pselect): Document this.
17064         select: reject invalid file descriptors
17065         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
17066         * lib/select.c (rpl_select) [!win32]: Work around it.
17067         * modules/select (Depends-on): Add dup2.
17068         * doc/posix-functions/select.texi (select): Document this.
17070         select: enhance test
17071         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
17072         New functions.
17073         (test_function): Enhance test.
17074         (do_select_bad_fd): Avoid any stale errno values.
17076         ptsname: reject invalid file descriptors
17077         http://www.austingroupbugs.net/view.php?id=503
17078         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
17079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
17080         * modules/stdlib (Makefile.am): Replace witness.
17081         * lib/stdlib.in.h (ptsname): Allow for replacement.
17082         * modules/ptsname (configure.ac): Trigger replacement.
17083         * doc/posix-functions/ptsname.texi (ptsname): Document this.
17085 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
17087         hash-pjw-bare: new module
17088         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
17089         * lib/hash-pjw-bare.h: Likewise.
17090         * modules/hash-pjw-bare: New file.
17091         * MODULES.html.sh (Misc): Add it.
17093 2012-10-02  Eric Blake  <eblake@redhat.com>
17095         manywarnings: cater to more gcc infelicities
17096         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
17097         -Wuninitialized without -O.
17099 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
17101         select, poll tests: Make setsockopt invocation effective.
17102         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
17103         the bind() call.
17104         * tests/test-select.h (open_server_socket): Likewise.
17106 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17108         sockets, sys_stat: restore AC_C_INLINE
17109         This undoes the 2012-09-22 patch.
17110         * m4/sockets.m4 (gl_SOCKETS):
17111         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17112         Restore AC_C_INLINE, since MSVC requires __inline or _inline
17113         and does not support plain 'inline'.  Reported by Bruno Haible in
17114         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
17116 2012-09-30  Bruno Haible  <bruno@clisp.org>
17118         localeconv tests: Avoid test failure on OpenIndiana.
17119         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
17120         skip the 'grouping' and 'mon_grouping' tests.
17121         Reported by Jim Meyering.
17123 2012-09-30  Bruno Haible  <bruno@clisp.org>
17125         havelib: Follow libtool developments.
17126         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
17127         Suggested by Simon Josefsson.
17129 2012-09-29  Jim Meyering  <meyering@redhat.com>
17131         fstatat.c: fix a compile-impeding typo
17132         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
17133         Introduced in commit v0.0-7636-gd202279.
17134         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
17136 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
17138         extern-inline: provide a -Wundef safe config.h
17139         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
17140         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
17141         to produce a -Wundef warning free config.h.
17143 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17145         hash-pjw: relax license to LGPLv2+
17146         * modules/hash-pjw (License): Relax, with consent of author.
17148 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17150         maint.mk: fix strict vs. lazy variable issues with RELEASE
17151         * top/maint.mk (_equal): New function.
17152         (member_check): Strip the result to avoid spurious spaces.
17153         (url_dir_list): Do not use ifeq, which is strict, as it will
17154         require RELEASE_TYPE to be defined.
17155         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
17156         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
17157         (announcement_Cc_alpha,announcement_mail_headers_alpha)
17158         (announcement_Cc_beta,announcement_mail_headers_beta)
17159         (announcement_Cc_stable,announcement_mail_headers_stable): these.
17160         (release): Do not depend on $(release-type), as it forces its
17161         evaluation.  Bounce to it.
17163 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17165         maint.mk: formatting changes
17166         * top/maint.mk: Indent bodies of if's.
17168 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
17170         maint.mk: factor the validation of RELEASE_TYPE
17171         With help from Jim Meyering.
17172         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
17173         * top/maint.mk (_empty, _sp): Move their definition earlier.
17174         (member-check, release-type): New.
17175         Use the latter instead of $(RELEASE_TYPE).
17176         Remove now useless local checks.
17178 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17180         maint.mk: provide "make upload" to ease uploading
17181         See
17182         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
17183         Do not depend simply on the current $(VERSION), as there may have been
17184         new commits since the tarball generation.  Rather, rely on $(RELEASE),
17185         as "make release-commit" already does.
17187         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
17188         "make TYPE".
17190         * top/maint.mk (upload_command, upload, release): New.
17191         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
17192         (VERSION): first word of $(RELEASE) is always right.
17193         (emit_upload_commands): Adjust.
17194         * top/README-release: Update.
17196 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17198         maint.mk: silent rules
17199         With help from Stefano Lattarini.
17200         * top/maint.mk (writable-files): Use $(AM_V_GEN).
17201         (announcement): Use $(AM_V_at).
17203 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17205         localename: port gl_locale_name_thread_unsafe to FreeBSD
17206         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
17207         and use the simpler FreeBSD implementation on Mac OS X as well.
17208         Original idea suggested by Ed Maste in
17209         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
17211 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17213         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
17214         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
17215         * lib/mbuiter.c, lib/xsize.c: New files.
17216         * lib/binary-io.h (BINARY_IO_INLINE):
17217         * lib/eealloc.h (EEALLOC_INLINE):
17218         * lib/mbfile.h (MBFILE_INLINE):
17219         * lib/mbiter.h (MBITER_INLINE):
17220         * lib/mbuiter.h (MBUITER_INLINE):
17221         * lib/xsize.h (XSIZE_INLINE):
17222         New macros.
17223         Replace all uses of 'static inline' with them.
17224         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17225         * m4/eealloc.m4 (gl_EEALLOC):
17226         * m4/mbfile.m4 (gl_MBFILE):
17227         * m4/mbiter.m4 (gl_MBITER):
17228         * m4/xsize.m4 (gl_XSIZE):
17229         Do not require AC_C_INLINE.
17230         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
17231         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
17232         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
17233         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
17234         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
17235         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
17236         * modules/binary-io, modules/eealloc, modules/mbfile:
17237         * modules/mbiter, modules/mbuiter:
17238         (Depends-on): Add extern-inline.
17240         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
17241         * lib/pipe-filter-aux.c: New file.
17242         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
17243         Replace all uses of 'static inline' with it.
17244         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17245         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
17246         (filter_retcode): No real need for inline here.
17247         * modules/pipe-filter-gi, modules/pipe-filter-ii:
17248         (Files): Add lib/pipe-filter-aux.c.
17249         (Depends-on): Add extern-inline.
17250         (configure.ac): Do not require AC_C_INLINE.
17251         (lib_SOURCES): Add pipe-filter-aux.c.
17253         fdutimensat: omit unnecessary AC_C_INLINE
17254         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
17256         fchmodat, fchownat, fstatat: use extern-inline
17257         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
17258         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
17259         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
17260         New macros.
17261         * lib/openat.h:
17262         Replace all uses of 'static inline' with them.
17263         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17264         * modules/fchmodat, modules/fchownat, modules/fstatat:
17265         * modules/openat-h:
17266         (Depends-on):
17267         Add extern-inline.
17268         (configure.ac): Remove AC_C_INLINE.
17270         acl, mbchar, priv-set: use extern-inline
17271         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
17272         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
17273         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
17274         New macros.
17275         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
17276         Replace all uses of 'static inline' with it.
17277         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17278         * m4/acl.m4 (gl_FUNC_ACL):
17279         * m4/mbchar.m4 (gl_MBCHAR):
17280         * m4/priv-set.m4 (gl_PRIV_SET):
17281         Remove AC_C_INLINE, since 'inline' is no longer used directly.
17282         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
17283         Add extern-inline.
17285         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
17286         * m4/sockets.m4 (gl_SOCKETS):
17287         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17288         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
17289         environments where it's already guaranteed to work, so we needn't
17290         check for it at 'configure'-time.
17292         tls-tests: omit unnecessary 'inline'
17293         * tests/test-tls.c (perhaps_yield): No longer inline.
17294         Simplicity and portability trump efficiency in test cases.
17296         utimens-tests: avoid unnecessary 'inline'
17297         * modules/fdutimensat-tests (configure.ac):
17298         * modules/futimens-tests (configure.ac):
17299         * modules/utimens-tests (configure.ac):
17300         * modules/utimensat-tests (configure.ac):
17301         Remove AC_C_INLINE.
17302         * tests/test-utimens-common.h (ctime_compare):
17303         No longer inline.  Simplicity and portability trump efficiency here.
17305         misc: don't limit commentary to inline functions
17306         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
17307         * lib/xalloc-oversized.h, lib/xsize.h:
17308         Contrast macros to functions in general, not just to inline functions,
17309         when the commentary does not apply only to inline functions.
17311 2012-09-20  Jim Meyering  <meyering@redhat.com>
17313         non-recursive-gnulib-prefix-hack: new module
17314         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
17315         the file that originated in Bison.
17316         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
17317         largely copied from a snippet that resided in bison's configure.ac.
17318         * modules/non-recursive-gnulib-prefix-hack: New file.
17319         * MODULES.html.sh (Support for maintaining and releasing projects):
17320         Add it.
17322 2012-09-18  Jim Meyering  <meyering@redhat.com>
17324         maint.mk: generalize _gl_tight_scope for non-recursive make
17325         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
17326         that *.h would describe additional .h files in the directory
17327         specified by $(_gl_TS_dir).  I.e., add this...
17328         (_gl_TS_other_headers): New variable.
17330         maint.mk: exempt trailing blanks found in "binary" files
17331         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
17332         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
17333         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17335 2012-09-17  Jim Meyering  <meyering@redhat.com>
17337         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
17338         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
17339         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
17340         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17342 2012-09-17  Jim Meyering  <meyering@redhat.com>
17344         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
17345         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
17346         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
17347         It is not in the same category as "exit (0)" or "exit (1)", and
17348         besides, I know of no symbolic name for that 77.  Reported by
17349         Richard W.M. Jones in
17350         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17352 2012-09-17  Jim Meyering  <meyering@redhat.com>
17354         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
17355         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
17356         all uses of #define, not just those that start in column 1.
17357         Richard W.M. Jones reported a false positive in
17358         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17360 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17362         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
17363         * lib/localcharset.c (locale_charset) [DARWIN7]:
17364         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
17365         as these two values are incompatible.  Problem reported by Max Horn.
17366         For more discussion, please see
17367         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
17369         doc: document sticky-EOF issue
17370         * doc/posix-functions/fgetc.texi (fgetc):
17371         * doc/posix-functions/fgets.texi (fgets):
17372         * doc/posix-functions/fread.texi (fread):
17373         * doc/posix-functions/fscanf.texi (fscanf):
17374         * doc/posix-functions/getc.texi (getc):
17375         * doc/posix-functions/getchar.texi (getchar):
17376         * doc/posix-functions/scanf.texi (scanf):
17377         Mention that glibc and default Solaris do not conform to
17378         C99 and POSIX-2001 or later, with respect to how getchar
17379         etc. behave when feof reports nonzero.
17381 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17383         poll: fix poll(0, NULL, msec)
17384         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
17385         but nfd is 0.  In that case poll should behave like select.
17387 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17388             Paolo Bonzini  <bonzini@gnu.org>
17390         poll: fix for systems that can't recv() on a non-socket
17391         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
17392         is readable.  In this case POLLHUP will not be supported.
17393         * doc/posix-functions/poll.texi: Document this.
17395 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
17397         poll/select: document portability problems not fixed by Gnulib.
17398         * doc/posix-functions/poll.texi: poll does not work well on
17399         pipes under Windows.  It has the same limitations as select on
17400         BeOS.
17401         * doc/posix-functions/select.texi: select does not work well
17402         on pipes under Windows.
17404 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17406         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
17407         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
17408         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
17409         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
17411 2012-09-06  Eric Blake  <eblake@redhat.com>
17413         net_if: give more details about the bug being fixed
17414         * doc/posix-headers/net_if.texi: Add clarification.
17416 2012-09-05  Eric Blake  <eblake@redhat.com>
17418         net_if: new module
17419         * modules/net_if: New module, borrowing ideas from netinet_in.
17420         * m4/net_if_h.m4: New file.
17421         * lib/net_if.in.h: Likewise.
17422         * doc/posix-headers/net_if.texi (net/if.h): Document it.
17423         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17424         * tests/test-net_if.c: Make function checks conditional.
17425         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
17427 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
17429         readutmp: fix non-portable UT_PID use
17430         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
17431         Use `UT_PID (u) > 0' as absolute condition.
17433 2012-09-04  Jim Meyering  <meyering@redhat.com>
17435         fts: reduce two or more trailing spaces to just one, usually
17436         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
17437         or more slashes, trim all but the final one.  But if a name consists
17438         solely of two slashes, don't modify it.  If it consists solely of
17439         three or more slashes, strip all but one.
17441         This is part of the solution to a minor problem with rm:
17442         it would print a bogus ELOOP diagnostic when failing to remove
17443         the slash-decorated name of a symlink-to-directory:
17445             $ mkdir d && ln -s d s && env rm -r s/
17446             rm: cannot remove 's': Too many levels of symbolic links
17448         With the change below and a trivial don't-trim-trailing-slashes
17449         adjustment to remove.c, it does this:
17451             $ env rm -r s/
17452             rm: cannot remove 's/': Not a directory
17454         Improved by: Eric Blake
17456         fts: when there is no risk of overlap, use memcpy, not memmove
17457         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
17459 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17461         stdbool: be more compatible with mixed C/C++ compiles
17462         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
17463         Define to bool, true, false, respectively, as GCC's builtin
17464         stdbool.h does.  Problem reported by Michael Goffioul in
17465         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
17467 2012-08-28  Jim Meyering  <meyering@redhat.com>
17469         revert last change: it was not needed
17470         * tests/test-vc-list-files-git.sh: There's already a test for
17471         a working git, just below.
17473 2012-08-28  Jim Meyering  <meyering@redhat.com>
17475         tests: test-vc-list-files-git.sh: skip if git is not available
17476         * tests/test-vc-list-files-git.sh: Skip this test when git is
17477         not available.
17479 2012-08-26  Bruno Haible  <bruno@clisp.org>
17481         gnulib-tool: Remove no-op option --no-changelog.
17482         * gnulib-tool (func_usage): Don't mention --no-changelog.
17483         (do_changelog): Remove variable.
17484         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17486 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17488         doc: remove fdl-1.2.texi
17489         It is no longer used or maintained, and its use of @acronym
17490         is problematic.  See the thread containing
17491         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
17492         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
17493         * doc/old-licenses/fdl-1.2.texi: Remove.
17495         execinfo: port to FreeBSD
17496         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
17497         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
17498         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
17499         * modules/execinfo (Link): Add $(LIB_EXECINFO).
17501 2012-08-23  Jim Meyering  <meyering@redhat.com>
17503         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
17504         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
17505         to placate gcc's -Wold-style-declaration.
17507 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17509         doc: do not use @acronym
17510         * doc/inet_ntoa.texi (inet_ntoa):
17511         * doc/parse-datetime.texi (Seconds since the Epoch)
17512         (Specifying time zone rules):
17513         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
17514         Don't use @acronym.  Problem reported by John Darlington in
17515         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
17517 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17519         stdnoreturn: port to newer GCCs
17520         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
17521         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
17522         Problem reported by Jim Meyering in
17523         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
17524         Also, rename the 'test' function to a void a clash with the
17525         already-supplied 'main' function; this fixes a bug that incorrectly
17526         rejected GCC 4.7.1's <stdnoreturn.h>.
17527         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
17528         Document GCC problem.
17530 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
17532         pipe-filter: fix comment typo
17533         * lib/pipe-filter.h: Mention correct function.
17535 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17537         execinfo: new module
17538         This is for Emacs.  Currently, it provides a no-effect stub
17539         on all platforms where it does not already work.
17540         It already works on glibc-based systems, and on Solaris 11.
17541         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
17542         New files.
17543         * doc/glibc-headers/execinfo.texi (execinfo.h):
17544         * MODULES.html.sh (Misc): Document it.
17546 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17548         extern-inline: support old GCC 'inline'
17549         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
17550         if available.  This applies to GCC versions 2.7 through 4.2, or
17551         when newer GCC is using -fgnu89-inline.  The goal is to address
17552         some of the performance issues mentioned by Bruno Haible in
17553         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
17555 2012-08-20  Eric Blake  <eblake@redhat.com>
17557         maint.mk: avoid redundant file name in message
17558         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
17559         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
17560         (sc_makefile_path_separator_check): Remove bogus $(ME).
17562 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
17564         timer-time: fix link order when static linking on glibc
17565         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
17566         _after_ -lrt so that it's significant.
17568 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17570         timespec: omit unnecessary AC_C_INLINE
17571         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
17573         stat-time: omit unnecessary AC_C_INLINE
17574         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
17575         Do not require AC_C_INLINE.
17577         ignore-value: omit unnecessary AC_C_INLINE
17578         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
17580         sys_select: avoid 'static inline'
17581         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
17583         mktime: avoid 'static inline'
17584         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
17585         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
17587 2012-08-19  Bruno Haible  <bruno@clisp.org>
17589         gnulib-tool: Improve coding style.
17590         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
17591         func_emit_lib_Makefile_am.
17592         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17594 2012-08-19  Bruno Haible  <bruno@clisp.org>
17596         gnulib-tool: Fix indentation.
17597         * gnulib-tool (func_import): Fix indentation.
17599 2012-08-19  Bruno Haible  <bruno@clisp.org>
17601         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
17602         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
17603         on the list of removed files.
17605 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17607         test-parse-datetime: avoid glibc leap-second glitch
17608         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
17609         with the 2012 rules.  Problem reported by Bruce Dubbs in
17610         <http://bugs.gnu.org/12206>.
17612 2012-08-14  Bruno Haible  <bruno@clisp.org>
17614         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
17615         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
17616         from argument.
17617         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17619 2012-08-14  Eric Blake  <eblake@redhat.com>
17621         ldexp: relax license
17622         * modules/ldexp (License): Trivial relax, since the module only
17623         provides a permissively licensed m4 file.
17625 2012-08-13  Bruno Haible  <bruno@clisp.org>
17627         gnulib-tool: Fix persistence of --witness-c-macro option.
17628         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
17629         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17631 2012-08-11  Eric Blake  <eblake@redhat.com>
17633         count-leading-zeros: use a lookup table on non-gcc compilers
17634         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
17635         alternate implementation, suggested by Jim Meyering.
17637 2012-08-10  Eric Blake  <eblake@redhat.com>
17639         count-leading-zeros: new module
17640         * modules/count-leading-zeros: New module.
17641         * m4/count-leading-zeros.m4: New file.
17642         * lib/count-leading-zeros.h: Likewise.
17643         * modules/count-leading-zeros-tests: New test.
17644         * tests/test-count-leading-zeros.c: New file.
17645         * MODULES.html.sh (Integer arithmetic functions): Document it.
17647 2012-08-07  Simon Josefsson  <simon@josefsson.org>
17648             Jim Meyering  <meyering@redhat.com>
17650         maintainer-makefile: Fix syntax error with dash.
17651         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
17652         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
17654 2012-08-05  Jim Meyering  <meyering@redhat.com>
17656         extern-inline: also ignore -Wmissing-declarations
17657         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
17658         required with gcc-4.8.0-to-be.
17660         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
17661         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
17662         for /error ?([^,]*)/.  This avoids false-positives for strings like
17663         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
17665 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
17667         gnumakefile: better interaction with Automake-NG
17668         * modules/gnumakefile [Makefile.am]: The makefiles generated by
17669         Automake-NG always contain a definition of VPATH, even in non-VPATH
17670         builds (its value being simply '.' in that case).  So, in the
17671         'clean-GNUmakefile' rule, to determine whether running under a
17672         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
17673         '$(VPATH)' expands to the empty string.
17675 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
17677         base64: Use extern C scope in header file, for C++.
17678         * lib/base64.h: Add C++ namespace protection.
17680 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17682         stat-time, timespec, u64: support naive out-of-dir builds
17683         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
17684         Use '#include "foo.h"', not '#include <foo.h>', when including
17685         one's own interface.  This works better when configuring with
17686         out-of-directory builds, since packages need not add an
17687         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
17689 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17691         utimens: use extern-inline
17692         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
17693         * lib/utimens.h: Add copyright notice, since this is now large enough
17694         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17695         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
17696         * modules/utimens (Depends-on): Add extern-inline.
17698         u64: use extern-inline
17699         * lib/u64.c: New file.
17700         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17701         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
17702         * modules/u64 (Files): Add lib/u64.c.
17703         (Depends-on): Add extern-inline.
17704         (configure.ac): No need to require AC_C_INLINE, since extern-inline
17705         does that now.
17706         (lib_SOURCES): Add u64.c.
17708         timespec: use extern-inline
17709         * lib/timespec.c: New file.
17710         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17711         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
17712         * modules/timespec (Files): Add lib/timespec.c.
17713         (Depends-on): Add extern-inline.
17714         (lib_SOURCES): Add timespec.c.
17716         stat-time: use extern-inline
17717         * lib/stat-time.c: New file.
17718         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17719         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
17720         * modules/stat-time (Files): Add lib/stat-time.c.
17721         (Depends-on): Add extern-inline.
17722         (lib_SOURCES): Add stat-time.c.
17724         extern-inline: new module
17725         * modules/extern-inline, m4/extern-inline.m4: New files.
17726         This is for better support of 'extern inline' a la ISO C99,
17727         with a portable alternative on compilers that do not support
17728         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
17729         of the Emacs executable, when compiled with debugging disabled,
17730         which is a typical way that Emacs is built while developing.
17732 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
17734         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
17735         * build-aux/do-release-commit-and-tag: Move variable definitions
17736         together.
17737         ($branch): Instead of defaulting to "master", default to the current
17738         branch (as gnu-web-doc-update does).
17739         (help): Display the current values of the option arguments.
17740         * top/maint.mk (release-commit): New.
17741         * top/README-release: Simplify the corresponding step.
17743 2012-07-30  Eric Blake  <eblake@redhat.com>
17745         passfd: fix comment on recvfd
17746         * lib/passfd.c (recvfd): Fix comment.
17747         Reported by Jann Horn <jannhorn@googlemail.com>.
17749 2012-07-30  Jim Meyering  <meyering@redhat.com>
17751         maint.mk: avoid a sub-shell
17752         * top/maint.mk (release-prep): Remove unneeded sub-shell.
17754 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17756         maint.mk: use silent-rules support from Automake
17757         * top/maint.mk (news-check, vc-diff-check, announcement)
17758         (no-submodule-changes, alpha beta stable, release-prep)
17759         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
17761 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17763         maint.mk: provide a web-manual-update target
17764         * top/maint.mk: here.
17765         * top/README-release: Use it to simplify the web manual update step.
17767 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17769         README-release: shorten the circuit to post a news
17770         * top/README-release: Point directly to the news submission form.
17772 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17774         gnu-web-doc-update: fix --help
17775         * build-aux/gnu-web-doc-update: The information "top level" was written
17776         twice.
17778 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17780         maint.mk: absolute VPATH issue
17781         * top/maint.mk (release-prep): Help Git find .git/.
17782         From Jim Meyering.
17784 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17786         gitlog-to-changelog: fix previous change
17787         * build-aux/gitlog-to-changelog: Fix condition.
17788         Add missing ";".
17790 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17792         gitlog-to-changelog: don't expect .git to be in $srcdir
17793         Reported by Bruno Haible.
17794         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
17795         * build-aux/gitlog-to-changelog (&git_dir_option): New.
17796         Use it.
17798 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17800         maint.mk: absolute VPATH build fix
17801         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
17802         $(srcdir) is not a parent of $(builddir).
17804 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
17806         clean-temp: Fix memory leak.
17807         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
17808         'files' members of tmpdir.
17810 2012-07-27  Jim Meyering  <meyering@redhat.com>
17812         maint.mk: new rule: refresh-gnulib-patches
17813         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
17814         Use this rule to refresh them.
17815         * top/maint.mk (refresh-gnulib-patches): New rule.
17817 2012-07-24  Bruno Haible  <bruno@clisp.org>
17819         gnulib-tool: Fix handling of inctests variable.
17820         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
17821         Reported by Nick Bowler <nbowler@elliptictech.com>.
17823 2012-07-22  Bruno Haible  <bruno@clisp.org>
17825         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
17826         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
17827         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
17828         Remove exemption for getpass.h.
17829         Suggested by Eric Blake.
17831 2012-07-20  Eric Blake  <eblake@redhat.com>
17833         verify: document conflict with -Wnested-externs
17834         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
17836         maint.mk: forbid exit(-1)
17837         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
17839 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
17841         fsusage: port back to Solaris
17842         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
17843         error (fsd not declared) on Solaris 10.  Reported privately by
17844         Andrew Borodin.
17846 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
17848         gnu-web-doc-update: fix error messages
17849         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
17851         gnu-web-doc-update: check the requirements.
17852         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
17853         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
17854         * build-aux/bootstrap (find_tool): Comment change.
17856 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
17858         maint.mk: minor simplication.
17859         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
17860         for default values.
17862 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
17864         gitlog-to-changelog: VPATH build issues
17865         If builddir is not a subdirectory of srcdir, running git from it will
17866         fail.
17867         * build-aux/gitlog-to-changelog (--srcdir): New option.
17869 2012-07-15  Bruno Haible  <bruno@clisp.org>
17871         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
17872         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
17873         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
17874         Remove exemption for fpending.h.
17875         Suggested by Eric Blake.
17877 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17879         pthread_sigmask: fix bug on FreeBSD 9
17880         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
17881         Include string.h.
17882         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
17883         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
17884         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
17885         but pthread_sigmask (1729, NULL, NULL) returns zero.
17886         See <http://bugs.gnu.org/11884>.
17887         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
17888         by inspecting whether the main call changed the old mask.
17890 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
17892         README-release: make it more legible
17893         * top/README-release: Improve typography slightly.
17895 2012-07-15  Jim Meyering  <meyering@redhat.com>
17897         maint: require that each sc_... command start with "@"
17898         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
17899         "make sc_maint" helps us avoid this nit.
17901 2012-07-15  Jim Meyering  <meyering@redhat.com>
17903         maint.mk: add leading "@" to quiet new "make syntax-check" rule
17904         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
17906 2012-07-13  Eric Blake  <eblake@redhat.com>
17908         maint.mk: new syntax check for HAVE_DECL checks
17909         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
17910         * cfg.mk
17911         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
17912         Exempt some false positives.
17913         Based on a report by Karel Zak.
17915         argp: make HAVE_DECL usage consistent
17916         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
17917         macros, not whether they are defined.
17918         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
17919         convention with other declaration checks.
17920         Reported by Karel Zak, with suggestions from Paul Eggert.
17922         stat-time: relax license to LGPLv2+
17923         * modules/stat-time (License): Relax, with consent of all authors.
17925         strndup: fix m4 usage error
17926         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
17927         defined, to either 0 or 1.
17928         Reported by Karel Zak.
17930 2012-07-11  Jim Meyering  <meyering@redhat.com>
17932         maint: enable the sc_avoid_if_before_free syntax-check rule
17933         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
17934         (if_before_free_offenders_): Define.
17935         (if_before_free_basename_re_): Define.
17936         Exempt current files with useless if-before-free.
17938 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
17940         gettext: do not assume '#define ... defined ...' behavior
17941         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
17942         Do not use '#define FOO ... defined BAR ...', as the C standard says
17943         it's not portable to expect that this works after macro expansion.
17944         Problem reported for gzip by Steven M. Schweda in
17945         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
17947 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17949         getloadavg: clean out old Emacs and Autoconf cruft
17950         See Glenn Morris in <http://bugs.gnu.org/11905>.
17951         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
17952         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
17953         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
17954         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
17956 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
17958         bootstrap: let warn be like tests/init.sh's warn_
17959         Reported by Jim Meyering.
17960         * build-aux/bootstrap (warn): Remove, replaced by...
17961         (warnf_, warn_): these.
17962         Adjust callers.
17963         Shorten messages that no longer fit in 80 columns.
17965 2012-07-09  Bruno Haible  <bruno@clisp.org>
17967         getopt: Simplify after Emacs changed.
17968         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
17969         (gl_GETOPT_IFELSE): Remove macro.
17971 2012-07-09  Jim Meyering  <meyering@redhat.com>
17973         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
17974         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
17976         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
17977         Bugs in both of those conspired to make the
17978         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
17979         _sc_search_regexp's handling of non-empty $in_files would filter
17980         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
17981         choice of in_files value meant there would be no match in most
17982         projects, due to the presence of two or more Makefile.in files.
17983         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
17984         Fix a bug in how a non-empty $$in_files was processed:
17985         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
17986         in spite of the name, it's a regexp, not a list of file names.
17988 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17990         getloadavg, getopt: fix commentary re configure.in
17991         Autoconf is deprecating the name 'configure.in', so change it to
17992         to the new name 'configure.ac' in a couple of places.
17993         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
17994         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
17995         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
17996         Emacs has renamed it to configure.ac, and it no longer refers
17997         to these macros anyway.
17999         timespec: mark functions with const attributes
18000         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
18001         Mark with _GL_ATTRIBUTE_CONST.
18003 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18005         canonicalize[-lgpl]: handle "guessing" values when cross-building
18006         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18007         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
18008         matches "*yes" instead of just "yes".  Regression introduced in commit
18009         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
18011 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18012             Bruno Haible  <bruno@clisp.org>
18014         canonicalize: make the right guess when cross-compiling to GNU
18015         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
18016         determine whether cross-compiling to glibc systems, so as to
18017         include GNU/Hurd.
18019 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18021         timespec-sub: avoid duplicate include
18022         * lib/timespec-sub.c: Do not include <config.h> twice.
18023         Reported by Juanma Barranquero.
18025 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
18027         bootstrap: use a more consistent error reporting scheme
18028         * build-aux/bootstrap (warn, die): New.
18029         Use them.
18031 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18033         sys_time: allow too-wide tv_sec
18034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
18035         timeval even if tv_sec is wider than time_t.  This allows
18036         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
18037         as without this patch gnulib replaces struct timeval
18038         and OpenBSD futimes therefore has a type mismatch.
18039         * doc/posix-headers/sys_time.texi: Mention this.
18041         pthread: check for both pthread_create and pthread_join
18042         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
18043         alter the check so that it tests for both pthread_create and
18044         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
18045         Suggested by Bruno Haible and Richard Yao in
18046         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
18048         parse-datetime: doc tuneup
18049         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
18050         spacing issues.
18052 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
18054         do-release-commit-and-tag: fix the previous commit
18055         * build-aux/do-release-commit-and-tag: Actually the test was right,
18056         but the comment and the error message were misleading.
18057         Fix comment, and improve error message.
18058         Perform check first, so that NEWS is not modified uselessly.
18060         do-release-commit-and-tag: fix typo
18061         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
18062         _not_ start with a stub.
18064 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18066         pthread: check for pthread_create, not pthread_join
18067         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
18068         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
18069         pthread_join in libc.  I hope this removes the need for all the
18070         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
18071         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
18073 2012-07-04  Jim Meyering  <meyering@redhat.com>
18075         parse-datetime: fix failure to diagnose invalid input
18076         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
18077         rather than diagnosing the invalid input.  Now it reports this:
18078         date: invalid date '\260'
18079         * lib/parse-datetime.y (to_uchar): Define.
18080         (yylex): Don't sign-extend "other" bytes.
18081         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
18082         Thanks to Bruno Haible for the patch to this file.
18083         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
18084         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
18086 2012-07-03  Jim Meyering  <meyering@redhat.com>
18088         bootstrap: do not require now-removed build-aux/missing
18089         Now that build-aux/missing is, er, missing, bootstrap would
18090         silently fail.
18091         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
18092         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
18093         no longer part of gnulib.
18094         Diagnose the failure.
18096 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18098         alloca: add support for HP NonStop TNS/E native
18099         * lib/alloca.in.h (alloca): Support the new host.
18100         From a suggestion by Joachim Schmitz in
18101         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
18103 2012-07-02  Pádraig Brady  <P@draigBrady.com>
18105         fsusage: remove code not needed on non GNU/Linux systems.
18107         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18108         Don't include headers no longer needed in this case.
18109         * lib/fsusage.c [STAT_STATVFS &&
18110         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
18111         STAT_STATFS2_FRSIZE to exclude code not used in this case.
18113 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18115         fsusage: include files needed for glibc 2.6 fallback
18116         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18117         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
18118         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
18119         Problem reported by Ludovic Courtès in
18120         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
18122         fsusage: avoid needless check on GNU/Linux
18123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
18124         on GNU/Linux systems, since it can't possibly work.
18126 2012-07-01  Bruno Haible  <bruno@clisp.org>
18128         log: Fix an autoconf >= 2.64 warning.
18129         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
18130         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18132 2012-06-28  Bruno Haible  <bruno@clisp.org>
18134         log10f: Fix possible configuration problem.
18135         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
18136         $LOGF_LIBM.
18137         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18139 2012-06-28  Bruno Haible  <bruno@clisp.org>
18141         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
18142         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
18143         not gl_cv_func_unlink_works.
18144         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18146 2012-06-27  Eric Blake  <eblake@redhat.com>
18148         config: drop scripts that automake says are not independent
18149         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
18150         * build-aux/elisp-comp: Delete.
18151         * build-aux/missing: Likewise.
18152         * build-aux/ylwrap: Likewise.
18153         * modules/elisp-comp: Likewise.
18154         * MODULES.html.sh: Drop mention of elisp-comp.
18155         * NEWS: Mention this.
18157 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
18159         root-uid: new module
18160         This is for portability to Tandem's NonStop Kernel.
18161         * lib/root-uid.h, modules/root-uid: New files.
18162         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
18163         * lib/write-any-file.c, tests/test-sethostname2.c:
18164         Include "root-uid.h".
18165         * lib/euidaccess.c (euidaccess):
18166         * lib/pt_chown.c (main):
18167         * lib/unlinkdir.c (cannot_unlink_dir):
18168         * lib/write-any-file.c (can_write_any_file):
18169         * m4/mknod.m4 (gl_FUNC_MKNOD):
18170         * tests/test-sethostname2.c (geteuid, main):
18171         Don't assume ROOT_UID == 0.
18172         * modules/euidaccess (Depends-on):
18173         * modules/pt_chown (Depends-on):
18174         * modules/sethostname-tests (Depends-on):
18175         * modules/unlinkdir (Depends-on):
18176         * modules/write-any-file (Depends-on):
18177         Add root-uid.
18179         regex: use locale-independent comparison for codeset name
18180         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
18181         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
18182         for codeset name.
18183         * lib/regex_internal.h: Do not include <strings.h>, since we
18184         no longer use strcasecmp.
18185         * modules/regex (Depends-on): Remove strcase.
18187 2012-06-23  Bruno Haible  <bruno@clisp.org>
18189         getopt-posix: No longer guarantee that option processing is resettable.
18190         * doc/posix-functions/getopt.texi: Drop description of problem with
18191         internal state. Fix info about mingw and msvc9.
18192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
18193         option processing by getopt(). Run three test programs instead of one.
18194         Simplify cross-compilation guess.
18195         * NEWS: Mention the change.
18196         Reported by Rich Felker <dalias@aerifal.cx>.
18198 2012-06-26  Bruno Haible  <bruno@clisp.org>
18200         argp, regex: Ensure strcasecmp gets declared.
18201         * lib/argp-help.c: Include <strings.h>.
18202         * lib/regex_internal.h: Likewise.
18203         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
18205 2012-06-24  Bruno Haible  <bruno@clisp.org>
18207         ptsname_r: Make it consistent with ptsname on AIX.
18208         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
18209         implementation as for OSF/1.
18210         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
18211         a pty master.
18213         ptsname_r: Make it consistent with ptsname on OSF/1.
18214         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18215         OSF/1.
18217 2012-06-24  Bruno Haible  <bruno@clisp.org>
18219         ttyname_r: Fix result on OSF/1, Solaris.
18220         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
18222 2012-06-24  Bruno Haible  <bruno@clisp.org>
18224         ptsname_r: Add support for Solaris.
18225         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18226         Solaris.
18228         ptsname_r: Fix test failure on native Windows.
18229         * modules/ptsname_r (Depends-on): Add isatty.
18231         ptsname_r: Fix test failures on IRIX, Solaris.
18232         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
18233         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
18234         accordingly.
18235         * lib/ptsname_r.c: Include <fcntl.h>.
18236         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
18237         set errno if fd is invalid.
18238         * tests/test-isatty.c (main): Update comments.
18240 2012-06-24  Bruno Haible  <bruno@clisp.org>
18242         ptsname test: Extend test.
18243         * tests/test-ptsname.c: Include <errno.h>.
18244         (main): Test behaviour with invalid file descriptor.
18246 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18248         time: fix obsolete comment
18249         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
18250         reference to HAVE_STRUCT_TIMESPEC in comment.
18252 2012-06-23  Bruno Haible  <bruno@clisp.org>
18254         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
18255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
18256         does not handle abbreviated long options with equivalent
18257         disambiguations, set gl_replace_getopt to yes.
18258         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
18260 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18262         time_r: fix typo that always overrode localtime_r decl
18263         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
18264         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
18265         not in a standard include.
18267 2012-06-22  Bruno Haible  <bruno@clisp.org>
18269         Write "Mac OS X" instead of "MacOS X".
18270         * README: Write "Mac OS X" instead of "MacOS X".
18271         * build-aux/bootstrap: Likewise.
18272         * build-aux/install-reloc: Likewise.
18273         * lib/acl-internal.h: Likewise.
18274         * lib/acl_entries.c: Likewise.
18275         * lib/argp-ba.c: Likewise.
18276         * lib/argp-pv.c: Likewise.
18277         * lib/config.charset: Likewise.
18278         * lib/copy-acl.c: Likewise.
18279         * lib/csharpexec.c: Likewise.
18280         * lib/euidaccess.c: Likewise.
18281         * lib/fbufmode.c: Likewise.
18282         * lib/fflush.c: Likewise.
18283         * lib/file-has-acl.c: Likewise.
18284         * lib/filemode.h: Likewise.
18285         * lib/fpurge.c: Likewise.
18286         * lib/freadable.c: Likewise.
18287         * lib/freadahead.c: Likewise.
18288         * lib/freading.c: Likewise.
18289         * lib/freadptr.c: Likewise.
18290         * lib/freadseek.c: Likewise.
18291         * lib/fseeko.c: Likewise.
18292         * lib/fseterr.c: Likewise.
18293         * lib/fsusage.c: Likewise.
18294         * lib/fwritable.c: Likewise.
18295         * lib/fwriting.c: Likewise.
18296         * lib/get-rusage-as.c: Likewise.
18297         * lib/get-rusage-data.c: Likewise.
18298         * lib/getdomainname.c: Likewise.
18299         * lib/idpriv-drop.c: Likewise.
18300         * lib/idpriv-droptemp.c: Likewise.
18301         * lib/localcharset.c: Likewise.
18302         * lib/locale.in.h: Likewise.
18303         * lib/localename.c: Likewise.
18304         * lib/mbsrtowcs-state.c: Likewise.
18305         * lib/nproc.c: Likewise.
18306         * lib/passfd.c: Likewise.
18307         * lib/posix_openpt.c: Likewise.
18308         * lib/printf-parse.c: Likewise.
18309         * lib/progreloc.c: Likewise.
18310         * lib/safe-read.h: Likewise.
18311         * lib/safe-write.h: Likewise.
18312         * lib/sched.in.h: Likewise.
18313         * lib/set-mode-acl.c: Likewise.
18314         * lib/signal.in.h: Likewise.
18315         * lib/stdint.in.h: Likewise.
18316         * lib/stdio-impl.h: Likewise.
18317         * lib/stdlib.in.h: Likewise.
18318         * lib/strtod.c: Likewise.
18319         * lib/sys_select.in.h: Likewise.
18320         * lib/tcgetsid.c: Likewise.
18321         * lib/unistd.in.h: Likewise.
18322         * lib/unlockpt.c: Likewise.
18323         * lib/vasnprintf.c: Likewise.
18324         * lib/vma-iter.c: Likewise.
18325         * lib/wcsrtombs-state.c: Likewise.
18326         * m4/acl.m4: Likewise.
18327         * m4/acosl.m4: Likewise.
18328         * m4/asinl.m4: Likewise.
18329         * m4/atanl.m4: Likewise.
18330         * m4/c-stack.m4: Likewise.
18331         * m4/cosl.m4: Likewise.
18332         * m4/expl.m4: Likewise.
18333         * m4/extensions.m4: Likewise.
18334         * m4/fdatasync.m4: Likewise.
18335         * m4/fmal.m4: Likewise.
18336         * m4/frexp.m4: Likewise.
18337         * m4/frexpf.m4: Likewise.
18338         * m4/frexpl.m4: Likewise.
18339         * m4/fsusage.m4: Likewise.
18340         * m4/getdomainname.m4: Likewise.
18341         * m4/getloadavg.m4: Likewise.
18342         * m4/getopt.m4: Likewise.
18343         * m4/gettext.m4: Likewise.
18344         * m4/gnulib-common.m4: Likewise.
18345         * m4/intdiv0.m4: Likewise.
18346         * m4/intlmacosx.m4: Likewise.
18347         * m4/largefile.m4: Likewise.
18348         * m4/ldexpl.m4: Likewise.
18349         * m4/link-follow.m4: Likewise.
18350         * m4/locale-ar.m4: Likewise.
18351         * m4/locale-fr.m4: Likewise.
18352         * m4/locale-ja.m4: Likewise.
18353         * m4/locale-tr.m4: Likewise.
18354         * m4/locale-zh.m4: Likewise.
18355         * m4/locale_h.m4: Likewise.
18356         * m4/lock.m4: Likewise.
18357         * m4/logl.m4: Likewise.
18358         * m4/mathfunc.m4: Likewise.
18359         * m4/minus-zero.m4: Likewise.
18360         * m4/mktime.m4: Likewise.
18361         * m4/mmap-anon.m4: Likewise.
18362         * m4/multiarch.m4: Likewise.
18363         * m4/nanosleep.m4: Likewise.
18364         * m4/nocrash.m4: Likewise.
18365         * m4/poll.m4: Likewise.
18366         * m4/printf-frexpl.m4: Likewise.
18367         * m4/printf.m4: Likewise.
18368         * m4/signbit.m4: Likewise.
18369         * m4/sinl.m4: Likewise.
18370         * m4/sqrtl.m4: Likewise.
18371         * m4/strerror_r.m4: Likewise.
18372         * m4/tanl.m4: Likewise.
18373         * m4/threadlib.m4: Likewise.
18374         * m4/ttyname_r.m4: Likewise.
18375         * m4/unlink.m4: Likewise.
18376         * m4/visibility.m4: Likewise.
18377         * m4/wcwidth.m4: Likewise.
18378         * tests/minus-zero.h: Likewise.
18379         * tests/test-alloca-opt.c: Likewise.
18380         * tests/test-copy-acl.sh: Likewise.
18381         * tests/test-copy-file.sh: Likewise.
18382         * tests/test-fdatasync.c: Likewise.
18383         * tests/test-file-has-acl.sh: Likewise.
18384         * tests/test-flock.c: Likewise.
18385         * tests/test-fsync.c: Likewise.
18386         * tests/test-localename.c: Likewise.
18387         * tests/test-malloca.c: Likewise.
18388         * tests/test-nonblocking-pipe.h: Likewise.
18389         * tests/test-nonblocking-socket.h: Likewise.
18390         * tests/test-openpty.c: Likewise.
18391         * tests/test-posix_openpt.c: Likewise.
18392         * tests/test-ptsname.c: Likewise.
18393         * tests/test-ptsname_r.c: Likewise.
18394         * tests/test-sameacls.c: Likewise.
18395         * tests/test-select.h: Likewise.
18396         * tests/test-set-mode-acl.sh: Likewise.
18397         * tests/test-snprintf-posix.h: Likewise.
18398         * tests/test-sprintf-posix.h: Likewise.
18399         * tests/test-strtod.c: Likewise.
18400         * tests/test-time.c: Likewise.
18401         * tests/test-vasnprintf-posix.c: Likewise.
18402         * tests/test-vasprintf-posix.c: Likewise.
18403         * doc/acl-resources.txt: Likewise.
18404         * doc/**/*.texi: Likewise.
18405         Reported by Max Horn <max@quendi.de>.
18407 2012-06-22  Bruno Haible  <bruno@clisp.org>
18409         grantpt: Relax requirement regarding invalid file descriptors.
18410         * lib/grantpt.c: Don't include <fcntl.h>.
18411         (grantpt): Don't verify the validity of the file descriptor.
18412         * modules/grantpt (Depends-on): Remove fcntl-h.
18413         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
18414         file descriptors.
18415         * doc/posix-functions/grantpt.texi: Document more platforms on which
18416         grantpt succeeds for invalid file descriptors.
18417         Reported by Rich Felker <dalias@aerifal.cx>.
18419 2012-06-22  Bruno Haible  <bruno@clisp.org>
18421         fbufmode test: Don't test unportable behaviour.
18422         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
18423         (main): Invoke it three times.
18424         Reported by Szabolcs Nagy <nsz@port70.net>
18425         and Rich Felker <dalias@aerifal.cx>.
18427 2012-06-21  Bruno Haible  <bruno@clisp.org>
18429         gnulib-tool: Refactor inctests variable.
18430         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
18431         (func_modules_transitive_closure,
18432         func_modules_transitive_closure_separately,
18433         func_import, func_create_testdir): Update.
18435         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
18436         * gnulib-tool: Accept option --without-tests.
18437         (func_usage): Document --without-tests option. Rearrange.
18438         (inctests): Normalize according to the mode.
18439         * NEWS: Mention the change.
18440         Suggested by Simon Josefsson.
18442 2012-06-21  Bruce Korb  <bkorb@gnu.org>
18444         parse-duration test: Avoid spurious output.
18445         * tests/test-parse-duration.sh: Reindent with leading tabs.
18447 2012-06-21  Jim Meyering  <meyering@redhat.com>
18449         maint: disable the strncpy prohibition
18450         * cfg.mk: Do not prohibit strncpy here.
18452 2012-06-21  Bruno Haible  <bruno@clisp.org>
18454         nonblocking: Avoid compilation error on mingw64.
18455         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
18456         fscanf.
18457         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
18458         * modules/vfscanf (configure.ac): Likewise.
18459         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
18460         definition only if stdio.h has prepared it.
18461         Reported by Daniel P. Berrange <berrange@redhat.com>.
18463 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
18465         gnulib-tool: Use readlink if it is available.
18466         * gnulib-tool (func_readlink): Choose function more appropriately.
18468 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18470         posixtm-tests: port to buggy compiler
18471         Problem reported by Simon Josefsson in
18472         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
18473         * modules/posixtm-tests (Depends-on): Add stdint.
18474         * tests/test-posixtm.c (struct posixtm_test.t_expected):
18475         Now of type int_least64_t, not int64_t, both because that's
18476         what INT64_C returns and because int_least64_t works even
18477         on 72-bit hosts.
18478         (T): Use INT64_C on constants outside the traditional int range,
18479         to work around compiler bug noted by Simon.
18481         mktime: fix integer overflow in 'configure'-time test
18482         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
18483         after integer overflow.  Problem reported by Rich Felker in
18484         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
18485         Also, don't look for further instances of a bug if we've already
18486         found one instance; this helps 'configure' run faster.
18488 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
18490         tmpfile, clean-temp: Fix invocation of GetVersionEx.
18491         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
18492         GetVersionEx correctly.
18493         * lib/clean-temp.c (supports_delete_on_close): Likewise.
18495 2012-06-20  Bruno Haible  <bruno@clisp.org>
18497         fdopen: Allow implementations that don't reject invalid fd arguments.
18498         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
18499         succeeds.
18500         Reported by Rich Felker <dalias@aerifal.cx>.
18502 2012-06-20  Simon Josefsson  <simon@josefsson.org>
18504         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
18505         bring in LIBINTL.
18507 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18509         init.sh: do not rely on autoupated PWD
18510         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
18511         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
18512         Although Nelson's bug was not necessarily fixed by this patch,
18513         it seems wise to make the change for safety.
18514         * tests/init.sh (path_prepend_): Do not rely on PWD updating
18515         automagically after 'cd'; this is not reliable on older shells.
18516         (setup_): Fail if we cannot cd to temporary directory.
18518 2012-06-19  Bruno Haible  <bruno@clisp.org>
18520         stat, fstat: Avoid warnings on mingw64.
18521         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
18522         redefining.
18523         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
18524         Reported by Daniel P. Berrange <berrange@redhat.com>.
18526 2012-06-19  Bruno Haible  <bruno@clisp.org>
18528         stdioext: Add support for musl libc.
18530         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
18531         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
18533         * m4/fseterr.m4: New file.
18534         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
18535         function exists.
18536         * modules/fseterr (Files): Add m4/fseterr.m4.
18537         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
18538         __fseterr does not exist.
18539         (Makefile.am): Remove fseterr.c from lib_SOURCES.
18541         * lib/freadable.h: Update comment.
18543         * lib/fwritable.h: Update comment.
18545         * lib/freading.h: Update comment.
18547         * lib/fwriting.h: Update comment.
18549         * m4/freadahead.m4: New file.
18550         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
18551         that function exists.
18552         * modules/freadahead (Files): Add m4/freadahead.m4.
18553         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
18554         __freadahead does not exist.
18555         (Makefile.am): Remove freadahead.c from lib_SOURCES.
18557         * m4/freadptr.m4: New file.
18558         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
18559         function exists.
18560         * modules/freadptr (Files): Add m4/freadptr.m4.
18561         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
18562         __freadptr does not exist.
18563         (Makefile.am): Remove freadptr.c from lib_SOURCES.
18565         * m4/freadseek.m4: New file.
18566         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
18567         exists.
18568         * modules/freadseek (Files): Add m4/freadseek.m4.
18569         (configure.ac): Invoke gl_FUNC_FREADSEEK.
18571         * lib/fpurge.c (fpurge): Update comment.
18573         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
18575 2012-06-19  Bruno Haible  <bruno@clisp.org>
18577         *printf-posix: Put more info into config.log.
18578         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
18579         exit code into config.log.
18581 2012-06-19  Bruno Haible  <bruno@clisp.org>
18583         getopt-gnu: Fix exit code overflow in autoconf test.
18584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
18585         to keep them below < 128.
18587 2012-06-17  Jim Meyering  <meyering@redhat.com>
18589         maint.mk: fix typo in code to derive GPG key at release time
18590         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
18592 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18594         regex: avoid warning when pointers are not long
18595         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
18596         and uintptr_t, not long, for portability to hosts where pointers and
18597         long have different sizes.  Issue noted by Daniel P. Berrange in
18598         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
18599         and fix suggested by Bruno Haible in
18600         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
18602 2012-06-17  Bruno Haible  <bruno@clisp.org>
18604         dummy: Relicense into the public domain.
18605         * modules/dummy (License): Set to "public domain".
18606         Suggested by Reuben Thomas.
18608 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18610         announce-gen: VPATH issues
18611         * build-aux/announce-gen (--srcdir): New option, used to trim the
18612         $srcdir part of the path from $builddir to NEWS.
18613         * top/maint.mk (announcement): Adjust.
18615 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18617         gnu-web-doc-update: VPATH builds
18618         * build-aux/gnu-web-doc-update (--builddir): New option.
18619         Revamp the handling of options.
18620         Prefer $(...) to `...`.
18621         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
18622         the template, and it is GNU mktemp specific.
18623         Prefer set -e to long series of &&.
18624         Restore the initial git branch, not "master".
18625         Properly initialize submodules (don't rely only on bootstrap).
18626         Do not reconfigure blindly, use config.status.
18627         * top/README-release: Update instructions for gnu-web-doc-update.
18629 2012-06-11  Jim Meyering  <meyering@redhat.com>
18631         maint.mk: revert most of the previous change re "all these"
18632         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
18633         For rationale, see the discussion at
18634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
18636 2012-06-10  Karl Berry  <karl@gnu.org>
18638         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
18640         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
18642 2012-06-10  Bruce Korb  <bkorb@gnu.org>
18644         parse-duration: Relicense under LGPLv2+.
18645         * modules/parse-duration (License): Change to LGPLv2+.
18647 2012-06-10  Jim Meyering  <meyering@redhat.com>
18649         maint.mk: prohibit common grammar error: "all these"
18650         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
18651         the list of prohibited word sequences.  It should be "all of these".
18652         * lib/tempname.c (__gen_tempname): Fix one of them.
18654 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18656         do-release-commit-and-tag: support VPATH builds
18657         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
18658         (noteworthy): Defined earlier to factor its value.
18659         (noteworthy_stub): New.
18660         Use it to factor.
18661         (help_version): Split into...
18662         (help, version): these.
18663         Adjust the option processing part.
18664         Support "--option=value" in addition to "--option value".
18665         (builddir): New.
18666         (--builddir): New option.
18667         * top/README-release: Document this.
18668         Reword slightly so that the reader cannot understand that he
18669         has to do these steps before calling do-release-commit-and-tag.
18671 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18673         readme-release: also require announce-gen and maintainer-makefile
18674         * modules/readme-release (Depends-on): here.
18675         * modules/announce-gen, modules/do-release-commit-and-tag,
18676         modules/gnu-web-doc-update, modules/maintainer-makefile
18677         (Description): Point to readme-release.
18679 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18681         maint.mk: fix VPATH issues.
18682         * top/maint.mk (news-check): GNU Make understand $< very well.
18683         (release-prep): NEWS is in $(srcdir).
18685 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
18687         readme-release: require the promoted modules.
18688         * modules/readme-release (Depends-on): Add
18689         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
18690         in this text.
18692 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18693             Bruno Haible  <bruno@clisp.org>
18695         error, strerror-override: Support mingw64 from Fedora 17.
18696         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
18697         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
18698         EINPROGRESS.
18699         * lib/strerror-override.h (strerror_override): Test it.
18700         * lib/strerror-override.c (strerror_override): Likewise.
18701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
18703 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18704             Bruno Haible  <bruno@clisp.org>
18706         error, strerror-override: Support mingw64 from Fedora 17.
18707         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
18708         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
18709         * lib/strerror-override.h (strerror_override): Test it.
18710         * lib/strerror-override.c (strerror_override): Likewise.
18712 2012-06-03  Bruno Haible  <bruno@clisp.org>
18714         error, strerror-override: Support new errno values from POSIX:2008.
18715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
18716         ENOTRECOVERABLE.
18717         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
18718         platforms.
18719         * lib/strerror-override.c (strerror_override): Conditionalize the
18720         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
18721         * lib/strerror-override.h (strerror_override): Declare also if
18722         GNULIB_defined_EOWNERDEAD is defined.
18723         * tests/test-errno.c (e130, e131): New variables.
18724         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
18725         ENOTRECOVERABLE.
18726         Reported by Paolo Bonzini.
18728 2012-05-31  Jim Meyering  <meyering@redhat.com>
18730         savewd: add missing dependency on sys_wait module
18731         * modules/savewd (Depends-on): Add sys_wait, needed at least
18732         for MSVC.  Report and suggested change by Michael Goffioul.
18734 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18736         system-quote-tests: port to CentOS 5
18737         Problem reported by Tom G. Christensen in
18738         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
18739         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
18741 2012-05-29  Jim Meyering  <meyering@redhat.com>
18743         maint: fix typos in comments and ChangeLog
18744         Culprits identified and fixed mostly automatically using these commands:
18745         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
18746         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
18747         using http://github.com/lyda/misspell-check
18748         * ChangeLog: Fix typos.
18749         * doc/solaris-versions: Likewise.
18750         * lib/regexec.c (re_search_stub): Likewise.
18751         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18753 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18755         manywarnings: remove duplicate -Wmultichar entry
18756         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
18757         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
18758         so keep the entry marked as documented.
18760 2012-05-27  Karl Berry  <karl@gnu.org>
18762         * config/srclist.txt (mktime.c): remove last libc sync,
18763         perhaps just temporarily.
18765 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18767         regex: don't assume uint64_t or uint32_t
18768         * lib/regcomp.c (init_word_char): Don't assume that the types
18769         uint64_t and uint32_t exist.  The C standard doesn't guarantee
18770         them, and on some 32-bit compilers there is no uint64_t.
18771         Problem reported by Gianluigi Tiesi in
18772         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
18774 2012-05-25  Jim Meyering  <meyering@redhat.com>
18776         maint.mk: add strncpy-prohibiting syntax-check rule
18777         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
18779 2012-05-24  Jim Meyering  <meyering@redhat.com>
18781         maint.mk: compute $(gpg_key_ID) more portably
18782         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
18783         That use of sed is not portable to some fringe systems.
18784         Reported by Paul Eggert in
18785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
18787 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18789         mktime: sync from glibc
18790         * config/srclist.txt: Uncomment mktime.c.
18791         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
18792         First, indent with tabs, since glibc uses tabs and doesn't want to
18793         change and we'd rather be identical to glibc.  Also, two small
18794         coding changes:
18795         (isdst_differ): Use &&, not &, as && is the usual style.
18796         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
18797         for clarity.
18799 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18801         announce-gen: du -h is more portable than du --human
18802         * build-aux/announce-gen (sizes): Invoke du with -h instead
18803         of --human.  Accept leading white space in its output.
18805 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18807         announce-gen: Improve diagnostics.
18808         * build-aux/announce-gen: When parsing command line options,
18809         prefer "announce-gen: option --release-type requires an argument"
18810         to "Option release-type requires an argument".
18812 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18814         maint.mk: gpg_key_ID: use sed more portably
18815         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
18816         the closing brace.
18817         (refresh-po): Fuse two sed invocations into one.
18819 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
18821         gitlog-to-changelog: support the log message format used in Bison.
18822         * build-aux/gitlog-to-changelog: Support --strip-tab and
18823         --strip-cherry-picked.
18825 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18827         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
18828         the rest of the current time slice to another thread in the current
18829         process. So if the thread that feeds the file decscriptor we're
18830         polling is not in the current process, we get busy-waiting.
18831         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
18832         Patch from Theodore Leblond.
18833         * lib/select.c: Split polling out of the loop that sets the output
18834         fd_sets.  Check for zero result and loop if the wait timeout is
18835         infinite.
18837 2012-05-21  Simon Josefsson  <simon@josefsson.org>
18839         select: Fix build error on IRIX 6.5.
18840         * lib/select.c: Include stddef.h for NULL.
18842 2012-05-21  Simon Josefsson  <simon@josefsson.org>
18844         gc: fix libgcrypt detection on older machines.
18845         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
18846         copyright years because the file has been distributed every year
18847         since it was created.
18849 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18851         crypto: fix bug in large buffer handling
18852         Problem reported by Serge Belyshev for glibc in
18853         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
18854         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
18855         * lib/md4.c (md4_process_block):
18856         * lib/md5.c (md5_process_block):
18857         * lib/sha1.c (sha1_process_block):
18858         * lib/sha256.c (sha256_process_block):
18859         Don't assume the buffer length is less than 2**32.
18860         * lib/sha512.c (sha512_process_block): Likewise.
18861         Here, the bug is present only in the rare case where the host does
18862         not support uint64_t or where size_t is wider than 64 bits.
18863         Use u64size to work around the problems.
18864         * lib/u64.h (u64size): New macro.
18866 2012-05-15  Pádraig Brady  <P@draigBrady.com>
18868         fsusage: fix block size returned on older Linux 2.6
18870         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
18871         which is available since Linux 2.6.
18872         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
18873         when the member is available so it can be used as a fallback.
18874         * doc/posix-functions/statvfs.texi: Mention the hang issue
18875         on Linux < 2.6.36.
18877 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18879         bootstrap: suppress stderr chatter
18880         * build-aux/bootstrap (insert_sorted_if_absent, main program):
18881         Omit unnecessary chatter to stderr.  The main program chatter
18882         was there only inadvertantly.
18884         bootstrap: .gitignore files created by autopoint, libtool
18885         I ran into this problem when bootstrapping the latest diffutils.
18886         After './bootstrap', 'git status' reported lots of untracked files
18887         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
18888         autopoint and do not need to be version-controlled.
18889         * build-aux/bootstrap: Put into .gitignore the files that
18890         autopoint and libtool create, by keeping track of files that exist
18891         after but not before these programs are run.
18892         (version_controlled_file): Move up.  2nd arg is now full file
18893         name, not base name; this is more convenient.  Put CVS at the end,
18894         as it's now somewhat deprecated.
18896 2012-05-14  Jim Meyering  <meyering@redhat.com>
18898         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
18899         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
18900         definition.  Reported by Bruno Haible.
18902 2012-05-13  Bruno Haible  <bruno@clisp.org>
18903             Paul Eggert  <eggert@cs.ucla.edu>
18905         binary-io: Define set_binary_mode function.
18906         * lib/binary-io.h (set_binary_mode): New function.
18907         (SET_BINARY): Define in terms of set_binary_mode.
18908         * modules/binary-io (configure.ac): Require AC_C_INLINE.
18909         * tests/test-binary-io.c (main): Accept an argument, and test either
18910         set_binary_mode or SET_BINARY depending on the argument.
18911         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
18912         argument. Clean up also t-bin-out0.tmp.
18914 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
18916         bootstrap: take advantage of POSIX shell features
18918         The 'bootstrap' script offered by Gnulib script already uses POSIX
18919         shell features (like $((...)) arithmetic expansions) that are not
18920         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
18921         means that bootstrap must already be run using a proper POSIX shell,
18922         which will thus provide more features, like ${var#pattern} parameter
18923         expansion or inversion of a command exit status with '!'.  We can
18924         thus use these features to improve the clarity and the performances
18925         of the bootstrap script.
18927         Suggested by Eric Blake.
18929         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
18930         of sed/expr plus command substitutions, to save some forks.  While
18931         we are at it, prefer the POSIX $(...) form of command substitution,
18932         rather than the legacy form `...` (since the former is visually
18933         clearer and interacts better with quoting), and prefer the idiom:
18934           "if ! CMD; then ACTION ..."
18935         over the idiom:
18936           "if CMD; then :; else ACTION ..."
18937         which was required by legacy Bourne shells not supporting '!'.
18939 2012-05-12  Bruno Haible  <bruno@clisp.org>
18941         system-quote: Add more comments.
18942         * lib/system-quote.h: Add more comments about wilcards and limitations.
18943         Suggested by Eli Zaretskii <eliz@gnu.org>.
18945         sh-quote, system-quote: Add comments about wildcards.
18946         * lib/sh-quote.h: Clarify what happens with wildcard characters.
18947         * lib/system-quote.h: Likewise.
18948         Reported by Eli Zaretskii <eliz@gnu.org>.
18950 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18952         fsusage: check for GNU/Linux statvfs problem dynamically
18953         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
18954         Define STAT_STATFS2_BSIZE too, since in this case the code now
18955         checks dynamically whether statvfs is reliable, falling back on
18956         Linux-style statfs otherwise.
18957         (statvfs_works): New function, for dynamically testing statvfs.
18958         (get_fs_usage) [STAT_STATVFS]: Use it.
18959         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
18960         statvfs on GNU/Linux hosts, since it's now done dynamically.
18962 2012-05-10  Bruno Haible  <bruno@clisp.org>
18964         system-quote, execute, spawn-pipe: Escape '?' on Windows.
18965         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
18966         '?' character.
18967         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
18968         * tests/test-system-quote-main.c (check_all): Check also strings like
18969         "??????????".
18970         Reported by Eli Zaretskii <eliz@gnu.org>.
18972 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
18974         _Noreturn: port config.h to gcc -Wundef
18975         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
18976         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
18977         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
18979 2012-05-10  Bruno Haible  <bruno@clisp.org>
18981         system-quote: Refactor.
18982         * lib/system-quote.h (system_quote_copy): Fix comment.
18983         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
18984         New functions, extracted from system_quote_copy.
18985         (system_quote_length, system_quote_copy): Use these functions.
18986         Reported by Paul Eggert.
18988 2012-05-08  Bruno Haible  <bruno@clisp.org>
18990         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
18991         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
18993 2012-05-08  Bruno Haible  <bruno@clisp.org>
18995         Tests for module 'system-quote'.
18996         * modules/system-quote-tests: New file.
18997         * tests/test-system-quote.sh: New file.
18998         * tests/test-system-quote-main.c: New file.
18999         * tests/test-system-quote-child.c: New file.
19001         New module 'system-quote'.
19002         * lib/system-quote.h: New file.
19003         * lib/system-quote.c: New file.
19004         * modules/system-quote: New file.
19006 2012-05-08  Bruno Haible  <bruno@clisp.org>
19008         sh-quote: Make C++ safe and allow multiple inclusion.
19009         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
19010         declarations in extern "C".
19012 2012-05-08  Bruno Haible  <bruno@clisp.org>
19014         sh-quote tests: Make tests stricter.
19015         * tests/test-sh-quote.c (check_one): Check the return value of
19016         shell_quote_copy.
19017         (main): Check a string with a CR character. Check a string that
19018         contains UCHAR_MAX.
19020 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
19022         warnings.m4: provide a means to specify the program to compile.
19023         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
19024         (gl_WARN_ADD): here.
19025         Use gl_AS_VAR_APPEND.
19026         Support an argument to specify the program to compile.
19027         (gl_WARN_ADD): Accept an argument to specify the program to compile.
19028         AC_SUBST the WARN_CFLAGS when they are used.
19029         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
19030         leave this to gl_WARN_ADD.
19032 2012-05-08  Eric Blake  <eblake@redhat.com>
19034         doc: recommendations on gettext version
19035         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
19036         choice between versions.
19037         * DEPENDENCIES (gettext): Cover both approaches.
19039 2012-05-08  Jim Meyering  <meyering@redhat.com>
19041         init.sh: explain why EXEEXT support uses aliases rather than functions
19042         * tests/init.sh: Add a comment.
19044         init.sh: don't let bash aliases interfere with tests
19045         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
19046         is bash.  This avoids problems for those who alias standard commands to
19047         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
19048         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
19050 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19052         stdint: be more consistent with glibc, SunOS libc
19053         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
19054         (gl_int_fast16_t, gl_uint_fast16_t)
19055         (gl_int_fast32_t, gl_uint_fast32_t)
19056         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
19057         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
19058         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19059         Be consistent with glibc by default, and with SunOS 5.10 and later
19060         if __sun is defined.  This lessens the likelihood of clashes if
19061         code compiled for older hosts is combined with code compiled for
19062         newer ones.  Problem reported by Niels Möller in
19063         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
19065 2012-05-07  Eric Blake  <eblake@redhat.com>
19067         isatty: relax license to LGPLv2+
19068         * modules/isatty (License): Relax license.
19070 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19072         stat-size: comment fix
19073         * lib/stat-size.h: Remove obsolete comment about indenting.
19075 2012-05-06  Bruno Haible  <bruno@clisp.org>
19077         Tests for module 'sh-quote'.
19078         * modules/sh-quote-tests: New file.
19079         * tests/test-sh-quote.c: New file.
19081 2012-05-06  Bruno Haible  <bruno@clisp.org>
19083         sh-quote: Improve shell_quote_argv's signature.
19084         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
19085         * lib/sh-quote.c (shell_quote_argv): Likewise.
19087 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19089         stdint: document issues with int_fast8_t etc.
19090         * doc/posix-headers/stdint.texi (stdint.h): Say that other
19091         stdint.h substitutes may define these types differently.  See
19092         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
19094 2012-05-05  Bruno Haible  <bruno@clisp.org>
19096         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
19097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
19098         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
19099         or 'guessing no (mishandles large arguments)'.
19101 2012-05-05  Bruno Haible  <bruno@clisp.org>
19103         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
19104         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
19105         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19106         set gl_cv_func_link_follows_symlink to "guessing no".
19108 2012-05-05  Bruno Haible  <bruno@clisp.org>
19110         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
19111         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
19112         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
19113         "guessing no".
19114         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
19116 2012-05-05  Bruno Haible  <bruno@clisp.org>
19118         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
19119         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
19120         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19121         set gl_cv_struct_dirent_d_ino to "guessing yes".
19123 2012-05-05  Bruno Haible  <bruno@clisp.org>
19125         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
19126         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
19127         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
19128         "guessing yes".
19130 2012-05-05  Bruno Haible  <bruno@clisp.org>
19132         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
19133         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
19134         compiling to a glibc system, set gl_cv_func_signbit and
19135         gl_cv_func_signbit_gcc to "guessing yes".
19137 2012-05-05  Bruno Haible  <bruno@clisp.org>
19139         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
19140         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
19141         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
19142         to "guessing yes".
19143         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
19144         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
19146 2012-05-05  Bruno Haible  <bruno@clisp.org>
19148         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
19149         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
19150         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
19151         gl_cv_func_realpath_works to "guessing yes".
19153 2012-05-05  Bruno Haible  <bruno@clisp.org>
19155         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
19156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
19157         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
19159 2012-05-04  Bruno Haible  <bruno@clisp.org>
19161         Tweak last commit.
19162         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
19163         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19165 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
19167         unistd_h: make it easier to avoid sys_types_h
19168         This is useful for Emacs, which has its own method of porting to
19169         Windows, and which therefore does not need the sys_types_h module.
19170         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
19171         code moved here from gl_SYS_TYPES_H.
19172         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
19173         using the code directly.
19174         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
19175         gl_SYS_TYPES_H.
19176         * modules/sys_types (Files):
19177         * modules/unistd (Files): Add m4/off_t.m4.
19179 2012-05-03  Bruno Haible  <bruno@clisp.org>
19181         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
19182         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
19183         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
19184         "guessing yes" or "guessing no".
19185         (gl_FUNC_LSTAT): Update.
19186         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
19187         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19188         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
19190 2012-05-03  Bruno Haible  <bruno@clisp.org>
19192         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
19193         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
19194         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
19195         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
19196         cross-compiling, choose the first alternative on glibc systems.
19197         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
19199 2012-05-03  Bruno Haible  <bruno@clisp.org>
19201         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
19202         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
19203         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
19205 2012-05-03  Bruno Haible  <bruno@clisp.org>
19207         chown: Avoid "guessing no" when cross-compiling to glibc systems.
19208         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
19210 2012-05-03  Bruno Haible  <bruno@clisp.org>
19212         Avoid "guessing no" guesses when cross-compiling to glibc systems.
19213         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
19214         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
19215         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
19216         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
19217         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
19218         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
19219         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
19220         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
19221         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
19222         compiling to glibc systems, set gl_cv_func_chown_slash_works,
19223         gl_cv_func_chown_ctime_works to "guessing yes".
19224         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
19225         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
19226         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
19227         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
19228         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
19229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
19230         compiling to glibc systems, set gl_cv_func_open_directory_works to
19231         "guessing yes".
19232         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
19233         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
19234         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
19235         "guessing yes".
19236         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
19237         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
19238         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
19239         compiling to glibc systems, set gl_cv_func_floorf_ieee to
19240         "guessing yes".
19241         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
19242         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
19243         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
19244         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
19245         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
19246         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
19247         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
19248         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
19249         "guessing yes".
19250         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
19251         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
19252         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
19253         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
19254         "guessing yes".
19255         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
19256         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
19257         "guessing yes".
19258         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
19259         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
19260         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
19261         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
19262         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
19263         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
19264         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
19265         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
19266         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
19267         compiling to glibc systems, set gl_cv_func_log10f_ieee to
19268         "guessing yes".
19269         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
19270         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
19271         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
19272         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
19273         "guessing yes".
19274         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
19275         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
19276         "guessing yes".
19277         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
19278         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
19279         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
19280         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
19281         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
19282         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
19283         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
19284         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
19285         compiling to glibc systems, set gl_cv_func_mkfifo_works to
19286         "guessing yes".
19287         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
19288         compiling to glibc systems, set gl_cv_func_mknod_works to
19289         "guessing yes".
19290         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
19291         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
19292         "guessing yes".
19293         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
19294         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
19295         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
19296         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
19297         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
19298         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
19299         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
19300         compiling to glibc systems, set gl_cv_func_svid_putenv to
19301         "guessing yes".
19302         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
19303         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
19304         "guessing yes".
19305         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
19306         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
19307         "guessing yes".
19308         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
19309         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
19310         to "guessing yes".
19311         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
19312         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
19313         to "guessing yes".
19314         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
19315         compiling to glibc systems, set gl_cv_func_rmdir_works to
19316         "guessing yes".
19317         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
19318         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
19319         gl_cv_func_unlink_parent_fails to "guessing yes".
19320         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
19321         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
19322         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
19323         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
19324         gl_cv_func_rename_dest_works to "guessing yes".
19325         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
19326         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
19327         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
19328         compiling to glibc systems, set gl_cv_func_roundf_ieee to
19329         "guessing yes".
19330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
19331         compiling to glibc systems, set gl_cv_func_roundl_ieee to
19332         "guessing yes".
19333         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
19334         compiling to glibc systems, set gl_cv_func_setenv_works to
19335         "guessing yes".
19336         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
19337         compiling to glibc systems, set gl_cv_func_unsetenv_works to
19338         "guessing yes".
19339         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
19340         compiling to glibc systems, set gl_cv_func_sleep_works to
19341         "guessing yes".
19342         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
19343         compiling to glibc systems, set gl_cv_func_stat_file_slash to
19344         "guessing yes".
19345         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
19346         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
19347         "guessing yes".
19348         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
19349         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
19350         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
19351         compiling to glibc systems, set gl_cv_func_truncf_ieee to
19352         "guessing yes".
19353         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
19354         compiling to glibc systems, set gl_cv_func_truncl_ieee to
19355         "guessing yes".
19356         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
19357         compiling to glibc systems, set gl_cv_func_usleep_works to
19358         "guessing yes".
19359         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
19360         compiling to glibc systems, set gl_cv_func_futimesat_works to
19361         "guessing yes".
19363 2012-05-03  Bruno Haible  <bruno@clisp.org>
19365         Say "guessing yes" or "guessing no" when cross-compiling.
19366         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
19367         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
19368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
19369         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
19370         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
19371         am_cv_func_working_getline to "guessing yes" or "guessing no".
19372         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
19373         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
19374         (gl_FUNC_MEMMEM): When cross-compiling, set
19375         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
19376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
19377         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
19378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
19379         set gl_cv_func_strcasestr_works_always to "guessing yes" or
19380         "guessing no".
19381         (gl_FUNC_STRCASESTR): When cross-compiling, set
19382         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
19383         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
19384         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
19385         (gl_FUNC_STRSTR): When cross-compiling, set
19386         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
19387         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
19388         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
19389         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
19390         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
19392 2012-05-01  Bruno Haible  <bruno@clisp.org>
19394         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
19395         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
19396         * build-aux/reloc-ldflags: Likewise.
19397         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
19399 2012-05-01  Bruno Haible  <bruno@clisp.org>
19401         gnulib-tool: Remove transitional code.
19402         * gnulib-tool: Don't warn about --import with 0 arguments any more.
19403         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19405 2012-05-01  Bruno Haible  <bruno@clisp.org>
19407         getcwd: Fix misindentation.
19408         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
19410 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19412         exclude: process exclude and include directives in order
19413         This restores the pre-2009 behavior, and is part of a fix of a
19414         grep bug reported by Quentin Arce in
19415         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
19416         * lib/exclude.c (struct exclude): Remove 'tail' member.
19417         (new_exclude_segment): Prepend the new segment instead of appending.
19418         Return void, since that's now more convenient.
19419         (file_pattern_matches): Renamed from excluded_file_pattern_p.
19420         (file_name_matches): Renamed from excluded_file_name_p.
19421         (file_pattern_matches, file_name_matches):
19422         Return true if the pattern matches, not if it excludes.
19423         All callers changed.
19424         (excluded_file_name): Process the list in reverse order;
19425         since the list is now reversed this restores the pre-2009 behavior.
19426         (add_exclude): Adjust to new reversed-order list.  Use local var
19427         rather than macro, for clarity.
19428         * tests/test-exclude7.sh: Adjust to corrected behavior.
19430         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
19431         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
19432         it's not possible here.  Handle the case of \ at end of pattern
19433         without dumping core.
19434         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
19436         _Noreturn: future-proof non-GNU and non-MSVC compilers
19437         * build-aux/snippet/_Noreturn.h (_Noreturn):
19438         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19439         Do not define _Noreturn if __STDC_VERSION__ indicates this is
19440         C11 or later.  This is more likely to work with random future C
19441         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
19442         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
19444         exclude: handle wildcards with FNM_EXTMATCH
19445         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
19446         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
19447         comment that "has wildcards" really means "has or may have
19448         wildcards".  Simplify by avoiding the need to call strcspn.
19450 2012-04-29  Bruno Haible  <bruno@clisp.org>
19452         gnulib-tool: Fix list of authors.
19453         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
19455 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
19457         bootstrap: support Automake-NG in $buildreq
19458         * bootstrap (check_versions): Handle automake and aclocal from
19459         Automake-NG specially.  They can be specified as respectively
19460         the "automake-ng" and "aclocal-ng" requirements.
19462 2012-04-25  Eric Blake  <eblake@redhat.com>
19464         bootstrap: only force latest Makefile.in.in for gettext module
19465         * build-aux/bootstrap (with_gettext): Only install latest
19466         Makefile.in.in for projects requesting bleeding edge gettext.
19468 2012-04-22  Bruno Haible  <bruno@clisp.org>
19470         doc: Mention reason for replacement on glibc/Linux systems.
19471         * doc/posix-functions/dprintf.texi: Mention the problem with special
19472         'long double' values.
19473         * doc/posix-functions/fprintf.texi: Likewise.
19474         * doc/posix-functions/printf.texi: Likewise.
19475         * doc/posix-functions/snprintf.texi: Likewise.
19476         * doc/posix-functions/sprintf.texi: Likewise.
19477         * doc/posix-functions/vdprintf.texi: Likewise.
19478         * doc/posix-functions/vfprintf.texi: Likewise.
19479         * doc/posix-functions/vprintf.texi: Likewise.
19480         * doc/posix-functions/vsnprintf.texi: Likewise.
19481         * doc/posix-functions/vsprintf.texi: Likewise.
19482         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
19483         platforms with F_DUPFD_CLOEXEC problems.
19484         * doc/posix-functions/glob.texi: Mention which platforms are affected
19485         by the problem with symbolic links.
19486         * doc/posix-functions/linkat.texi: Mention the problem with
19487         AT_SYMLINK_FOLLOW on Linux.
19489 2012-04-22  Bruno Haible  <bruno@clisp.org>
19491         pwrite: Don't replace on all platforms.
19492         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
19494 2012-04-22  Bruno Haible  <bruno@clisp.org>
19496         rint* tests: Avoid gcc warnings.
19497         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
19498         * tests/test-rintf.c (INFINITY, NAN): Likewise.
19499         * tests/test-rintl.c (INFINITY, NAN): Likewise.
19501 2012-04-21  Bruno Haible  <bruno@clisp.org>
19503         users.txt: Update.
19504         * users.txt: Add freedink, wdiff. Update URLs for projects that have
19505         switched from CVS to git, bzr, or svn.
19507 2012-04-21  Bruno Haible  <bruno@clisp.org>
19509         Large File Support for native Windows platforms.
19511         * m4/largefile.m4 (gl_LARGEFILE): New macro.
19512         * modules/largefile (configure.ac): Require gl_LARGEFILE.
19514         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
19515         type.
19516         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
19517         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
19518         * doc/posix-headers/sys_types.texi: Mention the effect of the
19519         'largefile' module.
19521         * lib/fcntl.in.h: Add comments about off_t.
19522         * modules/fcntl-h (Depends-on): Add sys_types.
19524         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
19525         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
19526         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
19527         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
19528         * modules/unistd (Depends-on): Add sys_types.
19529         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
19531         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
19532         instead of lseek.
19533         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
19534         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
19535         * modules/lseek (Depends-on): Add sys_types.
19537         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
19538         msvc-nothrow.h.
19539         (SetFileSize): New function.
19540         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
19541         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
19542         if Large File Support is requested.
19543         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
19544         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
19546         * lib/stdio.in.h: Add comments about off_t.
19547         * modules/stdio (Depends-on): Add sys_types.
19549         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
19550         instead of ftello.
19551         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
19552         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
19553         (gl_PREREQ_FTELLO): New macro.
19554         * modules/ftello (Depends-on): Add sys_types.
19555         (configure.ac): Incoke gl_PREREQ_FTELLO.
19557         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
19558         instead of fseeko.
19559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
19560         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
19561         (gl_PREREQ_FSEEKO): New macro.
19562         * modules/fseeko (Depends-on): Add sys_types.
19563         (configure.ac): Invoke gl_PREREQ_FSEEKO.
19565         * lib/sys_stat.in.h: Add comments about off_t.
19566         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
19567         64-bit integer for st_size in 'struct stat'.
19568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
19569         Define _GL_WINDOWS_64_BIT_ST_SIZE.
19570         * modules/sys_stat (Depends-on): Add sys_types.
19571         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
19573         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
19574         instead of stat or _stat.
19576         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
19577         'struct _stati64' instead of fstat and 'struct stat'.
19578         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
19579         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
19581         Reported by Ray Satiro <raysatiro@yahoo.com>.
19583 2012-04-19  Eric Blake  <eblake@redhat.com>
19585         bootstrap: accommodate older libtool
19586         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
19587         Reported by Daniel P. Berrange.
19589 2012-04-19  Jim Meyering  <meyering@redhat.com>
19591         announce-gen: avoid failure due to lack of Digest::SHA1
19592         Even with the preferred Digest::SHA available, this script
19593         would fail when the backup module, Digest::SHA1, was not installed.
19594         * build-aux/announce-gen: Quote the conditional use of "use".
19595         Reported by Reuben Thomas in:
19596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
19598         bootstrap: don't let a user's CDPATH setting affect this script
19599         When CDPATH is set, cd will sometimes generate output.
19600         When "cd" is run in a subshell whose output matters, that
19601         surprising-to-some output can cause malfunction.
19602         Unsetting CDPATH turns off this shell "feature."
19603         * build-aux/bootstrap (CDPATH): Unset.
19604         Reported by Reuben Thomas in:
19605         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
19606         and inspired by his patch here:
19607         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
19609 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
19610         and Jim Meyering  <meyering@redhat.com>
19612         maint.mk: catch "see @xref{}" and similar
19613         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
19614         prohibit "See also @xref{", "Also see @pxref{", and similar.
19616 2012-04-16  Jim Meyering  <meyering@redhat.com>
19618         bootstrap: really use gnulib's po/Makefile.in.in
19619         * build-aux/bootstrap: Correct the source file name in previous change.
19620         Reported by Akim Demaille.
19622         configmake: correct minor inconsistency in Makefile rule
19623         * modules/configmake (Makefile.am): All other rules like this one
19624         run the final "mv -f ..." in the same backslash-continued command
19625         as the one that does everything else.  This one put the mv -f ...
19626         command on a separate, non-backslash-continued line.
19627         Make it like the others.
19629         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
19630         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
19631         the one from gettext.  Reported by Akim Demaille.
19633 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
19635         Fix recursion of install-* into po directories.
19636         Bison's install-pdf bug reported by Hans Aberg at
19637         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
19638         * build-aux/po/Makefile.in.in (install-dvi, install-html)
19639         (install-info, install-pdf, install-ps): New targets.
19641 2012-04-16  Jim Meyering  <meyering@redhat.com>
19643         maint: avoid spurious "make sc_maint" failure
19644         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
19645         exempt all *.class file names, for lib/javaversion.class.
19647 2012-04-15  Bruno Haible  <bruno@clisp.org>
19649         lseek: Make configure test independent of environment.
19650         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
19651         Windows, we know that lseek() on pipes is broken; skip the runtime
19652         test.
19654 2012-04-14  Bruno Haible  <bruno@clisp.org>
19656         stat: Bypass buggy override in mingw64.
19657         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
19658         * lib/stat.c (stat) [mingw64]: Define to _stat.
19659         * doc/posix-functions/stat.texi: Mention mingw64 bug.
19661 2012-04-14  Bruno Haible  <bruno@clisp.org>
19663         pathmax: Fix compilation error on MSVC 9.
19664         * modules/pathmax (Depends-on): Add unistd.
19666 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19668         README: document pointer comparison assumption
19669         * README (Portability guidelines): Document assumption about
19670         pointer comparisons, in response to a recent bug-gnulib comment by
19671         Jeffrey Kegler.
19673 2012-04-12  Bruno Haible  <bruno@clisp.org>
19675         Tests for module 'getrusage'.
19676         * modules/getrusage-tests: New file.
19677         * tests/test-getrusage.c: New file.
19679         New module 'getrusage'.
19680         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
19681         warn-on-use.h.
19682         (getrusage): New declaration.
19683         * lib/getrusage.c: New file.
19684         * m4/getrusage.m4: New file.
19685         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
19686         is declared.
19687         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
19688         HAVE_GETRUSAGE.
19689         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
19690         snippet/c++defs, snippet/warn-on-use.
19691         (Makefile.am): Update generation of sys/resource.h. Substitute
19692         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
19693         * modules/getrusage: New file.
19694         * doc/posix-functions/getrusage.texi: Mention the new module.
19696 2012-04-12  Bruno Haible  <bruno@clisp.org>
19698         Tests for module 'sys_resource'.
19699         * modules/sys_resource-tests: New file.
19700         * tests/test-sys_resource.c: New file.
19702         New module 'sys_resource'.
19703         * lib/sys_resource.in.h: New file.
19704         * m4/sys_resource_h.m4: New file.
19705         * modules/sys_resource: New file.
19706         * doc/posix-headers/sys_resource.texi: Mention the new module.
19708 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
19710         ioctl: Fix compilation error on mingw.
19711         * lib/ioctl.c: Include <windows.h>.
19712         Also reported by Ray Satiro <raysatiro@yahoo.com>.
19714 2012-04-04  Jim Meyering  <meyering@redhat.com>
19716         regex: correct #pragma guard expression
19717         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
19718         not 4.3.  Correct its cpp guard expression.
19720 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19722         regex: remove unnecessary type punning
19723         Problem reported by Vladimir Serbinenko in
19724         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
19725         * lib/regex.h (struct re_pattern_buffer): Change the type of
19726         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
19727         Fix comment to match code.
19728         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
19729         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
19730         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19731         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
19732         (set_regs):
19733         Omit no-longer-necessary casts.
19735 2012-04-03  Bruno Haible  <bruno@clisp.org>
19737         Tests for module 'ilogbl'.
19738         * modules/ilogbl-tests: New file.
19739         * tests/test-ilogbl.c: New file.
19741         New module 'ilogbl'.
19742         * lib/math.in.h (ilogbl): New declaration.
19743         * lib/ilogbl.c: New file.
19744         * m4/ilogbl.m4: New file.
19745         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
19746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
19747         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
19748         Split sed invocation, to avoid the limit of 100 substitutions of
19749         HP-UX 'sed'.
19750         * modules/ilogbl: New file.
19751         * tests/test-math-c++.cc: Check the declaration of ilogbl.
19752         * doc/posix-functions/ilogbl.texi: Mention the new module.
19754 2012-04-03  Bruno Haible  <bruno@clisp.org>
19756         Tests for module 'ilogbf'.
19757         * modules/ilogbf-tests: New file.
19758         * tests/test-ilogbf.c: New file.
19760         New module 'ilogbf'.
19761         * lib/math.in.h (ilogbf): New declaration.
19762         * lib/ilogbf.c: New file.
19763         * m4/ilogbf.m4: New file.
19764         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
19765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
19766         REPLACE_ILOGBF.
19767         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
19768         REPLACE_ILOGBF.
19769         * modules/ilogbf: New file.
19770         * tests/test-math-c++.cc: Check the declaration of ilogbf.
19771         * doc/posix-functions/ilogbf.texi: Mention the new module.
19773 2012-04-03  Bruno Haible  <bruno@clisp.org>
19775         Tests for module 'ilogb'.
19776         * modules/ilogb-tests: New file.
19777         * tests/test-ilogb.c: New file.
19778         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
19779         tests/test-logb-ieee.h.
19781         New module 'ilogb'.
19782         * lib/math.in.h (ilogb): New declaration.
19783         * lib/ilogb.c: New file.
19784         * m4/ilogb.m4: New file.
19785         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
19786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
19787         REPLACE_ILOGB.
19788         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
19789         REPLACE_ILOGB.
19790         * modules/ilogb: New file.
19791         * tests/test-math-c++.cc: Check the declaration of ilogb.
19792         * doc/posix-functions/ilogb.texi: Mention the new module.
19794 2012-04-03  Bruno Haible  <bruno@clisp.org>
19796         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
19797         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
19798         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
19799         (main): Check their values.
19800         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
19801         problem.
19803 2012-04-03  Bruno Haible  <bruno@clisp.org>
19805         Tests for module 'logbl-ieee'.
19806         * modules/logbl-ieee-tests: New file.
19807         * tests/test-logbl-ieee.c: New file.
19809         New module 'logbl-ieee'.
19810         * modules/logbl-ieee: New file.
19812         Tests for module 'logb-ieee'.
19813         * modules/logb-ieee-tests: New file.
19814         * tests/test-logb-ieee.c: New file.
19816         New module 'logb-ieee'.
19817         * modules/logb-ieee: New file.
19819         Tests for module 'logbf-ieee'.
19820         * modules/logbf-ieee-tests: New file.
19821         * tests/test-logbf-ieee.c: New file.
19822         * tests/test-logb-ieee.h: New file.
19824         New module 'logbf-ieee'.
19825         * modules/logbf-ieee: New file.
19827 2012-04-03  Bruno Haible  <bruno@clisp.org>
19829         Tests for module 'logbl'.
19830         * modules/logbl-tests: New file.
19831         * tests/test-logbl.c: New file.
19833         New module 'logbl'.
19834         * lib/math.in.h (logbl): New declaration.
19835         * lib/logbl.c: New file.
19836         * m4/logbl.m4: New file.
19837         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
19838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
19839         REPLACE_LOGBL.
19840         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
19841         REPLACE_LOGBL.
19842         * modules/logbl: New file.
19843         * tests/test-math-c++.cc: Check the declaration of logbl.
19844         * doc/posix-functions/logbl.texi: Mention the new module.
19846 2012-04-02  Bruno Haible  <bruno@clisp.org>
19848         Tests for module 'logbf'.
19849         * modules/logbf-tests: New file.
19850         * tests/test-logbf.c: New file.
19852         New module 'logbf'.
19853         * lib/math.in.h (logbf): New declaration.
19854         * lib/logbf.c: New file.
19855         * m4/logbf.m4: New file.
19856         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
19857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
19858         REPLACE_LOGBF.
19859         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
19860         REPLACE_LOGBF.
19861         * modules/logbf: New file.
19862         * tests/test-math-c++.cc: Check the declaration of logbf.
19863         * doc/posix-functions/logbf.texi: Mention the new module.
19865 2012-04-02  Bruno Haible  <bruno@clisp.org>
19867         logb tests: More tests.
19868         * tests/test-logb.h: New file, based on tests/test-logb.c and
19869         tests/test-frexp.h.
19870         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
19871         (main): Just invoke test_function.
19872         * modules/logb-tests (Files): Add tests/test-logb.h,
19873         tests/minus-zero.h, tests/randomd.c.
19874         (Makefile.am): Add randomd.c to test_logb_SOURCES.
19876         logb: Provide replacement and workarounds.
19877         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
19878         is 1.
19879         * lib/logb.c: New file.
19880         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
19881         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
19882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
19883         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
19884         * modules/logb (Files): Add lib/logb.c.
19885         (Depends-on): Add isfinite, frexp, isnand.
19886         (configure.ac): Compile the replacement code logb.c if needed.
19887         * tests/test-math-c++.cc: Check the declaration of logb.
19888         * doc/posix-functions/logb.texi: Mention the replacement and the bug
19889         with subnormal numbers.
19891 2012-04-02  Bruno Haible  <bruno@clisp.org>
19893         log10* tests: Speed up.
19894         * tests/test-log10.h (test_function): Reduce amount of random numbers
19895         to test.
19897 2012-04-01  Bruno Haible  <bruno@clisp.org>
19899         logf-ieee: Fix test whether logf works.
19900         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
19902 2012-04-01  Bruno Haible  <bruno@clisp.org>
19904         log10l: Work around log10l-ieee test failure on IRIX 6.5.
19905         * lib/log10l.c: Include <float.h>
19906         (log10l): On IRIX, normalize the +Infinity value.
19907         * modules/log10l (Depends-on): Add 'float'.
19908         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
19909         +Infinity.
19911         log10f-ieee: Work around test failure on NetBSD 5.1.
19912         * m4/log10f-ieee.m4: New file.
19913         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
19914         test whether log10f works with a negative argument. Replace it if not.
19915         * lib/log10f.c (log10f): For negative arguments, return NaN.
19916         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
19917         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
19918         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
19920         log10f-ieee: Work around test failure on Solaris 9.
19921         * modules/log10f-ieee (Depends-on): Add log10-ieee.
19922         (configure.ac): Require gl_FUNC_LOG10F.
19924         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
19925         * m4/log10-ieee.m4: New file.
19926         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
19927         whether log10 works with a negative argument. Replace it if not.
19928         * lib/log10.c (log10): For negative arguments, return NaN.
19929         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
19930         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
19931         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
19933         Tests for module 'log10l-ieee'.
19934         * modules/log10l-ieee-tests: New file.
19935         * tests/test-log10l-ieee.c: New file.
19937         New module 'log10l-ieee'.
19938         * modules/log10l-ieee: New file.
19940         Tests for module 'log10-ieee'.
19941         * modules/log10-ieee-tests: New file.
19942         * tests/test-log10-ieee.c: New file.
19944         New module 'log10-ieee'.
19945         * modules/log10-ieee: New file.
19947         Tests for module 'log10f-ieee'.
19948         * modules/log10f-ieee-tests: New file.
19949         * tests/test-log10f-ieee.c: New file.
19950         * tests/test-log10-ieee.h: New file.
19952         New module 'log10f-ieee'.
19953         * modules/log10f-ieee: New file.
19955 2012-04-01  Bruno Haible  <bruno@clisp.org>
19957         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
19958         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
19959         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
19960         workaround.
19961         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
19962         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
19963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
19964         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
19965         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
19966         (Depends-on): Update conditions.
19967         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
19968         IRIX 6.5, OSF/1 5.1 problems.
19970 2012-04-01  Bruno Haible  <bruno@clisp.org>
19972         log10f: Work around OSF/1 5.1 bug.
19973         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
19974         * lib/log10f.c (log10f): If logf exists, use it and provide just the
19975         workaround.
19976         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
19977         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
19978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
19979         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
19980         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
19981         (Depends-on): Update conditions.
19982         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
19984 2012-04-01  Bruno Haible  <bruno@clisp.org>
19986         log10: Work around OSF/1 5.1 bug.
19987         * lib/math.in.h (log10): New declaration.
19988         * lib/log10.c: New file.
19989         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
19990         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
19991         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
19992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
19993         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
19994         * modules/log10 (Files): Add lib/log10.c.
19995         (Depends-on): Add math.
19996         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
19997         * tests/test-math-c++.cc: Check the declaration of log10.
19998         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
20000 2012-03-31  Bruno Haible  <bruno@clisp.org>
20002         log10l tests: More tests.
20003         * modules/log10l-tests (Files): Add tests/test-log10l.h,
20004         tests/minus-zero.h, tests/randoml.c.
20005         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
20006         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
20007         (main): Invoke test_function.
20009         log10f tests: More tests.
20010         * modules/log10f-tests (Files): Add tests/test-log10.h,
20011         tests/minus-zero.h, tests/randomf.c.
20012         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
20013         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
20014         (main): Invoke test_function.
20016         log10 tests: More tests.
20017         * tests/test-log10.h: New file.
20018         * modules/log10-tests (Files): Add tests/test-log10.h,
20019         tests/minus-zero.h, tests/randomd.c.
20020         (Makefile.am): Add randomd.c to test_log10_SOURCES.
20021         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
20022         (main): Invoke test_function.
20024 2012-03-31  Simon Josefsson  <simon@josefsson.org>
20026         fflush: Fix syntax error.
20027         * lib/fflush.c: Include unused-parameter.h, needed for
20028         _GL_UNUSED_PARAMETER.
20029         * modules/fflush (Depends-on): Add snippet/unused-parameter.
20031 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
20033         regex: pacify GCC when compiling GRUB
20034         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
20035         a diagnostic.  Reported by Vladimir Serbinenko in
20036         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
20038 2012-03-29  Eric Blake  <eblake@redhat.com>
20040         stdio: don't assume gets any more
20041         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
20042         support.
20043         * modules/stdio (Makefile.am): Likewise.
20044         * lib/stdio-read.c (gets): Likewise.
20045         * tests/test-stdio-c++.cc: Likewise.
20046         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
20047         * lib/stdio.in.h (gets): Make warning occur in more places.
20048         * doc/posix-functions/gets.texi (gets): Update documentation.
20049         Reported by Christer Solskogen.
20051         maint.mk: fix syntax checks without exclusions
20052         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
20053         Reported by Daniel P. Berrange.
20055         strerror_r: avoid compiler warning
20056         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
20057         level.
20059         fflush: avoid compiler warning
20060         * lib/fflush.c (update_fpos_cache): Mark variables that are
20061         potentially unused.
20063 2012-03-25  Bruno Haible  <bruno@clisp.org>
20065         Tests for module 'localeconv'.
20066         * modules/localeconv-tests: New file.
20067         * tests/test-localeconv.c: New file.
20069         New module 'localeconv'.
20070         * lib/locale.in.h (localeconv): New declaration.
20071         * lib/localeconv.c: New file.
20072         * m4/localeconv.m4: New file.
20073         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
20074         REPLACE_LOCALECONV.
20075         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
20076         REPLACE_LOCALECONV.
20077         * modules/localeconv: New file.
20078         * modules/nl_langinfo (Depends-on): Add localeconv.
20079         * modules/human (Depends-on): Likewise.
20080         * doc/posix-functions/localeconv.texi: Mention the new module.
20082 2012-03-25  Bruno Haible  <bruno@clisp.org>
20084         locale: Provide a complete 'struct lconv'.
20085         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20086         'struct lconv' does not contain int_p_cs_precedes.
20087         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20088         * doc/posix-headers/locale.texi: Update.
20090         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
20091         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
20092         * doc/posix-headers/locale.texi: Update.
20094         locale: Provide a working 'struct lconv'.
20095         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
20096         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20097         'struct lconv' does not even contain decimal_point.
20098         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
20099         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
20100         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20101         * doc/posix-headers/locale.texi: Mention the problems with
20102         'struct lconv'.
20103         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20105 2012-03-24  Bruno Haible  <bruno@clisp.org>
20107         Enable common subexpression optimization in GCC.
20108         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
20109         macros.
20110         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
20111         GCC attribute 'const'.
20112         (uc_locale_language): Declare with GCC attribute 'pure'.
20113         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
20114         with GCC attribute 'const'.
20115         * lib/unictype.in.h (uc_is_general_category_withtable,
20116         uc_combining_class, uc_combining_class_name,
20117         uc_combining_class_long_name, uc_bidi_class_name,
20118         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
20119         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
20120         uc_decimal_value, uc_digit_value, uc_numeric_value,
20121         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
20122         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
20123         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
20124         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
20125         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
20126         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
20127         Declare with GCC attribute 'const'.
20128         (uc_general_category_name, uc_general_category_long_name,
20129         uc_general_category_byname, uc_general_category,
20130         uc_is_general_category, uc_combining_class_byname,
20131         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
20132         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
20133         Declare with GCC attribute 'pure'.
20134         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
20135         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
20136         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
20137         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
20138         with GCC attribute 'pure'.
20139         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
20140         'const'.
20141         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
20142         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
20143         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
20144         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
20145         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
20146         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
20147         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
20148         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
20149         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
20150         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
20151         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
20152         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
20153         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
20154         GCC attribute 'pure'.
20155         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
20156         'const'.
20157         * lib/uniwidth.in.h (uc_width): Simplify declaration.
20158         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
20159         u32_strwidth): Declare with GCC attribute 'pure'.
20161         Enable common subexpression optimization in GCC.
20162         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20163         (alphasort): Declare with GCC attribute 'pure'.
20164         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20165         (atoll): Declare with GCC attribute 'pure'.
20166         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20167         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20168         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
20169         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20170         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
20171         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
20172         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
20174 2012-03-24  Bruno Haible  <bruno@clisp.org>
20176         gnulib-tool: Avoid unintended error output from 'cmp'.
20177         * gnulib-tool (func_add_file, func_update_file, func_import): Use
20178         "cmp -s", not "cmp > /dev/null".
20180 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
20182         gnulib-tool: fix imprecise comments w.r.t. an automake bug
20184         It's not just Automake versions < 1.9b that creates an empty
20185         pkgdatadir at installation time if pkgdata_DATA is specified
20186         to empty; modern automake versions do this as well, at least
20187         until automake 1.11.4 (not yet released at the moment of writing,
20188         but soon to appear).  That behaviour was generally considered a
20189         feature rather than a bug, at least until this discussion:
20190         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
20192         See also automake bugs #10997 and #11030.
20194         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
20195         reference to relevant automake bug numbers.
20196         (func_emit_tests_Makefile_am): Likewise.
20198 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20200         announce-gen: use Digest::SHA when possible
20201         * build-aux/announce-gen: Use Digest::SHA when possible, falling
20202         back to Digest::SHA1 if necessary.
20204 2012-03-20  Jim Meyering  <meyering@redhat.com>
20206         tests: avoid gcc warnings about argv vs. const initializers
20207         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
20208         warnings about discarding 'const' qualifier from pointer target type.
20209         * tests/test-posix_spawn2.c (main): Likewise.
20211 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20213         README-release: simplify slightly
20214         * top/README-release: Run "git checkout master" only once.
20216 2012-03-15  Mark Wielaard  <mark@klomp.org>
20218         git-merge-changelog: add specific example on how to use with hg.
20219         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
20221 2012-03-18  Mark Wielaard  <mark@klomp.org>
20223         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
20225 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
20227         git-version-gen: don't let "prefix" envvar cause trouble
20228         * build-aux/git-version-gen (prefix): Initialize properly,
20229         so as not to use a value specified via the environment.
20230         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
20232 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20234         regex: diagnose too-large repeat counts in EREs
20235         Previously, the code did not diagnose the too-large repeat count
20236         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
20237         as if it were 'b\{1000000000}', which is unexpected.
20238         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
20239         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
20240         is a reasonable one for this problem.  Another option would be to
20241         create a new REG_OVERFLOW error for repeat counts that are too large.
20242         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
20243         count is too large, so that the caller can distinguish the two cases.
20244         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
20245         "Too large" return code, and that repeat counts are one example of this.
20247 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20249         doc: some glibc x32 integer width issues
20250         * doc/posix-headers/sys_types.texi (sys/types.h):
20251         * doc/posix-headers/time.texi (time.h):
20252         Mention that glibc x32 does not conform to POSIX in a couple of
20253         areas related to integer widths.
20255 2012-03-15  Bruno Haible  <bruno@clisp.org>
20257         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
20258         * lib/fma.c (VOLATILE): New macro.
20259         (FUNC): Use it to work around a GCC compiler bug.
20261 2012-03-13  Bruno Haible  <bruno@clisp.org>
20263         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20264         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
20265         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
20266         REPLACE_HYPOTL to 1.
20267         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
20269 2012-03-13  Bruno Haible  <bruno@clisp.org>
20271         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20272         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
20273         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
20274         REPLACE_REMAINDERL to 1.
20275         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
20276         bug.
20278 2012-03-13  Bruno Haible  <bruno@clisp.org>
20280         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20281         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
20282         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
20283         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
20284         too big rounding errors.
20285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
20286         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
20287         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
20288         (Depends-on): Update conditions.
20289         * tests/test-sqrtl.c (my_ldexpl): New function.
20290         (main): Add test of a particular value.
20291         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
20293 2012-03-13  Pádraig Brady  <P@draigBrady.com>
20295         doc: Update timer_* platform portability notes.
20296         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
20297         that always return ENOSYS.
20298         * doc/posix-functions/timer_delete.texi: Likewise.
20299         * doc/posix-functions/timer_gettime.texi: Likewise.
20300         * doc/posix-functions/timer_settime.texi: Likewise.
20302 2012-03-13  Bruno Haible  <bruno@clisp.org>
20304         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20305         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
20306         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
20307         REPLACE_CBRTL to 1.
20308         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
20310 2012-03-13  Bruno Haible  <bruno@clisp.org>
20312         remainderl: Avoid compilation error on AIX >= 5.2.
20313         * lib/math.in.h (remainderl): Undefine macro from the system header.
20315 2012-03-13  Bruno Haible  <bruno@clisp.org>
20317         Avoid compilation errors with MSVC option -fp:strict.
20318         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
20319         * lib/cbrtf.c: Likewise.
20320         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20322 2012-03-12  Bruno Haible  <bruno@clisp.org>
20324         uninorm: Don't crash in out-of-memory conditions.
20325         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
20326         gracefully.
20327         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
20328         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
20330 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
20332         quote: fix syntax-check
20333         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
20334         also exports quote_quoting_options.
20336 2012-03-12  Simon Josefsson  <simon@josefsson.org>
20338         Collapse list of copyright years to ranges.  See
20339         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
20340         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
20341         build-aux/csharpexec.sh.in, build-aux/gnupload,
20342         build-aux/install-reloc, build-aux/javacomp.sh.in,
20343         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
20344         build-aux/move-if-change, build-aux/reloc-ldflags,
20345         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
20347 2012-03-11  Bruno Haible  <bruno@clisp.org>
20349         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20350         * m4/log2f-ieee.m4: New file.
20351         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
20352         whether log2f works with a minus zero argument. Replace it if not.
20353         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
20354         (Depends-on): Add log2-ieee.
20355         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
20356         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
20358         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20359         * m4/log2-ieee.m4: New file.
20360         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
20361         whether log2 works with a minus zero argument. Replace it if not.
20362         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
20363         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
20364         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
20366         Tests for module 'log2l-ieee'.
20367         * modules/log2l-ieee-tests: New file.
20368         * tests/test-log2l-ieee.c: New file.
20370         New module 'log2l-ieee'.
20371         * modules/log2l-ieee: New file.
20373         Tests for module 'log2-ieee'.
20374         * modules/log2-ieee-tests: New file.
20375         * tests/test-log2-ieee.c: New file.
20377         New module 'log2-ieee'.
20378         * modules/log2-ieee: New file.
20380         Tests for module 'log2f-ieee'.
20381         * modules/log2f-ieee-tests: New file.
20382         * tests/test-log2f-ieee.c: New file.
20383         * tests/test-log2-ieee.h: New file.
20385         New module 'log2f-ieee'.
20386         * modules/log2f-ieee: New file.
20388 2012-03-11  Bruno Haible  <bruno@clisp.org>
20390         Tests for module 'log2l'.
20391         * modules/log2l-tests: New file.
20392         * tests/test-log2l.c: New file.
20394         New module 'log2l'.
20395         * lib/math.in.h (log2l): New declaration.
20396         * lib/log2l.c: New file.
20397         * m4/log2l.m4: New file.
20398         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
20399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
20400         REPLACE_LOG2L.
20401         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
20402         REPLACE_LOG2L.
20403         * modules/log2l: New file.
20404         * tests/test-math-c++.cc: Check the declaration of log2l.
20405         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
20406         and OSF/1 problems.
20408 2012-03-11  Bruno Haible  <bruno@clisp.org>
20410         Tests for module 'log2f'.
20411         * modules/log2f-tests: New file.
20412         * tests/test-log2f.c: New file.
20414         New module 'log2f'.
20415         * lib/math.in.h (log2f): New declaration.
20416         * lib/log2f.c: New file.
20417         * m4/log2f.m4: New file.
20418         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
20419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
20420         REPLACE_LOG2F.
20421         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
20422         REPLACE_LOG2F.
20423         * modules/log2f: New file.
20424         * tests/test-math-c++.cc: Check the declaration of log2f.
20425         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
20426         and OSF/1 and Cygwin problems.
20428 2012-03-11  Bruno Haible  <bruno@clisp.org>
20430         Tests for module 'log2'.
20431         * modules/log2-tests: New file.
20432         * tests/test-log2.c: New file.
20433         * tests/test-log2.h: New file.
20435         New module 'log2'.
20436         * lib/math.in.h (log2): New declaration.
20437         * lib/log2.c: New file.
20438         * m4/log2.m4: New file.
20439         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
20440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
20441         REPLACE_LOG2.
20442         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
20443         REPLACE_LOG2.
20444         * modules/log2: New file.
20445         * tests/test-math-c++.cc: Check the declaration of log2.
20446         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
20447         and OSF/1 and Cygwin problems.
20449 2012-03-11  Bruno Haible  <bruno@clisp.org>
20451         exp2* tests: More tests.
20452         * tests/test-exp2.h (test_function): Test all integral arguments that
20453         don't need to overflow or denormalized numbers.
20454         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
20455         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
20456         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
20458 2012-03-10  Bruno Haible  <bruno@clisp.org>
20460         log1pl-ieee: Work around test failure on AIX 7.1.
20461         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
20463         log1pl-ieee: Work around test failure on IRIX 6.5.
20464         * m4/log1pl-ieee.m4: New file.
20465         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
20466         test whether log1pl works with a minus zero argument. Replace it if
20467         not.
20468         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
20469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
20470         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
20471         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
20472         (Depends-on): Update conditions.
20473         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
20474         m4/signbit.m4.
20475         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
20476         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
20478         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
20479         * m4/log1pf-ieee.m4: New file.
20480         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
20481         test whether log1pf works with a minus zero argument. Replace it if
20482         not.
20483         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
20484         m4/signbit.m4.
20485         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
20486         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
20488         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
20489         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
20490         (configure.ac): Require gl_FUNC_LOG1PF.
20492         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
20493         * m4/log1p-ieee.m4: New file.
20494         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
20495         whether log1p works with a minus zero argument. Replace it if not.
20496         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
20497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
20498         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
20499         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
20500         (Depends-on): Update conditions.
20501         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
20502         m4/signbit.m4.
20503         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
20504         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
20506         Tests for module 'log1pl-ieee'.
20507         * modules/log1pl-ieee-tests: New file.
20508         * tests/test-log1pl-ieee.c: New file.
20510         New module 'log1pl-ieee'.
20511         * modules/log1pl-ieee: New file.
20513         Tests for module 'log1p-ieee'.
20514         * modules/log1p-ieee-tests: New file.
20515         * tests/test-log1p-ieee.c: New file.
20517         New module 'log1p-ieee'.
20518         * modules/log1p-ieee: New file.
20520         Tests for module 'log1pf-ieee'.
20521         * modules/log1pf-ieee-tests: New file.
20522         * tests/test-log1pf-ieee.c: New file.
20523         * tests/test-log1p-ieee.h: New file.
20525         New module 'log1pf-ieee'.
20526         * modules/log1pf-ieee: New file.
20528 2012-03-10  Bruno Haible  <bruno@clisp.org>
20530         Tests for module 'log1pl'.
20531         * modules/log1pl-tests: New file.
20532         * tests/test-log1pl.c: New file.
20534         New module 'log1pl'.
20535         * lib/math.in.h (log1pl): New declaration.
20536         * lib/log1pl.c: New file.
20537         * m4/log1pl.m4: New file.
20538         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
20539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
20540         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
20541         * modules/log1pl: New file.
20542         * tests/test-math-c++.cc: Check the declaration of log1pl.
20543         * doc/posix-functions/log1pl.texi: Mention the new module.
20545 2012-03-10  Bruno Haible  <bruno@clisp.org>
20547         Tests for module 'log1pf'.
20548         * modules/log1pf-tests: New file.
20549         * tests/test-log1pf.c: New file.
20551         New module 'log1pf'.
20552         * lib/math.in.h (log1pf): New declaration.
20553         * lib/log1pf.c: New file.
20554         * m4/log1pf.m4: New file.
20555         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
20556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
20557         REPLACE_LOG1PF.
20558         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
20559         REPLACE_LOG1PF.
20560         * modules/log1pf: New file.
20561         * tests/test-math-c++.cc: Check the declaration of log1pf.
20562         * doc/posix-functions/log1pf.texi: Mention the new module.
20564 2012-03-10  Bruno Haible  <bruno@clisp.org>
20566         log1p tests: More tests.
20567         * tests/test-log1p.h: New file.
20568         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
20569         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
20570         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
20571         (main): Invoke test_function.
20573         log1p: Provide replacement for Minix and MSVC.
20574         * lib/math.in.h (log1p): New declaration.
20575         * lib/log1p.c: New file.
20576         * m4/log1p.m4: New file.
20577         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
20578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
20579         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
20580         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
20581         (Depends-on): Add math, isnand, log, round.
20582         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
20583         HAVE_LOG1P is 0.
20584         * tests/test-math-c++.cc: Check the declaration of log1p.
20585         * doc/posix-functions/log1p.texi: Mention the replacement.
20587 2012-03-10  Bruno Haible  <bruno@clisp.org>
20589         math tests: Small simplification.
20590         * tests/test-exp.h (test_function): Use the same err_bound for
20591         'double' on platforms with sizeof (long double) == sizeof (double)
20592         than on platforms with sizeof (long double) > sizeof (double).
20593         * tests/test-exp2.h (test_function): Likewise.
20594         * tests/test-expm1.h (test_function): Likewise.
20595         * tests/test-log.h (test_function): Likewise.
20597 2012-03-10  Bruno Haible  <bruno@clisp.org>
20599         Fix some comments.
20600         * lib/expl.c: Fix an ambiguous comment.
20601         * lib/expm1.c: Likewise.
20602         * lib/expm1l.c: Likewise.
20603         * lib/exp2.c: Likewise.
20604         * lib/exp2l.c: Likewise.
20606 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
20608         regex: allow inclusion of <regex.h> before <limits.h>
20609         Without this patch, portable programs had to include <limits.h> before
20610         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
20611         I ran into this problem with a test version of GNU grep on Solaris 8.
20612         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
20613         This is done conditionally so that this change can be merged
20614         back to glibc.
20615         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
20616         using the included regex.
20618         fts: depend on fdopendir
20619         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
20620         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
20621         problem was introduced when fdopendir was split out.
20623 2012-03-10  Bruno Haible  <bruno@clisp.org>
20625         Remove unused variables.
20626         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
20627         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
20629 2012-03-10  Bruno Haible  <bruno@clisp.org>
20631         isnanf-nolibm: Fix last commit.
20632         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
20634         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
20635         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
20637 2012-03-10  Bruno Haible  <bruno@clisp.org>
20639         logf-ieee: Work around test failure on NetBSD 5.1.
20640         * m4/logf-ieee.m4: New file.
20641         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
20642         whether logf works with a negative argument. Replace it if not.
20643         * lib/logf.c (logf): For negative arguments, return NaN.
20644         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
20645         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
20646         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
20648         logf-ieee: Work around test failure on Solaris 9.
20649         * modules/logf-ieee (Depends-on): Add log-ieee.
20650         (configure.ac): Require gl_FUNC_LOGF.
20652         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20653         * m4/log-ieee.m4: New file.
20654         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
20655         log works with a negative argument. Replace it if not.
20656         * lib/log.c (log): For negative arguments, return NaN.
20657         * modules/log-ieee (Files): Add m4/log-ieee.m4.
20658         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
20659         * doc/posix-functions/log.texi: Mention the log-ieee module.
20661         Tests for module 'logl-ieee'.
20662         * modules/logl-ieee-tests: New file.
20663         * tests/test-logl-ieee.c: New file.
20665         New module 'logl-ieee'.
20666         * modules/logl-ieee: New file.
20668         Tests for module 'log-ieee'.
20669         * modules/log-ieee-tests: New file.
20670         * tests/test-log-ieee.c: New file.
20672         New module 'log-ieee'.
20673         * modules/log-ieee: New file.
20675         Tests for module 'logf-ieee'.
20676         * modules/logf-ieee-tests: New file.
20677         * tests/test-logf-ieee.c: New file.
20678         * tests/test-log-ieee.h: New file.
20680         New module 'logf-ieee'.
20681         * modules/logf-ieee: New file.
20683 2012-03-10  Bruno Haible  <bruno@clisp.org>
20685         log: Fix bug introduced on 2012-03-09.
20686         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
20688 2012-03-10  Pádraig Brady  <P@draigBrady.com>
20690         timer-time: link explicitly with pthreads on glibc
20691         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
20692         to support static linking, when newer glibc is
20693         detected, as that contains pthread emulation of
20694         POSIX timer functions where required.
20695         * modules/timer-time: Depend on threadlib to
20696         pull in the appropriate library to link.
20698 2012-03-10  Bruno Haible  <bruno@clisp.org>
20700         log* tests: More tests.
20701         * tests/test-log.h: New file.
20702         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
20703         (main): Invoke test_function.
20704         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
20705         (main): Invoke test_function.
20706         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
20707         (main): Invoke test_function.
20708         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20709         tests/randomd.c.
20710         (Makefile.am): Add randomd.c to test_log_SOURCES.
20711         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20712         tests/randomf.c.
20713         (Makefile.am): Add randomf.c to test_logf_SOURCES.
20714         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20715         tests/randoml.c.
20716         (Depends-on): Add 'float'.
20717         (Makefile.am): Add randoml.c to test_logl_SOURCES.
20719 2012-03-09  Bruno Haible  <bruno@clisp.org>
20721         logl: Work around OSF/1 5.1 bug.
20722         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
20723         * lib/logl.c (logl): If logl exists, use it and provide just the
20724         workaround.
20725         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
20726         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
20727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
20728         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
20729         * modules/logl (configure.ac): Consider REPLACE_LOGL.
20730         (Depends-on): Update conditions.
20731         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
20733 2012-03-09  Bruno Haible  <bruno@clisp.org>
20735         logf: Work around OSF/1 5.1 bug.
20736         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
20737         * lib/logf.c (logf): If logf exists, use it and provide just the
20738         workaround.
20739         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
20740         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
20741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
20742         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
20743         * modules/logf (configure.ac): Consider REPLACE_LOGF.
20744         (Depends-on): Update conditions.
20745         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
20747 2012-03-09  Bruno Haible  <bruno@clisp.org>
20749         log: Work around OSF/1 5.1 bug.
20750         * lib/math.in.h (log): New declaration.
20751         * lib/log.c: New file.
20752         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
20753         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
20754         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
20755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
20756         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
20757         * modules/log (Files): Add lib/log.c.
20758         (Depends-on): Add math.
20759         (configure.ac): If REPLACE_LOG is 1, compile an override.
20760         * tests/test-math-c++.cc: Check the declaration of log.
20761         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
20763 2012-03-09  Jim Meyering  <meyering@redhat.com>
20765         readtokens.c: adjust wording in a comment
20766         * lib/readtokens.c: Insert omitted "that" in a comment.
20768 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20770         modechange: add notations +40, 00440, etc.
20771         * lib/modechange.c (mode_compile): Support new notations
20772         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
20774 2012-03-08  Bruno Haible  <bruno@clisp.org>
20776         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
20777         * m4/exp2l-ieee.m4: New file.
20778         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
20779         test whether exp2l works with a NaN argument and with a negative
20780         infinity argument. Replace it if not.
20781         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
20782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
20783         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
20784         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
20785         (Depends-on): Update conditions.
20786         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
20787         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
20788         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
20790         Tests for module 'exp2l-ieee'.
20791         * modules/exp2l-ieee-tests: New file.
20792         * tests/test-exp2l-ieee.c: New file.
20794         New module 'exp2l-ieee'.
20795         * modules/exp2l-ieee: New file.
20797         Tests for module 'exp2-ieee'.
20798         * modules/exp2-ieee-tests: New file.
20799         * tests/test-exp2-ieee.c: New file.
20801         New module 'exp2-ieee'.
20802         * modules/exp2-ieee: New file.
20804         Tests for module 'exp2f-ieee'.
20805         * modules/exp2f-ieee-tests: New file.
20806         * tests/test-exp2f-ieee.c: New file.
20807         * tests/test-exp2-ieee.h: New file.
20809         New module 'exp2f-ieee'.
20810         * modules/exp2f-ieee: New file.
20812 2012-03-08  Bruno Haible  <bruno@clisp.org>
20814         Tests for module 'exp2l'.
20815         * modules/exp2l-tests: New file.
20816         * tests/test-exp2l.c: New file.
20818         New module 'exp2l'.
20819         * lib/math.in.h (exp2l): New declaration.
20820         * lib/exp2l.c: New file.
20821         * lib/expl-table.c: New file, extracted from lib/expl.c.
20822         * lib/expl.c (gl_expl_table): New declaration.
20823         (expl): Remove expl_table. Update reference.
20824         * m4/exp2l.m4: New file.
20825         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
20826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
20827         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
20828         * modules/exp2l: New file.
20829         * modules/expl (Files): Add lib/expl-table.c.
20830         (configure.ac): Compile also expl-table.c.
20831         * tests/test-math-c++.cc: Check the declaration of exp2l.
20832         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
20833         problem.
20835 2012-03-08  Bruno Haible  <bruno@clisp.org>
20837         Tests for module 'exp2f'.
20838         * modules/exp2f-tests: New file.
20839         * tests/test-exp2f.c: New file.
20841         New module 'exp2f'.
20842         * lib/math.in.h (exp2f): New declaration.
20843         * lib/exp2f.c: New file.
20844         * m4/exp2f.m4: New file.
20845         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
20846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
20847         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
20848         * modules/exp2f: New file.
20849         * tests/test-math-c++.cc: Check the declaration of exp2f.
20850         * doc/posix-functions/exp2f.texi: Mention the new module and the
20851         IRIX problem.
20853 2012-03-08  Bruno Haible  <bruno@clisp.org>
20855         Tests for module 'exp2'.
20856         * modules/exp2-tests: New file.
20857         * tests/test-exp2.c: New file.
20858         * tests/test-exp2.h: New file.
20860         New module 'exp2'.
20861         * lib/math.in.h (exp2): New declaration.
20862         * lib/exp2.c: New file.
20863         * m4/exp2.m4: New file.
20864         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
20865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
20866         REPLACE_EXP2.
20867         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
20868         REPLACE_EXP2.
20869         * modules/exp2: New file.
20870         * tests/test-math-c++.cc: Check the declaration of exp2.
20871         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
20872         and OpenBSD problems.
20874 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20876         savedir: fix comment typo
20877         * lib/savedir.c (savedirstream): Fix typo in comment.
20879 2012-03-08  Bruno Haible  <bruno@clisp.org>
20881         test-readtokens.c: use const; remove unwarranted cast
20882         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
20884 2012-03-08  Bruno Haible  <bruno@clisp.org>
20886         fmal: Avoid compilation error on AIX.
20887         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
20888         AIX 5.2..7.1.
20890 2012-03-08  Bruno Haible  <bruno@clisp.org>
20892         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
20893         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
20894         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
20895         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
20896         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
20897         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
20898         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
20900 2012-03-08  Bruno Haible  <bruno@clisp.org>
20902         remainderf: Override buggy system function on IRIX 6.5.
20903         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
20904         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
20905         when it exists.
20906         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
20908 2012-03-08  Jim Meyering  <meyering@redhat.com>
20910         test-readtokens.c: avoid const-related compilation warnings
20911         * tests/test-readtokens.c: Avoid const-related compilation warnings.
20913 2012-03-07  Jim Meyering  <meyering@redhat.com>
20914             Bruno Haible  <bruno@clisp.org>
20916         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
20917         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
20918         tests/randomd.c.
20919         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
20920         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
20921         tests/randoml.c.
20922         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
20924 2012-03-07  Bruno Haible  <bruno@clisp.org>
20926         expm1l: Avoid compilation error on AIX.
20927         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
20928         AIX 5.2..7.1.
20930 2012-03-07  Bruno Haible  <bruno@clisp.org>
20932         expm1l: Don't override undeclared system function on IRIX 6.5.
20933         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
20934         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
20935         it exists. Set HAVE_DECL_EXPM1L.
20936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
20937         HAVE_EXPM1L.
20938         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
20939         HAVE_EXPM1L.
20940         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
20942 2012-03-07  Bruno Haible  <bruno@clisp.org>
20944         remainderl: Don't override undeclared system function on IRIX 6.5.
20945         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
20946         HAVE_REMAINDERL.
20947         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
20948         declared when it exists. Set HAVE_DECL_REMAINDERL.
20949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
20950         not HAVE_REMAINDERL.
20951         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
20952         HAVE_REMAINDERL.
20953         * doc/posix-functions/remainderl.texi: Mention missing declaration
20954         problem.
20956 2012-03-07  Bruno Haible  <bruno@clisp.org>
20958         rintf: Don't override undeclared system function on IRIX 6.5.
20959         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
20960         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
20961         exists. Set HAVE_DECL_RINTF.
20962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
20963         HAVE_RINTF.
20964         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
20965         HAVE_RINTF.
20966         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
20968 2012-03-07  Bruno Haible  <bruno@clisp.org>
20970         roundl: Avoid compilation error on AIX.
20971         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
20972         AIX 5.2..7.1.
20974 2012-03-07  Bruno Haible  <bruno@clisp.org>
20976         roundl: Don't override undeclared system function on IRIX 6.5.
20977         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
20978         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
20979         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
20980         * modules/roundl (configure.ac): For replacement code, test
20981         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
20982         (Depends-on): Update conditions.
20983         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
20985 2012-03-07  Bruno Haible  <bruno@clisp.org>
20987         roundf: Don't override undeclared system function on IRIX 6.5.
20988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
20989         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
20990         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
20991         * modules/roundf (configure.ac): For replacement code, test
20992         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
20993         (Depends-on): Update conditions.
20994         * modules/roundf-ieee (Depends-on): Update conditions.
20995         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
20997 2012-03-07  Bruno Haible  <bruno@clisp.org>
20999         round: Don't override undeclared system function on IRIX 6.5.
21000         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
21001         argument.
21002         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
21003         also when it is not declared. Set HAVE_ROUND. For replacement code,
21004         test HAVE_ROUND, not HAVE_DECL_ROUND.
21005         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
21006         not HAVE_DECL_ROUND.
21007         (Depends-on): Update conditions.
21008         * modules/round-ieee (Depends-on): Update conditions.
21009         * doc/posix-functions/round.texi: Mention the IRIX problem.
21011 2012-03-07  Bruno Haible  <bruno@clisp.org>
21013         copysignf: Don't override undeclared system function on IRIX 6.5.
21014         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
21015         HAVE_COPYSIGNF.
21016         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
21017         declared when it exists. Set HAVE_DECL_COPYSIGNF.
21018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
21019         not HAVE_COPYSIGNF.
21020         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
21021         HAVE_COPYSIGNF.
21022         * doc/posix-functions/copysignf.texi: Mention missing declaration
21023         problem.
21025 2012-03-07  Jim Meyering  <meyering@redhat.com>
21027         readtokens: add tests
21028         * modules/readtokens-tests: New file.
21029         * tests/test-readtokens.c: New file.
21031 2012-03-07  Jim Meyering  <meyering@redhat.com>
21033         quotearg: the module must now include quote.h
21034         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
21035         So must the module.
21036         * modules/quotearg (Files): Add quote.h.
21038 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
21040         readtokens: avoid core dumps with unusual calling patterns
21041         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
21042         * lib/readtokens.c: Include limits.h.
21043         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
21044         (readtoken): Don't cache the delimiters; the cache code was buggy
21045         if !delim && saved_delim, or if the new n_delim differs from the old.
21046         Also, it wasn't thread-safe.
21048 2012-03-07  Bruno Haible  <bruno@clisp.org>
21050         quote: Adhere to common module description layout.
21051         * modules/quote (Makefile.am): Add back empty section.
21053 2012-03-06  Akim Demaille  <demaille@gostai.com>
21055         quote: fuse into quotearg
21056         This patch is made for the benefit of Bison.
21057         quote does not leave the choice of the quoting style to the user.
21058         quoting_style provides poor customizability, yet quoting_options,
21059         which is very rich, is hidden inside quotearg.c.  So in order to
21060         allow quote customization, move its implementation to quotearg.c.
21061         * lib/quote.c: Remove.
21062         * modules/quote: Adjust.
21063         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
21064         warning: provide all the members of literal structs.
21065         (quote_quoting_options): New.
21066         (quote, quote_n): Import implementation from quote.c.
21067         * lib/quote.h: Import the comments from quote.c.
21068         (quote_quoting_options): New.
21070 2012-03-06  Bruno Haible  <bruno@clisp.org>
21072         Tests for module 'expm1l-ieee'.
21073         * modules/expm1l-ieee-tests: New file.
21074         * tests/test-expm1l-ieee.c: New file.
21076         New module 'expm1l-ieee'.
21077         * modules/expm1l-ieee: New file.
21079         Tests for module 'expm1f-ieee'.
21080         * modules/expm1f-ieee-tests: New file.
21081         * tests/test-expm1f-ieee.c: New file.
21083         New module 'expm1f-ieee'.
21084         * modules/expm1f-ieee: New file.
21086         Tests for module 'expm1-ieee'.
21087         * modules/expm1-ieee-tests: New file.
21088         * tests/test-expm1-ieee.c: New file.
21089         * tests/test-expm1-ieee.h: New file.
21091         New module 'expm1-ieee'.
21092         * modules/expm1-ieee: New file.
21093         * m4/expm1-ieee.m4: New file.
21094         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
21095         whether expm1 works with a minus zero argument. Replace it if not.
21096         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
21097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
21098         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
21099         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
21100         (Depends-on): Update conditions.
21101         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
21102         AIX problem.
21104 2012-03-06  Bruno Haible  <bruno@clisp.org>
21106         Work around expm1f bug on IRIX 6.5.
21107         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
21108         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
21109         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
21110         not work.
21111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
21112         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
21113         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
21114         (Depends-on): Update conditions.
21115         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
21117 2012-03-06  Bruno Haible  <bruno@clisp.org>
21119         Tests for module 'expm1l'.
21120         * modules/expm1l-tests: New file.
21121         * tests/test-expm1l.c: New file.
21123         New module 'expm1l'.
21124         * lib/math.in.h (expm1l): New declaration.
21125         * lib/expm1l.c: New file.
21126         * m4/expm1l.m4: New file.
21127         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
21128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
21129         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
21130         * modules/expm1l: New file.
21131         * tests/test-math-c++.cc: Check the declaration of expm1l.
21132         * doc/posix-functions/expm1l.texi: Mention the new module.
21134 2012-03-06  Bruno Haible  <bruno@clisp.org>
21136         Tests for module 'expm1f'.
21137         * modules/expm1f-tests: New file.
21138         * tests/test-expm1f.c: New file.
21140         New module 'expm1f'.
21141         * lib/math.in.h (expm1f): New declaration.
21142         * lib/expm1f.c: New file.
21143         * m4/expm1f.m4: New file.
21144         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
21145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
21146         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
21147         * modules/expm1f: New file.
21148         * tests/test-math-c++.cc: Check the declaration of expm1f.
21149         * doc/posix-functions/expm1f.texi: Mention the new module.
21151 2012-03-06  Bruno Haible  <bruno@clisp.org>
21153         Tests for module 'expm1'.
21154         * modules/expm1-tests: New file.
21155         * tests/test-expm1.c: New file.
21156         * tests/test-expm1.h: New file.
21158         New module 'expm1'.
21159         * lib/math.in.h (expm1): New declaration.
21160         * lib/expm1.c: New file.
21161         * m4/expm1.m4: New file.
21162         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
21163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
21164         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
21165         * modules/expm1: New file.
21166         * tests/test-math-c++.cc: Check the declaration of expm1.
21167         * doc/posix-functions/expm1.texi: Mention the new module.
21169 2012-03-06  Bruno Haible  <bruno@clisp.org>
21171         math: Ensure declarations of math functions.
21172         * modules/acosf (Depends-on): Add 'extensions'.
21173         * modules/asinf (Depends-on): Likewise.
21174         * modules/atan2f (Depends-on): Likewise.
21175         * modules/atanf (Depends-on): Likewise.
21176         * modules/cbrt (Depends-on): Likewise.
21177         * modules/cbrtf (Depends-on): Likewise.
21178         * modules/cbrtl (Depends-on): Likewise.
21179         * modules/copysignf (Depends-on): Likewise.
21180         * modules/copysignl (Depends-on): Likewise.
21181         * modules/cosf (Depends-on): Likewise.
21182         * modules/coshf (Depends-on): Likewise.
21183         * modules/expf (Depends-on): Likewise.
21184         * modules/fabsf (Depends-on): Likewise.
21185         * modules/fabsl (Depends-on): Likewise.
21186         * modules/fmaf (Depends-on): Likewise.
21187         * modules/fmal (Depends-on): Likewise.
21188         * modules/fmodf (Depends-on): Likewise.
21189         * modules/fmodl (Depends-on): Likewise.
21190         * modules/frexpf (Depends-on): Likewise.
21191         * modules/frexpl (Depends-on): Likewise.
21192         * modules/hypot (Depends-on): Likewise.
21193         * modules/hypotf (Depends-on): Likewise.
21194         * modules/hypotl (Depends-on): Likewise.
21195         * modules/ldexpf (Depends-on): Likewise.
21196         * modules/ldexpl (Depends-on): Likewise.
21197         * modules/log10f (Depends-on): Likewise.
21198         * modules/log10l (Depends-on): Likewise.
21199         * modules/log1p (Depends-on): Likewise.
21200         * modules/logb (Depends-on): Likewise.
21201         * modules/logf (Depends-on): Likewise.
21202         * modules/modff (Depends-on): Likewise.
21203         * modules/modfl (Depends-on): Likewise.
21204         * modules/powf (Depends-on): Likewise.
21205         * modules/remainderf (Depends-on): Likewise.
21206         * modules/remainderl (Depends-on): Likewise.
21207         * modules/rintf (Depends-on): Likewise.
21208         * modules/rintl (Depends-on): Likewise.
21209         * modules/sinf (Depends-on): Likewise.
21210         * modules/sinhf (Depends-on): Likewise.
21211         * modules/sqrtf (Depends-on): Likewise.
21212         * modules/tanf (Depends-on): Likewise.
21213         * modules/tanhf (Depends-on): Likewise.
21214         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
21215         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
21216         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
21217         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
21218         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
21219         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
21220         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
21221         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
21222         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
21223         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
21224         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
21225         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
21226         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
21227         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
21228         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
21229         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
21230         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21231         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21232         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
21233         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
21234         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21235         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
21236         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
21237         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
21238         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
21239         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
21240         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
21241         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21242         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
21243         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21244         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21245         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
21246         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21247         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21248         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
21249         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
21250         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
21251         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
21252         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
21253         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
21254         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
21256 2012-03-06  Bruno Haible  <bruno@clisp.org>
21258         math: Update module names in warnings.
21259         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21260         tanl): Use specific module name in warn-on-use warning.
21262 2012-03-06  Bruno Haible  <bruno@clisp.org>
21264         expl: Simplify computation.
21265         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
21267 2012-03-05  Bruno Haible  <bruno@clisp.org>
21269         exp* tests: More tests.
21270         * tests/test-exp.h: New file.
21271         * tests/test-exp.c: Include <float.h> and test-exp.h.
21272         (main): Invoke test_function.
21273         * tests/test-expf.c: Include <float.h> and test-exp.h.
21274         (main): Invoke test_function.
21275         * tests/test-expl.c: Include <float.h> and test-exp.h.
21276         (main): Invoke test_function.
21277         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
21278         (Makefile.am): Add randomd.c to test_exp_SOURCES.
21279         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
21280         (Makefile.am): Add randomf.c to test_expf_SOURCES.
21281         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
21282         (Depends-on): Add 'float'.
21283         (Makefile.am): Add randoml.c to test_expl_SOURCES.
21285         expl: Fix precision of computed result.
21286         * lib/expl.c: Completely rewritten.
21287         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
21288         (Maintainer): Add me.
21289         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
21291 2012-03-05  Bruno Haible  <bruno@clisp.org>
21293         cbrt* tests: More tests.
21294         * tests/test-cbrt.h: New file.
21295         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
21296         (main): Invoke test_function.
21297         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
21298         (main): Invoke test_function.
21299         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
21300         (main): Invoke test_function.
21301         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
21302         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
21303         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
21304         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
21305         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
21306         (Depends-on): Add 'float'.
21307         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
21309 2012-03-05  Bruno Haible  <bruno@clisp.org>
21311         hypot* tests: More tests.
21312         * tests/test-hypot.h: New file, partially extracted from
21313         tests/test-hypotl.c.
21314         * tests/test-hypot.c: Include test-hypot.h.
21315         (main): Invoke test_function.
21316         * tests/test-hypotf.c: Include test-hypot.h.
21317         (main): Invoke test_function.
21318         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
21319         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
21320         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
21321         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
21322         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
21323         tests/randomf.c.
21324         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
21325         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
21326         tests/randoml.c.
21327         (Depends-on): Add 'fpucw', 'float'.
21328         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
21330 2012-03-05  Bruno Haible  <bruno@clisp.org>
21332         fpucw: Doc about FreeBSD.
21333         * lib/fpucw.h: Mention FreeBSD in comments.
21335 2012-03-04  Bruno Haible  <bruno@clisp.org>
21337         sqrt* tests: More tests.
21338         * tests/test-sqrt.h: New file.
21339         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
21340         (main): Invoke test_function.
21341         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
21342         (main): Invoke test_function.
21343         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
21344         (main): Invoke test_function.
21345         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
21346         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
21347         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
21348         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
21349         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
21350         (Depends-on): Add 'float'.
21351         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
21353 2012-03-04  Bruno Haible  <bruno@clisp.org>
21355         remainder* tests: More tests.
21356         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
21357         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
21358         (main): Invoke test_function.
21359         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
21360         (main): Invoke test_function.
21361         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
21362         (main): Invoke test_function.
21363         * modules/remainder-tests (Files): Add tests/test-remainder.h,
21364         tests/randomd.c.
21365         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
21366         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
21367         tests/randomf.c.
21368         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
21369         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
21370         tests/randoml.c.
21371         (Depends-on): Add 'float'.
21372         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
21374 2012-03-04  Bruno Haible  <bruno@clisp.org>
21376         remainder, remainderf, remainderl: Fix computation for large quotients.
21377         * lib/remainder.c: Completely rewritten.
21378         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
21379         USE_FLOAT.
21380         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
21381         USE_LONG_DOUBLE.
21382         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
21383         isnand, isinf. Remove round, fma.
21384         * modules/remainderf (Files): Add lib/remainder.c.
21385         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
21386         Remove roundf, fmaf.
21387         * modules/remainderl (Files): Add lib/remainder.c.
21388         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
21389         isinf. Remove roundl, fmal.
21390         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
21391         REMAINDER_LIBM.
21392         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
21393         REMAINDERF_LIBM.
21394         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
21395         REMAINDERL_LIBM.
21397 2012-03-04  Bruno Haible  <bruno@clisp.org>
21399         fmod* tests: More tests.
21400         * tests/test-fmod.h (my_ldexp): New function.
21401         (test_function): Reduce amount of random numbers to test. Add tests
21402         of very large quotients x / y.
21403         * tests/test-fmod.c (MAX_EXP): New macro.
21404         * tests/test-fmodf.c (MAX_EXP): Likewise.
21405         * tests/test-fmodl.c (MAX_EXP): Likewise.
21407 2012-03-04  Bruno Haible  <bruno@clisp.org>
21409         fmod, fmodl: Fix computation for large quotients x / y.
21410         * lib/fmod.c: Completely rewritten.
21411         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
21412         USE_LONG_DOUBLE.
21413         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
21414         isnand. Remove fma.
21415         * modules/fmodl (Files): Add lib/fmod.c.
21416         (Depends-on): Add float, isfinite, signbit, fabsl,
21417         frexpl, ldexpl, isnanl. Remove fma.
21418         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
21419         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
21421 2012-03-03  Bruno Haible  <bruno@clisp.org>
21423         fmod* tests: More tests.
21424         * tests/test-fmod.h: New file.
21425         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
21426         (main): Invoke test_function.
21427         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
21428         (main): Invoke test_function.
21429         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
21430         (main): Invoke test_function.
21431         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
21432         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
21433         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
21434         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
21435         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
21436         (Depends-on): Add 'float'.
21437         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
21439 2012-03-03  Bruno Haible  <bruno@clisp.org>
21441         rint* tests: More tests.
21442         * tests/test-rint.h: New file, partially extracted from
21443         tests/test-rintl.c.
21444         * tests/test-rint.c: Include test-rint.h.
21445         (main): Invoke test_function.
21446         * tests/test-rintf.c: Include test-rint.h.
21447         (main): Invoke test_function.
21448         * tests/test-rintl.c: Include test-rint.h.
21449         (main): Invoke test_function.
21450         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
21451         (Makefile.am): Add randomd.c to test_rint_SOURCES.
21452         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
21453         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
21454         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
21455         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
21457 2012-03-03  Bruno Haible  <bruno@clisp.org>
21459         modf* tests: More tests.
21460         * tests/test-modf.h: New file.
21461         * tests/test-modf.c: Include <float.h> and test-modf.h.
21462         (main): Invoke test_function.
21463         * tests/test-modff.c: Include <float.h> and test-modf.h.
21464         (main): Invoke test_function.
21465         * tests/test-modfl.c: Include <float.h> and test-modf.h.
21466         (main): Invoke test_function.
21467         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
21468         (Makefile.am): Add randomd.c to test_modf_SOURCES.
21469         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
21470         (Makefile.am): Add randomf.c to test_modff_SOURCES.
21471         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
21472         (Depends-on): Add 'float'.
21473         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
21475 2012-03-03  Bruno Haible  <bruno@clisp.org>
21477         fabs* tests: More tests.
21478         * tests/test-fabs.h: New file, partially extracted from
21479         tests/test-fabsl.c.
21480         * tests/test-fabs.c (RANDOM): New macro.
21481         * tests/test-fabsf.c (RANDOM): New macro.
21482         * tests/test-fabsl.c (RANDOM): New macro.
21483         * modules/fabs-tests (Files): Add tests/randomd.c.
21484         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
21485         * modules/fabsf-tests (Files): Add tests/randomf.c.
21486         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
21487         * modules/fabsl-tests (Files): Add tests/randoml.c.
21488         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
21490 2012-03-03  Bruno Haible  <bruno@clisp.org>
21492         ldexp* tests: More tests.
21493         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
21494         * tests/test-ldexp.c (RANDOM): New macro.
21495         * tests/test-ldexpf.c (RANDOM): New macro.
21496         * tests/test-ldexpl.c (RANDOM): New macro.
21497         * modules/ldexp-tests (Files): Add tests/randomd.c.
21498         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
21499         * modules/ldexpf-tests (Files): Add tests/randomf.c.
21500         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
21501         * modules/ldexpl-tests (Files): Add tests/randoml.c.
21502         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
21504 2012-03-03  Bruno Haible  <bruno@clisp.org>
21506         frexp* tests: More tests.
21507         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
21508         * tests/test-frexp.c (RANDOM): New macro.
21509         * tests/test-frexpf.c (RANDOM): New macro.
21510         * tests/test-frexpl.c (RANDOM): New macro.
21511         * modules/frexp-tests (Files): Add tests/randomd.c.
21512         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
21513         * modules/frexpf-tests (Files): Add tests/randomf.c.
21514         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
21515         * modules/frexpl-tests (Files): Add tests/randoml.c.
21516         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
21518 2012-03-03  Bruno Haible  <bruno@clisp.org>
21520         Support for pseudo-random numbers in tests.
21521         * tests/randomf.c: New file.
21522         * tests/randomd.c: New file.
21523         * tests/randoml.c: New file.
21524         * tests/macros.h (randomf, randomd, randoml): New declarations.
21526 2012-03-03  Bruno Haible  <bruno@clisp.org>
21528         frexp* tests: Refactor.
21529         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
21530         * tests/test-frexp.c: Include and use it.
21531         * tests/test-frexpf.c: Likewise.
21532         * tests/test-frexpl.c: Likewise.
21533         * modules/frexp-tests (Files): Add tests/test-frexp.h.
21534         * modules/frexpf-tests (Files): Likewise.
21535         * modules/frexpl-tests (Files): Likewise.
21537 2012-03-02  Jim Meyering  <meyering@redhat.com>
21539         maint: don't specify XZ_OPT=-9ev in dist-related rule
21540         Using xz's -9 option is warranted only if you have a very large
21541         tarball (see xz's documentation for the sizes vs. presets), and
21542         requires 64MiB of memory at decompression time.
21543         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
21544         Automake's default of just "-e" is fine.  Override on a
21545         per-package basis by setting XZ_OPT e.g., in cfg.mk.
21547 2012-03-01  Eric Blake  <eblake@redhat.com>
21549         maint.mk: allow announcement for non-gnulib project
21550         * maint.mk (announcement): Skip gnulib version if not used.
21552 2012-03-01  Jim Meyering  <meyering@redhat.com>
21554         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
21555         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
21556         envvar settings cannot interfere.  Otherwise, setting envvars like
21557         prohibit=foo require=bar, etc. would cause spurious test failures.
21559 2012-03-01  Eric Blake  <eblake@redhat.com>
21561         maint.mk: add per-line exclusions to prohibitions
21562         * maint.mk (_sc_search_regexp): Add $exclude parameter.
21563         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21564         (sc_const_long_option): Use it.
21566 2012-03-01  Bruno Haible  <bruno@clisp.org>
21568         Tests for module 'expl-ieee'.
21569         * modules/expl-ieee-tests: New file.
21570         * tests/test-expl-ieee.c: New file.
21572         New module 'expl-ieee'.
21573         * modules/expl-ieee: New file.
21575         Tests for module 'exp-ieee'.
21576         * modules/exp-ieee-tests: New file.
21577         * tests/test-exp-ieee.c: New file.
21579         New module 'exp-ieee'.
21580         * modules/exp-ieee: New file.
21582         Tests for module 'expf-ieee'.
21583         * modules/expf-ieee-tests: New file.
21584         * tests/test-expf-ieee.c: New file.
21585         * tests/test-exp-ieee.h: New file.
21587         New module 'expf-ieee'.
21588         * modules/expf-ieee: New file.
21590 2012-02-29  Bruno Haible  <bruno@clisp.org>
21592         cbrtl-ieee: Work around test failure on IRIX 6.5.
21593         * m4/cbrtl-ieee.m4: New file.
21594         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
21595         test whether cbrtl works with a minus zero argument. Replace it if not.
21596         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
21597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
21598         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
21599         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
21600         (Depends-on): Update conditions.
21601         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
21602         m4/signbit.m4.
21603         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
21604         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
21605         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
21607         Tests for module 'cbrtl-ieee'.
21608         * modules/cbrtl-ieee-tests: New file.
21609         * tests/test-cbrtl-ieee.c: New file.
21611         New module 'cbrtl-ieee'.
21612         * modules/cbrtl-ieee: New file.
21614         Tests for module 'cbrt-ieee'.
21615         * modules/cbrt-ieee-tests: New file.
21616         * tests/test-cbrt-ieee.c: New file.
21618         New module 'cbrt-ieee'.
21619         * modules/cbrt-ieee: New file.
21621         Tests for module 'cbrtf-ieee'.
21622         * modules/cbrtf-ieee-tests: New file.
21623         * tests/test-cbrtf-ieee.c: New file.
21624         * tests/test-cbrt-ieee.h: New file.
21626         New module 'cbrtf-ieee'.
21627         * modules/cbrtf-ieee: New file.
21629 2012-02-29  Bruno Haible  <bruno@clisp.org>
21631         cbrtf: Work around bug in IRIX 6.5 system function.
21632         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
21633         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
21634         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
21635         work.
21636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
21637         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
21638         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
21639         (Depends-on): Update conditions.
21640         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
21642 2012-02-29  Bruno Haible  <bruno@clisp.org>
21644         Tests for module 'cbrtl'.
21645         * modules/cbrtl-tests: New file.
21646         * tests/test-cbrtl.c: New file.
21648         New module 'cbrtl'.
21649         * lib/math.in.h (cbrtl): New declaration.
21650         * lib/cbrtl.c: New file.
21651         * m4/cbrtl.m4: New file.
21652         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
21653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
21654         HAVE_DECL_CBRTL.
21655         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
21656         HAVE_DECL_CBRTL.
21657         * modules/cbrtl: New file.
21658         * tests/test-math-c++.cc: Check the declaration of cbrtl.
21659         * doc/posix-functions/cbrtl.texi: Mention the new module.
21661 2012-02-29  Bruno Haible  <bruno@clisp.org>
21663         Tests for module 'cbrtf'.
21664         * modules/cbrtf-tests: New file.
21665         * tests/test-cbrtf.c: New file.
21667         New module 'cbrtf'.
21668         * lib/math.in.h (cbrtf): New declaration.
21669         * lib/cbrtf.c: New file.
21670         * m4/cbrtf.m4: New file.
21671         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
21672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
21673         HAVE_DECL_CBRTF.
21674         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
21675         HAVE_DECL_CBRTF.
21676         * modules/cbrtf: New file.
21677         * tests/test-math-c++.cc: Check the declaration of cbrtf.
21678         * doc/posix-functions/cbrtf.texi: Mention the new module.
21680 2012-02-29  Bruno Haible  <bruno@clisp.org>
21682         cbrt: Provide replacement on MSVC and Minix.
21683         * lib/math.in.h (cbrt): New declaration.
21684         * lib/cbrt.c: New file.
21685         * m4/cbrt.m4: New file.
21686         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
21687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
21688         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
21689         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
21690         (Depends-on): Add dependencies.
21691         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
21692         * tests/test-math-c++.cc: Check the declaration of cbrt.
21693         * doc/posix-functions/cbrt.texi: Mention that the module provides a
21694         replacement.
21696 2012-02-29  Bruno Haible  <bruno@clisp.org>
21698         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
21699         * m4/hypotl-ieee.m4: New file.
21700         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
21701         test whether hypotl works with mixed NaN and Infinity arguments.
21702         Replace it if not.
21703         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
21704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
21705         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
21706         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
21707         (Depends-on): Update conditions.
21708         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
21709         (Depends-on): Add hypot-ieee.
21710         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
21711         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
21713         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
21714         * m4/hypotf-ieee.m4: New file.
21715         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
21716         test whether hypotf works with mixed NaN and Infinity arguments.
21717         Replace it if not.
21718         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
21719         (Depends-on): Add hypot-ieee.
21720         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
21721         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
21723         hypot-ieee: Work around test failure on OSF/1 and native Windows.
21724         * lib/math.in.h (hypot): New declaration.
21725         * lib/hypot.c: New file.
21726         * m4/hypot-ieee.m4: New file.
21727         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
21728         whether hypot works with mixed NaN and Infinity arguments. Replace it
21729         if not.
21730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
21731         REPLACE_HYPOT.
21732         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
21733         * modules/hypot (Files): Add lib/hypot.c.
21734         (Depends-on): Add dependencies.
21735         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
21736         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
21737         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
21738         * tests/test-math-c++.cc: Check the declaration of hypot.
21739         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
21741         Tests for module 'hypotl-ieee'.
21742         * modules/hypotl-ieee-tests: New file.
21743         * tests/test-hypotl-ieee.c: New file.
21745         New module 'hypotl-ieee'.
21746         * modules/hypotl-ieee: New file.
21748         Tests for module 'hypot-ieee'.
21749         * modules/hypot-ieee-tests: New file.
21750         * tests/test-hypot-ieee.c: New file.
21752         New module 'hypot-ieee'.
21753         * modules/hypot-ieee: New file.
21755         Tests for module 'hypotf-ieee'.
21756         * modules/hypotf-ieee-tests: New file.
21757         * tests/test-hypotf-ieee.c: New file.
21758         * tests/test-hypot-ieee.h: New file.
21760         New module 'hypotf-ieee'.
21761         * modules/hypotf-ieee: New file.
21763 2012-02-29  Bruno Haible  <bruno@clisp.org>
21765         Remove unused variables.
21766         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
21767         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21768         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21769         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21771 2012-02-29  Eric Blake  <eblake@redhat.com>
21773         termios: fix pid_t always, not just for tcgetsid
21774         * doc/posix-headers/termios.texi (termios.h): Mention problem.
21775         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
21776         just when building tcgetsid.
21778 2012-02-29  Bruno Haible  <bruno@clisp.org>
21780         Tests for module 'hypotl'.
21781         * modules/hypotl-tests: New file.
21782         * tests/test-hypotl.c: New file.
21784         New module 'hypotl'.
21785         * lib/math.in.h (hypotl): New declaration.
21786         * lib/hypotl.c: New file.
21787         * m4/hypotl.m4: New file.
21788         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
21790         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
21791         * modules/hypotl: New file.
21792         * tests/test-math-c++.cc: Check the hypotl declaration.
21793         * doc/posix-functions/hypotl.texi: Mention the new module.
21795 2012-02-29  Eric Blake  <eblake@redhat.com>
21797         tcgetsid: fix cygwin header bug
21798         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
21800         docs: update cygwin progress
21801         * doc/posix-functions/llround.texi (llround): Added in cygwin
21802         1.7.8.
21803         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
21804         * doc/glibc-functions/program_invocation_name.texi
21805         (program_invocation_name): Likewise.
21806         * doc/glibc-functions/program_invocation_short_name.texi
21807         (program_invocation_short_name): Likewise.
21808         * doc/glibc-functions/madvise.texi (madvise): Likewise.
21809         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
21810         Likewise.
21811         * doc/posix-functions/pthread_spin_destroy.texi
21812         (pthread_spin_destroy): Added in cygwin 1.7.10.
21813         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
21814         Likewise.
21815         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
21816         Likewise.
21817         * doc/posix-functions/pthread_spin_trylock.texi
21818         (pthread_spin_trylock): Likewise.
21819         * doc/posix-functions/pthread_spin_unlock.texi
21820         (pthread_spin_unlock): Likewise.
21821         * doc/posix-functions/pthread_setschedprio.texi
21822         (pthread_setschedprio): Likewise.
21823         * doc/posix-functions/pthread_attr_getstack.texi
21824         (pthread_attr_getstack): Likewise.
21825         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
21826         (pthread_attr_getstackaddr): Likewise.
21827         * doc/glibc-functions/pthread_getattr_np.texi
21828         (pthread_getattr_np): Likewise.
21829         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
21830         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
21831         * doc/posix-functions/clock_settime.texi (clock_settime):
21832         Likewise.
21833         * doc/posix-functions/pthread_attr_getguardsize.texi
21834         (pthread_attr_getguardsize): Likewise.
21835         * doc/posix-functions/pthread_attr_setguardsize.texi
21836         (pthread_attr_setguardsize): Likewise.
21837         * doc/posix-functions/pthread_attr_setstack.texi
21838         (pthread_attr_setstack): Likewise.
21839         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
21840         (pthread_attr_setstackaddr): Likewise.
21841         * doc/posix-functions/clock_getcpuclockid.texi
21842         (clock_getcpuclockid): Likewise.
21843         * doc/posix-functions/pthread_getcpuclockid.texi
21844         (pthread_getcpuclockid): Likewise.
21845         * doc/glibc-functions/error.texi (error): Likewise.
21846         * doc/glibc-functions/error_at_line.texi (error_at_line):
21847         Likewise.
21848         * doc/glibc-functions/error_message_count.texi
21849         (error_message_count): Likewise.
21850         * doc/glibc-functions/error_one_per_line.texi
21851         (error_one_per_line): Likewise.
21852         * doc/glibc-functions/error_print_progname.texi
21853         (error_print_progname): Likewise.
21854         * doc/posix-functions/pthread_condattr_getclock.texi
21855         (pthread_condattr_getclock): Likewise.
21856         * doc/posix-functions/pthread_condattr_setclock.texi
21857         (pthread_condattr_setclock): Likewise.
21858         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
21859         Likewise.
21860         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
21861         * doc/glibc-functions/getpt.texi (getpt): Likewise.
21862         * doc/glibc-functions/get_current_dir_name.texi
21863         (get_current_dir_name): Likewise.
21864         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
21865         Likewise.
21866         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
21867         wrong return type.
21868         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
21869         1.7.11.
21871 2012-02-29  Bruno Haible  <bruno@clisp.org>
21873         Tests for module 'hypotf'.
21874         * modules/hypotf-tests: New file.
21875         * tests/test-hypotf.c: New file.
21877         New module 'hypotf'.
21878         * lib/math.in.h (hypotf): New declaration.
21879         * lib/hypotf.c: New file.
21880         * m4/hypotf.m4: New file.
21881         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
21883         REPLACE_HYPOTF.
21884         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
21885         REPLACE_HYPOTF.
21886         * modules/hypotf: New file.
21887         * tests/test-math-c++.cc: Check the hypotf declaration.
21888         * doc/posix-functions/hypotf.texi: Mention the new module.
21890         hypot: Prepare for hypotf module.
21891         * m4/hypot.m4: New file.
21892         * modules/hypot (Files): Add m4/hypot.m4.
21893         (configure.ac): Invoke gl_FUNC_HYPOT.
21895 2012-02-29  Bruno Haible  <bruno@clisp.org>
21897         hypot tests: More tests.
21898         * tests/test-hypot.c: Include <float.h>.
21899         (main): Add tests about overflow and underflow.
21901 2012-02-29  Bruno Haible  <bruno@clisp.org>
21903         math code: Add comments.
21904         * lib/acosl.c: Add comment about related glibc source files.
21905         * lib/asinl.c: Likewise.
21906         * lib/atanl.c: Likewise.
21907         * lib/expl.c: Likewise.
21908         * lib/logl.c: Likewise.
21909         * lib/sincosl.c: Likewise.
21910         * lib/sinl.c: Likewise.
21911         * lib/tanl.c: Likewise.
21912         * lib/trigl.c: Likewise.
21913         * lib/cosl.c: Likewise. Fix comments.
21915 2012-02-28  Bruno Haible  <bruno@clisp.org>
21917         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
21918         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
21919         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
21920         HUGE_VALL are defined.
21921         (numeric_equald): Renamed from numeric_equal.
21922         (numeric_equalf, numeric_equall): New functions.
21923         (main): Check also HUGE_VALF, HUGE_VALL.
21924         * modules/math-tests (Files): Add tests/macros.h.
21925         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
21926         HUGE_VALL.
21928 2012-02-28  Bruno Haible  <bruno@clisp.org>
21930         doc: Move ISO C11 feature notes into POSIX chapters.
21931         * doc/posix-functions/aligned_alloc.texi: Renamed from
21932         doc/glibc-functions/aligned_alloc.texi.
21933         * doc/posix-functions/quick_exit.texi: Renamed from
21934         doc/glibc-functions/quick_exit.texi.
21935         * doc/posix-headers/uchar.texi: Renamed from
21936         doc/glibc-headers/uchar.texi.
21937         * doc/posix-functions/c16rtomb.texi: Renamed from
21938         doc/glibc-functions/c16rtomb.texi.
21939         * doc/posix-functions/c32rtomb.texi: Renamed from
21940         doc/glibc-functions/c32rtomb.texi.
21941         * doc/posix-functions/mbrtoc16.texi: Renamed from
21942         doc/glibc-functions/mbrtoc16.texi.
21943         * doc/posix-functions/mbrtoc32.texi: Renamed from
21944         doc/glibc-functions/mbrtoc32.texi.
21945         * doc/gnulib.texi: Update.
21946         (Glibc uchar.h): Remove section.
21947         Suggested by Eric Blake.
21949 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
21951         stdnoreturn: port to MSVC better
21952         MSVC standard headers use __declspec(noreturn), so #define noreturn
21953         to empty on that platform.  Reported by Bruno Haible in
21954         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
21955         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
21956         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
21958 2012-02-28  Bruno Haible  <bruno@clisp.org>
21960         doc: Mention new glibc headers and functions.
21961         * doc/glibc-headers/uchar.texi: New file.
21962         * doc/glibc-functions/aligned_alloc.texi: New file.
21963         * doc/glibc-functions/c16rtomb.texi: New file.
21964         * doc/glibc-functions/c32rtomb.texi: New file.
21965         * doc/glibc-functions/clock_adjtime.texi: New file.
21966         * doc/glibc-functions/fanotify_init.texi: New file.
21967         * doc/glibc-functions/fanotify_mark.texi: New file.
21968         * doc/glibc-functions/inet6_opt_append.texi: New file.
21969         * doc/glibc-functions/inet6_opt_find.texi: New file.
21970         * doc/glibc-functions/inet6_opt_finish.texi: New file.
21971         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
21972         * doc/glibc-functions/inet6_opt_init.texi: New file.
21973         * doc/glibc-functions/inet6_opt_next.texi: New file.
21974         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
21975         * doc/glibc-functions/inet6_rth_add.texi: New file.
21976         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
21977         * doc/glibc-functions/inet6_rth_init.texi: New file.
21978         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
21979         * doc/glibc-functions/inet6_rth_segments.texi: New file.
21980         * doc/glibc-functions/inet6_rth_space.texi: New file.
21981         * doc/glibc-functions/login.texi: New file.
21982         * doc/glibc-functions/mbrtoc16.texi: New file.
21983         * doc/glibc-functions/mbrtoc32.texi: New file.
21984         * doc/glibc-functions/name_to_handle_at.texi: New file.
21985         * doc/glibc-functions/ntp_gettimex.texi: New file.
21986         * doc/glibc-functions/open_by_handle_at.texi: New file.
21987         * doc/glibc-functions/prlimit.texi: New file.
21988         * doc/glibc-functions/process_vm_readv.texi: New file.
21989         * doc/glibc-functions/process_vm_writev.texi: New file.
21990         * doc/glibc-functions/recvmmsg.texi: New file.
21991         * doc/glibc-functions/scandirat.texi: New file.
21992         * doc/glibc-functions/sendmmsg.texi: New file.
21993         * doc/glibc-functions/setns.texi: New file.
21994         * doc/glibc-functions/timespec_get.texi: New file.
21995         * doc/gnulib.texi: Include them.
21996         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
21997         sections.
21998         Reported by Eric Blake.
22000 2012-02-28  Bruno Haible  <bruno@clisp.org>
22002         Avoid compilation errors with MSVC option -fp:strict.
22003         * lib/floor.c: Use MSVC specific pragma fenv_access.
22004         * lib/ceil.c: Likewise.
22005         * lib/trunc.c: Likewise.
22006         * lib/round.c: Likewise.
22007         * lib/rint.c: Likewise.
22008         * lib/fma.c: Likewise.
22009         * lib/integer_length.c: Likewise.
22010         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22011         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22012         * tests/test-floor2.c: Likewise.
22013         * tests/test-floorf2.c: Likewise.
22014         * tests/test-ceil2.c: Likewise.
22015         * tests/test-ceilf2.c: Likewise.
22016         * tests/test-trunc2.c: Likewise.
22017         * tests/test-truncf2.c: Likewise.
22018         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22020 2012-02-27  Bruno Haible  <bruno@clisp.org>
22022         Tests for module 'sqrtl-ieee'.
22023         * modules/sqrtl-ieee-tests: New file.
22024         * tests/test-sqrtl-ieee.c: New file.
22026         New module 'sqrtl-ieee'.
22027         * modules/sqrtl-ieee: New file.
22029         Tests for module 'sqrt-ieee'.
22030         * modules/sqrt-ieee-tests: New file.
22031         * tests/test-sqrt-ieee.c: New file.
22033         New module 'sqrt-ieee'.
22034         * modules/sqrt-ieee: New file.
22036         Tests for module 'sqrtf-ieee'.
22037         * modules/sqrtf-ieee-tests: New file.
22038         * tests/test-sqrtf-ieee.c: New file.
22039         * tests/test-sqrt-ieee.h: New file.
22041         New module 'sqrtf-ieee'.
22042         * modules/sqrtf-ieee: New file.
22044 2012-02-27  Bruno Haible  <bruno@clisp.org>
22046         remainderl-ieee: Work around test failure on OSF/1.
22047         * m4/remainderl-ieee.m4: New file.
22048         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
22049         present, test whether remainderl works with a zero second argument.
22050         Replace it if not.
22051         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
22052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
22053         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
22054         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
22055         (Depends-on): Update conditions.
22056         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
22057         (Depends-on): Add remainder-ieee.
22058         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
22059         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
22060         module.
22062         remainderf-ieee: Work around test failure on OSF/1.
22063         * m4/remainderf-ieee.m4: New file.
22064         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
22065         present, test whether remainderf works with a zero second argument.
22066         Replace it if not.
22067         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
22068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
22069         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
22070         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
22071         (Depends-on): Update conditions.
22072         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
22073         (Depends-on): Add remainder-ieee.
22074         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
22075         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
22076         module.
22078         remainder-ieee: Work around test failure on OSF/1.
22079         * m4/remainder-ieee.m4: New file.
22080         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
22081         present, test whether remainder works with a zero second argument.
22082         Replace it if not.
22083         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
22084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
22085         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
22086         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
22087         (Depends-on): Update dependencies.
22088         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
22089         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
22090         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
22092         Tests for module 'remainderl-ieee'.
22093         * modules/remainderl-ieee-tests: New file.
22094         * tests/test-remainderl-ieee.c: New file.
22096         New module 'remainderl-ieee'.
22097         * modules/remainderl-ieee: New file.
22099         Tests for module 'remainder-ieee'.
22100         * modules/remainder-ieee-tests: New file.
22101         * tests/test-remainder-ieee.c: New file.
22103         New module 'remainder-ieee'.
22104         * modules/remainder-ieee: New file.
22106         Tests for module 'remainderf-ieee'.
22107         * modules/remainderf-ieee-tests: New file.
22108         * tests/test-remainderf-ieee.c: New file.
22109         * tests/test-remainder-ieee.h: New file.
22111         New module 'remainderf-ieee'.
22112         * modules/remainderf-ieee: New file.
22114 2012-02-27  Bruno Haible  <bruno@clisp.org>
22116         modff, modfl: Fix configure syntax error.
22117         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
22118         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22120 2012-02-27  Bruno Haible  <bruno@clisp.org>
22122         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
22123         * m4/fmodl-ieee.m4: New file.
22124         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
22125         whether fmodl works with zero arguments. Replace it if not.
22126         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
22127         (Depends-on): Add fmod-ieee.
22128         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
22129         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
22131         fmodf-ieee: Work around test failure on OSF/1.
22132         * m4/fmodf-ieee.m4: New file.
22133         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
22134         whether fmodf works with zero arguments. Replace it if not.
22135         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
22136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
22137         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
22138         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
22139         (Depends-on): Update dependencies.
22140         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
22141         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
22142         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
22144         fmodf-ieee: Work around test failure on MSVC 9.
22145         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
22146         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
22148         fmod-ieee: Work around test failures on OSF/1, mingw.
22149         * m4/fmod-ieee.m4: New file.
22150         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
22151         whether fmod works with zero arguments. Replace it if not.
22152         * lib/math.in.h (fmod): New declaration.
22153         * lib/fmod.c: New file.
22154         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
22155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
22156         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
22157         * modules/fmod (Files): Add lib/fmod.c.
22158         (Depends-on): Add math, isinf, trunc, fma.
22159         (configure.ac): Arrange to compile lib/fmod.c if needed.
22160         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
22161         m4/signbit.m4.
22162         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
22163         * tests/test-math-c++.cc: Check the declaration of fmod.
22164         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
22166         fmodl-ieee: Fix test failures.
22167         * lib/fmodl.c (fmodl): Treat Inf specially.
22168         * modules/fmodl (Depends-on): Add isinf.
22170         Tests for module 'fmodl-ieee'.
22171         * modules/fmodl-ieee-tests: New file.
22172         * tests/test-fmodl-ieee.c: New file.
22174         New module 'fmodl-ieee'.
22175         * modules/fmodl-ieee: New file.
22177         Tests for module 'fmod-ieee'.
22178         * modules/fmod-ieee-tests: New file.
22179         * tests/test-fmod-ieee.c: New file.
22181         New module 'fmod-ieee'.
22182         * modules/fmod-ieee: New file.
22184         Tests for module 'fmodf-ieee'.
22185         * modules/fmodf-ieee-tests: New file.
22186         * tests/test-fmodf-ieee.c: New file.
22187         * tests/test-fmod-ieee.h: New file.
22189         New module 'fmodf-ieee'.
22190         * modules/fmodf-ieee: New file.
22192 2012-02-27  Bruno Haible  <bruno@clisp.org>
22194         Tests for module 'rintl-ieee'.
22195         * modules/rintl-ieee-tests: New file.
22196         * tests/test-rintl-ieee.c: New file.
22198         New module 'rintl-ieee'.
22199         * modules/rintl-ieee: New file.
22201         Tests for module 'rint-ieee'.
22202         * modules/rint-ieee-tests: New file.
22203         * tests/test-rint-ieee.c: New file.
22205         New module 'rint-ieee'.
22206         * modules/rint-ieee: New file.
22208         Tests for module 'rintf-ieee'.
22209         * modules/rintf-ieee-tests: New file.
22210         * tests/test-rintf-ieee.c: New file.
22211         * tests/test-rint-ieee.h: New file.
22213         New module 'rintf-ieee'.
22214         * modules/rintf-ieee: New file.
22216 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22218         regex: re_search etc. should return -2 when memory exhausted
22219         This bug was uncovered when testing 'grep'.  Without the fix,
22220         re_search and friends return -1 when memory is exhausted, but -1
22221         means no match, and this causes grep to falsely report no-match
22222         instead of memory-exhaustion.  See
22223         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
22224         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
22225         trouble; this can occur if re_search_internal ran out of memory.
22227 2012-02-26  Bruno Haible  <bruno@clisp.org>
22229         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
22230         * m4/modfl-ieee.m4: New file.
22231         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
22232         whether modfl works with Inf. Replace it if not.
22233         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
22234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
22235         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
22236         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
22237         (Depends-on): Update dependencies.
22238         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
22239         m4/signbit.m4.
22240         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
22241         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
22243         modfl-ieee: Fix dependencies.
22244         * modules/modfl-ieee (Depends-on): Add modf-ieee.
22246         modfl-ieee: Fix test failures.
22247         * lib/modfl.c (modfl): Treat NaN and Inf specially.
22248         * modules/modfl (Depends-on): Add isfinite, isinf.
22250         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
22251         * m4/modff-ieee.m4: New file.
22252         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
22253         whether modff works with NaN and Inf. Replace it if not.
22254         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
22255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
22256         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
22257         * modules/modff (configure.ac): Consider REPLACE_MODFF.
22258         (Depends-on): Update dependencies.
22259         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
22260         m4/signbit.m4.
22261         (Depends-on): Add modf-ieee.
22262         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
22263         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
22265         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
22266         * m4/modf-ieee.m4: New file.
22267         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
22268         whether modf works with NaN and Inf. Replace it if not.
22269         * lib/math.in.h (modf): New declaration.
22270         * lib/modf.c: New file.
22271         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
22272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
22273         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
22274         * modules/modf (Files): Add lib/modf.c.
22275         (Depends-on): Add math, isfinite, trunc, isinf.
22276         (configure.ac): Addrange to compile lib/modf.c if needed.
22277         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
22278         m4/signbit.m4.
22279         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
22280         * tests/test-math-c++.cc: Check the declaration of modf.
22281         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
22283         Tests for module 'modfl-ieee'.
22284         * modules/modfl-ieee-tests: New file.
22285         * tests/test-modfl-ieee.c: New file.
22287         New module 'modfl-ieee'.
22288         * modules/modfl-ieee: New file.
22290         Tests for module 'modf-ieee'.
22291         * modules/modf-ieee-tests: New file.
22292         * tests/test-modf-ieee.c: New file.
22294         New module 'modf-ieee'.
22295         * modules/modf-ieee: New file.
22297         Tests for module 'modff-ieee'.
22298         * modules/modff-ieee-tests: New file.
22299         * tests/test-modff-ieee.c: New file.
22300         * tests/test-modf-ieee.h: New file.
22302         New module 'modff-ieee'.
22303         * modules/modff-ieee: New file.
22305 2012-02-26  Bruno Haible  <bruno@clisp.org>
22307         Tests for module 'fabsl-ieee'.
22308         * modules/fabsl-ieee-tests: New file.
22309         * tests/test-fabsl-ieee.c: New file.
22311         New module 'fabsl-ieee'.
22312         * modules/fabsl-ieee: New file.
22314         Tests for module 'fabs-ieee'.
22315         * modules/fabs-ieee-tests: New file.
22316         * tests/test-fabs-ieee.c: New file.
22318         New module 'fabs-ieee'.
22319         * modules/fabs-ieee: New file.
22321         Tests for module 'fabsf-ieee'.
22322         * modules/fabsf-ieee-tests: New file.
22323         * tests/test-fabsf-ieee.c: New file.
22324         * tests/test-fabs-ieee.h: New file.
22326         New module 'fabsf-ieee'.
22327         * modules/fabsf-ieee: New file.
22329 2012-02-26  Bruno Haible  <bruno@clisp.org>
22331         Tests for module 'fmal-ieee'.
22332         * modules/fmal-ieee-tests: New file.
22333         * tests/test-fmal-ieee.c: New file.
22335         New module 'fmal-ieee'.
22336         * modules/fmal-ieee: New file.
22338         Tests for module 'fma-ieee'.
22339         * modules/fma-ieee-tests: New file.
22340         * tests/test-fma-ieee.c: New file.
22342         New module 'fma-ieee'.
22343         * modules/fma-ieee: New file.
22345         Tests for module 'fmaf-ieee'.
22346         * modules/fmaf-ieee-tests: New file.
22347         * tests/test-fmaf-ieee.c: New file.
22348         * tests/test-fma-ieee.h: New file.
22350         New module 'fmaf-ieee'.
22351         * modules/fmaf-ieee: New file.
22353 2012-02-26  Bruno Haible  <bruno@clisp.org>
22355         Tests for module 'ldexpl-ieee'.
22356         * modules/ldexpl-ieee-tests: New file.
22357         * tests/test-ldexpl-ieee.c: New file.
22359         New module 'ldexpl-ieee'.
22360         * modules/ldexpl-ieee: New file.
22362         Tests for module 'ldexp-ieee'.
22363         * modules/ldexp-ieee-tests: New file.
22364         * tests/test-ldexp-ieee.c: New file.
22366         New module 'ldexp-ieee'.
22367         * modules/ldexp-ieee: New file.
22369         Tests for module 'ldexpf-ieee'.
22370         * modules/ldexpf-ieee-tests: New file.
22371         * tests/test-ldexpf-ieee.c: New file.
22372         * tests/test-ldexp-ieee.h: New file.
22374         New module 'ldexpf-ieee'.
22375         * modules/ldexpf-ieee: New file.
22377 2012-02-26  Bruno Haible  <bruno@clisp.org>
22379         Refactor frexp*-ieee tests.
22380         * tests/test-frexp-ieee.h: New file.
22381         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
22382         (main): Just call test_function.
22383         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
22384         (main): Just call test_function.
22385         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
22386         (main): Just call test_function.
22387         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
22388         * modules/frexp-ieee-tests (Files): Likewise.
22389         * modules/frexpl-ieee-tests (Files): Likewise.
22391         Tests for module 'frexpl-ieee'.
22392         * modules/frexpl-ieee-tests: New file.
22393         * tests/test-frexpl-ieee.c: New file.
22395         New module 'frexpl-ieee'.
22396         * modules/frexpl-ieee: New file.
22398         Tests for module 'frexp-ieee'.
22399         * modules/frexp-ieee-tests: New file.
22400         * tests/test-frexp-ieee.c: New file.
22402         New module 'frexp-ieee'.
22403         * modules/frexp-ieee: New file.
22405         Tests for module 'frexpf-ieee'.
22406         * modules/frexpf-ieee-tests: New file.
22407         * tests/test-frexpf-ieee.c: New file.
22409         New module 'frexpf-ieee'.
22410         * modules/frexpf-ieee: New file.
22412 2012-02-26  Bruno Haible  <bruno@clisp.org>
22414         roundl-ieee tests: More tests.
22415         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22416         (main): Add tests for [MX] shaded specification in POSIX.
22417         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22418         (Depends-on): Add isnanl-nolibm.
22420         round-ieee tests: More tests.
22421         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22422         (main): Add tests for [MX] shaded specification in POSIX.
22423         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22424         (Depends-on): Add isnand-nolibm.
22426         roundf-ieee tests: More tests.
22427         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22428         (main): Add tests for [MX] shaded specification in POSIX.
22429         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22430         (Depends-on): Add isnanf-nolibm.
22432         truncl-ieee tests: More tests.
22433         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22434         (main): Add tests for [MX] shaded specification in POSIX.
22435         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22436         (Depends-on): Add isnanl-nolibm.
22438         trunc-ieee tests: More tests.
22439         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22440         (main): Add tests for [MX] shaded specification in POSIX.
22441         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22442         (Depends-on): Add isnand-nolibm.
22444         truncf-ieee tests: More tests.
22445         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22446         (main): Add tests for [MX] shaded specification in POSIX.
22447         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22448         (Depends-on): Add isnanf-nolibm.
22450         ceill-ieee tests: More tests.
22451         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22452         (main): Add tests for [MX] shaded specification in POSIX.
22453         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22454         (Depends-on): Add isnanl-nolibm.
22456         ceil-ieee tests: More tests.
22457         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22458         (main): Add tests for [MX] shaded specification in POSIX.
22459         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22460         (Depends-on): Add isnand-nolibm.
22462         ceilf-ieee tests: More tests.
22463         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22464         (main): Add tests for [MX] shaded specification in POSIX.
22465         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22466         (Depends-on): Add isnanf-nolibm.
22468         floorl-ieee tests: More tests.
22469         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22470         (main): Add tests for [MX] shaded specification in POSIX.
22471         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22472         (Depends-on): Add isnanl-nolibm.
22474         floor-ieee tests: More tests.
22475         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22476         (main): Add tests for [MX] shaded specification in POSIX.
22477         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22478         (Depends-on): Add isnand-nolibm.
22480         floorf-ieee tests: More tests.
22481         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22482         (main): Add tests for [MX] shaded specification in POSIX.
22483         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22484         (Depends-on): Add isnanf-nolibm.
22486 2012-02-26  Bruno Haible  <bruno@clisp.org>
22488         fpieee: More comments.
22489         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
22491 2012-02-25  Bruno Haible  <bruno@clisp.org>
22493         Tests for module 'log10l'.
22494         * modules/log10l-tests: New file.
22495         * tests/test-log10l.c: New file.
22496         * tests/test-math-c++.cc: Check the declaration of log10l.
22498         New module 'log10l'.
22499         * lib/math.in.h (log10l): New declaration.
22500         * lib/log10l.c: New file.
22501         * m4/log10l.m4: New file.
22502         * modules/log10l: New file.
22503         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
22504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
22505         HAVE_DECL_LOG10L.
22506         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
22507         HAVE_DECL_LOG10L.
22508         * doc/posix-functions/log10l.texi: Mention the new module.
22510 2012-02-25  Bruno Haible  <bruno@clisp.org>
22512         fmodl, remainder*: Avoid wrong results due to rounding errors.
22513         * lib/fmodl.c (fmodl): Correct the result if it is not within the
22514         expected bounds.
22515         * lib/remainderf.c (remainderf): Likewise.
22516         * lib/remainder.c (remainder): Likewise.
22517         * lib/remainderl.c (remainderl): Likewise.
22519 2012-02-25  Bruno Haible  <bruno@clisp.org>
22521         Tests for module 'remainderl'.
22522         * modules/remainderl-tests: New file.
22523         * tests/test-remainderl.c: New file.
22524         * tests/test-math-c++.cc: Check the declaration of remainderl.
22526         New module 'remainderl'.
22527         * lib/math.in.h (remainderl): New declaration.
22528         * lib/remainderl.c: New file.
22529         * m4/remainderl.m4: New file.
22530         * modules/remainderl: New file.
22531         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
22532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
22533         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
22534         HAVE_REMAINDERL.
22535         * doc/posix-functions/remainderl.texi: Mention the new module.
22537 2012-02-25  Bruno Haible  <bruno@clisp.org>
22539         Tests for module 'remainderf'.
22540         * modules/remainderf-tests: New file.
22541         * tests/test-remainderf.c: New file.
22542         * tests/test-math-c++.cc: Check the declaration of remainderf.
22544         New module 'remainderf'.
22545         * lib/math.in.h (remainderf): New declaration.
22546         * lib/remainderf.c: New file.
22547         * m4/remainderf.m4: New file.
22548         * modules/remainderf: New file.
22549         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
22550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
22551         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
22552         HAVE_REMAINDERF.
22553         * doc/posix-functions/remainderf.texi: Mention the new module.
22555 2012-02-25  Bruno Haible  <bruno@clisp.org>
22557         remainder: Support for MSVC.
22558         * lib/math.in.h (remainder): New declaration.
22559         * lib/remainder.c: New file.
22560         * m4/remainder.m4: New file.
22561         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
22562         (Depends-on): Add math, round, fma.
22563         (configure.ac): Use results of gl_FUNC_REMAINDER.
22564         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
22565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
22566         HAVE_DECL_REMAINDER.
22567         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
22568         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
22569         * tests/test-math-c++.cc: Check the declaration of remainder.
22570         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
22571         problems are fixed.
22573 2012-02-25  Bruno Haible  <bruno@clisp.org>
22575         Tests for module 'fmodl'.
22576         * modules/fmodl-tests: New file.
22577         * tests/test-fmodl.c: New file.
22578         * tests/test-math-c++.cc: Check the declaration of fmodl.
22580         New module 'fmodl'.
22581         * lib/math.in.h (fmodl): New declaration.
22582         * lib/fmodl.c: New file.
22583         * m4/fmodl.m4: New file.
22584         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
22585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
22586         REPLACE_FMODL.
22587         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
22588         REPLACE_FMODL.
22589         * modules/fmodl: New file.
22590         * doc/posix-functions/fmodl.texi: Mention the new module.
22592 2012-02-25  Bruno Haible  <bruno@clisp.org>
22594         Tests for module 'modfl'.
22595         * modules/modfl-tests: New file.
22596         * tests/test-modfl.c: New file.
22597         * tests/test-math-c++.cc: Check the declaration of modfl.
22599         New module 'modfl'.
22600         * lib/math.in.h (modfl): New declaration.
22601         * lib/modfl.c: New file.
22602         * m4/modfl.m4: New file.
22603         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
22604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
22605         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
22606         * modules/modfl: New file.
22607         * doc/posix-functions/modfl.texi: Mention the new module.
22609 2012-02-25  Bruno Haible  <bruno@clisp.org>
22611         Tests for module 'fabsl'.
22612         * modules/fabsl-tests: New file.
22613         * tests/test-fabsl.c: New file.
22614         * tests/test-math-c++.cc: Check the declaration of fabsl.
22616         New module 'fabsl'.
22617         * lib/math.in.h (fabsl): New declaration.
22618         * lib/fabsl.c: New file.
22619         * m4/fabsl.m4: New file.
22620         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
22621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
22622         REPLACE_FABSL.
22623         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
22624         REPLACE_FABSL.
22625         * modules/fabsl: New file.
22626         * doc/posix-functions/fabsl.texi: Mention the new module.
22628 2012-02-25  Bruno Haible  <bruno@clisp.org>
22630         fabs tests: More tests.
22631         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
22632         (zero): New variable.
22633         (main): Add tests for signed zero.
22634         * modules/fabs-tests (Files): Add tests/minus-zero.h.
22636         fabsf tests: More tests.
22637         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
22638         (zero): New variable.
22639         (main): Add tests for signed zero.
22640         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
22642 2012-02-24  Bruno Haible  <bruno@clisp.org>
22644         atanl: Provide function definition on MSVC.
22645         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
22646         function pointer.
22647         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
22649 2012-02-24  Bruno Haible  <bruno@clisp.org>
22651         acosl: Provide function definition on MSVC.
22652         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
22653         function pointer.
22654         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
22656 2012-02-24  Bruno Haible  <bruno@clisp.org>
22658         asinl: Provide function definition on MSVC.
22659         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
22660         function pointer.
22661         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
22663 2012-02-24  Bruno Haible  <bruno@clisp.org>
22665         tanl: Provide function definition on MSVC.
22666         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
22667         function pointer.
22668         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
22670 2012-02-24  Bruno Haible  <bruno@clisp.org>
22672         cosl: Provide function definition on MSVC.
22673         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
22674         function pointer.
22675         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
22677 2012-02-24  Bruno Haible  <bruno@clisp.org>
22679         sinl: Provide function definition on MSVC.
22680         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
22681         function pointer.
22682         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
22684 2012-02-24  Bruno Haible  <bruno@clisp.org>
22686         logl: Provide function definition on MSVC.
22687         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
22688         function pointer.
22689         * lib/math.in.h (logl): Undefine if it does not exist as a function.
22691 2012-02-24  Bruno Haible  <bruno@clisp.org>
22693         expl: Provide function definition on MSVC.
22694         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
22695         function pointer.
22696         * lib/math.in.h (expl): Undefine if it does not exist as a function.
22698 2012-02-24  Bruno Haible  <bruno@clisp.org>
22700         sqrtl: Provide function definition on MSVC.
22701         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
22702         a function pointer.
22703         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
22705 2012-02-24  Bruno Haible  <bruno@clisp.org>
22707         ceill: Provide function definition on MSVC.
22708         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
22709         used as a function pointer.
22710         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
22712 2012-02-24  Bruno Haible  <bruno@clisp.org>
22714         floorl: Provide function definition on MSVC.
22715         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
22716         used as a function pointer.
22717         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
22719 2012-02-24  Bruno Haible  <bruno@clisp.org>
22721         ceilf: Provide function definition on MSVC.
22722         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
22723         used as a function pointer.
22724         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
22726 2012-02-24  Bruno Haible  <bruno@clisp.org>
22728         floorf: Provide function definition on MSVC.
22729         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
22730         used as a function pointer.
22731         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
22733 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22735         stdnoreturn: new module
22736         This implements a replacement for C11's <stdnoreturn.h>.
22737         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
22738         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
22739         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
22740         * tests/test-stdnoreturn.c: New files.
22742 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
22744         regex: fix false multibyte matches in some regular expressions
22745         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
22746         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
22747         * lib/regex_internal.c (re_string_skip_chars):
22748         Fix miscomputation of remain_len that may cause incomplete
22749         multi-byte character and false match.
22751 2012-02-24  Jim Meyering  <meyering@redhat.com>
22753         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
22754         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
22755         uses with "==" *before* the call, e.g., 0 == strcmp (...)
22756         Remove now-unnecessary str''cmp obfuscation.
22757         Suggested by Akim Demaille.
22759 2012-02-24  Bruno Haible  <bruno@clisp.org>
22761         streq: Rename macro.
22762         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
22763         * NEWS: Mention the change.
22764         * lib/mbrtowc.c (mbrtowc): Update.
22765         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
22766         * lib/wcwidth.c (wcwidth): Update.
22767         Suggested by Akim Demaille and Jim Meyering.
22769 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22771         regex: fix typo in definition of MIN
22772         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
22773         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
22775 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22776             Bruno Haible  <bruno@clisp.org>
22778         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
22779         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
22780         entries into a stack-allocated buffer directly.
22781         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
22783 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22784             Bruno Haible  <bruno@clisp.org>
22786         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
22788          - There were several instances of this pattern:
22790              for (;;) {
22791                n = acl (f, GETACLCNT, 0, NULL);
22792                [ allocate an array A of size N ]
22793                if (acl (f, GETACL, n, a) == n)
22794                  break;
22795              }
22797            This loop might never terminate if some other process is constantly
22798            manipulating the file's ACL.  The loop should be rewritten to
22799            terminate.
22801          - The acl (... GETACLNT ...) call is merely an optimization; its value
22802            is merely a hint as to how big to make the array.  A better
22803            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
22804            and just guess a reasonably-big size, growing the size and trying
22805            again if it's not large enough.  This guarantees termination, and
22806            saves a system call.
22808         * lib/acl-internal.h: Include <limits.h>.
22809         (MIN, SIZE_MAX): New macros.
22810         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
22811         a stack-allocated buffer, and use malloc if it does not fit. Don't
22812         use GETACLCNT.
22813         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
22815 2012-02-19  Bruno Haible  <bruno@clisp.org>
22817         acl: Fix endless loop on Solaris with vxfs.
22818         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
22819         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
22820         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
22821         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
22822         * tests/test-sameacls.c (main)[Solaris]: Likewise.
22823         Reported by Bill Jones in
22824         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
22826 2012-02-19  Bruno Haible  <bruno@clisp.org>
22828         acl: Fix copy-acl test failure on Solaris 11.0.
22829         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
22830         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
22831         that this function returns 0 in some more cases.
22833 2012-02-19  Bruno Haible  <bruno@clisp.org>
22835         acl: Update doc references.
22836         * doc/acl-resources.txt: Update links to Solaris documentation.
22838 2012-02-19  Bruno Haible  <bruno@clisp.org>
22840         Fix test failure in many locales on Solaris 11.
22841         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
22842         'tr' arguments.
22843         * tests/test-pipe-filter-ii1.c (main): Likewise.
22844         * build-aux/bootstrap (check_versions): Run 'tr' command with range
22845         expressions in the C locale.
22846         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22847         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22849 2012-02-19  Bruno Haible  <bruno@clisp.org>
22851         gnulib-tool: Improve usage message.
22852         * gnulib-tool (func_usage): Move doc of --help and --version to the
22853         section "Operation modes".
22855 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
22857         README-release: make it easier to execute commands
22858         * top/README-release: break commands out on to separate lines.
22860 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
22862         GNUmakefile: simplify detection of unconfigured trees
22863         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
22864         whether the tree make is being run from is already configured or
22865         not.  Related simplifications.
22867 2012-02-13  Simon Josefsson  <simon@josefsson.org>
22869         * gnulib-tool (func_usage): Document --help and --version.
22871 2012-02-11  Jim Meyering  <meyering@redhat.com>
22873         bootstrap: don't exit 0 upon gnulib-tool failure
22874         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
22875         its exit status, not 0.
22877 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
22879         README-release: various improvements
22880         * top/README-release: Give a command to push changes for the
22881         release.  Add "distcheck" to list of other pre-release checks.
22882         Fix instance of "make stable" which should be "make TYPE".
22884 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22886         maint: replace FSF snail-mail addresses with URLs
22887         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
22888         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
22889         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
22890         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
22891         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
22892         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
22893         * lib/check-version.c, lib/check-version.h, lib/config.charset:
22894         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
22895         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
22896         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
22897         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
22898         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
22899         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
22900         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
22901         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
22902         * lib/glthread/thread.c, lib/glthread/thread.h:
22903         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
22904         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
22905         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
22906         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
22907         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
22908         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
22909         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
22910         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
22911         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
22912         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
22913         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
22914         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
22915         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
22916         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
22917         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
22918         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
22919         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
22920         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
22921         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
22922         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
22923         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
22924         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
22925         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
22926         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
22927         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
22928         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
22929         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
22930         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
22931         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
22932         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
22933         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
22934         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
22935         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
22936         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
22937         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
22938         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
22939         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
22940         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
22941         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
22942         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
22943         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
22944         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
22945         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
22946         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
22947         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
22948         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
22949         * tests/test-poll.c, tests/test-quotearg-simple.c:
22950         * tests/test-quotearg.c, tests/test-quotearg.h:
22951         * tests/test-round-ieee.c, tests/test-round1.c:
22952         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
22953         * tests/test-roundl-ieee.c, tests/test-roundl.c:
22954         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
22955         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
22956         * tests/test-strerror.c, tests/test-strerror_r.c:
22957         * tests/test-strsignal.c, tests/test-strverscmp.c:
22958         * tests/test-xmemdup0.c:
22959         Replace FSF snail mail addresses with URLs, as per GNU coding
22960         standards.  See glibc bug
22961         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
22963 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22965         README-release: capitalize a word and split a line
22966         * top/README-release: Fix punctuation and spacing.
22968 2012-02-08  Akim Demaille  <demaille@gostai.com>
22970         fatal-signal: use C prototypes (with explicit void).
22971         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22972         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
22974 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22976         regex: spelling fix
22977         * lib/regexec.c: spelling fix
22979         regex: rely on stdint.h for SIZE_MAX
22980         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
22982 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22984         regex: merge glibc changes
22986         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
22987         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
22988         (init_word_char): Work even if bitset words are not exactly 32 or
22989         64 bits wide.  Don't assume there are no padding bits.
22990         * lib/regex.c [_LIBC]: Do not include <config.h>.
22991         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
22992         and -Wtype-limits.
22993         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
22994         needless disagreement with glibc.  All uses changed.  Define it to
22995         1 only if _GNU_SOURCE, to match glibc.
22996         (_REG_RM_NAME): Remove; no longer needed, since the names in
22997         question are now all protected by __USE_GNU.
22998         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
22999         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
23000         * lib/regex_internal.h (MIN): New macro.
23002         2012-01-03 Ulrich Drepper <drepper@gmail.com>
23003         * lib/regcomp.c (init_word_char): Optimize regex a bit.
23005         2011-12-30 Jakub Jelinek <jakub@redhat.com>
23006         * lib/regex_internal.c (re_string_fetch_byte_case):
23007         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
23008         is miscompiled, and it turns out it is because of an incorrect
23009         attribute on re_string_fetch_byte_case.  Unlike
23010         re_string_peek_byte_case, this one is really not pure, it modifies
23011         memory (increments pstr->cur_idx), and with the pure attribute GCC
23012         assumed it doesn't and it cached the presumed value of
23013         regexp->cur_idx in a variable across the
23014          for (;; ++i)
23015            {
23016              if (i >= BRACKET_NAME_BUF_SIZE)
23017                return REG_EBRACK;
23018              if (token->type == OP_OPEN_CHAR_CLASS)
23019                ch = re_string_fetch_byte_case (regexp);
23020              else
23021                ch = re_string_fetch_byte (regexp);
23022              if (re_string_eoi(regexp))
23023                return REG_EBRACK;
23024              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
23025                break;
23026              elem->opr.name[i] = ch;
23027            }
23029         2011-11-29 Andreas Schwab <schwab@redhat.com>
23030         * lib/regcomp.c (build_equiv_class):
23031         Fix access after end of search string in regex matcher.
23033         2011-11-12 Ulrich Drepper <drepper@redhat.com>
23034         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
23036         2011-10-12 Ulrich Drepper <drepper@redhat.com>
23037         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
23039         2011-10-11 Ulrich Drepper <drepper@redhat.com>
23040         * lib/regcomp.c (parse_branch, parse_sub_exp):
23041         More regex memory leak fixes and tests.
23042         (parse_sub_exp, parse_bracket_exp):
23043         Fix memory leak for some invalid regular expressions.
23045         2011-05-28 Ulrich Drepper <drepper@gmail.com>
23046         * lib/regex_internal.c, lib/regexec.c:
23047         Fix unnecessary overallocation due to incomplete character.  When
23048         incomplete characters are found at the end of a string the code
23049         ran amok and allocated lots of memory.  Stricter limits are now in
23050         place.
23052         2011-05-20 Reuben Thomas <rrt@sc3d.org>
23053         * lib/regex.h: Update documentation.
23055         2011-05-16 Aharon Robbins <arnold@skeeve.com>
23056         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
23058         2010-05-05 Andreas Schwab <schwab@redhat.com>
23059         * lib/regexec.c (find_collation_sequence_value):
23060         Fix lookup of collation sequence value during regexp matching.
23062         2010-01-22 Ulrich Drepper <drepper@redhat.com>
23063         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
23065         2008-01-16 Ulrich Drepper <drepper@redhat.com>
23066         * lib/regex.h: Cleanup namespace.
23068         2007-11-26 Ulrich Drepper <drepper@redhat.com>
23069         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
23071         2007-08-26 Ulrich Drepper <drepper@redhat.com>
23072         * lib/regex_internal.h: Prevent some declarations and definitions
23073         to be seen when used in tests.
23075         2005-05-06 Ulrich Drepper <drepper@redhat.com>
23076         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
23077         __libc_lock_* macros if not _LIBC.
23078         (struct re_dfa_t): Add lock.
23080 2012-02-07  Eric Blake  <eblake@redhat.com>
23082         maint.mk: also prohibit lower-case @var@
23083         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
23084         lower case, like @top_srcdir@.
23086 2012-02-04  Eric Blake  <eblake@redhat.com>
23088         canonicalize: avoid uninitialized memory use
23089         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
23090         random '/' left in dest.
23091         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
23093 2012-02-04  Bruno Haible  <bruno@clisp.org>
23095         isatty: Fix test failure of ptsname_r on native Windows.
23096         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
23097         and don't set errno.
23098         (isatty): Test first whether fd is valid. Set errno when returning 0.
23100 2012-02-04  Bruno Haible  <bruno@clisp.org>
23102         spawn-pipe tests: Fix a NULL program name in a diagnostic.
23103         * tests/test-spawn-pipe-main.c: Include progname.h.
23104         (main): Invoke set_program_name.
23105         * modules/spawn-pipe-tests (Depends-on): Add progname.
23107         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
23108         * tests/test-nonblocking-socket-main.c: Include progname.h.
23109         (main): Invoke set_program_name.
23110         * modules/nonblocking-socket-tests (Depends-on): Add progname.
23112         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
23113         * tests/test-nonblocking-pipe-main.c: Include progname.h.
23114         (main): Invoke set_program_name.
23115         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
23117 2012-02-04  Eric Blake  <eblake@redhat.com>
23119         canonicalize-lgpl: fix // handling
23120         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
23122         canonicalize: fix // handling
23123         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
23124         /// to //, since only // is special.
23126 2012-02-04  Bruno Haible  <bruno@clisp.org>
23128         ioctl: Fix test failure on native Windows.
23129         * lib/ioctl.c: Include msvc-nothrow.h.
23130         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
23132 2012-02-04  Bruno Haible  <bruno@clisp.org>
23134         fsync: Avoid test failure on native Windows.
23135         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
23136         read-only.
23138 2012-02-04  Bruno Haible  <bruno@clisp.org>
23140         sys_select: Avoid syntax error on OpenBSD 5.0.
23141         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
23142         currently being included, just include the system's <sys/select.h>.
23144 2012-02-04  Bruno Haible  <bruno@clisp.org>
23146         sys_select: Avoid syntax error on OpenBSD 5.0.
23147         * lib/sys_select.in.h: Include <signal.h> only after the include_next
23148         <sys/select.h>, not before.
23149         Reported by Jiri B <jirib@devio.us>.
23151 2012-02-04  Bruno Haible  <bruno@clisp.org>
23153         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
23154         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
23155         global variables.
23156         * tests/test-get-rusage-data.c (main): Likewise.
23157         Reported by Jim Meyering.
23159 2012-02-04  Bruno Haible  <bruno@clisp.org>
23161         stdioext: Fix last commit.
23162         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
23164 2012-02-03  Bruno Haible  <bruno@clisp.org>
23166         stdioext: Add tentative support for Plan9.
23167         * lib/stdio-impl.h: Include <errno.h>.
23168         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
23169         * lib/freadable.c (freadable): Likewise.
23170         * lib/fwritable.c (fwritable): Likewise.
23171         * lib/fbufmode.c (fbufmode): Likewise.
23172         * lib/freading.c (freading): Likewise.
23173         * lib/fwriting.c (fwriting): Likewise.
23174         * lib/freadptr.c (freadptr): Likewise.
23175         * lib/freadseek.c (freadptrinc): Likewise.
23176         * lib/freadahead.c (freadahead): Likewise.
23177         * lib/fpurge.c (fpurge): Likewise.
23178         * lib/fseeko.c (rpl_fseeko): Likewise.
23179         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
23180         Reported by Jens Staal <staal1978@gmail.com>.
23182 2012-02-02  Jim Meyering  <meyering@redhat.com>
23184         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
23185         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
23186         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
23187         not even to try to add the attribute.  Instead, add a pragma to suppress
23188         the suggestion/warning.
23190 2012-01-31  Karl Berry  <karl@gnu.org>
23192         setstate doc: typo.
23193         * doc/posix-functions/setstate.texi (setstate): { not (.
23195 2012-01-31  Bruno Haible  <bruno@clisp.org>
23197         popen: Make more robust on Windows.
23198         * lib/popen.c: On native Windows, use the _popen based code even if
23199         HAVE_POPEN is set.
23200         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
23201         environment variable on native Windows.
23203 2012-01-30  Bruno Haible  <bruno@clisp.org>
23205         pclose: Fix typo.
23206         * lib/stdio.in.h (pclose): Fix typo in warning message.
23208 2012-01-30  Bruno Haible  <bruno@clisp.org>
23210         doc about getlogin_r, setstate.
23211         * doc/posix-functions/getlogin_r.texi: List the incompatible
23212         declaration problem under "not fixed by gnulib".
23213         * doc/posix-functions/setstate.texi: Mention incompatible declaration
23214         problem on Solaris 11 and other platforms.
23216 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
23217             Bruno Haible  <bruno@clisp.org>
23219         poll tests: Make test more robust.
23220         * tests/test-poll.c: Include macros.h.
23221         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
23222         return value of various I/O operations.
23223         * modules/poll-tests (Files): Add tests/macros.h.
23225 2012-01-30  Bruno Haible  <bruno@clisp.org>
23227         sys_stat: Fix support for mingw64 and MSVC.
23228         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
23229         header files already do it.
23230         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
23231         stat itself.
23232         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23234 2012-01-30  Bruno Haible  <bruno@clisp.org>
23236         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
23237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
23238         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
23240 2012-01-29  Bruno Haible  <bruno@clisp.org>
23242         quotearg: Fix test failure on MacOS X 10.5.
23243         * tests/test-quotearg-simple.c: Include localcharset.h.
23244         (main): If the locale encoding is not ASCII, bypass the tests of
23245         locale_quoting_style and clocale_quoting_style.
23246         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
23248 2012-01-29  Jim Meyering  <meyering@redhat.com>
23250         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
23251         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
23252         detect uses of canonicalize_file_name.
23254 2012-01-28  Bruno Haible  <bruno@clisp.org>
23256         test-framework-sh: Fix test failure with AIX 7.1 diff.
23257         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
23258         in column 1, like 'diff -c' does.
23259         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
23260         whether 'diff -u' is used. Instead, test whether the output contains
23261         some '@' character.
23263 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23265         strtoimax: eliminate need for stdint.h, inttypes.h checks
23266         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
23267         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
23268         the prerequisites for a recently-introduced strtoimax test.
23269         I guess this might cause strtoimax to be replaced when not
23270         strictly necessary on older hosts, but this shouldn't introduce
23271         any bugs and it should make Emacs 'configure' faster on typical
23272         modern hosts.  Problem discovered when importing the latest gnulib
23273         to an Emacs test version.
23274         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
23276 2012-01-28  Bruno Haible  <bruno@clisp.org>
23278         sys_time: Override 'struct timeval' on some native Windows platforms.
23279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
23280         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
23281         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
23282         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
23283         needs to be overridden.
23284         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
23285         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
23286         * tests/test-sys_select.c: Check that the tv_sec member has the same
23287         size as a 'time_t'.
23288         * tests/test-sys_time.c: Likewise.
23289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
23290         is set, set also REPLACE_GETTIMEOFDAY.
23291         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
23292         convert the resulting 'struct timeval' before returning.
23293         * lib/select.c: Include <sys/time.h>.
23294         (select, timeval): Undefine at the right place.
23295         * modules/select (Depends-on): Add sys_time.
23296         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
23297         some Windows platforms.
23298         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23300 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23302         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
23303         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
23304         an integer.
23305         * lib/fcntl.c (dupfd): Likewise.
23306         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
23308 2012-01-28  Bruno Haible  <bruno@clisp.org>
23310         fcntl: Avoid compilation error on native Windows.
23311         * modules/fcntl (Depends-on): Add 'close'.
23313 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23315         select, poll, isatty: Avoid warnings on x86_64 mingw64.
23316         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
23317         pointer to an integer.
23318         * lib/poll.c (IsConsoleHandle): Likewise.
23319         * lib/isatty.c (IsConsoleHandle): Likewise.
23321 2012-01-28  Jim Meyering  <meyering@redhat.com>
23323         doc: clarify README-release
23324         * top/README-release: Clarify: you should make a point to have
23325         the latest stable versions of build tools in your PATH, and the
23326         reference to buildreq is solely for its list of tool names, not
23327         for its minimal-functional version numbers.
23328         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
23330         maint.mk: use more readable (yet functionally equivalent) quoting
23331         It is common to quote a single quote in a single quoted string like
23332         this:  '...'\''...'.  Unless you know the idiom, that looks like
23333         gibberish, so prefer to double-quote the string when possible.
23334         Then you can use a more readable, lone single quote: "...'..."
23335         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
23336         "don't" is more readable than the equivalent 'don'\''t'.
23337         (sc_cast_of_x_alloc_return_value): Likewise.
23338         (sc_cast_of_alloca_return_value): Likewise.
23339         (sc_makefile_path_separator_check): Similar: use ":" in '...',
23340         rather than '\'':'\''.
23342 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23344         stdalign: relax _Alignof and tighten _Alignas test
23345         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
23346         as it was too strict: alignof must divide offsetof, but it need
23347         not equal offsetof.  Inspired by Joseph S. Myers's comment
23348         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
23349         Conversely, tighten the _Alignas test a bit, as the resulting
23350         alignment must be exactly 8.
23352 2012-01-27  Bruno Haible  <bruno@clisp.org>
23354         stdalign: Document the last change.
23355         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
23357 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23359         stdalign: check that alignof and offsetof are consistent
23360         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
23361         Problem reported for gnulib by Richard W.M. Jones in
23362         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
23364 2012-01-27  Jim Meyering  <meyering@redhat.com>
23366         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
23367         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
23368         convert a sequence with gaps to the minimal containing range.
23369         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
23370         * tests/test-update-copyright.sh: Test for this.
23371         The FSF confirmed it is ok to do this, assuming there is at
23372         least one significant change per year in the affected range:
23373         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
23375 2012-01-26  Bruno Haible  <bruno@clisp.org>
23377         pipe2: refine doc about thread-safety
23378         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
23379         multithread-safety problem.
23380         * doc/glibc-functions/accept4.texi: Likewise.
23382 2012-01-26  Bruno Haible  <bruno@clisp.org>
23384         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
23385         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
23386         In the test program, include <fcntl.h>, for O_RDONLY.
23388 2012-01-26  Eric Blake  <eblake@redhat.com>
23390         pipe2: document lack of thread-safety in replacement
23391         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
23392         issue in replacement.
23393         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23394         Based on a report by Eric Wong.
23396 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23397             Bruno Haible  <bruno@clisp.org>
23399         malloca: Avoid warnings on x86_64 mingw64.
23400         * lib/malloca.c: Include <stdint.h>.
23401         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
23402         * modules/malloca (Depends-on): Add stdint.
23403         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
23405 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23407         obstack: remove __STDC__ conditionals
23408         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
23409         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
23410         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
23411         m4/include_next.m4 as the only gnulib-maintained places that still
23412         refer to __STDC__.
23414 2012-01-24  Bruno Haible  <bruno@clisp.org>
23416         havelib: Modern quoting.
23417         * build-aux/config.rpath: Quote 'like this', not `like this', as per
23418         the recent change to the GNU coding standards.
23420 2012-01-24  Bruno Haible  <bruno@clisp.org>
23422         stdint: Improve support for Android.
23423         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
23424         Reported by Simon Josefsson <simon@josefsson.org>.
23426 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23428         doc: omit trailing empty lines from INSTALL etc.
23429         * doc/Makefile (INSTALL): Omit trailing empty lines.
23430         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
23431         omit trailing empty lines.  This simplifies the build procedure.
23433 2012-01-23  Jim Meyering  <meyering@redhat.com>
23435         tests: avoid spurious warnings about gl_sockets_startup
23436         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
23437         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
23438         reporting a "statement with no effect".
23439         * tests/test-accept.c (main): Mark as "(void)".
23440         * tests/test-accept4.c (main): Likewise.
23441         * tests/test-bind.c (main): Likewise.
23442         * tests/test-connect.c (main): Likewise.
23443         * tests/test-getpeername.c (main): Likewise.
23444         * tests/test-getsockname.c (main): Likewise.
23445         * tests/test-getsockopt.c (main): Likewise.
23446         * tests/test-listen.c (main): Likewise.
23447         * tests/test-recv.c (main): Likewise.
23448         * tests/test-recvfrom.c (main): Likewise.
23449         * tests/test-send.c (main): Likewise.
23450         * tests/test-sendto.c (main): Likewise.
23451         * tests/test-setsockopt.c (main): Likewise.
23452         * tests/test-shutdown.c (main): Likewise.
23454 2012-01-21  Bruno Haible  <bruno@clisp.org>
23456         locale-fr.m4: Fix for Android.
23457         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
23458         failure of the test program on Bionic libc.
23460 2012-01-21  Jim Meyering  <meyering@redhat.com>
23462         bootstrap: fail when bootstrap_post_import_hook fails
23463         Otherwise, it's far too easy to miss diagnostics emitted
23464         between gnulib-tool's output and that of running configure.
23465         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
23467 2012-01-17  Jim Meyering  <meyering@redhat.com>
23469         maint: enable sc_trailing_blank
23470         * build-aux/pmccabe.css: Remove trailing blanks.
23471         * doc/acl-cygwin.txt: Likewise.
23472         * doc/gnu-oids.texi: Likewise
23473         * cfg.mk: Enable sc_trailing_blank.
23474         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
23476 2012-01-17  Jim Meyering  <meyering@redhat.com>
23478         maint: enable sc_prohibit_openat_without_use
23479         * cfg.mk: Enable sc_prohibit_openat_without_use.
23480         Exempt lib/selinux-at.c.
23482 2012-01-17  Jim Meyering  <meyering@redhat.com>
23484         maint: enable sc_prohibit_cloexec_without_use
23485         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
23486         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
23488 2012-01-17  Jim Meyering  <meyering@redhat.com>
23490         maint: enable sc_prohibit_intprops_without_use
23491         * cfg.mk: Enable sc_prohibit_intprops_without_use
23492         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
23494 2012-01-17  Jim Meyering  <meyering@redhat.com>
23496         maint: enable sc_prohibit_hash_pjw_without_use
23497         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
23498         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
23499         to match any use of \<hash_pjw\>, i.e., not necessarily with a
23500         following " (".
23502 2012-01-17  Jim Meyering  <meyering@redhat.com>
23504         maint: enable double-word-prohibiting rule
23505         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
23506         Exempt three files.
23508 2012-01-17  Jim Meyering  <meyering@redhat.com>
23510         maint: remove empty lines at EOF, but excluding modules/*
23511         Apply syntax rules at home as well as abroad.  Most changes
23512         were induced by running this:
23513           make srcdir=. _build-aux=build-aux -f top/maint.mk \
23514             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
23515             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
23516         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
23517         Exempt modules/* and two binary files.
23518         Also exempt doc/INSTALL*, per request from Bruno Haible.
23519         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
23520         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
23521         * doc/Copyright/request-assign.future: Likewise.
23522         * doc/Copyright/request-disclaim.changes: Likewise.
23523         * doc/INSTALL: Likewise.
23524         * doc/INSTALL.ISO: Likewise.
23525         * doc/INSTALL.UTF-8: Likewise.
23526         * doc/acl-cygwin.txt: Likewise.
23527         * doc/acl-resources.txt: Likewise.
23528         * doc/fdl-1.2.texi: Likewise.
23529         * doc/fdl-1.3.texi: Likewise.
23530         * doc/fdl.texi: Likewise.
23531         * lib/argp-pin.c: Likewise.
23532         * lib/round.c: Likewise.
23533         * lib/unicase/u16-totitle.c: Likewise.
23534         * lib/unictype/block_test.c: Likewise.
23535         * lib/uninorm/canonical-decomposition.c: Likewise.
23536         * m4/README: Likewise.
23537         * m4/relocatable-lib.m4: Likewise.
23538         * tests/test-isnand-nolibm.c: Likewise.
23539         * tests/test-isnand.c: Likewise.
23540         * tests/uninorm/NormalizationTest.txt: Likewise.
23542 2012-01-17  Jim Meyering  <meyering@redhat.com>
23544         maint: add framework to run syntax-check rules against gnulib sources
23545         * cfg.mk: New file, to disable all currently-failing tests.
23546         We'll enable them one by one, as they are made to pass.
23547         * Makefile (sc_maint): New rule.
23549 2012-01-21  Bruno Haible  <bruno@clisp.org>
23551         stdint: Add support for Android.
23552         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
23553         include the system's <stdint.h>.
23554         Reported by Simon Josefsson <simon@josefsson.org>.
23556 2012-01-19  Jim Meyering  <meyering@redhat.com>
23558         bootstrap: add bootstrap_post_import_hook
23559         Bison does still need something like the gnulib_mk_hook whose
23560         invocation I had to remove along with slurp in commit 767ccd40.
23561         Technically, we could get along without it, but doing so would
23562         have required living with a warning and a mandatory post-bootstrap
23563         automake rerun.
23564         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
23565         (bootstrap_post_import_hook): New function.
23566         Invoke it after gnulib-tool --import and before autoreconf.
23568 2012-01-18  Jim Meyering  <meyering@redhat.com>
23570         gitlog-to-changelog: don't use "no_"-prefixed variable name
23571         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
23572         to enable both --cluster and --no-cluster.  Change variable name,
23573         s/\$no_cluster/$cluster/, and reverse usage to match.
23575         gitlog-to-changelog: use "||", not "or" in expressions
23576         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
23577         expressions.
23579 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
23581         gitlog-to-changelog: new option --no-cluster
23582         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
23583         clustering of adjacent commit messages.
23585 2012-01-17  Jim Meyering  <meyering@redhat.com>
23587         maint: spell file systems with two words, not one
23588         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
23589         two words, not one.
23591 2012-01-16  Jim Meyering  <meyering@redhat.com>
23593         bootstrap: add a FIXME comment to ensure we eventually remove the hack
23594         * build-aux/bootstrap (gnulib_tool_options): Add comment.
23596 2012-01-16  Eric Blake  <eblake@redhat.com>
23598         bootstrap: cater to autoconf 2.59
23599         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
23600         is not available.
23602         bootstrap: properly check for libtool
23603         * build-aux/bootstrap (libtoolize): Also run libtool when older
23604         usage is detected.
23606 2012-01-15  Bruno Haible  <bruno@clisp.org>
23608         Improve support for MSVC 9.
23609         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
23610         clashes on MSVC.
23611         * lib/fcntl.in.h: Likewise.
23612         * lib/stdlib.in.h: Likewise.
23613         * lib/sys_stat.in.h: Likewise.
23615 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
23617         gnupload: we hold the master copy of this script now
23618         For motivation and more information, see:
23619         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
23620         * build-aux/gnupload: Make it clear in the heading comments that the
23621         master copy of this file is maintained by gnulib.  Since we are at
23622         it, bump its copyright year and ...
23623         ($scriptversion): ... the date in its version.
23624         ($usage): Patches and bug reports should be sent to the gnulib list,
23625         not the automake one.
23626         * config/srclist.txt: Don't try to sync 'gnupload' from automake
23627         anymore.
23629 2012-01-15  Bruno Haible  <bruno@clisp.org>
23631         Fix module 'random'.
23632         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
23633         initstate, setstate are declared.
23635 2012-01-14  Bruno Haible  <bruno@clisp.org>
23637         Tests for module 'random'.
23638         * modules/random-tests: New file.
23639         * tests/test-random.c: New file, based on tests/test-random_r.c.
23641         New module 'random'.
23642         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
23643         declarations.
23644         * lib/random.c: New file, based on glibc/stdlib/random.c.
23645         * m4/random.m4: New file.
23646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
23647         HAVE_RANDOM.
23648         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
23649         * modules/random: New file.
23650         * config/srclist.txt: Add an entry for random.c.
23651         * doc/posix-functions/random.texi: Mention the 'random' module.
23652         * doc/posix-functions/initstate.texi: Likewise.
23653         * doc/posix-functions/setstate.texi: Likewise.
23654         * doc/posix-functions/srandom.texi: Likewise.
23656 2012-01-12  Bruno Haible  <bruno@clisp.org>
23658         random_r: Use common idioms.
23659         * lib/random_r.c: Include <stdlib.h> first.
23661         random_r: Override incompatible API on AIX, OSF/1.
23662         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
23663         Override the system function if REPLACE_RANDOM_R is 1.
23664         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
23665         and OSF/1, set REPLACE_RANDOM_R.
23666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
23667         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
23668         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
23669         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
23670         * doc/glibc-functions/random_r.texi: Likewise.
23671         * doc/glibc-functions/setstate_r.texi: Likewise.
23673         random_r: Support for MSVC 9.
23674         * lib/random_r.c: Include stdint.h, not inttypes.h.
23676 2012-01-12  Eric Blake  <eblake@redhat.com>
23678         inet_ntop: guard extra work by IF_LINT
23679         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
23680         better code generation when not checking for warnings.
23681         Suggested by Paul Eggert and Jim Meyering.
23683         strptime: fix regression on mingw
23684         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
23685         Fix regression.  Reported by Bruno Haible.
23687 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
23688             Bruno Haible  <bruno@clisp.org>
23690         copy-file: add error-code-returning variant.
23691         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
23692         (qcopy_file_preserving): New declaration.
23693         * lib/copy-file.c (qcopy_file_preserving): Renamed from
23694         copy_file_preserving. Change return type to 'int'. Don't emit an error
23695         message here.
23696         (copy_file_preserving): New function.
23697         * tests/test-copy-file.c: Include <stdlib.h>.
23698         (main): Test qcopy_file_preserving if the environment variable
23699         NO_STDERR_OUTPUT is set.
23700         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
23701         with NO_STDERR_OUTPUT
23702         * tests/test-copy-file-2.sh: Likewise.
23704 2012-01-10  Bruno Haible  <bruno@clisp.org>
23706         copy-file: Use 'quote' module consistently.
23707         * lib/copy-file.c (copy_file_preserving): Use quote().
23709         copy-file: Refactor.
23710         * lib/copy-file.c: Include quote.h.
23711         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
23712         message here.
23713         * modules/copy-file (Depends-on): Add quote.
23715         acl: Export qcopy_acl.
23716         * lib/acl.h (qcopy_acl): New declaration.
23717         * lib/copy-acl.c (qcopy_acl): Make non-static.
23719         acl: Rename a local variable.
23720         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
23722         acl: Align return values of copy_acl and qcopy_acl.
23723         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
23724         maybe < -1.
23726 2012-01-11  Eric Blake  <eblake@redhat.com>
23728         strptime: silence gcc warnings
23729         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
23730         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
23731         Reported by Daniel P. Berrange.
23733         inet_ntop: silence gcc warning
23734         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
23735         Reported by Daniel P. Berrange.
23737 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
23739         getloadavg test: skip the test on GNU/Linux without /proc mounted
23740         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
23741         file.  When /proc is not mounted, it always fails with ENOENT.
23742         * tests/test-getloadavg.c (main): Treat ENOENT return code from
23743         getloadavg(3) the same way as ENOSYS and ENOTSUP.
23745 2012-01-10  Bruno Haible  <bruno@clisp.org>
23747         regex: Avoid link error on MSVC 9.
23748         * modules/regex (Depends-on): Add wctype.
23750 2012-01-10  Bruno Haible  <bruno@clisp.org>
23752         doc: Mention --with-tests option.
23753         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
23754         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
23755         --with-tests.
23756         Reported by Reuben Thomas.
23758 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
23760         users.txt: order package names lexicographically.
23761         * users.txt: Order package names lexicographically.
23763 2012-01-10  Jim Meyering  <meyering@redhat.com>
23765         maint.mk: fix description in comment
23766         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
23768         ignore-value: remove deprecated ignore_ptr function
23769         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
23770         * NEWS: Note this.
23772 2012-01-09  Jim Meyering  <meyering@redhat.com>
23774         test-init.sh: avoid a subshell
23775         * tests/test-init.sh: Remove protective subshell.
23776         Suggested by Bernhard Voelker.  While a subshell is normally
23777         required to protect against older shells (Solaris, FreeBSD) that
23778         warn about a missing program before performing redirection, the
23779         shell-selection tests performed by init.sh probably exclude any
23780         offending shell.
23782 2012-01-08  Bruno Haible  <bruno@clisp.org>
23784         setlocale tests: Avoid test failure on Solaris 11.0.
23785         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
23786         variable.
23788 2012-01-08  Bruno Haible  <bruno@clisp.org>
23790         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
23791         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23792         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23793         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
23794         macro.
23795         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
23796         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23797         * lib/spawn_faction_addopen.c: Add workaround implementation if
23798         HAVE_WORKING_POSIX_SPAWN.
23799         * modules/spawn (Makefile): Substitute
23800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23801         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
23802         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
23803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23804         (Depends-on): Update conditions.
23805         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
23806         the Solaris 11 bug.
23808 2012-01-08  Bruno Haible  <bruno@clisp.org>
23810         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
23811         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23812         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
23813         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
23814         macro.
23815         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
23816         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
23817         * lib/spawn_faction_adddup2.c: Add workaround implementation if
23818         HAVE_WORKING_POSIX_SPAWN.
23819         * modules/spawn (Makefile): Substitute
23820         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
23821         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
23822         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
23823         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
23824         (Depends-on): Update conditions.
23825         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
23826         the Solaris 11 bug.
23828 2012-01-08  Bruno Haible  <bruno@clisp.org>
23830         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
23831         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23832         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
23833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
23834         HAVE_WORKING_POSIX_SPAWN.
23835         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
23836         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
23837         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
23838         * lib/spawn_faction_addclose.c: Add workaround implementation if
23839         HAVE_WORKING_POSIX_SPAWN.
23840         * modules/spawn (Makefile): Substitute
23841         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
23842         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
23843         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
23844         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
23845         (Depends-on): Update conditions.
23846         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
23847         the Solaris 11 bug.
23849 2012-01-08  Bruno Haible  <bruno@clisp.org>
23851         doc: Update for Solaris 11.0.
23852         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
23853         * m4/printf.m4: Update comments.
23855 2012-01-08  Bruno Haible  <bruno@clisp.org>
23857         mktime: Avoid compilation error on Solaris 11.
23858         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
23860 2012-01-08  Bruno Haible  <bruno@clisp.org>
23862         doc: Small fix.
23863         * doc/posix-headers/nl_types.texi: Correct platforms list.
23865 2012-01-08  Simon Josefsson  <simon@josefsson.org>
23867         Add lgpl-3.0 module.
23868         * MODULES.html.sh (Support for building documentation): Add
23869         lgpl-3.0.
23870         * modules/lgpl-3.0: New file.
23872 2012-01-08  Jim Meyering  <meyering@redhat.com>
23874         select.c: indent with spaces, not TABs
23875         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
23877 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23879         quotearg: do not use grave accent for left quote
23880         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
23881         locale_quoting_style.
23882         (quotearg_buffer_restyled): Fix example.
23883         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
23885 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23887         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
23888         Most programs do not have translation catalogs for English and much
23889         less separate catalogs for British and American English.  Drop the
23890         suggestion to translators about these two, and provide it
23891         automatically for Unicode locales.  Like most programs, even those
23892         using American English, we use single quotation marks.  This conflicts
23893         with the American typographic convention, but works better when you
23894         cite the entire error message within double quotes.  It also tries not
23895         to clash with established practice and with what non-gnulib programs
23896         will usually do.
23897         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
23898         using an UTF-8 or GB-18030 locale.  The list of other locales with
23899         quotes was provided by Bruno Haible.
23900         (quotearg_buffer_restyled): Adjust instructions to translators.
23901         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
23902         text, since this would be wrong when using Unicode.
23903         * modules/quotearg: Depend on c-strcaseeq.
23905 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23907         quotearg: fix Wikipedia link
23908         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
23910 2012-01-07  Simon Josefsson  <simon@josefsson.org>
23912         Fix for mingw with MSVC9.
23913         * m4/ld-version-script.m4: Check that compiler rejects version
23914         scripts with syntax errors.  Reported by Bruno Haible
23915         <bruno@clisp.org>.
23917 2012-01-06  Bruno Haible  <bruno@clisp.org>
23919         Talk about "native Windows API", not "Woe32".
23920         * lib/accept4.c: Update comments to mention native Windows.
23921         * lib/execute.c: Likewise.
23922         * lib/fatal-signal.c: Likewise.
23923         * lib/localcharset.c: Likewise.
23924         * lib/nanosleep.c: Likewise.
23925         * lib/nl_langinfo.c: Likewise.
23926         * lib/pclose.c: Likewise.
23927         * lib/pipe-filter-gi.c: Likewise.
23928         * lib/pipe-filter-ii.c: Likewise.
23929         * lib/pipe.c: Likewise.
23930         * lib/pipe2.c: Likewise.
23931         * lib/popen.c: Likewise.
23932         * lib/progreloc.c: Likewise.
23933         * lib/relocatable.c: Likewise.
23934         * lib/sigaction.c: Likewise.
23935         * lib/sigprocmask.c: Likewise.
23936         * lib/spawn-pipe.h: Likewise.
23937         * lib/spawn-pipe.c: Likewise.
23938         * lib/spawni.c: Likewise.
23939         * lib/stat-time.h: Likewise.
23940         * lib/w32spawn.h: Likewise.
23941         * tests/test-isatty.c: Likewise.
23942         * lib/config.charset: More comments.
23943         * doc/gnulib-intro.texi: Mention native Windows.
23944         * doc/posix-functions/_Exit_C99.texi: Likewise.
23945         * doc/posix-headers/fcntl.texi: Likewise.
23947 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
23949         argp: Avoid crash if translator uses % characters in a translation.
23950         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
23951         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
23953 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
23955         doc: C11 and C++11 are now official
23956         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
23957         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
23958         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
23959         * modules/stdalign:
23960         Replace references to draft C1X to C11, and to draft C++0X to C++11.
23962 2012-01-06  Bruno Haible  <bruno@clisp.org>
23964         uc-is-grapheme-break tests: Tweak.
23965         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
23966         message.
23968 2012-01-06  Bruno Haible  <bruno@clisp.org>
23970         test-init.sh: correct the test for diff -u
23971         * tests/test-init.sh: Also redirect stdout to /dev/null.
23973 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
23975         Use ', not `, for quoting output.
23976         * build-aux/announce-gen (usage, sizes, print_news_deltas)
23977         (print_changelog_deltas, get_tool_versions, main program):
23978         * build-aux/git-version-gen:
23979         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
23980         * build-aux/move-if-change (help):
23981         * build-aux/useless-if-before-free (usage, main program):
23982         * check-module (parse_module_file, usage)
23983         (find_included_lib_files, check_module):
23984         * lib/argmatch.c (main) [TEST]:
23985         * lib/argp-help.c (_help):
23986         * lib/getopt1.c (main) [TEST]:
23987         * lib/git-merge-changelog.c (usage):
23988         * lib/xstrtol-error.c (xstrtol_error):
23989         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
23990         * m4/argz.m4 (gl_FUNC_ARGZ):
23991         * m4/bison.m4 (gl_BISON):
23992         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
23993         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23994         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23995         * m4/fpending.m4 (gl_PREREQ_FPENDING):
23996         * m4/gc-random.m4 (gl_GC_RANDOM):
23997         * m4/intl.m4 (gt_CHECK_DECL):
23998         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
23999         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
24000         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
24001         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
24002         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
24003         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
24004         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
24005         * tests/test-dirname.c (main):
24006         * tests/test-getpass.c (main):
24007         * tests/test-iconvme.c (main):
24008         * tests/test-parse-datetime.c (LOG):
24009         * tests/test-xstrtoimax.sh:
24010         * tests/test-xstrtol.sh:
24011         * tests/test-xstrtoll.sh:
24012         * tests/test-xstrtoumax.sh:
24013         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
24014         * top/GNUmakefile (abort-due-to-no-makefile):
24015         Quote 'like this', not `like this', as per the recent change to
24016         the GNU coding standards.
24018 2012-01-05  Bruno Haible  <bruno@clisp.org>
24020         strtoimax: Don't force a replacement on systems where intmax_t is int.
24021         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
24022         'intmax_t' is not larger than 'int'.
24023         Reported by Pádraig Brady <P@draigBrady.com>.
24025 2012-01-05  Bruno Haible  <bruno@clisp.org>
24027         doc: Mention NetBSD bugs.
24028         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
24029         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
24031 2012-01-05  Bruno Haible  <bruno@clisp.org>
24033         strtoumax tests: Enhance tests.
24034         * tests/test-strtoumax.c (main): Add tests for large values.
24036 2012-01-05  Bruno Haible  <bruno@clisp.org>
24038         strtoimax: Work around AIX 5.1 bug.
24039         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
24040         definition.
24041         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
24042         Set HAVE_STRTOIMAX.
24043         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
24044         REPLACE_STRTOIMAX.
24045         * modules/inttypes-incomplete (Makefile.am): Substitute
24046         REPLACE_STRTOIMAX.
24047         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
24048         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
24049         (Depends-on): Update conditions.
24050         * tests/test-strtoimax.c (main): Add tests for large values.
24051         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
24053 2012-01-05  Bruno Haible  <bruno@clisp.org>
24055         inttypes: Modernize.
24056         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
24057         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
24058         (Makefile.am): Update inttypes.h rule.
24060 2012-01-05  Jim Meyering  <meyering@redhat.com>
24062         init.sh: don't waste a subshell just to redirect stderr
24063         * tests/init.sh: In testing for diff -u and diff -c, use a
24064         stderr-redirecting exec inside `...` rather than a subshell.
24066         test-init.sh: avoid failure on HP-UX 11.00
24067         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
24068         resolves to diff -c or cmp.  Reported by Bruno Haible.
24070 2012-01-05  Bruno Haible  <bruno@clisp.org>
24072         Tests for module 'strtoull'.
24073         * modules/strtoull-tests: New file.
24074         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
24076 2012-01-05  Bruno Haible  <bruno@clisp.org>
24078         Tests for module 'strtoll'.
24079         * modules/strtoll-tests: New file.
24080         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
24082 2012-01-05  Bruno Haible  <bruno@clisp.org>
24084         Tests for module 'strtoul'.
24085         * modules/strtoul-tests: New file.
24086         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
24088 2012-01-05  Bruno Haible  <bruno@clisp.org>
24090         Tests for module 'strtol'.
24091         * modules/strtol-tests: New file.
24092         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
24094 2012-01-04  Jim Meyering  <meyering@redhat.com>
24096         test-init.sh: accommodate Solaris 5.10's different diff -u output
24097         * tests/test-init.sh: Also exempt @@ lines from the comparison
24098         of diff output, since Solaris 5.10 and GNU diff formats differ.
24099         Reported by Stefano Lattarini.
24101 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24103         test-posixtm: don't assume signed integer wraparound
24104         * tests/test-posixtm.c (main): Don't assume wraparound semantics
24105         after signed integer overflow.  Inspired by (though it may not
24106         fix) Bruno Haible's bug report in
24107         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
24109         Spell out "Windows 9x" and "Windows XP".
24110         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
24111         "Windows 9x" and "WinXP" with "Windows XP".
24113 2012-01-04  Jim Meyering  <meyering@redhat.com>
24115         test-vc-list-files-cvs.sh: remove obsolete comment
24116         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
24117         double exit.  Now that's all encapsulated via skip_ and Exit.
24119 2012-01-04  Bruno Haible  <bruno@clisp.org>
24121         Talk about "native Windows API", not "Win32".
24122         * lib/classpath.c: Update comments to mention native Windows.
24123         * lib/csharpexec.c: Likewise.
24124         * lib/dup2.c: Likewise.
24125         * lib/error.c: Likewise.
24126         * lib/fcntl.c: Likewise.
24127         * lib/filename.h: Likewise.
24128         * lib/findprog.c: Likewise.
24129         * lib/get-rusage-as.c: Likewise.
24130         * lib/get-rusage-data.c: Likewise.
24131         * lib/getpagesize.c: Likewise.
24132         * lib/javaexec.c: Likewise.
24133         * lib/msvc-inval.c: Likewise.
24134         * lib/msvc-nothrow.c: Likewise.
24135         * lib/nanosleep.c: Likewise.
24136         * lib/nonblocking.c: Likewise.
24137         * lib/printf-parse.c: Likewise.
24138         * lib/setlocale.c: Likewise.
24139         * lib/sigaction.c: Likewise.
24140         * lib/strerror_r.c: Likewise.
24141         * lib/tmpdir.c: Likewise.
24142         * lib/vasnprintf.c: Likewise.
24143         * lib/w32spawn.h: Likewise.
24144         * lib/waitpid.c: Likewise.
24145         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
24146         * m4/locale-ar.m4: Likewise.
24147         * m4/locale-fr.m4: Likewise.
24148         * m4/locale-ja.m4: Likewise.
24149         * m4/locale-tr.m4: Likewise.
24150         * m4/locale-zh.m4: Likewise.
24151         * m4/printf.m4: Likewise.
24152         * tests/test-cloexec.c: Likewise.
24153         * tests/test-copy-acl.sh: Likewise.
24154         * tests/test-copy-file.sh: Likewise.
24155         * tests/test-file-has-acl.sh: Likewise.
24156         * tests/test-set-mode-acl.sh: Likewise.
24157         * tests/test-dup-safer.c: Likewise.
24158         * tests/test-dup2.c: Likewise.
24159         * tests/test-dup3.c: Likewise.
24160         * tests/test-fcntl.c: Likewise.
24161         * tests/test-nonblocking-pipe.h: Likewise.
24162         * tests/test-nonblocking-socket.h: Likewise.
24163         * tests/test-pipe.c: Likewise.
24164         * tests/test-pipe2.c: Likewise.
24165         * tests/test-spawn-pipe-child.c: Likewise.
24166         * doc/acl-resources.txt: Likewise.
24167         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24168         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
24169         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
24170         * lib/localcharset.c: Update comments to mention native Windows.
24171         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24172         * lib/localename.c: Likewise.
24173         * lib/progreloc.c: Likewise.
24174         * lib/relocatable.c: Likewise.
24175         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24176         (windows_compute_revents): Renamed from win32_compute_revents.
24177         (windows_compute_revents_socket): Renamed from
24178         win32_compute_revents_socket.
24179         * lib/select.c: Update comments to mention native Windows.
24180         (windows_poll_handle): Renamed from win32_poll_handle.
24181         * m4/threadlib.m4: Update comments to mention native Windows.
24182         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
24183         --enable-threads=windows instead of --enable-threads=win32. Set
24184         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
24185         * lib/glthread/lock.h: Update comments to mention native Windows.
24186         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
24187         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
24188         USE_WIN32_THREADS.
24189         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
24190         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
24191         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
24192         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
24193         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
24194         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
24195         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
24196         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
24197         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
24198         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
24199         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
24200         * tests/test-tls.c: Likewise.
24201         Rationale:
24202         Microsoft renamed the "Win32 API" to "Windows API", as it is available
24203         on both 32-bit and 64-bit Windows systems.
24204         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
24205         line of distinction is between "native Windows" on one side and Unix/
24206         POSIX systems on the other side. More details in
24207         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
24208         Suggested by Paul Eggert.
24210 2012-01-03  Bruno Haible  <bruno@clisp.org>
24212         isatty: Support for MSVC 9.
24213         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
24214         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
24215         (_isatty_nothrow): New function.
24216         (isatty): Use it instead of _isatty.
24217         (IsConsoleHandle): Add comment, from Paolo Bonzini.
24218         * lib/poll.c (IsConsoleHandle): Likewise.
24219         * lib/select.c (IsConsoleHandle): Likewise.
24220         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
24221         (gl_PREREQ_ISATTY): New macro.
24222         * modules/isatty (Depends-on): Add msvc-inval.
24223         (configure.ac): Invoke gl_PREREQ_ISATTY.
24225 2012-01-03  Jim Meyering  <meyering@redhat.com>
24227         maint.mk: remove temporary transition aid from over 1.5 years ago
24228         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
24229         purpose was to aid in the transition (avoiding silent malfunction)
24230         from that old name to the new _sc_search_regexp.  This shim was
24231         added by commit 219c504b.
24233         init.sh: do not try to accommodate compare arguments starting with "-"
24234         * tests/init.sh (compare_dev_null_): Do not try to accommodate
24235         compare arguments that start with "-".  Besides, we do not worry
24236         about this when invoking diff or cmp; why start now with sed?
24237         Using "--" to separate options from argument would trigger sed
24238         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
24239         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
24241 2012-01-02  Bruno Haible  <bruno@clisp.org>
24243         Enhance tests for module 'isatty'.
24244         * modules/isatty-tests (Depends-on): Add pipe-posix.
24245         * tests/test-isatty.c: Include <fcntl.h>.
24246         (DEV_NULL): New macro.
24247         (main): Test the resut of isatty() also on regular files, pipes, and
24248         /dev/null.
24250         New module 'isatty'.
24251         * lib/unistd.in.h (isatty): New declaration.
24252         * lib/isatty.c: New file, based on an idea of
24253         Bastien Roucariès <roucaries.bastien@gmail.com>.
24254         * m4/isatty.m4: New file.
24255         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
24256         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
24257         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
24258         REPLACE_ISATTY.
24259         * modules/isatty: New file.
24260         * doc/posix-functions/isatty.texi: Mention the new module.
24261         Suggested by Paolo Bonzini.
24263 2012-01-02  Bruno Haible  <bruno@clisp.org>
24265         canonicalize: Tweak 2011-12-29 commit.
24266         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
24267         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
24269 2012-01-02  Jim Meyering  <meyering@redhat.com>
24271         gitlog-to-changelog: describe input syntax in --help output
24272         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
24274         gitlog-to-changelog: fix typo in --help: show backslash before email @
24275         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
24276         in sources, but not in actual output.
24278 2011-12-30  Jim Meyering  <meyering@redhat.com>
24280         gitlog-to-changelog: don't malfunction when name contains %-directive
24281         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
24282         in a name string cause trouble.  E.g., with a user name of "%s",
24283         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
24285 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
24287         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
24288         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
24289         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
24290         the "  (tiny change)" notation that is appended to the standard
24291         ChangeLog "date  name  email" header line.
24293 2012-01-01  Jim Meyering  <meyering@redhat.com>
24295         test-framework-sh: init.sh: fix "make dist" failure
24296         When using gnulib-tool's --with-tests option and any module that
24297         depends on test-framework-sh, "make dist" would fail due to the
24298         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
24299         in the gltests directory, and not in the gllib/ directory.
24300         One way to work around that is to move the EXTRA_DIST += init.sh
24301         from the primary module to the -tests one:
24302         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
24303         * modules/test-framework-sh (Makefile.am): ...not here.
24304         Reported by Tom G. Christensen in
24305         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
24307         version-etc: update copyright year reported by --version
24308         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
24310 2011-12-31  Pádraig Brady  <P@draigBrady.com>
24312         canonicalize: only stat() if required
24313         * lib/canonicalize.c (canonicalize_filename_mode):
24314         Avoid calling l?stat() when both CAN_MISSING,
24315         and CAN_NOLINKS are set, as we neither need
24316         to resolve symlinks or test component existence.
24318 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24320         doc: cover st_ino issues once; add OpenVMS etc.
24321         * doc/posix-functions/stat.texi (stat):
24322         * doc/posix-functions/lstat.texi (lstat):
24323         * doc/posix-functions/fstatat.texi (fstatat):
24324         * doc/posix-functions/fstat.texi (fstat):
24325         Move general 'struct stat' stuff to sys_stat.texi,
24326         leaving behind a pointer.
24327         * doc/posix-headers/sys_stat.texi (sys/stat.h):
24328         Merge duplicate info about 'struct stat' problems into here.
24329         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
24330         and suggest partial workarounds.
24332         same-inode: port to OpenVMS
24333         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
24334         three st_ino values.
24336 2011-12-30  Pádraig Brady  <P@draigBrady.com>
24338         canonicalize: fix references to stat() and lstat()
24339         * lib/canonicalize.c (canonicalize_filename_mode):
24340         Ensure references always resolve to a replacement
24341         function if required (even via a macro).
24343 2011-12-30  Jim Meyering  <meyering@redhat.com>
24345         gitlog-to-changelog: remove a little duplication
24346         * build-aux/gitlog-to-changelog (main): Grep @lines once,
24347         rather than twice.
24349 2011-12-29  Pádraig Brady  <P@draigBrady.com>
24351         canonicalize: add support for not resolving symlinks
24352         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
24353         indicate we don't want to follow symlinks.  Also
24354         provide CAN_MODE_MASK to aid setting these existing
24355         mutually exclusive values.
24356         * lib/canonicalize.c (canonicalize_filename_mode):
24357         Extract the flags from can_mode parameter, which
24358         are currently just used to select between stat()
24359         and lstat().  Also ensure that mutually exclusive
24360         values are flagged immediately as invalid.
24361         * tests/test-canonicalize.c: Verify symlinks are
24362         not followed, and that invalid flag combinations
24363         are diagnosed.
24365 2011-12-25  Jim Meyering  <meyering@redhat.com>
24367         gitlog-to-changelog: do not clump multi-paragraph entries
24368         Identical header lines (date,name,email+coauthors) are suppressed,
24369         thus putting all entries with those same characteristics under
24370         a single header.  However, when a log entry consists of two or
24371         more paragraphs, it may not be clear where it starts and ends.
24372         This change makes it so that such an entry is always separated
24373         from others by a header line, even when that header would
24374         otherwise be suppressed.
24375         * build-aux/gitlog-to-changelog: Implement the above.
24376         Inspired by a related request from Stefano Lattarini in
24377         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
24379 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24381         announce-gen: fix `cmd' typo in diagnostic
24382         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
24383         diagnostic: a missing '$' meant that the command was not output.
24385 2011-12-23  Jim Meyering  <meyering@redhat.com>
24387         test-framework-sh: distribute init.sh
24388         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
24389         Otherwise, "make -C gnulib-tests check" (at least in grep) would
24390         fail due to the lack of init.sh.
24392         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
24393         * modules/atexit-tests: Rather than listing tests/init.sh,
24394         now that there's a module for it, simply depend on that new module.
24395         * modules/closein-tests: Likewise.
24396         * modules/exclude-tests: Likewise.
24397         * modules/getcwd-tests: Likewise.
24398         * modules/perror-tests: Likewise.
24399         * modules/pread-tests: Likewise.
24400         * modules/pwrite-tests: Likewise.
24401         * modules/vc-list-files-tests: Likewise.
24402         * modules/verify-tests: Likewise.
24403         * modules/xalloc-die-tests: Likewise.
24404         * modules/xstrtoimax-tests: Likewise.
24405         * modules/xstrtol-tests: Likewise.
24406         * modules/xstrtoll-tests: Likewise.
24407         * modules/xstrtoumax-tests: Likewise.
24408         * modules/yesno-tests: Likewise.
24410 2011-12-22  Jim Meyering  <meyering@redhat.com>
24412         test-framework-sh: add minimal tests of init.sh's compare function
24413         * modules/test-framework-sh-tests: New file.
24414         * tests/test-init.sh: New file.
24416         test-framework-sh: new module
24417         * modules/test-framework-sh: New file.
24418         * MODULES.html.sh (Support for maintaining and releasing projects):
24419         List it.
24421         init.sh: do not emit simulated diff output to stderr
24422         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
24424 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24426         .gitignore: ignore gnulib.dvi and regex.info
24427         * doc/.gitignore:add gnulib.dvi and regex.info
24429 2011-12-22  Jim Meyering  <meyering@redhat.com>
24431         init.sh: correct previous change
24432         * tests/init.sh (compare): My previous change was wrong.
24433         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
24435         init.sh: avoid unwarranted test failure when using "set -e"
24436         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
24437         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
24438         a use like "compare exp out" would get evoke an unconditional failure.
24440 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
24442         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
24443         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
24444         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
24445         autoreconf that did not.
24446         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
24447         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
24449 2011-12-17  Jim Meyering  <meyering@redhat.com>
24451         bootstrap: remove some now-unneeded code
24452         This script arose back when gnulib-tool was young.
24453         Since then, it has seen improvements that render much of this
24454         script unnecessary.  In particular, it can now make symlinks
24455         to the files it uses.  Also, I no longer see as much value in
24456         marking files as read-only via comments.
24457         If you relied on the symlink-creation feature of the preceding
24458         version of this script, you can get most of that functionality
24459         by adding the --symlink option to the definition of
24460         gnulib_tool_option_extras in your bootstrap.conf file.
24461         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
24462         Run autopoint and libtoolize *before* gnulib-tool.
24463         After it, run an abbreviated autoreconf, rather than a loop around
24464         all tools.
24465         (slirp, bt_mark_as_generated): Remove functions.
24467 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24469         ftoastr: fix typo
24470         * lib/ftoastr.h: Fix misspelling in comment.
24472 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
24474         * top/README-release: fix punctuation.
24476 2011-12-17  Jim Meyering  <meyering@redhat.com>
24478         bootstrap: correct the recent buildreq change
24479         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
24480         had no effect.
24481         * build-aux/bootstrap (buildreq): Bracket each search term with
24482         "*...*", so that the shell "case" statement works as intended.
24483         Add comments.
24485 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
24487         build: let bootstrap resort to wget when downloading .po files
24488         * build-aux/bootstrap (download_po_files): Fallback to wget when
24489         downloading the .po files via rsync fails.  This is necessary to
24490         bootstrap from behind a strict firewall.
24492 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24494         stdint: don't assume C++11 when compiling with g++
24495         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
24496         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
24497         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
24498         work also in C++ before C++11, as that improperly inhibits
24499         generating a substitute stdint.h for that case.
24501 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24503         alloca: protect comment from gnulib-tool
24504         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
24505         that gnulib-tool doesn't think it's a license, and munge it to
24506         say "GCC version 3".
24508 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
24510         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
24511         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
24512         $(abs_top_builddir) instead of $(top_builddir).
24514 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
24516         strftime-tests: also test nanoseconds
24517         * tests/test-strftime.c (T): Add a test of %N.
24519 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
24521         inttypes, stdint: add C++11 support
24522         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
24523         when including inttypes.h and stdint.h.  Support this change to
24524         the standard.
24525         * doc/posix-headers/inttypes.texi (inttypes.h):
24526         * doc/posix-headers/stdint.texi (stdint.h): Document this.
24527         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
24528         Define if not defined already, for the benefit of pre-C++11 hosts.
24529         Define the standard format macros (e.g., PRId8) always.
24530         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
24531         Likewise, if __cpluspus.  Define the standard constant and limit
24532         macros (e.g., INT8_C, INT8_MAX) always.
24533         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
24534         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
24535         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
24536         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
24537         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
24538         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
24539         Likewise.
24541 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
24543         nonblocking tests: Fix test failure on Linux/PPC.
24544         Suggested by Prerna Saxena in
24545         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
24546         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
24547         Set to 1100000.
24549 2011-12-12  Jim Meyering  <meyering@redhat.com>
24551         argmatch: don't hard-code `' when listing valid option arguments
24552         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
24553         use the quote function to add quotes.  Use fputs rather than
24554         fprintf for the format string with no format directive.
24556 2011-12-07  Eric Blake  <eblake@redhat.com>
24558         bootstrap: detect tools required by gnulib-tool
24559         * build-aux/bootstrap (buildreq): Provide minimum implicit
24560         dependencies.
24561         * DEPENDENCIES: Mention patch as a prereq.
24563 2011-12-04  Bruno Haible  <bruno@clisp.org>
24565         sethostname: Port to Windows platforms.
24566         * lib/sethostname.c: Provide an alternate implementation for Windows
24567         platforms.
24568         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
24569         (main): Skip the test if sethostname() fails with EPERM. On Windows
24570         platforms, don't check the result of gethostname().
24572 2011-12-04  Bruno Haible  <bruno@clisp.org>
24573             Jim Meyering  <meyering@redhat.com>
24575         tests: Avoid spurious error message on platforms without mktemp program.
24576         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
24578 2011-12-04  Bruno Haible  <bruno@clisp.org>
24580         sethostname: Fix documentation.
24581         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
24582         "not fixed" section.
24584 2011-12-03  Bruno Haible  <bruno@clisp.org>
24586         gnulib-tool: Verify that the License field is present and non-empty.
24587         * gnulib-tool (func_get_license_raw): New function, extracted from
24588         func_get_license.
24589         (func_get_license): Use it. Warn if the module is not a test module and
24590         has no license.
24591         Suggested by Jim Meyering.
24593 2011-12-03  Bruno Haible  <bruno@clisp.org>
24595         sethostname tests: Fix link error on mingw.
24596         * tests/test-sethostname1.c: New file, extracted from
24597         tests/test-sethostname.c.
24598         * tests/test-sethostname2.c: New file, extracted from
24599         tests/test-sethostname.c.
24600         * tests/test-sethostname.c: Remove file.
24601         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
24602         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
24603         (Depends-on): Add gethostname.
24604         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
24605         Link the latter with $(GETHOSTNAME_LIB).
24607         sethostname tests: Fix compilation error on mingw.
24608         * tests/test-sethostname.c: Don't include <sys/types.h>.
24609         (geteuid): Use a dummy value without uid_t.
24610         * modules/sethostname-tests (Depends-on): Remove sys_types.
24612         sethostname tests: Avoid a gcc warning.
24613         * tests/test-sethostname.c (main): Remove an unused variable.
24615         Tweak last commit.
24616         * modules/sethostname-tests (Files): Sort by decreasing importance.
24617         (configure.ac): Check for geteuid.
24618         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
24619         the test when there's nothing to test. Drop an unnecessary cast.
24620         Improve an error message. Verify that the final sethostname() call
24621         succeeds.
24623 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24625         Add a test suite for the sethostname module.
24626         * modules/sethostname-tests: New file.  A test program
24627         for the sethostname module.
24628         * tests/test-sethostname.c: Likewise.
24630 2011-12-03  Bruno Haible  <bruno@clisp.org>
24632         Tweak last commit.
24633         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
24634         Fix preprocessor directives indentation. Fix typos.
24635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
24636         * modules/unistd (Makefile): Likewise.
24638 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24640         Integrate the sethostname module into unistd.
24641         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
24642         into the unistd.h header.
24643         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
24644         preprocessor directives.
24645         * modules/unistd: Setup the Makefile substitutions of the
24646         SETHOSTNAME preprocessor directives.
24648 2011-12-03  Bruno Haible  <bruno@clisp.org>
24650         Tweak last commit.
24651         * lib/sethostname.c: Don't include <string.h>.
24652         (sethostname): No need to copy the argument string to the stack. Don't
24653         call clearerr. Preserve errno when fprintf failed.
24654         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
24655         Don't invoke AC_REPLACE_FUNCS.
24656         * modules/sethostname (Link): Remove empty section.
24657         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
24658         failure problem.
24660 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24662         New module 'sethostname'.
24663         * lib/sethostname.c (sethostname): New file.  Provide sethostname
24664         for systems that lack it.
24665         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
24666         sethostname declaration and function.
24667         * modules/sethostname: New file.  Define the sethostname module.
24669 2011-12-03  Bruno Haible  <bruno@clisp.org>
24671         Tweak last commit.
24672         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
24674 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24676         Split the HOST_NAME_MAX detection into a separate m4 macro.
24677         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
24678         macro so it can be used by the pending sethostname module.
24680 2011-12-03  Bruno Haible  <bruno@clisp.org>
24682         Fix module descriptions syntax.
24683         * modules/argv-iter (License): Fix syntax.
24684         * modules/di-set (License): Likewise.
24685         * modules/ino-map (License): Likewise.
24686         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
24688 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24690         stdalign: port to Clang 3.0
24691         Problem reported by Simon Josefsson in
24692         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
24693         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
24694         which has <stdalign.h> but which does not define alignof.
24695         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
24697 2011-12-01  Eric Blake  <eblake@redhat.com>
24699         mktempd: silence dd usage
24700         * build-aux/mktempd (rand_bytes): Silence dd.
24702 2011-11-30  Simon Josefsson  <simon@josefsson.org>
24704         manywarnings: Don't mention gcc version in docstring.
24705         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
24706         Jim Meyering <meyering@redhat.com>.
24708 2011-11-30  Jim Meyering  <meyering@redhat.com>
24710         hash: mark a few floating point constants with "f" suffix
24711         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
24712         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
24713         floating point constants with "f", since they're destined to be
24714         saved/used as "float"s.
24716 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
24718         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
24719         * tests/test-float.c (test_long_double): Correct and re-enable the
24720         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
24722 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
24724         Avoid subtracting two pointers that don't point into the same block.
24725         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
24726         only pointers into the same memory block are subtracted. We cannot
24727         assume that sizeof (ptrdiff_t) == sizeof (void *).
24729 2011-11-29  Eric Blake  <eblake@redhat.com>
24731         maint.mk: add syntax check for use of compare from init.sh
24732         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
24733         moved here from coreutils.
24735         manywarnings: drop -Wunsuffixed-float-constants
24736         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
24737         '1.0D', which is the only way to silence this warning for 'double'.
24739 2011-11-29  Jim Meyering  <meyering@redhat.com>
24741         hash: mark compute_bucket_size with the pure attribute
24742         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
24744         quotearg, propername: correct pragma guard expression
24745         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
24746         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
24748 2011-11-28  Jim Meyering  <meyering@redhat.com>
24750         propername: do not mark proper_name with the const attribute
24751         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
24752         since it examines data pointed to by its parameter.
24753         * lib/propername.c (proper_name): Instead, add a pragma to suppress
24754         the suggestion from -Wsuggest-attribute=const.
24756         propername: mark one more function as const
24757         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
24759 2011-11-27  Jim Meyering  <meyering@redhat.com>
24761         mark functions with const and pure attributes
24763         Mark functions per suggestions from gcc-4.6 when using these options:
24764         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
24765         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
24766         Follow these guidelines: when possible, apply the attribute to
24767         an extern declaration, not to its definition.  Apply it to the
24768         definition only when the definition is static.
24769         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
24770         * lib/argv-iter.h (argv_iter_n_args): Likewise.
24771         * lib/base64.h (isbase64): Likewise.
24772         * lib/basename-lgpl.c (last_component, base_len): Likewise.
24773         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
24774         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
24775         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
24776         (c_tolower, c_toupper): Likewise.
24777         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
24778         * lib/chdir-long.c (find_non_slash): Likewise.
24779         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
24780         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
24781         * lib/file-type.h (file_type): Likewise.
24782         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
24783         * lib/filevercmp.c (verrevcmp): Likewise.
24784         * lib/freadahead.h (freadahead): Likewise.
24785         * lib/fts.c (fts_maxarglen): Likewise.
24786         * lib/hash-pjw.h (hash_pjw): Likewise.
24787         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
24788         * lib/hash.c (is_prime, next_prime): Likewise.
24789         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
24790         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
24791         (hash_table_ok, hash_get_first, hash_string): Likewise.
24792         (compute_bucket_size): Likewise.
24793         * lib/i-ring.h (i_ring_empty): Likewise.
24794         * lib/isnan.c (isnanl): Likewise.
24795         * lib/math.h (isnanl, rpl_isnanl): Likewise.
24796         * lib/memcasecmp.h (memcasecmp): Likewise.
24797         * lib/memchr2.h (memchr2): Likewise.
24798         * lib/memcmp2.h (memcmp2): Likewise.
24799         * lib/parse-datetime.y (lookup_zone): Likewise.
24800         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
24801         [!WINDOWS_SOCKETS]: Likewise.
24802         * lib/strnlen1.h (strnlen1): Likewise.
24803         * lib/uniwidth.in.h (uc_width): Likewise.
24804         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
24805         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
24806         (quoting_options_from_style): Add a comment.
24807         * lib/propername.h (proper_name): Add a comment.
24809 2011-11-27  Bruno Haible  <bruno@clisp.org>
24811         Remove unused macros from !_LIBC code in glibc-borrowed files.
24812         * lib/fnmatch.c (STRCOLL): Remove macro.
24813         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
24814         * lib/glob.c (__stat, __readdir64): Remove macros.
24815         * lib/tempname.c (__open64, __xstat64): Remove macros.
24816         Suggested by Paul Eggert.
24818 2011-11-27  Bruno Haible  <bruno@clisp.org>
24820         getcwd: Fix link error on MSVC 9.
24821         * modules/getcwd (Depends-on): Add readdir, rewinddir.
24823 2011-11-27  Bruno Haible  <bruno@clisp.org>
24825         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
24826         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
24827         HAVE_OPENDIR is 0.
24828         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
24829         HAVE_CLOSEDIR is 0.
24830         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
24831         is 0.
24832         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
24834 2011-11-27  Bruno Haible  <bruno@clisp.org>
24836         getcwd: Fix bug from 2011-08-17.
24837         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
24838         platforms that need it.
24839         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
24840         code of 4 to be a failure, not a success. This ensures that
24841         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
24843 2011-11-27  Bruno Haible  <bruno@clisp.org>
24845         binary-io tests: Avoid test failure on mingw when libtool is used.
24846         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
24847         Don't verify the size of t-bin-out1.tmp here.
24848         * tests/test-binary-io.sh: Verify it here.
24849         Reported by Simon Josefsson.
24851 2011-11-26  Bruno Haible  <bruno@clisp.org>
24853         Fix conflict between two instantiations of module 'unistd'.
24854         * gnulib-tool (func_emit_autoconf_snippet): Substitute
24855         ${include_guard_prefix} also in the autoconf snippet.
24856         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
24857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
24858         GNULIB_UNISTD_H_GETOPT.
24859         * modules/getopt-posix (configure.ac): Set the
24860         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
24861         * modules/getopt-gnu (configure.ac): Likewise.
24862         * modules/unistd (Makefile.am): Change the substitution value of
24863         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
24864         Reported by Simon Josefsson.
24866 2011-11-25  Bruno Haible  <bruno@clisp.org>
24868         pagealign_alloc: Doc and comments.
24869         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
24870         module.
24871         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
24873 2011-11-25  Jim Meyering  <meyering@redhat.com>
24875         test-update-copyright.sh: avoid false-positive failure
24876         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
24877         around false positive failure on Cygwin/Windows.  The latter was
24878         matching erroneously-created files with names like
24879         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
24881 2011-11-25  Simon Josefsson  <simon@josefsson.org>
24883         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
24884         * m4/valgrind-tests.m4: Check that the parameters that will be
24885         used works, not just a subset of them.  Reported by Bruno Haible
24886         <bruno@clisp.org>.
24888 2011-11-24  Jim Meyering  <meyering@redhat.com>
24890         test-stdalign.c: comment out long double tests
24891         * tests/test-stdalign.c: Don't try to reduce alignment of long double
24892         variables.  That provokes errors like this from gcc-4.7.0 20111124:
24893         error: '_Alignas' specifiers cannot reduce alignment of \
24894         'static_longdouble_alignas'.
24896 2011-11-22  Jim Meyering  <meyering@redhat.com>
24898         init.sh: make "compare /dev/null FILE" output more readable
24899         * tests/init.sh (compare_): Document the preferred order of arguments.
24900         (emit_diff_u_header_): New function.
24901         (compare_dev_null_): Emit a simulated diff, rather than just the
24902         contents of the unexpected file.  Suggestion from Bruno Haible.
24904 2011-11-21  Jim Meyering  <meyering@redhat.com>
24905             Eric Blake  <eblake@redhat.com>
24907         init.sh: work around OSF/1 5.1's mishandling of /dev/null
24908         * tests/init.sh: Make our compare function slightly more portable.
24909         Reported by Bruno Haible in
24910         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
24912 2011-11-21  Simon Josefsson  <simon@josefsson.org>
24914         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
24915         before using it, in code that ends up in config.h.
24917 2011-11-20  Bruno Haible  <bruno@clisp.org>
24919         getcwd: Work around getcwd bug on AIX 5..7.
24920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
24921         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
24922         Use a different value for gl_cv_func_getcwd_path_max. Move the
24923         definition of HAVE_PARTLY_WORKING_GETCWD from here...
24924         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
24925         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
24926         Define HAVE_MINIMALLY_WORKING_GETCWD.
24927         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
24928         where it is not even minimally working, that is, on AIX.
24929         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
24930         m4/getcwd-path-max.m4.
24931         (main): Update exit code computation.
24932         * doc/posix-functions/getcwd.texi: Mention list of platforms where
24933         getcwd does not handle long file names.
24935 2011-11-20  Bruno Haible  <bruno@clisp.org>
24937         getcwd: Fix bug from 2009-09-10.
24938         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
24939         like "no".
24941 2011-11-20  Simon Josefsson  <simon@josefsson.org>
24943         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
24945 2011-11-20  Bruno Haible  <bruno@clisp.org>
24947         fma tests: Avoid shadowing local variables.
24948         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
24949         expected.
24951 2011-11-20  Bruno Haible  <bruno@clisp.org>
24953         copysignf tests: Fix.
24954         * tests/test-copysignf.c: Fix signature check.
24956 2011-11-20  Bruno Haible  <bruno@clisp.org>
24958         fma: Remove unused code.
24959         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
24960         unused macros.
24962 2011-11-20  Bruno Haible  <bruno@clisp.org>
24964         sethostname: Fix doc about AIX.
24965         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
24966         sethostname; it has it.
24968         sethostname: Mention more portability problems.
24969         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
24970         problem.
24971         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24973 2011-11-19  Bruno Haible  <bruno@clisp.org>
24975         Depend on module fcntl-h when AT_FDCWD is used.
24976         * modules/utimens (Depends-on): Add fcntl-h.
24977         * modules/areadlinkat (Depends-on): Likewise.
24978         * modules/areadlinkat-with-size (Depends-on): Likewise.
24979         * modules/faccessat (Depends-on): Likewise.
24980         * modules/fchmodat (Depends-on): Likewise.
24981         * modules/fchownat (Depends-on): Likewise.
24982         * modules/getcwd (Depends-on): Likewise.
24983         * modules/mkdirat (Depends-on): Likewise.
24984         * modules/mkfifoat (Depends-on): Likewise.
24985         * modules/readlinkat (Depends-on): Likewise.
24986         * modules/symlinkat (Depends-on): Likewise.
24987         * modules/dup2-tests (Depends-on): Likewise.
24988         * modules/fdutimensat-tests (Depends-on): Likewise.
24989         * modules/futimens-tests (Depends-on): Likewise.
24991 2011-11-19  Bruno Haible  <bruno@clisp.org>
24993         euidaccess: Update a comment.
24994         * lib/euidaccess.c: Update comment about platforms with faccessat.
24996 2011-11-19  Bruno Haible  <bruno@clisp.org>
24998         openat: Fix file list.
24999         * modules/openat (Files): Remove lib/at-func.c.
25001 2011-11-19  Bruno Haible  <bruno@clisp.org>
25003         fstatat: Simplify.
25004         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
25005         gnulib should define rpl_fstatat, there is a
25006         "#define fstatat rpl_fstatat" in <sys/stat.h>.
25008 2011-11-19  Bruno Haible  <bruno@clisp.org>
25010         Ensure 'inline' can be used in tests/test-utimens-common.h.
25011         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
25012         * modules/futimens-tests (configure.ac): Likewise.
25013         * modules/utimens-tests (configure.ac): Likewise.
25014         * modules/utimensat-tests (configure.ac): Likewise.
25016 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25018         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
25019         not hash_insert0.
25020         (hash_insert_if_absent): Doc fix.
25022 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25024         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
25026 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25028         test-getcwd: disambiguate exit status
25029         * tests/test-getcwd.c (test_long_name): Return 0..7.
25030         (main): Exit with an unambiguous exit status.  The old
25031         code yielded a mysterious mixture of two failure codes.
25033         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
25034         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
25035         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
25036         rpl_fstatat or fstatat.  This should fix the other problem
25037         reported by Kai Habel in
25038         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25039         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
25040         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
25041         and I reproduced it on a Solaris 8 host we still have in production.
25043 2011-11-18  Jim Meyering  <meyering@redhat.com>
25045         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
25046         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
25047         Add a sentence to the comment.
25048         (hash_insert0): New function that simply calls hash_insert_if_absent.
25049         * lib/hash.h (hash_insert_if_absent): Declare it.
25050         (hash_insert0): Add deprecation attribute.
25051         (_GL_ATTRIBUTE_DEPRECATED): Define.
25052         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
25053         not hash_insert0.
25054         * NEWS: Mention it, even though it's not really an incompatible change.
25056 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
25058         openat: avoid compilation failure due to lack of <errno.h> inclusion
25059         * lib/openat.c: Include <errno.h>.
25061 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25063         * modules/getcwd (Depends-on): Add fdopendir.
25064         This fixes one of the two problems reported by Kai Habel in
25065         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25067         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
25068         stdalign problem reported by Ian Beckwith in
25069         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
25070         * modules/crypto/gc-arcfour (Depends-on):
25071         Depend conditionally on crypto/arcfour.
25072         * modules/crypto/gc-arctwo (Depends-on):
25073         Depend conditionally on crypto/arctwo.
25074         * modules/crypto/gc-des (Depends-on):
25075         Depend conditionally on crypto/des.
25076         * modules/crypto/gc-hmac-md5 (Depends-on):
25077         Depend conditionally on crypto/hmac-md5.
25078         * modules/crypto/gc-hmac-sha1 (Depends-on):
25079         Depend conditionally on crypto/hmac-sha1.
25080         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
25081         * modules/crypto/gc-md4 (Depends-on):
25082         Depend conditionally on crypto/md4.
25083         * modules/crypto/gc-md5 (Depends-on):
25084         Depend conditionally on crypto/md5.
25085         * modules/crypto/gc-rijndael (Depends-on):
25086         Depend conditionally on crypto/rijndael.
25087         * modules/crypto/gc-sha1 (Depends-on):
25088         Depend conditionally on crypto/sha1.
25089         * modules/crypto/gc-arcfour:
25090         * modules/crypto/gc-arctwo:
25091         * modules/crypto/gc-des:
25092         * modules/crypto/gc-hmac-md5:
25093         * modules/crypto/gc-hmac-sha1:
25094         * modules/crypto/gc-md2:
25095         * modules/crypto/gc-md4:
25096         * modules/crypto/gc-md5:
25097         * modules/crypto/gc-rijndael:
25098         * modules/crypto/gc-sha1:
25099         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
25100         now that the conditional dependencies do the work for us.
25102 2011-11-17  Jim Meyering  <meyering@redhat.com>
25104         tests: factor st_ctime-comparison out of two headers
25105         * tests/test-utimens-common.h (ctime_compare): Define.
25106         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
25107         * tests/test-lutimens.h (test_lutimens): Likewise.
25108         * tests/test-utimens.h (test_utimens): Likewise.
25110         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
25111         Invoke the test program via an init.sh-using wrapper.
25112         * tests/test-getcwd.sh: New file.
25113         * modules/getcwd-tests (Files): Add it.
25114         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
25116 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
25118         gitlog-to-changelog: support multi-author commits.
25119         The FSF cares about keeping track of all authors of patches to its
25120         projects, but Git doesn't provide obvious support for multi-author
25121         changesets. Consensus seems to be forming around the use of extra
25122         Signed-off-by inspired lines in the log message formatted as
25123         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
25124         multi-author commits between version control systems.
25125         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
25126         log message and output in standard ChangeLog multi-author format.
25127         Reported by Peter Rosin <peda@lysator.liu.se>
25129 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25130             Bruno Haible  <bruno@clisp.org>
25132         Fix some modules' file list.
25133         * modules/fstatat (Files): Add m4/lstat.m4.
25134         * modules/openat (Files): Likewise.
25135         * modules/unlinkat (Files): Likewise.
25137 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
25139         maint.mk: fix tight-scope.mk generation in VPATH builds.
25140         * top/maint.mk (tight-scope.mk): Make sure to prefix file
25141         reference with $(srcdir) so that the file is found correctly even
25142         when running `make syntax-check' in a VPATH build.
25144 2011-11-13  Bruno Haible  <bruno@clisp.org>
25145             Jim Meyering  <meyering@redhat.com>
25147         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
25148         * tests/init.sh (compare): Remove "No differences encountered" or
25149         synonymous output from the 'diff' program.
25151 2011-11-13  Bruno Haible  <bruno@clisp.org>
25153         Makefile: Tweak indentation.
25154         * Makefile: Use tab as first character in every line that contains rule
25155         commands.
25157 2011-11-13  Bruno Haible  <bruno@clisp.org>
25159         Syntax check for copyright statements.
25160         * check-copyright: New file.
25161         * Makefile (sc_check_copyright): New rule.
25163 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25165         * build-aux/git-version-gen: Add --prefix to configure the tag
25166         match string.
25168 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25170         * build-aux/git-version-gen: Add --help and --version.
25172 2011-11-12  Jim Meyering  <meyering@redhat.com>
25174         revamp the other test-exclude?.sh scripts to use init.sh, too
25175         * tests/test-exclude1.sh: Use init.sh.
25176         * tests/test-exclude2.sh: Likewise.
25177         * tests/test-exclude3.sh: Likewise.
25178         * tests/test-exclude4.sh: Likewise.
25179         * tests/test-exclude5.sh: Likewise.
25180         * tests/test-exclude6.sh: Likewise.
25181         * tests/test-exclude7.sh: Likewise.
25182         * tests/test-exclude8.sh: Likewise.
25183         * modules/exclude-tests (Files): List init.sh.
25185         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
25186         These shell scripts ignored failure of the binary test-exclude,
25187         so making the latter return 77 didn't cause them to be skipped.
25188         * tests/test-exclude5.sh: Exit with test-exclude's error status
25189         when that program fails.  Revamp to use init.sh.
25190         * tests/test-exclude2.sh: Likewise.
25192         test-exclude: fix a typo
25193         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
25195 2011-11-11  Bruno Haible  <bruno@clisp.org>
25197         obstack: Fix compilation error on MSVC 9.
25198         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
25200 2011-11-11  Jim Meyering  <meyering@redhat.com>
25202         test-exclude: skip tests rather than failing on deficient systems
25203         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
25204         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
25205         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
25206         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
25208 2011-11-10  Bruno Haible  <bruno@clisp.org>
25210         ptsname_r test: Avoid gcc warning on glibc systems.
25211         * tests/test-ptsname_r.c (null_ptr): New function.
25212         (test_errors): Use it.
25214 2011-11-10  Bruno Haible  <bruno@clisp.org>
25216         ptsname_r: Avoid compilation error on OSF/1 5.1.
25217         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
25218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
25219         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
25220         function is not declared or incompatibly declared.
25221         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
25222         * modules/ptsname_r (Depends-on, configure.ac): Update.
25223         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
25225 2011-11-10  Bruno Haible  <bruno@clisp.org>
25227         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
25228         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
25229         When cross-compiling, guess yes on all platforms except AIX.
25230         Reported by Ludovic Courtès <ludo@gnu.org>.
25232 2011-11-09  Bruno Haible  <bruno@clisp.org>
25234         ptsname_r tests: Fix bugs.
25235         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
25236         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
25238 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25240         fstatat: work with cross-compilation
25241         Problem reported by Ludovic Courtès in
25242         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
25243         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
25244         "cross-compiling" and assume the bug is present.  Replace
25245         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
25246         an inverted sense, to be more conservative about our assumptions.
25247         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
25249 2011-11-09  Bruno Haible  <bruno@clisp.org>
25251         Improve MODULES.html output.
25252         * modules/mkfifoat (Description): Use the word "function".
25253         * modules/readlinkat (Description): Likewise.
25254         * modules/symlinkat (Description): Likewise.
25256 2011-11-09  Eric Blake  <eblake@redhat.com>
25258         ptsname_r-tests: new test module
25259         * modules/ptsname_r-tests: New module.
25260         * tests/test-ptsname_r.c: New file.
25262         ptsname_r: new module
25263         * modules/ptsname_r: New module.
25264         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
25265         * lib/ptsname.c (__ptsname_r): Split...
25266         * lib/ptsname_r.c: ...into new file.
25267         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
25268         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
25269         * modules/stdlib (Makefile.am): Substitute witnesses.
25270         * lib/stdlib.in.h (ptsname_r): Declare it.
25271         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
25272         * MODULES.html.sh (Misc): Likewise.
25273         * modules/ptsname (Depends-on): Alter dependency.
25274         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
25276 2011-11-09  Jim Meyering  <meyering@redhat.com>
25278         announce-gen: be more concise when there's only one URL+tarball
25279         * build-aux/announce-gen (get_tool_versions): When you distribute
25280         only one type of tarball, combine the first two "Here are..."
25281         sections and make the key-checking grammar independent of
25282         how many tarballs there are.
25284 2011-11-09  Eric Blake  <eblake@redhat.com>
25286         openpty: provide a stub on mingw
25287         * lib/pty.in.h (includes): Provide forward declarations.
25288         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
25290         raise: fix mingw handling of SIGPIPE
25291         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
25293 2011-11-08  Bruno Haible  <bruno@clisp.org>
25295         More conditional dependencies.
25296         * modules/faccessat (Depends-on): Add conditions.
25297         * modules/fchmodat (Depends-on): Likewise.
25298         * modules/fchownat (Depends-on): Likewise.
25299         * modules/fstatat (Depends-on): Likewise.
25300         * modules/mkfifoat (Depends-on): Likewise.
25301         * modules/readlinkat (Depends-on): Likewise.
25302         * modules/symlinkat (Depends-on): Likewise.
25303         * modules/unlinkat (Depends-on): Likewise.
25304         * modules/utimensat (Depends-on): Likewise.
25305         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
25306         * modules/linkat (Depends-on): Refine the conditions.
25307         * modules/renameat (Depends-on): Likewise.
25309 2011-11-08  Bruno Haible  <bruno@clisp.org>
25311         faccessat: Move AC_LIBOBJ invocation to module description.
25312         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
25313         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
25314         invocation from here...
25315         * modules/faccessat (configure.ac): ... to here. Invoke
25316         gl_PREREQ_FACCESSAT.
25318 2011-11-08  Bruno Haible  <bruno@clisp.org>
25320         faccessat: Simplify autoconf macro.
25321         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
25322         gl_FUNC_EUIDACCESS.
25324 2011-11-08  Bruno Haible  <bruno@clisp.org>
25326         renameat: Fix dependencies.
25327         * modules/renameat (Depends-on): Add stdbool.
25329 2011-11-08  Bruno Haible  <bruno@clisp.org>
25331         mkfifoat: Fix module description.
25332         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
25333         not gl_UNISTD_MODULE_INDICATOR.
25335 2011-11-08  Bruno Haible  <bruno@clisp.org>
25337         fstatat: Remove unused dependency.
25338         * modules/fstatat (Depends-on): Remove fstat.
25340 2011-11-08  Simon Josefsson  <simon@josefsson.org>
25342         GNUmakefile: behave when Makefile is missing.
25343         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
25345 2011-11-08  Bruno Haible  <bruno@clisp.org>
25347         openat: Conditionalize dependencies.
25348         * lib/openat.c: Reduce the scope of some #includes.
25349         * modules/openat (Depends-on): Add conditions.
25351 2011-11-07  Jim Meyering  <meyering@redhat.com>
25353         maint.mk: extract GPG key ID without using a temporary file
25354         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
25355         without using a temporary file.  Based on a suggestion from Werner Koch
25356         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
25358 2011-11-07  Eric Blake  <eblake@redhat.com>
25360         grantpt: fix typo
25361         * lib/stdlib.in.h (grantpt): Check correct function.
25363         maint.mk: silence new syntax check
25364         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
25366 2011-11-06  Bruno Haible  <bruno@clisp.org>
25368         Doc about floating-point and math API.
25369         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
25370         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
25372 2011-11-06  Bruno Haible  <bruno@clisp.org>
25374         stdalign tests: Skip the test when compiled by Sun C.
25375         * tests/test-stdalign.c (main): Skip the test on Sun C.
25377 2011-11-06  Bruno Haible  <bruno@clisp.org>
25379         ansi-c++-opt: Complete the 2011-06-05 change.
25380         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
25381         does not support namespaces, set the variable to "no", not to ":".
25383 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25385         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
25387 2011-11-06  Bruno Haible  <bruno@clisp.org>
25389         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
25390         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
25391         (minus_zerol) [HP-UX]: New macro.
25392         (unary_minus) [HP-UX]: New function.
25393         (copysignl) [HP-UX]: Use unary_minus function.
25395 2011-11-06  Bruno Haible  <bruno@clisp.org>
25397         ldexp, ldexpf, ldexpl: Enhance tests.
25398         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
25399         and tests/test-ldexpl.c.
25400         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
25401         LDEXP, MIN_EXP, MAX_EXP): New macros.
25402         Include test-ldexp.h.
25403         (main): Just call test_function.
25404         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
25405         infinity.h, nan.h.
25406         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
25407         MAX_EXP): New macros.
25408         Include test-ldexp.h.
25409         (x, y): Remove variables.
25410         (main): Just call test_function.
25411         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
25412         infinity.h, nan.h.
25413         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
25414         MAX_EXP): New macros.
25415         Include test-ldexp.h.
25416         (x, y): Remove variables.
25417         (main): Just call test_function.
25418         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
25419         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
25420         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
25421         (Depends-on): Add isnand-nolibm, signbit, float.
25422         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
25423         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
25424         (Depends-on): Add isnanf-nolibm, signbit, float.
25426 2011-11-06  Bruno Haible  <bruno@clisp.org>
25428         math tests: Cosmetics.
25429         * tests/test-math-c++.cc: Reorder declarations.
25431 2011-11-05  Bruno Haible  <bruno@clisp.org>
25433         fma*: Simplify test.
25434         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
25435         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
25437         Tests for module 'fmal'.
25438         * modules/fmal-tests: New file.
25439         * tests/test-fmal1.c: New file.
25440         * tests/test-fmal2.c: New file.
25442         New module 'fmal'.
25443         * lib/math.in.h (fmal): New declaration.
25444         * lib/fmal.c: New file.
25445         * m4/fmal.m4: New file.
25446         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
25447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
25448         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
25449         REPLACE_FMAL.
25450         * modules/fmal: New file.
25451         * doc/posix-functions/fmal.texi: Mention the new module and the various
25452         bugs.
25454         Tests for module 'fmaf'.
25455         * modules/fmaf-tests: New file.
25456         * tests/test-fmaf1.c: New file.
25457         * tests/test-fmaf2.c: New file.
25459         New module 'fmaf'.
25460         * lib/math.in.h (fmaf): New declaration.
25461         * lib/fmaf.c: New file.
25462         * m4/fmaf.m4: New file.
25463         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
25464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
25465         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
25466         REPLACE_FMAF.
25467         * modules/fmaf: New file.
25468         * doc/posix-functions/fmaf.texi: Mention the new module and the various
25469         bugs.
25471         Tests for module 'fma'.
25472         * modules/fma-tests: New file.
25473         * tests/test-fma1.c: New file.
25474         * tests/test-fma1.h: New file.
25475         * tests/test-fma2.c: New file.
25476         * tests/test-fma2.h: New file.
25478         New module 'fma'.
25479         * lib/math.in.h (fma): New declaration.
25480         * lib/fma.c: New file.
25481         * m4/fma.m4: New file.
25482         * m4/fegetround.m4: New file.
25483         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
25484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
25485         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
25486         REPLACE_FMA.
25487         * modules/fma: New file.
25488         * doc/posix-functions/fma.texi: Mention the new module and the various
25489         bugs.
25491         Extend gl_MATHFUNC.
25492         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
25493         Support 'void' as argument type.
25494         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
25496 2011-11-05  Jim Meyering  <meyering@redhat.com>
25498         maint.mk: also prohibit inclusion of dirent.h without use
25499         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
25501 2011-11-05  Bruno Haible  <bruno@clisp.org>
25503         ldexpl tests: Avoid test failure on MSVC 9.
25504         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
25505         value. Needed in order to enforce the conversion from a value greater
25506         than LDBL_MAX to Infinity.
25508 2011-11-05  Bruno Haible  <bruno@clisp.org>
25510         New modules 'at-internal', 'openat-h', split off from module 'openat'.
25511         * modules/at-internal: New file, extracted from modules/openat.
25512         * modules/openat-h: New file.
25513         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
25514         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
25515         * modules/openat (Description): Add reference to POSIX function.
25516         (Files): Remove lib/openat.h, lib/openat-proc.c.
25517         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
25518         intprops, unistd.
25519         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
25520         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
25521         gl_FCNTL_MODULE_INDICATOR.
25522         (Include): Remove unistd.h, openat.h.
25523         * modules/areadlinkat (Files): Add lib/at-func.c.
25524         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25525         openat-die, openat-h, save-cwd.
25526         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
25527         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25528         openat-die, openat-h, save-cwd, unistd.
25529         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
25530         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25531         openat-h, save-cwd. Remove fcntl-h, openat.
25532         * modules/fchmodat (Files): Remove lib/openat.h.
25533         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25534         openat, stdbool, unistd.
25535         * modules/fchownat (Files): Remove lib/openat.h.
25536         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25537         openat, stdbool, sys_stat.
25538         * modules/fdopendir (Files): Remove lib/openat-priv.h,
25539         lib/openat-proc.c.
25540         (Depends-on): Add at-internal.
25541         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
25542         * modules/fstatat (Files): Remove lib/openat.h.
25543         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25544         stdbool, unistd.
25545         * modules/fts (Depends-on): Add openat-h.
25546         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
25547         openat.
25548         * modules/mkdirat (Files): Remove lib/openat.h.
25549         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25550         openat, stdbool, sys_stat.
25551         * modules/mkfifoat (Files): Add lib/at-func.c.
25552         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25553         openat-h, save-cwd. Remove fcntl-h, openat.
25554         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
25555         * modules/readlinkat (Files): Add lib/at-func.c.
25556         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25557         openat-h, save-cwd. Remove fcntl-h, openat.
25558         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
25559         openat.
25560         * modules/selinux-at (Files): Add lib/at-func.c.
25561         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25562         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
25563         * modules/symlinkat (Files): Add lib/at-func.c.
25564         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25565         openat-h, save-cwd. Remove fcntl-h, openat.
25566         * modules/unlinkat (Files): Remove lib/openat.h.
25567         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25568         stdbool.
25569         * modules/utimensat (Files): Add lib/at-func.c.
25570         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
25571         openat-die, openat-h, save-cwd.
25572         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
25573         * modules/fdutimensat-tests (Depends-on): Add openat.
25574         * modules/fstatat-tests (Depends-on): Add openat-h.
25575         * modules/readlinkat-tests (Depends-on): Add openat.
25576         * modules/symlinkat-tests (Depends-on): Add openat.
25578 2011-11-05  Bruno Haible  <bruno@clisp.org>
25580         openat: Include <stdbool.h>.
25581         * lib/openat.c: Include <stdbool.h>.
25583 2011-11-04  Bruno Haible  <bruno@clisp.org>
25585         fchownat, renameat, unlinkat: Fix dependencies.
25586         * modules/fchownat (Depends-on): Add fstatat.
25587         * modules/renameat (Depends-on): Likewise.
25588         * modules/unlinkat (Depends-on): Likewise.
25590 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25592         openat: remove direct dependency on dirent
25593         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
25594         and hasn't been needed ever since fdopendir was split into its own
25595         module on 2009-08-31.
25596         * modules/openat (Depends-on): Remove dirent.
25598 2011-11-04  Bruno Haible  <bruno@clisp.org>
25600         renameat: Optimize code size.
25601         * modules/renameat (configure.ac): Don't compile at-func2.c if
25602         REPLACE_RENAMEAT is 1.
25604 2011-11-04  Bruno Haible  <bruno@clisp.org>
25606         openat tests: Fix file list.
25607         * modules/openat-tests (Files): Add tests/test-open.h.
25609 2011-11-04  Bruno Haible  <bruno@clisp.org>
25611         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
25612         * modules/fchmodat (Depends-on): Add openat-die.
25613         * modules/fchownat (Depends-on): Likewise.
25614         * modules/linkat (Depends-on): Likewise.
25615         * modules/renameat (Depends-on): Likewise.
25616         * modules/openat (Depends-on): Add dirent.
25618 2011-11-04  Jim Meyering  <meyering@redhat.com>
25620         at-func*.c: fix comments
25621         * lib/at-func2.c: Correct/improve first-line comment.
25622         * lib/at-func.c: Correct grammar in first-line comment.
25624 2011-11-04  Bruno Haible  <bruno@clisp.org>
25626         New module 'mkdirat', split off from module 'openat'.
25627         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
25628         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
25629         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
25630         * modules/mkdirat: New file, extracted from modules/openat.
25631         * modules/openat (Files): Remove lib/mkdirat.c.
25632         (Depends-on): Remove mkdir.
25633         (configure.ac): Remove AC_LIBOBJ of mkdirat.
25634         (Include): Remove <sys/stat.h>.
25635         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
25636         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
25637         tests/test-mkdir.h.
25638         (Depends-on): Remove ignore-value.
25639         (Makefile.am): Remove rules for test-mkdirat.
25640         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
25641         of module 'openat'.
25642         * NEWS: Mention the change.
25644 2011-11-04  Bruno Haible  <bruno@clisp.org>
25646         closedir: Avoid warning on mingw.
25647         * lib/closedir.c: Include <unistd.h>.
25649 2011-11-04  Bruno Haible  <bruno@clisp.org>
25651         New module 'fstatat', split off from module 'openat'.
25652         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
25653         defined.
25654         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
25655         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
25656         gl_FUNC_FSTATAT.
25657         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
25658         * modules/fstatat: New file, extracted from modules/openat.
25659         * modules/openat (Files): Remove lib/fstatat.c.
25660         (Depends-on): Remove lstat.
25661         (configure.ac): Remove AC_LIBOBJ of fstatat.
25662         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
25663         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
25664         tests/test-lstat.h, tests/test-stat.h.
25665         (Depends-on): Remove getcwd-lgpl.
25666         (Makefile.am): Remove rules for test-fstatat.
25667         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
25668         of module 'openat'.
25669         * NEWS: Mention the change.
25670         * modules/getcwd (Depends-on): Add fstatat.
25671         * modules/linkat (Depends-on): Likewise.
25672         * modules/mkfifoat-tests (Depends-on): Likewise.
25673         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
25675 2011-11-03  Bruno Haible  <bruno@clisp.org>
25677         New module 'unlinkat', split off from module 'openat'.
25678         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
25679         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
25680         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
25681         * modules/unlinkat: New file, extracted from modules/openat. Correct
25682         the dependency conditions.
25683         * modules/openat (Files): Remove lib/unlinkat.c.
25684         (Depends-on): Remove rmdir, unlink.
25685         (configure.ac): Remove AC_LIBOBJ of unlinkat.
25686         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
25687         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
25688         tests/test-rmdir.h, tests/test-unlink.h.
25689         (Depends-on): Remove unlinkdir.
25690         (Makefile.am): Remove rules for test-unlinkat.
25691         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
25692         of module 'openat'.
25693         * NEWS: Mention the change.
25694         * modules/linkat-tests (Depends-on): Add unlinkat.
25695         * modules/mkfifoat-tests (Depends-on): Likewise.
25696         * modules/readlinkat-tests (Depends-on): Likewise.
25698 2011-11-02  Bruno Haible  <bruno@clisp.org>
25700         New module 'fchmodat', split off from module 'openat'.
25701         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
25702         defined.
25703         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
25704         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
25705         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
25706         * modules/fchmodat: New file, extracted from modules/openat.
25707         * modules/openat (Files): Remove lib/fchmodat.c.
25708         (configure.ac): Remove AC_LIBOBJ of fchmodat.
25709         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
25710         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
25711         (Makefile.am): Remove rules for test-fchmodat.
25712         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
25713         of module 'openat'.
25714         * NEWS: Mention the change.
25716 2011-11-02  Jim Meyering  <meyering@redhat.com>
25718         putenv: indent #definition of "environ" to placate cppi
25719         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
25721         gitlog-to-changelog: provide a ChangeLog-repair mechanism
25722         Git logs are often treated as immutable, because editing them
25723         changes the SHA1 checksums of all descendants.  Thus, errors in
25724         git logs tend to stay there forever.  However, when we generate
25725         a ChangeLog file -- typically for distribution -- from that git log,
25726         we can actually make corrections in the generated file.  The key
25727         lies in recording in machine-readable/applicable form the desired
25728         corrections.  See --help for description and an example.
25729         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
25730         (usage): Describe it; alphabetize option descriptions.
25731         (main): Honor the new option, carefully.
25733 2011-11-01  Jim Meyering  <meyering@redhat.com>
25735         gitlog-to-changelog: avoid an infloop
25736         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
25737         that ends up being empty.
25739 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25741         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
25742         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
25743         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
25744         contains (possibly-quoted) backslashes.  This should avoid
25745         all-too-common shell bugs if COMPLICATED contains backslashes in
25746         the "wrong" places.  Reported by David Evans in
25747         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
25748         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
25749         because we want ASCII ranges.  Is there some reason we don't use
25750         the C locale everywhere in this script?
25751         (func_module, top level): Avoid unwanted pathname expansion when
25752         $repo_url_prefix or $repo_url_suffix_repl contain shell
25753         metacharacters like '?' and '*'.
25755 2011-11-01  Bruno Haible  <bruno@clisp.org>
25757         fchownat: Improve description.
25758         * modules/fchownat (Description): Add link to function.
25760 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25762         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
25763         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
25764         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
25765         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
25767 2011-11-01  Bruno Haible  <bruno@clisp.org>
25769         alignof: Avoid collision with stdalign module.
25770         * lib/alignof.h (alignof): Remove macro.
25771         * NEWS: Mention the change.
25772         Reported by Paul Eggert.
25774 2011-11-01  Bruno Haible  <bruno@clisp.org>
25776         New module 'fchownat', split off from module 'openat'.
25777         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
25778         defined.
25779         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
25780         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
25781         invoke gl_FUNC_FCHOWNAT.
25782         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
25783         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
25784         * modules/fchownat: New file, extracted from modules/openat.
25785         * modules/openat (Files): Remove lib/fchownat.c.
25786         (Depends-on): Remove lchown.
25787         (configure.ac): Remove AC_LIBOBJ of fchownat.
25788         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
25789         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
25790         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
25791         (Depends-on): Remove mgetgroups, usleep, stat-time.
25792         (configure.ac): Remove test for getegid.
25793         (Makefile.am): Remove rules for test-fchownat.
25794         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
25795         of module 'openat'.
25796         * NEWS: Mention the change.
25798 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25800         stdalign: port better to MSVC and to Sun C 5.11
25801         This fixes some of the problems reported by Bruno Haible in
25802         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
25803         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
25804         shortcomings of MSVC and of Sun C 5.11.
25805         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
25806         around __declspec arg.
25807         * modules/stdalign-tests (Files): Add tests/macros.h.
25808         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
25809         Include macros.h, for ASSERT.
25810         (DECLARE_ALIGNED): Remove.
25811         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
25812         to catch bug), and to 1 if not (simplifies the rest of the code).
25813         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
25814         (CHECK_AUTO): Remove.
25815         (CHECK_ALIGNED): Check only the alignment of the static vars,
25816         since auto var alignment isn't supported by Sun C 5.11.
25817         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
25818         ASSERT failures are easier to diagnose.
25820 2011-10-31  Bruno Haible  <bruno@clisp.org>
25822         doc about some IRIX 5.3 problems.
25823         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
25824         on IRIX 5.3.
25825         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
25826         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
25827         5.3.
25828         * doc/posix-functions/grantpt.texi: Likewise.
25829         * doc/posix-functions/unlockpt.texi: Likewise.
25830         * doc/posix-functions/lgamma.texi: Likewise.
25831         * doc/posix-functions/nextafter.texi: Likewise.
25832         * doc/posix-functions/remainder.texi: Likewise.
25833         * doc/posix-functions/select.texi: Mention misplaced declaration on
25834         IRIX 5.3.
25835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25837 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
25839         gitlog-to-changelog: fix git-log invocation.
25840         git-log mishandles date strings before 1970-01-01 UTC, and there is
25841         no use to specify --since=1970-01-01 by default anyway.
25842         * build-aux/gitlog-to-changelog: By default, when no --since option
25843         was given, do not specify explicit --since option to git-log.
25845 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
25847         gitlog-to-changelog: new option --append-dot.
25848         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
25849         first non-blank line of each commit message terminated with a dot.
25851 2011-10-30  Bruno Haible  <bruno@clisp.org>
25853         ffsl, ffsll: Avoid compilation error due to 'restrict'.
25854         * lib/ffsl.h: Include <config.h>.
25855         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
25857 2011-10-30  Jim Meyering  <meyering@redhat.com>
25859         GNUmakefile: reenable "make syntax-check" for most projects
25860         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
25861         build-aux variable", "syntax-check" would do nothing but succeed with
25862         the "No version control files detected..." diagnostic (unless you
25863         happened to override _build-aux via cfg.mk).
25864         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
25865         to precede inclusion of maint.mk.  Otherwise, these variables would
25866         be used undefined in any project that does not override the default.
25868 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
25870         gitlog-to-changelog: treat a message with only blank lines as empty.
25871         * build-aux/gitlog-to-changelog: Move the code that removes leading and
25872         trailing blank lines before the code that issues a warning about an
25873         empty commit message.
25875 2011-10-30  Jim Meyering  <meyering@redhat.com>
25877         test-parse-datetime.c: avoid new DST-related false positive test failure
25878         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
25879         based on the time/date we'll convert, not the current time.
25880         Otherwise, the moment we cross a DST boundary like today's in
25881         Europe, (CEST to CET), that offset ends up being one hour off.
25883 2011-10-27  Bruno Haible  <bruno@clisp.org>
25885         fstat: Tweak documentation.
25886         * modules/fstat (Description): More precise description.
25888 2011-10-27  Bruno Haible  <bruno@clisp.org>
25890         Update documentation regarding 'largefile' module.
25891         * doc/posix-functions/fstat.texi: Tweak wording.
25892         * doc/posix-functions/opendir.texi: Mention that the module fixes the
25893         problems with huge directories and/or small ino_t types.
25894         * doc/posix-functions/readdir.texi: Likewise.
25895         * doc/posix-functions/rewinddir.texi: Likewise.
25897 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
25899         maint.mk: don't maintain a second build-aux variable.
25900         * maint.mk (build_aux): Removed.  The maintainer-makefile module
25901         depends on GNUmakefile, which already maintains a cfg.mk
25902         overridable $(_build-aux) for projects with a non-standard
25903         build-aux directory location, although without the $(srcdir)
25904         prefix.  Use that variable consistently instead of introducing a
25905         second one.  Adjust all call sites.
25907 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
25909         Add stdalign module and use it in other modules.
25910         This is based on a previous proposal by Bruno Haible
25911         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
25913         stdalign: new module
25914         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
25915         * modules/stdalign: New files.
25916         * MODULES.html.sh (c1x_core_properties): Add stdalign.
25917         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
25919         stdalign-tests: new module
25920         * modules/stdalign-tests, tests/test-stdalign.c: New files.
25922         argp: use stdalign
25923         * lib/argp-parse.c: Include <stdalign.h>.
25924         (alignof): Remove.
25925         * modules/argp (Depends-on): Add stdalign.
25927         crypto libraries: use stdalign
25928         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
25929         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
25930         Do not include <stdlib.h> twice, in md4.c.
25931         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
25932         because we are accessing a pointer's bit-pattern, not a size.
25933         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
25934         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
25935         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
25936         * modules/crypto/sha512: Likewise.
25938         sys_socket: use stdalign, not alignof
25939         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
25940         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
25942 2011-10-27  Bruno Haible  <bruno@clisp.org>
25944         raise test: Avoid a test failure on Linux/MIPS.
25945         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
25946         because 99 is a valid signal on Linux/MIPS.
25948 2011-10-27  Bruno Haible  <bruno@clisp.org>
25950         nonblocking tests: Fix test failure on Linux/MIPS.
25951         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
25952         Set to 270000.
25954 2011-10-27  Bruno Haible  <bruno@clisp.org>
25956         utimensat: Work around problem on Linux/hppa.
25957         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
25958         values.
25959         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
25961 2011-10-25  Jim Meyering  <meyering@redhat.com>
25963         maint.mk: fix a bug in sc_prohibit_stddef_without_use
25964         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
25965         after symbols like NULL, size_t, etc.
25966         Reported by Alfred M. Szmidt.
25968         maint.mk: exempt ENODATA from a syntax-check rule
25969         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
25970         from the sc_prohibit_always-defined_macros syntax-check rule.
25971         Add a comment.  See this for more details:
25972         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
25974 2011-10-23  Jim Meyering  <meyering@redhat.com>
25976         fts: close parent dir FD before returning from post-traversal fts_read
25977         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
25978         unlink A, even though an FD open on A remained.  This is suboptimal
25979         (holding a file descriptor open longer than needed), but otherwise not
25980         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
25981         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
25982         that represents a real problem: it causes the removal of A to fail
25983         with e.g., "rm: cannot remove `A': Device or resource busy"
25985         fts visits each directory twice and keeps a cache (fts_fd_ring) of
25986         directory file descriptors.  After completing the final, FTS_DP,
25987         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
25988         cache, but then proceeded to add a new FD to it via the subsequent
25989         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
25990         final file descriptor would be closed only via fts_close's call to
25991         fd_ring_clear.  Now, it is usually closed earlier, via the final
25992         FTS_DP-returning fts_read call.
25993         * lib/fts.c (restore_initial_cwd): New function, converted from
25994         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
25995         Update callers.
25996         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
25997         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
25999 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
26000             Bruno Haible  <bruno@clisp.org>
26001             Jim Meyering  <jim@meyering.net>
26003         readme-release: improve safety of release prep instructions.
26004         * README-release: Don't git pull all branches when only master
26005         is needed for the release process.
26006         Run make maintainer-clean before changing trees and merging.
26007         Don't try to run ./configure right after git pull in case files
26008         that influence the bootstrap process have changed, move the
26009         ./configure step to after running ./bootstrap.
26010         Don't bootstrap "one last time"... it's the first time!
26012 2011-10-22  Bruno Haible  <bruno@clisp.org>
26014         errno, strerror-override: Support for MSVC 10.
26015         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
26016         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
26017         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
26018         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
26019         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
26020         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
26021         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
26022         Assign values compatible with MSVC 10.
26023         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
26024         New macros.
26025         (GNULIB_defined_EWINSOCK): New macro.
26026         * lib/strerror-override.c (strerror_override): Update accordingly.
26027         * lib/strerror-override.h: Likewise.
26028         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
26029         longer equal to the corresponding errno value.
26030         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26032 2011-10-22  Bruno Haible  <bruno@clisp.org>
26034         perror: Recognize when test program crashes.
26035         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
26036         strerror, set gl_cv_func_perror_works to no.
26037         Reported by Daniel Richard G. <skunk@iskunk.org>.
26039         perror: Fix indentation.
26040         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
26042 2011-10-22  Bruno Haible  <bruno@clisp.org>
26044         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
26045         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
26046         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
26047         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
26048         functions, not as a macro.
26049         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
26050         macros.
26051         (isfinite, isinf, isnan, signbit): Check overloaded functions and
26052         absence of macro.
26053         Suggested by Eric Blake.
26054         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26056 2011-10-21  Bruno Haible  <bruno@clisp.org>
26058         relocatable-prog-wrapper: Don't leave object files behind.
26059         * build-aux/install-reloc: Re-synchronize list of .o files to be
26060         removed with list of compilation units.
26062 2011-10-20  Bruno Haible  <bruno@clisp.org>
26064         openpty, posix_openpt: Remove code duplication.
26065         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
26066         * lib/openpty.c: Include <stdlib.h>.
26067         (openpty): Use posix_openpt on all platforms except IRIX.
26068         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
26070 2011-10-20  Bruno Haible  <bruno@clisp.org>
26072         unlockpt: Detect invalid argument.
26073         * lib/unlockpt.c: Include <fcntl.h>.
26074         (unlockpt): Check whether fd is valid, using fcntl().
26075         * modules/unlockpt (Depends-on): Add fcntl-h.
26077 2011-10-20  Bruno Haible  <bruno@clisp.org>
26079         openpty: Avoid compilation error on AIX 6.1.
26080         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
26082 2011-10-20  Bruno Haible  <bruno@clisp.org>
26084         posix_openpt: Support for OpenBSD.
26085         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
26086         (posix_openpt) [OpenBSD]: New code.
26087         * lib/grantpt.c: Include <fcntl.h>.
26088         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
26089         * modules/grantpt (Depends-on): Add fcntl-h.
26091 2011-10-20  Bruno Haible  <bruno@clisp.org>
26093         posix_openpt test: Coding style.
26094         * tests/test-posix_openpt.c: Use GNU coding style.
26096 2011-10-20  Bruno Haible  <bruno@clisp.org>
26098         grantpt: Support --avoid=pt_chown.
26099         * modules/grantpt (Files): Add lib/pty-private.h.
26101 2011-10-20  Bruno Haible  <bruno@clisp.org>
26103         posix_openpt: Fix autoconf macro.
26104         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
26105         unneeded check for _getpty.
26107 2011-10-20  Bruno Haible  <bruno@clisp.org>
26109         openpty: Update comments.
26110         * lib/openpty.c: Add comments about Minix.
26112 2011-10-19  Eric Blake  <eblake@redhat.com>
26114         openpty: relax license
26115         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
26117         pt_chown: use configmake to simplify build
26118         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
26120         ptsname and others: relax license
26121         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
26122         * modules/unlockpt (License): Likewise.
26123         * modules/pt_chown (License): Likewise.
26124         * modules/ptsname (License): Likewise.
26125         * modules/ttyname_r (License): Likewise.
26127 2011-10-19  Jim Meyering  <meyering@redhat.com>
26129         posix_openpt: remove spurious #endif
26130         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
26132 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
26134         maint.mk: Respect $(build_aux) in web-manual rule.
26135         * top/maint.mk (web-manual): Find gen-announce script in user's
26136         $(build_aux) directory instead of hard-coding 'build-aux'.
26138 2011-10-19  Bruno Haible  <bruno@clisp.org>
26140         posix_openpt: Fix compilation error.
26141         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
26142         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
26143         Mention the openpty module as an alternative.
26145 2011-10-19  Bruno Haible  <bruno@clisp.org>
26147         Support for old NeXTstep 3.3 frexp().
26148         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
26149         execution time of the test to 5 seconds.
26150         Reported by Daniel Richard G. <skunk@iskunk.org>.
26152 2011-10-19  Bruno Haible  <bruno@clisp.org>
26154         Support for old NeXTstep 3.3 sed.
26155         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
26156         part, use /.../, not \|...|. Escape periods in the header file name.
26157         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26158         Reported by Daniel Richard G. <skunk@iskunk.org>.
26160 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26162         Support for old NeXTstep 3.3 gcc.
26163         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
26164         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
26165         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
26166         * lib/spawn.in.h (_Restrict_arr_): Likewise.
26167         * lib/regex.h (_Restrict_arr_): Likewise.
26168         * lib/regex_internal.h (re_token_t): Likewise.
26169         * lib/regexec.c (check_node_accept_bytes): Likewise.
26170         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
26172 2011-10-18  Eric Blake  <eblake@redhat.com>
26174         posix_openpt: new module
26175         * modules/posix_openpt: New module.
26176         * m4/posix_openpt.m4: New file.
26177         * lib/posix_openpt.c: Likewise.
26178         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26179         (gl_STDLIB_H_DEFAULTS): Set defaults.
26180         * modules/stdlib (Makefile.am): Substitute macros.
26181         * lib/stdlib.in.h (posix_openpt): Declare.
26182         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
26183         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
26184         * modules/posix_openpt-tests: New test module.
26185         * tests/test-posix_openpt.c: New test.
26187 2011-10-15  Bruno Haible  <bruno@clisp.org>
26189         xstrtoll: Fix compilation failure.
26190         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
26191         from lib/strtol.c.
26192         * doc/posix-headers/limits.texi: Mention missing numerical limits on
26193         some platforms.
26194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26196 2011-10-15  Bruno Haible  <bruno@clisp.org>
26198         vasnprintf: Optimize bit search operation.
26199         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
26200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
26201         gl_DOUBLE_EXPONENT_LOCATION.
26202         * modules/vasnprintf (Files): Add m4/exponentd.m4.
26203         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26204         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26205         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26206         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26207         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26208         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26209         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26210         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
26212 2011-10-15  Bruno Haible  <bruno@clisp.org>
26214         vasnprintf: Fix comments.
26215         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
26217 2011-10-14  Bruno Haible  <bruno@clisp.org>
26219         Tests for module 'integer_length_ll'.
26220         * modules/integer_length_ll-tests: New file.
26221         * tests/test-integer_length_ll.c: New file.
26223         New module 'integer_length_ll'.
26224         * lib/integer_length_ll.c: New file.
26225         * modules/integer_length_ll: New file.
26227 2011-10-14  Bruno Haible  <bruno@clisp.org>
26229         Tests for module 'integer_length_l'.
26230         * modules/integer_length_l-tests: New file.
26231         * tests/test-integer_length_l.c: New file.
26233         New module 'integer_length_l'.
26234         * lib/integer_length_l.c: New file.
26235         * modules/integer_length_l: New file.
26237 2011-10-14  Bruno Haible  <bruno@clisp.org>
26239         Tests for module 'integer_length'.
26240         * modules/integer_length-tests: New file.
26241         * tests/test-integer_length.c: New file.
26243         New module 'integer_length'.
26244         * lib/integer_length.h: New file.
26245         * lib/integer_length.c: New file.
26246         * modules/integer_length: New file.
26248 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26250         popen: Fix dependency conditions.
26251         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
26253 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26255         perror: Fix autoconf test.
26256         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
26257         <stdlib.h> and <string.h>.
26259 2011-10-14  Bruno Haible  <bruno@clisp.org>
26261         ffsl: Optimize on 64-bit platforms.
26262         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
26263         unrolling.
26265 2011-10-13  Bruno Haible  <bruno@clisp.org>
26267         ffsl: Optimize on 32-bit platforms.
26268         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
26269         use ffs() without a loop.
26271         ffsl, ffsll: Optimize for GCC.
26272         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
26273         * lib/ffsl.c (GCC_BUILTIN): New macro.
26274         * lib/ffsll.c (GCC_BUILTIN): Likewise.
26276 2011-10-13  Bruno Haible  <bruno@clisp.org>
26278         ffs, bcopy, memset: Support symbol renaming via config.h.
26279         * lib/ffs.c: Include <config.h>.
26280         * lib/bcopy.c: Likewise.
26281         * lib/memset.c: Likewise.
26283 2011-10-10  Bruno Haible  <bruno@clisp.org>
26285         atanl: Simplify for platforms where 'long double' == 'double'.
26286         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26287         alternative implementation.
26288         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26289         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26290         * modules/atanl (Depends-on): Add atan. Update conditions.
26292 2011-10-10  Bruno Haible  <bruno@clisp.org>
26294         acosl: Simplify for platforms where 'long double' == 'double'.
26295         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26296         alternative implementation.
26297         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26298         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26299         * modules/acosl (Depends-on): Add acos. Update conditions.
26301 2011-10-10  Bruno Haible  <bruno@clisp.org>
26303         asinl: Simplify for platforms where 'long double' == 'double'.
26304         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26305         alternative implementation.
26306         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26307         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26308         * modules/asinl (Depends-on): Add asin. Update conditions.
26310 2011-10-10  Bruno Haible  <bruno@clisp.org>
26312         tanl: Simplify for platforms where 'long double' == 'double'.
26313         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26314         implementation.
26315         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26316         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26317         * modules/tanl (Depends-on): Add tan. Update conditions.
26318         (configure.ac): Don't compile trigl.c if
26319         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26321 2011-10-10  Bruno Haible  <bruno@clisp.org>
26323         cosl: Simplify for platforms where 'long double' == 'double'.
26324         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26325         implementation.
26326         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26327         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26328         * modules/cosl (Depends-on): Add cos. Update conditions.
26329         (configure.ac): Don't compile sincosl.c and trigl.c if
26330         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26332 2011-10-10  Bruno Haible  <bruno@clisp.org>
26334         sinl: Simplify for platforms where 'long double' == 'double'.
26335         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26336         implementation.
26337         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26338         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26339         * modules/sinl (Depends-on): Add sin. Update conditions.
26340         (configure.ac): Don't compile sincosl.c and trigl.c if
26341         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26343 2011-10-10  Bruno Haible  <bruno@clisp.org>
26345         logl: Simplify for platforms where 'long double' == 'double'.
26346         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26347         implementation.
26348         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26349         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26350         * modules/logl (Depends-on): Add log. Update conditions.
26352 2011-10-10  Bruno Haible  <bruno@clisp.org>
26354         expl: Simplify for platforms where 'long double' == 'double'.
26355         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26356         implementation.
26357         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26358         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26359         * modules/expl (Depends-on): Add exp. Update conditions.
26361 2011-10-10  Bruno Haible  <bruno@clisp.org>
26363         sqrtl: Simplify for platforms where 'long double' == 'double'.
26364         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26365         alternative implementation.
26366         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26367         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26368         * modules/sqrtl (Depends-on): Update conditions.
26370 2011-10-10  Bruno Haible  <bruno@clisp.org>
26372         ldexpl: Simplify for platforms where 'long double' == 'double'.
26373         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26374         alternative implementation.
26375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26376         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26377         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
26379 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
26381         ffsll: set correct witness
26382         * modules/ffsll (configure.ac): Fix typo.
26384 2011-10-10  Bruno Haible  <bruno@clisp.org>
26386         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
26387         * lib/printf-frexpl.c: Include <config.h>.
26388         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26389         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
26390         second time.
26391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
26392         gl_LONG_DOUBLE_VS_DOUBLE.
26393         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
26394         conditions.
26396 2011-10-10  Bruno Haible  <bruno@clisp.org>
26398         frexpl: Simplify for platforms where 'long double' == 'double'.
26399         * lib/frexpl.c: Include <config.h>.
26400         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26401         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26402         time.
26403         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26404         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26405         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
26406         * modules/frexpl (Depends-on): Add frexp. Update conditions.
26407         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
26408         conditions.
26410 2011-10-10  Jim Meyering  <meyering@redhat.com>
26412         test-renameat: don't leave behind a temporary file
26413         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
26414           ERROR: files left in build directory after distclean:
26415           ./gltests/test-renameat.too
26416           make[1]: *** [distcleancheck] Error 1
26417         Reported by Tom G. Christensen.
26419 2011-10-09  Bruno Haible  <bruno@clisp.org>
26421         rint: Determine RINT_LIBM correctly on AIX 7.
26422         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
26423         directly, not only through a function pointer. Also accept an optional
26424         4th argument with extra code.
26425         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
26426         rintf() call by gcc when optimizing.
26428         mathfunc.m4: Refactor.
26429         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
26430         m4 variable.
26432 2011-10-09  Bruno Haible  <bruno@clisp.org>
26434         rintl: Simplify for platforms where 'long double' == 'double'.
26435         * lib/rintl.c: Include <config.h>.
26436         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26437         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26438         time.
26439         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26440         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26441         * modules/rintl (Depends-on): Add rint. Update conditions.
26443 2011-10-09  Bruno Haible  <bruno@clisp.org>
26445         roundl: Simplify for platforms where 'long double' == 'double'.
26446         * lib/roundl.c: Include <config.h>.
26447         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26448         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26449         time.
26450         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26451         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26452         * modules/roundl (Depends-on): Add round. Update conditions.
26454 2011-10-09  Bruno Haible  <bruno@clisp.org>
26456         truncl: Simplify for platforms where 'long double' == 'double'.
26457         * lib/truncl.c: Include <config.h>.
26458         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26459         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26460         time.
26461         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26462         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26463         * modules/truncl (Depends-on): Add trunc. Update conditions.
26465 2011-10-09  Bruno Haible  <bruno@clisp.org>
26467         ceill: Simplify for platforms where 'long double' == 'double'.
26468         * lib/ceill.c: Include <config.h>.
26469         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26470         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26471         time.
26472         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26473         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26474         * modules/ceill (Depends-on): Add ceil. Update conditions.
26476 2011-10-09  Bruno Haible  <bruno@clisp.org>
26478         floorl: Simplify for platforms where 'long double' == 'double'.
26479         * lib/floorl.c: Include <config.h>.
26480         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26481         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26482         time.
26483         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26484         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26485         * modules/floorl (Depends-on): Add floor. Update conditions.
26487 2011-10-09  Bruno Haible  <bruno@clisp.org>
26489         rint: Fix ordering constraints.
26490         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
26491         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
26492         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
26494 2011-10-09  Bruno Haible  <bruno@clisp.org>
26496         copysignl: Simplify for platforms where 'long double' == 'double'.
26497         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26498         alternative.
26499         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26500         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26501         * modules/copysignl (Depends-on): Add copysign. Update conditions.
26503 2011-10-09  Bruno Haible  <bruno@clisp.org>
26505         Tests for module 'rintl'.
26506         * modules/rintl-tests: New file.
26507         * tests/test-rintl.c: New file.
26509         New module 'rintl'.
26510         * lib/math.in.h (rintl): New declaration.
26511         * lib/rintl.c: New file.
26512         * m4/rintl.m4: New file.
26513         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
26514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
26515         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
26516         * modules/rintl: New file.
26517         * tests/test-math-c++.cc: Check the declaration of rintl.
26518         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26519         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
26520         * doc/posix-functions/rintl.texi: Mention the new module.
26522 2011-10-09  Bruno Haible  <bruno@clisp.org>
26524         Tests for module 'rintf'.
26525         * modules/rintf-tests: New file.
26526         * tests/test-rintf.c: New file.
26528         New module 'rintf'.
26529         * lib/math.in.h (rintf): New declaration.
26530         * lib/rintf.c: New file.
26531         * m4/rintf.m4: New file.
26532         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
26533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
26534         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
26535         * modules/rintf: New file.
26536         * tests/test-math-c++.cc: Check the declaration of rintf.
26537         * doc/posix-functions/rintf.texi: Mention the new module.
26539 2011-10-09  Bruno Haible  <bruno@clisp.org>
26541         rint: Support for MSVC.
26542         * lib/math.in.h (rint): New declaration.
26543         * lib/rint.c: New file.
26544         * m4/rint.m4: New file.
26545         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
26546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
26547         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
26548         * modules/rint (Description): Fix.
26549         (Files): Add lib/rint.c, m4/rint.m4.
26550         (Depends-on): Add math.
26551         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
26552         gl_MATH_MODULE_INDICATOR.
26553         * tests/test-math-c++.cc: Check the declaration of rint.
26554         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26555         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
26556         * doc/posix-functions/rint.texi: Mention the replacement provided by
26557         the module.
26559         rint tests: More tests.
26560         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
26561         minus-zero.h, infinity.h, nan.h.
26562         (main): Skip the test if the current rounding mode is not standard. Add
26563         tests for negative numbers, minus zero, infinity, NaN.
26564         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
26565         tests/nan.h.
26566         (Depends-on): Add isnand-nolibm.
26568 2011-10-09  Bruno Haible  <bruno@clisp.org>
26570         Tests for module 'copysignl'.
26571         * modules/copysignl-tests: New file.
26572         * tests/test-copysignl.c: New file.
26574         New module 'copysignl'.
26575         * lib/math.in.h (copysignl): New declaration.
26576         * lib/copysignl.c: New file.
26577         * m4/copysignl.m4: New file.
26578         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
26579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
26580         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
26581         HAVE_COPYSIGNL.
26582         * modules/copysignl: New file.
26583         * tests/test-math-c++.cc: Check the declaration of copysignl.
26584         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26585         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
26586         * doc/posix-functions/copysignl.texi: Mention the new module.
26588 2011-10-09  Bruno Haible  <bruno@clisp.org>
26590         Tests for module 'copysignf'.
26591         * modules/copysignf-tests: New file.
26592         * tests/test-copysignf.c: New file.
26594         New module 'copysignf'.
26595         * lib/math.in.h (copysignf): New declaration.
26596         * lib/copysignf.c: New file.
26597         * m4/copysignf.m4: New file.
26598         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
26599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
26600         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
26601         HAVE_COPYSIGNF.
26602         * modules/copysignf: New file.
26603         * tests/test-math-c++.cc: Check the declaration of copysignf.
26604         * doc/posix-functions/copysignf.texi: Mention the new module.
26606 2011-10-09  Bruno Haible  <bruno@clisp.org>
26608         Ensure that HAVE_* variables are set to 1 before they are set to 0.
26609         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
26610         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
26611         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26612         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
26613         gl_SIGNAL_H_DEFAULTS.
26615 2011-10-09  Bruno Haible  <bruno@clisp.org>
26617         poll: Make macro safer.
26618         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
26619         ac_cv_header_poll_h is not set.
26621 2011-10-09  Bruno Haible  <bruno@clisp.org>
26623         copysign: Provide replacement.
26624         * lib/math.in.h (copysign): New declaration.
26625         * lib/copysign.c: New file.
26626         * m4/copysign.m4: New file.
26627         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
26628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
26629         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
26630         HAVE_COPYSIGN.
26631         * modules/copysign (Description): Clarify.
26632         (Files): Add lib/copysign.c, m4/copysign.m4.
26633         (Depends-on): Add math, signbit.
26634         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
26635         gl_MATH_MODULE_INDICATOR.
26636         * tests/test-math-c++.cc: Check the declaration of copysign.
26637         * doc/posix-functions/copysign.texi: Mention the effects of the module
26638         on Minix and MSVC.
26640 2011-10-09  Bruno Haible  <bruno@clisp.org>
26642         isinf: Ensure macro on AIX 5.1.
26643         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
26644         macro.
26645         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
26647 2011-10-09  Bruno Haible  <bruno@clisp.org>
26649         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
26650         * modules/snprintf-posix-tests (configure.ac): Require
26651         gl_LONG_DOUBLE_VS_DOUBLE.
26652         * modules/sprintf-posix-tests (configure.ac): Likewise.
26653         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
26654         * modules/vasprintf-posix-tests (configure.ac): Likewise.
26655         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
26656         * modules/vsprintf-posix-tests (configure.ac): Likewise.
26657         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
26658         tests on platforms where 'long double' is the same as 'double'.
26659         * tests/test-sprintf-posix.h (test_function): Likewise.
26660         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26661         * tests/test-vasprintf-posix.c (test_function): Likewise.
26663         *printf: Fix for platforms where 'long double' == 'double'.
26664         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
26665         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
26666         * modules/dprintf-posix (Files): Add m4/math_h.m4.
26667         * modules/fprintf-posix (Files): Likewise.
26668         * modules/obstack-printf-posix (Files): Likewise.
26669         * modules/snprintf-posix (Files): Likewise.
26670         * modules/sprintf-posix (Files): Likewise.
26671         * modules/vasnprintf (Files): Likewise.
26672         * modules/vasnprintf-posix (Files): Likewise.
26673         * modules/vasprintf-posix (Files): Likewise.
26674         * modules/vdprintf-posix (Files): Likewise.
26675         * modules/vfprintf-posix (Files): Likewise.
26676         * modules/vsnprintf-posix (Files): Likewise.
26677         * modules/vsprintf-posix (Files): Likewise.
26678         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26679         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26680         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26681         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26682         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26683         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26684         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26686         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
26687         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
26688         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26689         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
26690         'long double'.
26691         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
26693         isinf: Fix for platforms where 'long double' == 'double'.
26694         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26695         Don't blindly assume 80-bit 'long double'.
26697         isfinite: Fix for platforms where 'long double' == 'double'.
26698         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26699         Don't blindly assume 80-bit 'long double'.
26701         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
26702         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
26703         * modules/isfinite-tests (configure.ac): Require
26704         gl_LONG_DOUBLE_VS_DOUBLE.
26705         * modules/isinf-tests (configure.ac): Likewise.
26706         * modules/isnan-tests (configure.ac): Likewise.
26707         * modules/isnanl-tests (configure.ac): Likewise.
26708         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
26709         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
26710         tests on platforms where 'long double' is the same as 'double'.
26711         * tests/test-isinf.c (test_isinfl): Likewise.
26712         * tests/test-isnan.c (test_long_double): Likewise.
26713         * tests/test-isnanl.h (main): Likewise.
26715 2011-10-08  Bruno Haible  <bruno@clisp.org>
26717         Tests for module 'tanhf'.
26718         * modules/tanhf-tests: New file.
26719         * tests/test-tanhf.c: New file.
26721         New module 'tanhf'.
26722         * lib/math.in.h (tanhf): New declaration.
26723         * lib/tanhf.c: New file.
26724         * m4/tanhf.m4: New file.
26725         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
26726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
26727         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
26728         * modules/tanhf: New file.
26729         * tests/test-math-c++.cc: Check the declaration of tanhf.
26730         * doc/posix-functions/tanhf.texi: Mention the new module.
26732         tanh: Use a .m4 file.
26733         * m4/tanh.m4: New file.
26734         * modules/tanh (Files): Add it.
26735         (configure.ac): Just invoke gl_FUNC_TANH.
26737 2011-10-08  Bruno Haible  <bruno@clisp.org>
26739         Tests for module 'coshf'.
26740         * modules/coshf-tests: New file.
26741         * tests/test-coshf.c: New file.
26743         New module 'coshf'.
26744         * lib/math.in.h (coshf): New declaration.
26745         * lib/coshf.c: New file.
26746         * m4/coshf.m4: New file.
26747         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
26748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
26749         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
26750         * modules/coshf: New file.
26751         * tests/test-math-c++.cc: Check the declaration of coshf.
26752         * doc/posix-functions/coshf.texi: Mention the new module.
26754         cosh: Use a .m4 file.
26755         * m4/cosh.m4: New file.
26756         * modules/cosh (Files): Add it.
26757         (configure.ac): Just invoke gl_FUNC_COSH.
26759 2011-10-08  Bruno Haible  <bruno@clisp.org>
26761         Tests for module 'sinhf'.
26762         * modules/sinhf-tests: New file.
26763         * tests/test-sinhf.c: New file.
26765         New module 'sinhf'.
26766         * lib/math.in.h (sinhf): New declaration.
26767         * lib/sinhf.c: New file.
26768         * m4/sinhf.m4: New file.
26769         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
26770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
26771         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
26772         * modules/sinhf: New file.
26773         * tests/test-math-c++.cc: Check the declaration of sinhf.
26774         * doc/posix-functions/sinhf.texi: Mention the new module.
26776         sinh: Use a .m4 file.
26777         * m4/sinh.m4: New file.
26778         * modules/sinh (Files): Add it.
26779         (configure.ac): Just invoke gl_FUNC_SINH.
26781 2011-10-08  Bruno Haible  <bruno@clisp.org>
26783         Tests for module 'atan2f'.
26784         * modules/atan2f-tests: New file.
26785         * tests/test-atan2f.c: New file.
26787         New module 'atan2f'.
26788         * lib/math.in.h (atan2f): New declaration.
26789         * lib/atan2f.c: New file.
26790         * m4/atan2f.m4: New file.
26791         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
26792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
26793         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
26794         * modules/atan2f: New file.
26795         * tests/test-math-c++.cc: Check the declaration of atan2f.
26796         * doc/posix-functions/atan2f.texi: Mention the new module.
26798         atan2: Use a .m4 file.
26799         * m4/atan2.m4: New file.
26800         * modules/atan2 (Files): Add it.
26801         (configure.ac): Just invoke gl_FUNC_ATAN2.
26803 2011-10-08  Bruno Haible  <bruno@clisp.org>
26805         Tests for module 'atanf'.
26806         * modules/atanf-tests: New file.
26807         * tests/test-atanf.c: New file.
26809         New module 'atanf'.
26810         * lib/math.in.h (atanf): New declaration.
26811         * lib/atanf.c: New file.
26812         * m4/atanf.m4: New file.
26813         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
26814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
26815         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
26816         * modules/atanf: New file.
26817         * tests/test-math-c++.cc: Check the declaration of atanf.
26818         * doc/posix-functions/atanf.texi: Mention the new module.
26820         atan: Use a .m4 file.
26821         * m4/atan.m4: New file.
26822         * modules/atan (Files): Add it.
26823         (configure.ac): Just invoke gl_FUNC_ATAN.
26825 2011-10-08  Bruno Haible  <bruno@clisp.org>
26827         Tests for module 'acosf'.
26828         * modules/acosf-tests: New file.
26829         * tests/test-acosf.c: New file.
26831         New module 'acosf'.
26832         * lib/math.in.h (acosf): New declaration.
26833         * lib/acosf.c: New file.
26834         * m4/acosf.m4: New file.
26835         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
26836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
26837         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
26838         * modules/acosf: New file.
26839         * tests/test-math-c++.cc: Check the declaration of acosf.
26840         * doc/posix-functions/acosf.texi: Mention the new module.
26842         acos: Use a .m4 file.
26843         * m4/acos.m4: New file.
26844         * modules/acos (Files): Add it.
26845         (configure.ac): Just invoke gl_FUNC_ACOS.
26847 2011-10-08  Bruno Haible  <bruno@clisp.org>
26849         Tests for module 'asinf'.
26850         * modules/asinf-tests: New file.
26851         * tests/test-asinf.c: New file.
26853         New module 'asinf'.
26854         * lib/math.in.h (asinf): New declaration.
26855         * lib/asinf.c: New file.
26856         * m4/asinf.m4: New file.
26857         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
26858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
26859         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
26860         * modules/asinf: New file.
26861         * tests/test-math-c++.cc: Check the declaration of asinf.
26862         * doc/posix-functions/asinf.texi: Mention the new module.
26864         asin: Use a .m4 file.
26865         * m4/asin.m4: New file.
26866         * modules/asin (Files): Add it.
26867         (configure.ac): Just invoke gl_FUNC_ASIN.
26869 2011-10-08  Bruno Haible  <bruno@clisp.org>
26871         Tests for module 'tanf'.
26872         * modules/tanf-tests: New file.
26873         * tests/test-tanf.c: New file.
26875         New module 'tanf'.
26876         * lib/math.in.h (tanf): New declaration.
26877         * lib/tanf.c: New file.
26878         * m4/tanf.m4: New file.
26879         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
26880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
26881         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
26882         * modules/tanf: New file.
26883         * tests/test-math-c++.cc: Check the declaration of tanf.
26884         * doc/posix-functions/tanf.texi: Mention the new module.
26886         tan: Use a .m4 file.
26887         * m4/tan.m4: New file.
26888         * modules/tan (Files): Add it.
26889         (configure.ac): Just invoke gl_FUNC_TAN.
26891 2011-10-08  Bruno Haible  <bruno@clisp.org>
26893         Tests for module 'cosf'.
26894         * modules/cosf-tests: New file.
26895         * tests/test-cosf.c: New file.
26897         New module 'cosf'.
26898         * lib/math.in.h (cosf): New declaration.
26899         * lib/cosf.c: New file.
26900         * m4/cosf.m4: New file.
26901         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
26902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
26903         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
26904         * modules/cosf: New file.
26905         * tests/test-math-c++.cc: Check the declaration of cosf.
26906         * doc/posix-functions/cosf.texi: Mention the new module.
26908         cos: Use a .m4 file.
26909         * m4/cos.m4: New file.
26910         * modules/cos (Files): Add it.
26911         (configure.ac): Just invoke gl_FUNC_COS.
26913 2011-10-08  Bruno Haible  <bruno@clisp.org>
26915         Tests for module 'sinf'.
26916         * modules/sinf-tests: New file.
26917         * tests/test-sinf.c: New file.
26919         New module 'sinf'.
26920         * lib/math.in.h (sinf): New declaration.
26921         * lib/sinf.c: New file.
26922         * m4/sinf.m4: New file.
26923         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
26924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
26925         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
26926         * modules/sinf: New file.
26927         * tests/test-math-c++.cc: Check the declaration of sinf.
26928         * doc/posix-functions/sinf.texi: Mention the new module.
26930         sin: Use a .m4 file.
26931         * m4/sin.m4: New file.
26932         * modules/sin (Files): Add it.
26933         (configure.ac): Just invoke gl_FUNC_SIN.
26935 2011-10-08  Bruno Haible  <bruno@clisp.org>
26937         Tests for module 'powf'.
26938         * modules/powf-tests: New file.
26939         * tests/test-powf.c: New file.
26941         New module 'powf'.
26942         * lib/math.in.h (powf): New declaration.
26943         * lib/powf.c: New file.
26944         * m4/powf.m4: New file.
26945         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
26946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
26947         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
26948         * modules/powf: New file.
26949         * tests/test-math-c++.cc: Check the declaration of powf.
26950         * doc/posix-functions/powf.texi: Mention the new module.
26952         pow: Use a .m4 file.
26953         * m4/pow.m4: New file.
26954         * modules/pow (Files): Add it.
26955         (configure.ac): Just invoke gl_FUNC_POW.
26957 2011-10-08  Bruno Haible  <bruno@clisp.org>
26959         Tests for module 'log10f'.
26960         * modules/log10f-tests: New file.
26961         * tests/test-log10f.c: New file.
26963         New module 'log10f'.
26964         * lib/math.in.h (log10f): New declaration.
26965         * lib/log10f.c: New file.
26966         * m4/log10f.m4: New file.
26967         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
26968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
26969         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
26970         * modules/log10f: New file.
26971         * tests/test-math-c++.cc: Check the declaration of log10f.
26972         * doc/posix-functions/log10f.texi: Mention the new module.
26974         log10: Use a .m4 file.
26975         * m4/log10.m4: New file.
26976         * modules/log10 (Files): Add it.
26977         (configure.ac): Just invoke gl_FUNC_LOG10.
26979 2011-10-08  Bruno Haible  <bruno@clisp.org>
26981         Tests for module 'logf'.
26982         * modules/logf-tests: New file.
26983         * tests/test-logf.c: New file.
26985         New module 'logf'.
26986         * lib/math.in.h (logf): New declaration.
26987         * lib/logf.c: New file.
26988         * m4/logf.m4: New file.
26989         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
26990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
26991         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
26992         * modules/logf: New file.
26993         * tests/test-math-c++.cc: Check the declaration of logf.
26994         * doc/posix-functions/logf.texi: Mention the new module.
26996         log: Use a .m4 file.
26997         * m4/log.m4: New file.
26998         * modules/log (Files): Add it.
26999         (configure.ac): Just invoke gl_FUNC_LOG.
27001 2011-10-08  Bruno Haible  <bruno@clisp.org>
27003         Tests for module 'expf'.
27004         * modules/expf-tests: New file.
27005         * tests/test-expf.c: New file.
27007         New module 'expf'.
27008         * lib/math.in.h (expf): New declaration.
27009         * lib/expf.c: New file.
27010         * m4/expf.m4: New file.
27011         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
27012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
27013         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
27014         * modules/expf: New file.
27015         * tests/test-math-c++.cc: Check the declaration of expf.
27016         * doc/posix-functions/expf.texi: Mention the new module.
27018         exp: Use a .m4 file.
27019         * m4/exp.m4: New file.
27020         * modules/exp (Files): Add it.
27021         (configure.ac): Just invoke gl_FUNC_EXP.
27023 2011-10-08  Bruno Haible  <bruno@clisp.org>
27025         Tests for module 'sqrtf'.
27026         * modules/sqrtf-tests: New file.
27027         * tests/test-sqrtf.c: New file.
27029         New module 'sqrtf'.
27030         * lib/math.in.h (sqrtf): New declaration.
27031         * lib/sqrtf.c: New file.
27032         * m4/sqrtf.m4: New file.
27033         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
27034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
27035         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
27036         * modules/sqrtf: New file.
27037         * tests/test-math-c++.cc: Check the declaration of sqrtf.
27038         * doc/posix-functions/sqrtf.texi: Mention the new module.
27040 2011-10-08  Bruno Haible  <bruno@clisp.org>
27042         Tests: Avoid link failures w.r.t. libintl.
27043         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
27044         $(LIBINTL).
27045         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
27046         $(LIBINTL).
27047         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
27048         against $(LIBINTL).
27049         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
27050         $(LIBINTL).
27051         * modules/openat-tests (Makefile.am): Link test-fchmodat against
27052         $(LIBINTL).
27053         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
27055 2011-10-08  Bruno Haible  <bruno@clisp.org>
27057         pow tests: Defeat compiler optimizations.
27058         * tests/test-pow.c (main): Assign arguments to x and y before use.
27060 2011-10-08  Bruno Haible  <bruno@clisp.org>
27062         gnulib-tool: Improve last commit.
27063         * gnulib-tool (func_modules_transitive_closure): Simplify code.
27064         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
27065         ignore dependencies that are not among the modules list.
27067 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
27069         gnulib-tool: don't follow dependencies to avoided modules
27070         This fixes a bug that is related to the previous one.
27071         * gnulib-tool (func_modules_transitive_closure)
27072         (func_emit_autoconf_snippets):
27073         Check whether a dependency is acceptable before using it.
27074         (--extract-dependencies): Report an error if --avoid is also used,
27075         since this combination of options is not yet supported.
27077         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
27078         Problem reported by Peter Dyballa in
27079         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
27080         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
27081         when echoing "$condition".
27083 2011-10-07  Bruno Haible  <bruno@clisp.org>
27085         Fix documentation about math functions on MacOS X.
27086         * doc/posix-functions/exp2.texi: Don't say the function is missing on
27087         MacOS X 10.5.
27088         * doc/posix-functions/fdim.texi: Likewise.
27089         * doc/posix-functions/feclearexcept.texi: Likewise.
27090         * doc/posix-functions/fegetenv.texi: Likewise.
27091         * doc/posix-functions/fegetround.texi: Likewise.
27092         * doc/posix-functions/feholdexcept.texi: Likewise.
27093         * doc/posix-functions/feraiseexcept.texi: Likewise.
27094         * doc/posix-functions/fesetenv.texi: Likewise.
27095         * doc/posix-functions/fesetround.texi: Likewise.
27096         * doc/posix-functions/fetestexcept.texi: Likewise.
27097         * doc/posix-functions/feupdateenv.texi: Likewise.
27098         * doc/posix-functions/fmax.texi: Likewise.
27099         * doc/posix-functions/fmin.texi: Likewise.
27100         * doc/posix-functions/log2.texi: Likewise.
27101         * doc/posix-functions/modff.texi: Likewise.
27102         * doc/posix-functions/nan.texi: Likewise.
27103         * doc/posix-functions/nanf.texi: Likewise.
27104         * doc/posix-functions/nextafterf.texi: Likewise.
27105         * doc/posix-functions/remquo.texi: Likewise.
27107 2011-10-07  Bruno Haible  <bruno@clisp.org>
27109         modff: Drop assumption about library that defines modff.
27110         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
27111         AC_CHECK_FUNCS.
27112         * modules/modff (Files): Add m4/mathfunc.m4.
27114 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
27116         raise tests: Avoid a GCC warning.
27117         * tests/test-raise.c (handler): Use _Noreturn.
27119 2011-10-07  Bruno Haible  <bruno@clisp.org>
27121         Tests for module 'ldexpf'.
27122         * modules/ldexpf-tests: New file.
27123         * tests/test-ldexpf.c: New file.
27125         New module 'ldexpf'.
27126         * lib/math.in.h (ldexpf): New declaration.
27127         * lib/ldexpf.c: New file.
27128         * m4/ldexpf.m4: New file.
27129         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
27130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
27131         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
27132         * modules/ldexpf: New file.
27133         * tests/test-math-c++.cc: Check the declaration of ldexpf.
27134         * doc/posix-functions/ldexpf.texi: Mention the new module.
27136 2011-10-06  Bruno Haible  <bruno@clisp.org>
27138         frexpf: Work around problems on IRIX and mingw.
27139         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
27140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
27141         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
27142         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
27143         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
27144         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
27145         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
27147 2011-10-06  Bruno Haible  <bruno@clisp.org>
27149         fabsf: Drop assumption about library that defines fabsf.
27150         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
27151         AC_CHECK_FUNCS.
27152         * modules/fabsf (Files): Add m4/mathfunc.m4.
27154 2011-10-06  Bruno Haible  <bruno@clisp.org>
27156         frexpf: Drop assumption about library that defines frexpf.
27157         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
27158         'int *', 'float *', 'long double *', 'float', 'long double'.
27159         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
27160         AC_CHECK_FUNCS.
27161         * modules/frexpf (Files): Add m4/mathfunc.m4.
27163         Tests for module 'frexpf'.
27164         * modules/frexpf-tests: New file.
27165         * tests/test-frexpf.c: New file.
27167         New module 'frexpf'.
27168         * lib/math.in.h (frexpf): New declaration.
27169         * lib/frexpf.c: New file.
27170         * m4/frexpf.m4: New file.
27171         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
27172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
27173         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
27174         * modules/frexpf: New file.
27175         * tests/test-math-c++.cc: Check the declaration of frexpf.
27176         * doc/posix-functions/frexpf.texi: Mention the new module.
27178 2011-10-06  Bruno Haible  <bruno@clisp.org>
27180         math: Sort function declarations of math.in.h.
27181         * lib/math.in.h (frexp, logb): Move declarations.
27183 2011-10-05  Bruno Haible  <bruno@clisp.org>
27185         Tests for module 'modff'.
27186         * modules/modff-tests: New file.
27187         * tests/test-modff.c: New file.
27189         New module 'modff'.
27190         * lib/math.in.h (modff): New declaration.
27191         * lib/modff.c: New file.
27192         * m4/modff.m4: New file.
27193         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
27194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
27195         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
27196         * modules/modff: New file.
27197         * tests/test-math-c++.cc: Check the declaration of modff.
27198         * doc/posix-functions/modff.texi: Mention the new module.
27200         modf tests: Make test sharper.
27201         * tests/test-modf.c (main): Strengthen upper bound.
27203         modf: Use a .m4 file.
27204         * m4/modf.m4: New file.
27205         * modules/modf (Files): Add it.
27206         (configure.ac): Just invoke gl_FUNC_MODF.
27208 2011-10-05  Bruno Haible  <bruno@clisp.org>
27210         Tests for module 'fmodf'.
27211         * modules/fmodf-tests: New file.
27212         * tests/test-fmodf.c: New file.
27214         New module 'fmodf'.
27215         * lib/math.in.h (fmodf): New declaration.
27216         * lib/fmodf.c: New file.
27217         * m4/fmodf.m4: New file.
27218         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
27219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
27220         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
27221         * modules/fmodf: New file.
27222         * tests/test-math-c++.cc: Check the declaration of fmodf.
27223         * doc/posix-functions/fmodf.texi: Mention the new module.
27225         fmod: Use a .m4 file.
27226         * m4/fmod.m4: New file.
27227         * modules/fmod (Files): Add it.
27228         (configure.ac): Just invoke gl_FUNC_FMOD.
27230 2011-10-05  Bruno Haible  <bruno@clisp.org>
27232         Tests for module 'fabsf'.
27233         * modules/fabsf-tests: New file.
27234         * tests/test-fabsf.c: New file.
27236         New module 'fabsf'.
27237         * lib/math.in.h (fabsf): New declaration.
27238         * lib/fabsf.c: New file.
27239         * m4/fabsf.m4: New file.
27240         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
27241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
27242         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
27243         * modules/fabsf: New file.
27244         * tests/test-math-c++.cc: Check the declaration of fabsf.
27245         * doc/posix-functions/fabsf.texi: Mention the new module.
27247         fabs: Use a .m4 file.
27248         * m4/fabs.m4: New file.
27249         * modules/fabs (Files): Add it.
27250         (configure.ac): Just invoke gl_FUNC_FABS.
27252 2011-10-05  Jim Meyering  <meyering@redhat.com>
27254         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
27255         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
27256         ls -lL regression introduced in coreutils-8.12, it does so at the
27257         cost of an additional stat call in the common case.  Besides, now
27258         that the kernel change that prompted commit 95f7c57f has been reverted
27259         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
27260         we have no use for commit 95f7c57f, "file-has-acl: use
27261         acl_extended_file_nofollow if available".
27263 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
27265         file-has-acl: revert unintended change in behavior of ls -L
27266         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
27267         derived from...
27268         (file_has_acl): ...code here.  Call it.
27269         This problem was introduced with 2011-07-22 commit 95f7c57f,
27270         "file-has-acl: use acl_extended_file_nofollow if available".
27271         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
27273 2011-10-03  Bruno Haible  <bruno@clisp.org>
27275         poll: Avoid link errors on MSVC.
27276         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
27277         * modules/poll (Depends-on): Add sockets.
27278         (Link): New section.
27279         * NEWS: Mention the change.
27280         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
27281         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
27282         $(LIB_POLL) instead of $(LIBSOCKET).
27284 2011-10-03  Bruno Haible  <bruno@clisp.org>
27286         sys_select tests: Fix link error on MSVC 9.
27287         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
27288         with $(LIB_SELECT) instead of $(LIBSOCKET).
27290 2011-10-03  Bruno Haible  <bruno@clisp.org>
27292         sys_select: Fix compilation error on mingw.
27293         * lib/sys_select.in.h: On native Windows, include <io.h>.
27295 2011-10-03  Bruno Haible  <bruno@clisp.org>
27297         wmemset: Support for MSVC.
27298         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
27299         whether wmemset() exists.
27301 2011-10-03  Bruno Haible  <bruno@clisp.org>
27303         wmemmove: Support for MSVC.
27304         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
27305         whether wmemmove() exists.
27307 2011-10-03  Bruno Haible  <bruno@clisp.org>
27309         wmemcpy: Support for MSVC.
27310         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
27311         whether wmemcpy() exists.
27313 2011-10-03  Bruno Haible  <bruno@clisp.org>
27315         wmemcmp: Support for MSVC.
27316         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
27317         whether wmemcmp() exists.
27319 2011-10-03  Bruno Haible  <bruno@clisp.org>
27321         wmemchr: Support for MSVC.
27322         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
27323         whether wmemchr() exists.
27325 2011-10-03  Bruno Haible  <bruno@clisp.org>
27327         glthread/*, strsignal: Support for MSVC.
27328         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
27329         including <winsock.h> on MSVC 9.
27330         * lib/glthread/lock.h: Likewise.
27331         * lib/glthread/thread.h: Likewise.
27332         * lib/glthread/tls.h: Likewise.
27333         * lib/glthread/yield.h: Likewise.
27334         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
27335         if HAVE_UNISTD_H is false.
27336         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
27338 2011-10-03  Bruno Haible  <bruno@clisp.org>
27340         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
27341         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
27342         Set to 100000.
27344 2011-10-03  Bruno Haible  <bruno@clisp.org>
27346         acl: Fix specification.
27347         * lib/file-has-acl.c (file_has_acl): Fix specification.
27349 2011-10-03  Bruno Haible  <bruno@clisp.org>
27351         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
27352         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
27353         (compute_curr_prefix, shared_library_fullname,
27354         find_shared_library_fullname, get_shared_library_fullname, relocate):
27355         Use it together with PIC && INSTALLDIR.
27356         Reported by <jojelino@gmail.com>
27357         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
27359 2011-10-01  Jim Meyering  <meyering@redhat.com>
27361         maint.mk: adjust a release-related rule not to require use of gzip
27362         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
27363         Instead, check each file in $(DIST_ARCHIVES).  This is better for
27364         projects that build only .tar.xz files.  Also fix an erroneous test.
27366         test-linkat: don't leave behind a temporary file
27367         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
27368         Otherwise, coreutils' "make distcheck" would fail with this:
27369           Only in /c/cu/tests/torture/coreutils/test/\
27370             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
27371           make[2]: *** [my-distcheck] Error 1
27373         float, math: add omitted file
27374         * lib/itold.c: Add file, required for yesterday's float change.
27376 2011-10-01  Bruno Haible  <bruno@clisp.org>
27378         isinf: Fix for OpenBSD/x86.
27379         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
27380         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
27381         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
27383 2011-10-01  Bruno Haible  <bruno@clisp.org>
27385         isfinite: Fix syntax error in configure test.
27386         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
27388         isfinite: Fix typo.
27389         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
27390         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
27392 2011-10-01  Bruno Haible  <bruno@clisp.org>
27394         nonblocking tests: Fix test failure on Linux/IA-64.
27395         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
27396         Set to 270000.
27398 2011-10-01  Bruno Haible  <bruno@clisp.org>
27400         mkfifoat tests: Fix a test failure on mingw.
27401         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
27402         with error ENOSYS.
27404 2011-09-30  Bruno Haible  <bruno@clisp.org>
27406         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
27407         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
27408         'long double'. Set REPLACE_ITOLD.
27409         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
27410         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
27411         * lib/itold.c: New file.
27412         * modules/float (Files): Add lib/itold.c.
27413         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
27414         (Makefile.am): Substitute REPLACE_ITOLD.
27415         * modules/math (Depends-on): Add float.
27416         (Makefile.am): Substitute REPLACE_ITOLD.
27417         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
27418         * doc/posix-headers/math.texi: Likewise.
27419         * doc/posix-functions/logl.texi: Likewise.
27421 2011-09-30  Bruno Haible  <bruno@clisp.org>
27423         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
27424         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
27425         Set to 140000.
27427 2011-09-30  Bruno Haible  <bruno@clisp.org>
27429         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
27430         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
27431         invocation, say "right after AC_PROG_CC_STDC", not "right after
27432         AC_PROG_CC".
27433         Reported by Gary V. Vaughan <gary@gnu.org>.
27435 2011-09-30  Bruno Haible  <bruno@clisp.org>
27437         Centralize C99 requirement.
27438         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
27439         * modules/stdarg (configure.ac-early): Invoke it instead of
27440         AC_PROG_CC_STDC.
27441         Reported by Gary V. Vaughan and Paul Eggert.
27443 2011-09-29  Bruno Haible  <bruno@clisp.org>
27445         float: Fix LDBL_MAX value on Linux/PowerPC.
27446         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
27447         on Linux/PowerPC.
27448         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
27449         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
27450         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
27451         platform.
27452         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
27454 2011-09-29  Bruno Haible  <bruno@clisp.org>
27456         doc: Improve doc about gl_EARLY.
27457         * doc/gnulib-tool.texi (Initial import): Mention where to place an
27458         AC_PROG_CC_STDC invocation.
27459         Reported by Gary V. Vaughan <gary@gnu.org>.
27461 2011-09-28  Bruno Haible  <bruno@clisp.org>
27463         fgetc, fputc, fread, fwrite tests: Fix link error.
27464         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
27465         on non-MSVC platforms.
27466         * tests/test-fputc.c (main): Likewise.
27467         * tests/test-fread.c (main): Likewise.
27468         * tests/test-fwrite.c (main): Likewise.
27469         Reported by Jim Meyering.
27471 2011-09-27  Bruno Haible  <bruno@clisp.org>
27473         fputc, fwrite tests: Avoid test failure on MSVC.
27474         * tests/test-fgetc.c: Include msvc-inval.h.
27475         (main): Invoke gl_msvc_inval_ensure_handler.
27476         * tests/test-fputc.c: Include msvc-inval.h.
27477         (main): Invoke gl_msvc_inval_ensure_handler.
27478         * tests/test-fread.c: Include msvc-inval.h.
27479         (main): Invoke gl_msvc_inval_ensure_handler.
27480         * tests/test-fwrite.c: Include msvc-inval.h.
27481         (main): Invoke gl_msvc_inval_ensure_handler.
27482         * modules/fgetc-tests (Depends-on): Add msvc-inval.
27483         * modules/fputc-tests (Depends-on): Likewise.
27484         * modules/fread-tests (Depends-on): Likewise.
27485         * modules/fwrite-tests (Depends-on): Likewise.
27487 2011-09-27  Bruno Haible  <bruno@clisp.org>
27489         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
27490         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
27491         (raise): Remove older, duplicated declaration.
27492         (_gl_raise_SIGPIPE): New declaration.
27493         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
27494         (rpl_raise): Remove function.
27495         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
27496         a gnulib-defined SIGPIPE here.
27497         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
27498         'sigprocmask' has detected missing signal-blocking and the module
27499         'sigpipe' is enabled.
27500         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27502 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
27504         base64-tests: avoid memory leak
27505         * tests/test-base64.c (main): Plug memory leak.
27507         base32: new module
27508         * modules/base32: New module.
27509         * lib/base32.c: New file.
27510         * lib/base32.h: Likewise.
27511         * m4/base32.m4: Likewise.
27512         * modules/base32-tests: New test.
27513         * tests/test-base32.c: Likewise.
27514         * MODULES.html.sh (Misc): Mention it.
27516 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27518         gnulib: use more-standard license notice wording
27519         * gnulib-tool (func_emit_copyright_notice): When emitting a
27520         license notice into a file, use the standard wording as suggested
27521         by the current information for GNU maintainers, except say "file"
27522         rather than "program".  The new wording gives a license version
27523         number, which addresses an issue raised by Glenn Morris in
27524         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
27525         * m4/onceonly.m4: Use that same wording here, too.
27527         dup2: minor simplification
27528         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
27529         as lib/dup2.c no longer uses 'inline'.
27531 2011-09-25  Bruno Haible  <bruno@clisp.org>
27533         strings: Fix compilation error on MSVC.
27534         * lib/strings.in.h: Include <stddef.h> for size_t.
27536 2011-09-25  Bruno Haible  <bruno@clisp.org>
27538         fflush et al.: Document limitation on MSVC.
27539         * doc/posix-functions/fflush.texi: Document possible crash in handling
27540         mode other than DEFAULT_HANDLING.
27541         * doc/posix-functions/fgetc.texi: Likewise.
27542         * doc/posix-functions/fputc.texi: Likewise.
27543         * doc/posix-functions/fread.texi: Likewise.
27544         * doc/posix-functions/fwrite.texi: Likewise.
27546 2011-09-25  Bruno Haible  <bruno@clisp.org>
27548         msvc-inval: Allow three invalid parameter handling modes.
27549         * lib/msvc-inval.h: Don't include <stdlib.h> here.
27550         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
27551         macros.
27552         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
27553         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
27554         SANE_LIBRARY_HANDLING as a no-op.
27555         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
27556         <stdlib.h>.
27557         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
27559 2011-09-25  Bruno Haible  <bruno@clisp.org>
27561         msvc-inval: Make handler multithread-safe.
27562         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
27563         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
27564         declarations.
27565         (gl_msvc_inval_current): New declaration.
27566         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27567         Operate on the structure returned by gl_msvc_inval_current().
27568         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
27569         Remove varaiables.
27570         (tls_index, tls_initialized): New variables.
27571         (not_per_thread): New variable.
27572         (gl_msvc_inval_current): New function.
27573         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
27574         returned by gl_msvc_inval_current().
27576 2011-09-25  Bruno Haible  <bruno@clisp.org>
27578         msvc-inval: Install handler globally.
27579         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
27580         !_MSC_VER.
27581         (gl_msvc_invalid_parameter_handler): Remove declaration.
27582         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
27583         declarations.
27584         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27585         Install the handler globally, don't uninstall it.
27586         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
27587         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
27588         currently valid, call RaiseException instead.
27589         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
27590         for !_MSC_VER.
27592 2011-09-25  Bruno Haible  <bruno@clisp.org>
27594         strerror_r-posix: Fix for MSVC 9.
27595         * lib/strerror_r.c (local_snprintf): New function.
27596         (snprintf): Define to local_snprintf, not to _snprintf.
27598 2011-09-25  Bruno Haible  <bruno@clisp.org>
27600         ftruncate: Support for MSVC 9.
27601         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
27602         (chsize_nothrow): New function.
27603         (chsize): Redefine as a macro.
27604         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
27605         * modules/ftruncate (Depends-on): Add msvc-inval.
27607 2011-09-25  Bruno Haible  <bruno@clisp.org>
27609         New module 'fstat'.
27610         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
27611         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
27612         * lib/fchdir.c (rpl_fstat): Remove function.
27613         * m4/fstat.m4: New file.
27614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
27615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
27616         declared.
27617         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
27618         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
27619         * modules/fstat: New file.
27620         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
27621         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
27622         is set.
27623         * doc/posix-functions/fstat.texi: Mention the new module and the
27624         problem on MSVC.
27625         * NEWS: Mention the change.
27626         * modules/acl (Depends-on): Add fstat.
27627         * modules/chdir-safer (Depends-on): Likewise.
27628         * modules/chown (Depends-on): Likewise.
27629         * modules/copy-file (Depends-on): Likewise.
27630         * modules/fchdir (Depends-on): Likewise.
27631         * modules/fdopendir (Depends-on): Likewise.
27632         * modules/fopen (Depends-on): Likewise.
27633         * modules/fts (Depends-on): Likewise.
27634         * modules/getcwd (Depends-on): Likewise.
27635         * modules/isapipe (Depends-on): Likewise.
27636         * modules/linkat (Depends-on): Likewise.
27637         * modules/lseek (Depends-on): Likewise.
27638         * modules/mkdir-p (Depends-on): Likewise.
27639         * modules/open (Depends-on): Likewise.
27640         * modules/openat (Depends-on): Likewise.
27641         * modules/read-file (Depends-on): Likewise.
27642         * modules/renameat (Depends-on): Likewise.
27643         * modules/utimens (Depends-on): Likewise.
27645 2011-09-25  Bruno Haible  <bruno@clisp.org>
27647         linkat: Fix compilation on MSVC 9.
27648         * lib/linkat.c: Don't include <stdint.h>.
27650 2011-09-25  Bruno Haible  <bruno@clisp.org>
27652         fclose: Support for MSVC 9.
27653         * lib/fclose.c: Include msvc-inval.h.
27654         (fclose_nothrow): New function.
27655         (rpl_fclose): Use it.
27656         * modules/fclose (Depends-on): Add msvc-inval.
27657         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
27659 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27661         dup2: minor simplifications
27662         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
27663         that it's a performance win.
27664         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
27665         ! defined __CYGWIN__)" to "ifdef F_GETFL".
27667 2011-09-24  Jim Meyering  <meyering@redhat.com>
27669         test-futimens: avoid a warning from gcc -Wshadow
27670         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
27671         to avoid a shadowing warning.
27673 2011-09-24  Bruno Haible  <bruno@clisp.org>
27675         fdopen: Support for MSVC 9.
27676         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
27677         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
27678         * lib/fdopen.c: Include msvc-inval.h.
27679         (fdopen_nothrow): New function.
27680         (rpl_fdopen): Use it.
27681         * modules/fdopen (Depends-on): Add msvc-inval.
27682         * modules/fclose-tests (Depends-on): Add fdopen.
27683         * modules/fflush-tests (Depends-on): Likewise.
27684         * modules/fgetc-tests (Depends-on): Likewise.
27685         * modules/fputc-tests (Depends-on): Likewise.
27686         * modules/fread-tests (Depends-on): Likewise.
27687         * modules/freopen-tests (Depends-on): Likewise.
27688         * modules/fseeko-tests (Depends-on): Likewise.
27689         * modules/ftello-tests (Depends-on): Likewise.
27690         * modules/fwrite-tests  (Depends-on): Likewise.
27691         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
27693 2011-09-24  Bruno Haible  <bruno@clisp.org>
27695         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
27696         * modules/fgetc-tests (Depends-on): Add unistd.
27697         * modules/fputc-tests (Depends-on): Likewise.
27698         * modules/fread-tests (Depends-on): Likewise.
27699         * modules/fwrite-tests (Depends-on): Likewise.
27701 2011-09-24  Bruno Haible  <bruno@clisp.org>
27703         dup: Simplify autoconf test.
27704         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
27705         on gl_MSVC_INVAL's result.
27707 2011-09-24  Bruno Haible  <bruno@clisp.org>
27709         Tests for function fwrite().
27710         * modules/fwrite-tests: New file.
27711         * tests/test-fwrite.c: New file.
27712         * modules/stdio-tests (Depends-on): Add fwrite-tests.
27714         Tests for function fread().
27715         * modules/fread-tests: New file.
27716         * tests/test-fread.c: New file.
27717         * modules/stdio-tests (Depends-on): Add fread-tests.
27719         Activate fputc tests.
27720         * modules/stdio-tests (Depends-on): Add fputc-tests.
27722         Enhance fgetc, fputc tests.
27723         * tests/test-fgetc.c (main): Also test the stream's error indicator.
27724         * tests/test-fputc.c (main): Likewise.
27726 2011-09-24  Bruno Haible  <bruno@clisp.org>
27728         write: Support for MSVC 9.
27729         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27730         is not 1.
27731         * lib/write.c (write_nothrow): New function.
27732         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
27733         not 1. Use write_nothrow.
27734         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
27735         invalid parameter handler.
27736         (gl_PREREQ_WRITE): New macro.
27737         * modules/write (Depends-on): Add msvc-inval.
27738         (configure.ac): Invoke gl_PREREQ_WRITE.
27739         * doc/posix-functions/write.texi: Mention the problem on MSVC.
27741 2011-09-24  Bruno Haible  <bruno@clisp.org>
27743         read: Fix last commit.
27744         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
27746 2011-09-24  Bruno Haible  <bruno@clisp.org>
27748         dup2: Fix last commit.
27749         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
27750         (rpl_dup2): Disable fcntl workaround on native Windows.
27752         sigprocmask: Make code safer.
27753         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
27754         section that changes macro definitions for this compilation unit.
27756 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27758         dup2: clarify by coalescing Windows-specific material
27759         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
27760         "msvc-nothrow.h"' to the Windows-specific section, so that the
27761         Emacs source need not contain these include files.
27762         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
27763         Windows-specific fixes into this function rather than just the
27764         nothrow fix, as this shortens and clarifies the code.  Always
27765         define as a function, as that's a bit cleaner than having it be
27766         sometimes a function and sometimes a macro.
27767         (rpl_dup2): Move the Windows-specific stuff out of here and into
27768         ms_windows_dup2.  Don't protect the Haiku-related fix with
27769         "#if !defined __linux__", as the same code also works around
27770         a Linux kernel bug, and it doesn't add any system calls on any
27771         platform.  Add comment about FreeBSD 6.1.
27773         sigprocmask: move #include directive
27774         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
27775         Windows-specific section, so that the Emacs source need not
27776         contain msvc-inval.h.
27778 2011-09-23  Bruno Haible  <bruno@clisp.org>
27780         read: Support for MSVC 9.
27781         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27782         is not 1.
27783         * lib/read.c (read_nothrow): New function.
27784         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
27785         read_nothrow.
27786         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
27787         invalid parameter handler.
27788         (gl_PREREQ_READ): New macro.
27789         * modules/read (Depends-on): Add msvc-inval.
27790         (configure.ac): Invoke gl_PREREQ_READ.
27791         * doc/posix-functions/read.texi: Mention the problem on MSVC.
27793 2011-09-23  Bruno Haible  <bruno@clisp.org>
27795         close: Support for MSVC 9.
27796         * lib/close.c: Include <errno.h>, msvc-inval.h.
27797         (close_nothrow): New function.
27798         (rpl_close): Use it.
27799         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
27800         invalid parameter handler.
27801         * modules/close (Depends-on): Add msvc-inval.
27802         * modules/dup2-tests (Depends-on): Add close.
27803         * modules/dup3-tests (Depends-on): Likewise.
27804         * modules/fcntl-tests (Depends-on): Likewise.
27805         * modules/spawn-pipe-tests (Depends-on): Likewise.
27806         * modules/unistd-safer-tests (Depends-on): Likewise.
27807         * doc/posix-functions/close.texi: Mention the problem on MSVC.
27809 2011-09-23  Bruno Haible  <bruno@clisp.org>
27811         New module 'dup'.
27812         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
27813         Allow replacement.
27814         * lib/dup.c: New file.
27815         * lib/fchdir.c (rpl_dup): Remove function.
27816         * m4/dup.m4: New file.
27817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
27818         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
27819         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
27820         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
27821         * modules/dup: New file.
27822         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
27823         'dup' module is in use.
27824         * modules/fdopendir (Depends-on): Add dup.
27825         * modules/fdutimensat-tests (Depends-on): Likewise.
27826         * modules/fts (Depends-on): Likewise.
27827         * modules/futimens-tests (Depends-on): Likewise.
27828         * modules/posix_spawnp-tests (Depends-on): Likewise.
27829         * modules/unistd-safer-tests (Depends-on): Likewise.
27830         * modules/utimens-tests (Depends-on): Likewise.
27831         * doc/posix-functions/dup.texi: Mention the new module and the problem
27832         on MSVC.
27834 2011-09-23  Bruno Haible  <bruno@clisp.org>
27836         getdtablesize: Support for MSVC 9.
27837         * lib/getdtablesize.c: Include msvc-inval.h.
27838         (_setmaxstdio_nothrow): New function.
27839         (_setmaxstdio): Redefine it.
27840         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
27841         * modules/getdtablesize (Depends-on): Add msvc-inval.
27842         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
27844 2011-09-23  Bruno Haible  <bruno@clisp.org>
27846         signal-h: Rename from signal.
27847         * modules/signal-h: Renamed from modules/signal.
27848         * modules/pthread_sigmask (Depends-on): Update.
27849         * modules/raise (Depends-on): Likewise.
27850         * modules/sigaction (Depends-on): Likewise.
27851         * modules/sigpipe (Depends-on): Likewise.
27852         * modules/sigprocmask (Depends-on): Likewise.
27853         * modules/sys_select (Depends-on): Likewise.
27854         * modules/signal-h-tests: Renamed from modules/signal-tests.
27855         (Files, Depends-on, Makefile.am): Update.
27856         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
27857         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
27858         (Files, Makefile.am): Update.
27859         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
27860         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
27861         * modules/signal: New placeholder file.
27862         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
27863         * doc/posix-headers/signal.texi: Update.
27864         * NEWS: Mention the change.
27866 2011-09-23  Bruno Haible  <bruno@clisp.org>
27868         sigprocmask: Avoid crashes through signal() on MSVC 9.
27869         * lib/sigprocmask.c: Include msvc-inval.h.
27870         (signal_nothrow): New function.
27871         (signal): Redefine it.
27872         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
27873         * modules/sigprocmask (Depends-on): Add msvc-inval.
27874         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
27876 2011-09-23  Bruno Haible  <bruno@clisp.org>
27878         Tests for module 'raise'.
27879         * modules/raise-tests: New file.
27880         * tests/test-raise.c: New file.
27882         raise: Support for MSVC.
27883         * lib/signal.in.h (raise): New declaration.
27884         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
27885         for native Windows platforms.
27886         * m4/raise.m4: New file.
27887         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
27888         HAVE_RAISE, REPLACE_RAISE.
27889         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
27890         REPLACE_RAISE.
27891         * modules/raise (Status, Notice): Remove fields.
27892         (Files): Add m4/raise.m4.
27893         (Depends-on): Add signal, msvc-inval.
27894         (configure.ac): Use the common idioms.
27895         (Maintainer): Add me.
27896         * tests/test-signal-c++.cc: Check the signature of raise.
27897         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
27899 2011-09-23  Bruno Haible  <bruno@clisp.org>
27901         pipe2: Fix compilation on pre-C99 compilers.
27902         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
27904 2011-09-23  Bruno Haible  <bruno@clisp.org>
27906         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
27907         * lib/msvc-nothrow.h: New file.
27908         * lib/msvc-nothrow.c: New file.
27909         * m4/msvc-nothrow.m4: New file.
27910         * modules/msvc-nothrow: New file.
27911         * lib/dup2.c: Include msvc-nothrow.h.
27912         (rpl_dup2): No need to protect _get_osfhandle call here.
27913         * lib/accept4.c: Include msvc-nothrow.h.
27914         * lib/error.c: Likewise.
27915         * lib/fcntl.c: Likewise.
27916         * lib/lseek.c: Likewise.
27917         * lib/nonblocking.c: Likewise.
27918         * lib/poll.c: Likewise.
27919         * lib/read.c: Likewise.
27920         * lib/select.c: Likewise.
27921         * lib/sockets.h: Likewise.
27922         * lib/sockets.c: Likewise.
27923         * lib/stdio-read.c: Likewise.
27924         * lib/stdio-write.c: Likewise.
27925         * lib/write.c: Likewise.
27926         * lib/w32sock.h: Likewise.
27927         * lib/w32spawn.h: Likewise.
27928         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
27929         * lib/fsync.c: Likewise.
27930         * lib/isapipe.c: Likewise.
27931         * modules/dup2 (Depends-on): Add msvc-nothrow.
27932         * modules/accept4 (Depends-on): Likewise.
27933         * modules/error (Depends-on): Likewise.
27934         * modules/fcntl (Depends-on): Likewise.
27935         * modules/lseek (Depends-on): Likewise.
27936         * modules/nonblocking (Depends-on): Likewise.
27937         * modules/poll (Depends-on): Likewise.
27938         * modules/read (Depends-on): Likewise.
27939         * modules/select (Depends-on): Likewise.
27940         * modules/sockets (Depends-on): Likewise.
27941         * modules/sigpipe (Depends-on): Likewise.
27942         * modules/write (Depends-on): Likewise.
27943         * modules/accept (Depends-on): Likewise.
27944         * modules/bind (Depends-on): Likewise.
27945         * modules/connect (Depends-on): Likewise.
27946         * modules/gethostname (Depends-on): Likewise.
27947         * modules/getpeername (Depends-on): Likewise.
27948         * modules/getsockname (Depends-on): Likewise.
27949         * modules/getsockopt (Depends-on): Likewise.
27950         * modules/ioctl (Depends-on): Likewise.
27951         * modules/listen (Depends-on): Likewise.
27952         * modules/recv (Depends-on): Likewise.
27953         * modules/recvfrom (Depends-on): Likewise.
27954         * modules/send (Depends-on): Likewise.
27955         * modules/sendto (Depends-on): Likewise.
27956         * modules/setsockopt (Depends-on): Likewise.
27957         * modules/shutdown (Depends-on): Likewise.
27958         * modules/socket (Depends-on): Likewise.
27959         * modules/execute (Depends-on): Likewise.
27960         * modules/spawn-pipe (Depends-on): Likewise.
27961         * modules/flock (Depends-on): Likewise.
27962         * modules/fsync (Depends-on): Likewise.
27963         * modules/isapipe (Depends-on): Likewise.
27964         * tests/test-cloexec.c: Include msvc-nothrow.h.
27965         * tests/test-dup-safer.c: Likewise.
27966         * tests/test-dup2.c: Likewise.
27967         * tests/test-dup3.c: Likewise.
27968         * tests/test-fcntl.c: Likewise.
27969         * tests/test-pipe.c: Likewise.
27970         * tests/test-pipe2.c: Likewise.
27971         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
27972         * modules/unistd-safer-tests (Depends-on): Likewise.
27973         * modules/dup2-tests (Depends-on): Likewise.
27974         * modules/dup3-tests (Depends-on): Likewise.
27975         * modules/fcntl-tests (Depends-on): Likewise.
27976         * modules/pipe-posix-tests (Depends-on): Likewise.
27977         * modules/pipe2-tests (Depends-on): Likewise.
27979 2011-09-23  Bruno Haible  <bruno@clisp.org>
27981         dup2: Make code more maintainable.
27982         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
27983         (rpl_dup2): Use it.
27984         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
27985         * modules/dup2 (configure.ac): Invoke it.
27986         Reported by Paul Eggert.
27988 2011-09-23  Bruno Haible  <bruno@clisp.org>
27990         msvc-inval: Fix compilation error.
27991         * lib/msvc-inval.h: Include <excpt.h>.
27993 2011-09-23  Bruno Haible  <bruno@clisp.org>
27995         mkdir: Tweak for MSVC 9.
27996         * lib/sys_stat.in.h: Update comments.
27997         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
27999         Tests for module 'chdir'.
28000         * modules/chdir-tests: New file.
28001         * tests/test-chdir.c: New file.
28003         New module 'chdir'.
28004         * modules/chdir: New file.
28005         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
28006         (chdir): New declaration.
28007         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
28008         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
28009         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
28010         * tests/test-unistd-c++.cc: Check signature of chdir.
28011         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
28012         * modules/chdir-long (Depends-on): Add chdir.
28013         * modules/fchdir (Depends-on): Likewise.
28014         * modules/rename (Depends-on): Likewise.
28015         * modules/savewd (Depends-on): Likewise.
28017         rmdir: Support for mingw, MSVC 9.
28018         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
28019         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
28021         getcwd: Tweak for MSVC 9.
28022         * lib/unistd.in.h: Update comments.
28023         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
28025 2011-09-22  Bruno Haible  <bruno@clisp.org>
28027         strerror_r-posix: Avoid a link error on MSVC.
28028         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
28029         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
28031 2011-09-22  Bruno Haible  <bruno@clisp.org>
28033         select: Avoid link errors on MSVC.
28034         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
28035         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
28036         * modules/pselect (Link): Likewise.
28037         * NEWS: Mention the change.
28038         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
28039         test-select-stdin against $(LIB_SELECT).
28040         * modules/pselect-tests (Makefile.am): Link test-pselect against
28041         $(LIB_SELECT).
28043 2011-09-22  Bruno Haible  <bruno@clisp.org>
28045         select: Avoid compilation error on MSVC.
28046         * lib/select.c: Don't include <stdbool.h>.
28048 2011-09-21  Bruno Haible  <bruno@clisp.org>
28050         Consolidate all uses of PATH_MAX in *.m4 files.
28051         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
28052         macros.
28053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
28054         and gl_PATHMAX_SNIPPET.
28055         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28057         * modules/chdir-long (Files): Add m4/pathmax.m4.
28058         * modules/getcwd (Files): Likewise.
28060 2011-09-21  Bruno Haible  <bruno@clisp.org>
28062         ftruncate: Un-deprecate, concentrate on Win32 support.
28063         * modules/ftruncate (Status, Notice): Remove sections.
28064         (Depends-on): Add largefile.
28065         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
28066         non-mingw platforms.
28067         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
28068         include <io.h>.
28069         * modules/perror-tests (Depends-on): Add ftruncate.
28070         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
28071         'ftruncate' module.
28073 2011-09-21  Bruno Haible  <bruno@clisp.org>
28075         Add dependencies to new dirent related modules.
28076         * modules/opendir (Depends-on): Add closedir.
28077         * modules/getcwd (Depends-on): Add opendir, closedir.
28078         * modules/dirent-safer-tests (Depends-on): Likewise.
28079         * modules/fdopendir-tests (Depends-on): Likewise.
28080         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
28081         * modules/renameat-tests (Depends-on): Likewise.
28083 2011-09-21  Bruno Haible  <bruno@clisp.org>
28085         opendir: Avoid compilation error on mingw.
28086         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
28087         * modules/opendir (Depends-on): Add unistd.
28089 2011-09-21  Bruno Haible  <bruno@clisp.org>
28091         ftruncate tests: Avoid a test failure on mingw.
28092         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
28094 2011-09-21  Bruno Haible  <bruno@clisp.org>
28096         select tests: Avoid test failures on OSF/1 5.1 and mingw.
28097         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
28098         native Windows.
28100 2011-09-21  Bruno Haible  <bruno@clisp.org>
28102         New module 'fdopen'.
28103         * lib/stdio.in.h (fdopen): New declaration.
28104         * lib/fdopen.c: New file.
28105         * m4/fdopen.m4: New file.
28106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
28107         REPLACE_FDOPEN.
28108         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
28109         REPLACE_FDOPEN.
28110         * modules/fdopen: New file.
28111         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
28112         * tests/test-stdio-c++.cc: Check signature of fdopen.
28113         * doc/posix-functions/fdopen.texi: Mention the new module.
28115 2011-09-21  Bruno Haible  <bruno@clisp.org>
28117         unlockpt tests: Avoid test failure on NetBSD 5.1.
28118         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
28119         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
28121 2011-09-21  Bruno Haible  <bruno@clisp.org>
28123         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
28124         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
28125         * tests/test-getlogin_r.c (main): Likewise.
28127 2011-09-20  Bruno Haible  <bruno@clisp.org>
28129         time tests: Don't require pid_t.
28130         * doc/posix-headers/time.texi: Revert last change.
28131         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
28132         * tests/test-time.c: Comment out the check for pid_t.
28134 2011-09-20  Bruno Haible  <bruno@clisp.org>
28136         fsync tests: Avoid a test failure on mingw.
28137         * tests/test-fsync.c (main): Allow a failure with EIO.
28139 2011-09-20  Bruno Haible  <bruno@clisp.org>
28141         euidaccess: Update comments.
28142         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
28144 2011-09-20  Bruno Haible  <bruno@clisp.org>
28146         Ensure EBADF returns for socket functions on mingw.
28147         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
28148         descriptor is invalid.
28149         * lib/bind.c (rpl_bind): Likewise.
28150         * lib/connect.c (rpl_connect): Likewise.
28151         * lib/getpeername.c (rpl_getpeername): Likewise.
28152         * lib/getsockname.c (rpl_getsockname): Likewise.
28153         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28154         * lib/listen.c (rpl_listen): Likewise.
28155         * lib/recv.c (rpl_recv): Likewise.
28156         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28157         * lib/send.c (rpl_send): Likewise.
28158         * lib/sendto.c (rpl_sendto): Likewise.
28159         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28160         * lib/shutdown.c (rpl_shutdown): Likewise.
28162 2011-09-20  Bruno Haible  <bruno@clisp.org>
28164         select tests: EBADF tests.
28165         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
28166         test_bad_fd): New functions.
28167         (test_function): Invoke also test_bad_fd.
28169 2011-09-20  Bruno Haible  <bruno@clisp.org>
28171         Tests for module 'posix_spawn_file_actions_addopen.
28172         * modules/posix_spawn_file_actions_addopen-tests: New file.
28173         * tests/test-posix_spawn_file_actions_addopen.c: New file.
28175         Tests for module 'posix_spawn_file_actions_adddup2'.
28176         * modules/posix_spawn_file_actions_adddup2-tests: New file.
28177         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
28179         Tests for module 'posix_spawn_file_actions_addclose'.
28180         * modules/posix_spawn_file_actions_addclose-tests: New file.
28181         * tests/test-posix_spawn_file_actions_addclose.c: New file.
28183 2011-09-20  Bruno Haible  <bruno@clisp.org>
28185         Tests for module 'unlockpt'.
28186         * modules/unlockpt-tests: New file.
28187         * tests/test-unlockpt.c: New file.
28188         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
28190         Tests for module 'grantpt'.
28191         * modules/grantpt-tests: New file.
28192         * tests/test-grantpt.c: New file.
28193         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
28195 2011-09-20  Bruno Haible  <bruno@clisp.org>
28197         freopen tests: EBADF tests.
28198         * tests/test-freopen.c: Include errno.h, unistd.h.
28199         (main): Add tests for EBADF, commented out for the moment.
28201         fclose tests: EBADF tests.
28202         * tests/test-fclose.c (main): Add tests for EBADF.
28204         fflush tests: EBADF tests.
28205         * tests/test-fflush.c: Include errno.h, macros.h.
28206         (main): Add tests for EBADF.
28208         ftello tests: EBADF tests.
28209         * tests/test-ftello4.sh: New file.
28210         * tests/test-ftello4.c: New file.
28211         * modules/ftello-tests (Files): Add them.
28212         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
28214         fseeko tests: EBADF tests.
28215         * tests/test-fseeko4.sh: New file.
28216         * tests/test-fseeko4.c: New file.
28217         * modules/fseeko-tests (Files): Add them.
28218         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
28220         Tests for function fputc().
28221         * modules/fputc-tests: New file.
28222         * tests/test-fputc.c: New file.
28223         * modules/stdio-tests (Depends-on): Add fputc-tests.
28225         Tests for function fgetc().
28226         * modules/fgetc-tests: New file.
28227         * tests/test-fgetc.c: New file.
28228         * modules/stdio-tests (Depends-on): Add fgetc-tests.
28230         Tests for function fdopen().
28231         * modules/fdopen-tests: New file.
28232         * tests/test-fdopen.c: New file.
28233         * modules/stdio-tests (Depends-on): Add fdopen-tests.
28235         Tests for module 'vdprintf'.
28236         * modules/vdprintf-tests: New file.
28237         * tests/test-vdprintf.c: New file.
28239         Tests for module 'dprintf'.
28240         * modules/dprintf-tests: New file.
28241         * tests/test-dprintf.c: New file.
28243 2011-09-20  Bruno Haible  <bruno@clisp.org>
28245         Tests for module 'ioctl'.
28246         * modules/ioctl-tests: New file.
28247         * tests/test-ioctl.c: New file.
28249 2011-09-20  Bruno Haible  <bruno@clisp.org>
28251         fcntl tests: EBADF tests.
28252         * tests/test-fcntl.c (main): Add more tests for EBADF.
28254 2011-09-20  Bruno Haible  <bruno@clisp.org>
28256         utimensat tests: EBADF tests.
28257         * tests/test-utimensat.c (main): Add tests for EBADF.
28259         renameat tests: EBADF tests.
28260         * tests/test-renameat.c (main): Add tests for EBADF.
28262         mkfifoat tests: EBADF tests.
28263         * tests/test-mkfifoat.c (main): Add tests for EBADF.
28265         readlinkat tests: EBADF tests.
28266         * tests/test-readlinkat.c (main): Add tests for EBADF.
28268         symlinkat tests: EBADF tests.
28269         * tests/test-symlinkat.c (main): Add tests for EBADF.
28271         linkat tests: EBADF tests.
28272         * tests/test-linkat.c (main): Add tests for EBADF.
28274         Tests for module 'faccessat'.
28275         * modules/faccessat-tests: New file.
28276         * tests/test-faccessat.c: New file.
28278         fdopendir tests: EBADF tests.
28279         * tests/test-fdopendir.c (main): Add more tests for EBADF.
28281         openat tests: EBADF tests.
28282         * tests/test-fchownat.c (main): Add tests for EBADF.
28283         * tests/test-fstatat.c (main): Likewise.
28284         * tests/test-mkdirat.c (main): Likewise.
28285         * tests/test-openat.c (main): Likewise.
28286         * tests/test-unlinkat.c (main): Likewise.
28287         * tests/test-fchmodat.c: New file.
28288         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
28289         (Makefile.am): Also run 'test-fchmodat'.
28291 2011-09-20  Bruno Haible  <bruno@clisp.org>
28293         utimens, futimens, fdutimensat tests: EBADF tests.
28294         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
28296         Tests for function fstat().
28297         * modules/fstat-tests: New file.
28298         * tests/test-fstat.c: New file.
28299         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
28301 2011-09-20  Bruno Haible  <bruno@clisp.org>
28303         test-ttyname_r tests: EBADF tests.
28304         * tests/test-ttyname_r.c (main): Add tests for EBADF.
28306         Tests for module 'isatty'.
28307         * modules/isatty-tests: New file.
28308         * tests/test-isatty.c: New file.
28310         Tests for module 'write'.
28311         * modules/write-tests: New file.
28312         * tests/test-write.c: New file.
28314         Tests for module 'read'.
28315         * modules/read-tests: New file.
28316         * tests/test-read.c: New file.
28318         pwrite tests: EBADF tests.
28319         * tests/test-pwrite.c (main): Add tests for EBADF.
28321         pread tests: EBADF tests.
28322         * tests/test-pread.c (main): Add tests for EBADF.
28324         lseek tests: EBADF tests.
28325         * tests/test-lseek.c (main): Add more tests for EBADF.
28327         Tests for module 'ftruncate'.
28328         * modules/ftruncate-tests: New file.
28329         * tests/test-ftruncate.sh: New file.
28330         * tests/test-ftruncate.c: New file.
28332         fsync tests: EBADF tests.
28333         * tests/test-fsync.c (main): Add more tests for EBADF.
28335         fdatasync tests: EBADF tests.
28336         * tests/test-fdatasync.c (main): Add more tests for EBADF.
28338         Tests for module 'fchown'.
28339         * modules/fchown-tests: New file.
28340         * tests/test-fchown.c: New file.
28342         Tests for module 'fchmod'.
28343         * modules/fchmod-tests: New file.
28344         * tests/test-fchmod.c: New file.
28346         fchdir tests: EBADF tests.
28347         * tests/test-fchdir.c (main): Add more tests for EBADF.
28349         dup2 tests: EBADF tests.
28350         * tests/test-dup2.c (main): Add more tests for EBADF.
28352         Tests for module 'dup'.
28353         * modules/dup-tests: New file.
28354         * tests/test-dup.c: New file.
28356         Tests for module 'close'.
28357         * modules/close-tests: New file.
28358         * tests/test-close.c: New file.
28360 2011-09-20  Bruno Haible  <bruno@clisp.org>
28362         Tests for module 'shutdown'.
28363         * modules/shutdown-tests: New file.
28364         * tests/test-shutdown.c: New file.
28366         Tests for module 'setsockopt'.
28367         * modules/setsockopt-tests: New file.
28368         * tests/test-setsockopt.c: New file.
28370         Tests for module 'sendto'.
28371         * modules/sendto-tests: New file.
28372         * tests/test-sendto.c: New file.
28374         Tests for module 'send'.
28375         * modules/send-tests: New file.
28376         * tests/test-send.c: New file.
28378         Tests for module 'recvfrom'.
28379         * modules/recvfrom-tests: New file.
28380         * tests/test-recvfrom.c: New file.
28382         Tests for module 'recv'.
28383         * modules/recv-tests: New file.
28384         * tests/test-recv.c: New file.
28386         Tests for module 'listen'.
28387         * modules/listen-tests: New file.
28388         * tests/test-listen.c: New file.
28390         Tests for module 'getsockopt'.
28391         * modules/getsockopt-tests: New file.
28392         * tests/test-getsockopt.c: New file.
28394         Tests for module 'getsockname'.
28395         * modules/getsockname-tests: New file.
28396         * tests/test-getsockname.c: New file.
28398         Tests for module 'getpeername'.
28399         * modules/getpeername-tests: New file.
28400         * tests/test-getpeername.c: New file.
28402         Tests for module 'connect'.
28403         * modules/connect-tests: New file.
28404         * tests/test-connect.c: New file.
28406         Tests for module 'bind'.
28407         * modules/bind-tests: New file.
28408         * tests/test-bind.c: New file.
28410         accept4 tests: Fix for native Windows.
28411         * tests/test-accept4.c: Include sockets.h.
28412         (main): Invoke gl_sockets_startup.
28413         * modules/accept4-tests (Depends-on): Add sockets.
28415         accept tests: Fix for native Windows.
28416         * tests/test-accept.c: Include sockets.h.
28417         (main): Invoke gl_sockets_startup.
28418         * modules/accept-tests (Depends-on): Add sockets.
28420 2011-09-19  Bruno Haible  <bruno@clisp.org>
28422         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
28423         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
28424         do...while(0).
28425         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
28426         Suggested by Paul Eggert.
28428 2011-09-19  Bruno Haible  <bruno@clisp.org>
28430         sched: Ensure pid_t is defined.
28431         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
28432         not define pid_t.
28433         * lib/sched.in.h: Include <sys/types.h>.
28434         * doc/posix-headers/sched.texi: Mention the pid_t problem.
28435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28437 2011-09-19  Bruno Haible  <bruno@clisp.org>
28439         msvc-inval: Ensure the entire expansion is a single statement.
28440         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
28441         of braces.
28443 2011-09-19  Jim Meyering  <meyering@redhat.com>
28445         tests: use printf, not echo in init.sh's warn_ function
28446         * tests/init.sh (warn_): Use printf, not echo.  The latter would
28447         misbehave when given strings containing a backslash or starting
28448         with e.g., -n.  James Youngman suggested setting IFS.
28450 2011-09-19  Eric Blake  <eblake@redhat.com>
28452         futimens: enhance test
28453         * tests/test-futimens.h (test_futimens): Also check for EBADF on
28454         closed non-negative fd.
28456         date: accept 'hence' as opposite of 'ago'
28457         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
28458         * tests/test-parse-datetime.c (main): Enhance test.
28459         Suggested by Jesse Wilson.
28461 2011-09-19  Jim Meyering  <meyering@redhat.com>
28463         getcwd: don't fail in a deep directory on a system without openat
28464         Before this change, getcwd would fail when called from a directory
28465         of depth PATH_MAX / 3 or greater.  That was due to the fact that
28466         the non-openat implementation used "..", "../..", "../../..", etc.
28467         to access ancestor directories.  With too many, that string would
28468         be longer than PATH_MAX.
28469         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
28470         using gnulib's openat replacement.
28471         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
28472         we're using the replacement function.
28474 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
28476         maint.mk: avoid warnings from perl about missing files
28477         * top/maint.mk (def_sym_regex): Ignore files listed in
28478         $(gl_other_headers_) that do not exist, say because a project
28479         does not use a corresponding module.
28481 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28483         stat: use pathmax.h only if needed
28484         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
28485         This is better for Emacs, which does not have a mingw port and
28486         therefore can avoid the pathmax module.
28488         utimens: remove dependency on dup2
28489         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
28490         to work around the Linux kernel bug.
28491         * modules/utimens (Depends-on): Remove dup2.
28493 2011-09-18  Bruno Haible  <bruno@clisp.org>
28495         inet_ntop, inet_pton: Look for it also in libresolv.
28496         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
28497         libnsl, search for it in libresolv.
28498         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28499         Needed on Solaris 7.
28501 2011-09-18  Bruno Haible  <bruno@clisp.org>
28503         accept, accept4 tests: Avoid link error on Solaris.
28504         * modules/accept-tests (Makefile.am): Link test-accept against
28505         $(LIBSOCKET).
28506         * modules/accept4-tests (Makefile.am): Link test-accept4 against
28507         $(LIBSOCKET).
28509         accept4: Avoid link error on Solaris.
28510         * modules/accept4 (Link): New section.
28512         socket functions: Avoid link errors on Solaris.
28513         * modules/accept (Depends-on): Add socketlib.
28514         (Link): New section.
28515         * modules/bind (Depends-on): Add socketlib.
28516         (Link): New section.
28517         * modules/connect (Depends-on): Add socketlib.
28518         (Link): New section.
28519         * modules/getpeername (Depends-on): Add socketlib.
28520         (Link): New section.
28521         * modules/getsockname (Depends-on): Add socketlib.
28522         (Link): New section.
28523         * modules/getsockopt (Depends-on): Add socketlib.
28524         (Link): New section.
28525         * modules/listen (Depends-on): Add socketlib.
28526         (Link): New section.
28527         * modules/recv (Depends-on): Add socketlib.
28528         (Link): New section.
28529         * modules/recvfrom (Depends-on): Add socketlib.
28530         (Link): New section.
28531         * modules/send (Depends-on): Add socketlib.
28532         (Link): New section.
28533         * modules/sendto (Depends-on): Add socketlib.
28534         (Link): New section.
28535         * modules/setsockopt (Depends-on): Add socketlib.
28536         (Link): New section.
28537         * modules/shutdown (Depends-on): Add socketlib.
28538         (Link): New section.
28539         * modules/socket (Depends-on): Add socketlib.
28540         (Link): New section.
28542 2011-09-18  Bruno Haible  <bruno@clisp.org>
28544         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
28545         * tests/test-ptsname.c (main): Terminate the test if it takes longer
28546         than 5 seconds.
28547         * modules/ptsname-tests (configure.ac): Test for alarm.
28549 2011-09-18  Bruno Haible  <bruno@clisp.org>
28551         posix_spawn_file_actions_add*: Fix module dependencies.
28552         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
28553         posix_spawn_file_actions_init.
28554         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
28555         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
28557 2011-09-18  Bruno Haible  <bruno@clisp.org>
28559         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
28560         * tests/test-rename.h (test_rename): Allow error code EEXIST.
28561         * tests/test-renameat.c (main): Likewise.
28563 2011-09-18  Bruno Haible  <bruno@clisp.org>
28565         Tests for module 'accept4'.
28566         * modules/accept4-tests: New file.
28567         * tests/test-accept4.c: New file.
28569 2011-09-18  Bruno Haible  <bruno@clisp.org>
28571         Tests for module 'accept'.
28572         * modules/accept-tests: New file.
28573         * tests/test-accept.c: New file.
28575 2011-09-18  Bruno Haible  <bruno@clisp.org>
28577         dup2: Support for MSVC.
28578         * lib/dup2.c: Include msvc-inval.h.
28579         (rpl_dup2): Handle invalid parameter notifications during dup2 and
28580         _get_osfhandle calls.
28581         * modules/dup2 (Depends-on): Add msvc-inval.
28582         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
28584         New module 'msvc-inval'.
28585         * lib/msvc-inval.h: New file.
28586         * lib/msvc-inval.c: New file.
28587         * m4/msvc-inval.m4: New file.
28588         * modules/msvc-inval: New file.
28590 2011-09-17  Bruno Haible  <bruno@clisp.org>
28592         Tests for module 'pclose'.
28593         * modules/pclose-tests: New file.
28595         New module 'pclose'.
28596         * lib/stdio.in.h (pclose): New declaration.
28597         * lib/pclose.c: New file.
28598         * m4/pclose.m4: New file.
28599         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
28600         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
28601         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
28602         * modules/pclose: New file.
28603         * modules/popen-tests (Depends-on): Add pclose.
28604         * modules/popen-safer-tests (Depends-on): Likewise.
28605         * doc/posix-functions/pclose.texi: Mention the new module.
28607 2011-09-17  Bruno Haible  <bruno@clisp.org>
28609         popen: Support for MSVC.
28610         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
28611         * lib/popen.c (popen): Provide alternate definition for native Windows.
28612         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
28613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
28614         * modules/popen (Depends-on, configure.ac): Update condition.
28615         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
28616         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
28617         fixed.
28619 2011-09-17  Bruno Haible  <bruno@clisp.org>
28621         isnanl, isnand, isnanf: Work around MSVC bug.
28622         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
28624 2011-09-17  Bruno Haible  <bruno@clisp.org>
28626         sys_socket tests: Fix recent mistake.
28627         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
28629 2011-09-17  Bruno Haible  <bruno@clisp.org>
28631         putenv: Support for MSVC.
28632         * modules/putenv (Depends-on): Add environ.
28633         * lib/putenv.c (environ): Disable declaration.
28634         * lib/unistd.in.h: Update comment.
28636 2011-09-17  Bruno Haible  <bruno@clisp.org>
28638         math: Avoid macro redefinition warnings on MSVC.
28639         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
28640         Undefine before redefining.
28642 2011-09-17  Bruno Haible  <bruno@clisp.org>
28644         doc: Mention functions which are declared as macros.
28645         * doc/posix-functions/*[fl].texi: Mention that some functions are
28646         defined as macros with arguments only.
28648 2011-09-17  Bruno Haible  <bruno@clisp.org>
28650         Add dependencies to new dirent related modules.
28651         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
28652         * modules/fts (Depends-on): Likewise.
28653         * modules/glob (Depends-on): Likewise.
28654         * modules/savedir (Depends-on): Likewise.
28655         * modules/scandir (Depends-on): Likewise.
28656         * modules/dirent-safer (Depends-on): Add opendir, closedir.
28657         * modules/fdopendir (Depends-on): Add opendir.
28659 2011-09-17  Bruno Haible  <bruno@clisp.org>
28661         inet_pton: Support for MSVC on Windows Vista or newer.
28662         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
28663         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
28664         HAVE_DECL_INET_PTON is defined.
28665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28666         On platforms with <winsock2.h>, test whether inet_pton is declared in
28667         <ws2tcpip.h>. If so, arrange to replace it.
28668         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28669         REPLACE_INET_PTON.
28670         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
28671         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
28672         (Depends-on, configure.ac): Update condition.
28673         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
28675 2011-09-17  Bruno Haible  <bruno@clisp.org>
28677         inet_ntop: Support for MSVC on Windows Vista or newer.
28678         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
28679         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
28680         HAVE_DECL_INET_NTOP is defined.
28681         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28682         On platforms with <winsock2.h>, test whether inet_ntop is declared in
28683         <ws2tcpip.h>. If so, arrange to replace it.
28684         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28685         REPLACE_INET_NTOP.
28686         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
28687         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
28688         (Depends-on, configure.ac): Update condition.
28689         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
28691 2011-09-16  Eric Blake  <eblake@redhat.com>
28693         test-fsync: yet another enhancement
28694         * tests/test-fsync.c (main): Also test behavior on read-only text
28695         file.
28697 2011-09-16  Bruno Haible  <bruno@clisp.org>
28699         Enhance fsync, fdatasync tests.
28700         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
28701         * tests/test-fdatasync.c (main): Likewise.
28703 2011-09-16  Bruno Haible  <bruno@clisp.org>
28705         Support for MSVC compiler: Ensure mode_t gets defined.
28706         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
28707         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28709         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
28710         * tests/test-fcntl-h.c: Check that mode_t is defined.
28711         * tests/test-sys_stat.c: Likewise.
28712         * tests/test-sys_types.c: Likewise.
28713         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
28714         * doc/posix-headers/sys_stat.texi: Likewise.
28715         * doc/posix-headers/sys_types.texi: Likewise.
28717 2011-09-16  Bruno Haible  <bruno@clisp.org>
28719         sys_stat: Support for MSVC.
28720         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
28721         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
28722         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
28723         MSVC.
28725 2011-09-16  Bruno Haible  <bruno@clisp.org>
28727         Support for MSVC compiler: Ensure off_t gets defined.
28728         * lib/unistd.in.h: Include <sys/types.h>.
28729         * tests/test-fcntl-h.c: Check that off_t is defined.
28730         * tests/test-sys_stat.c: Likewise.
28731         * tests/test-sys_types.c: Likewise.
28733 2011-09-16  Eric Blake  <eblake@redhat.com>
28735         fdatasync: port to Solaris
28736         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
28737         * modules/fdatasync (Link): Document it.
28738         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
28740         fdatasync: port to MacOS X 10.7
28741         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
28742         declared.
28743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
28744         * modules/unistd (Makefile.am): Substitute it.
28745         * lib/unistd.in.h (fdatasync): Declare on MacOS.
28746         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
28748         fdatasync: minor improvements
28749         * modules/fdatasync (Depends-on): Add condition for fsync.
28750         * lib/fdatasync.c (fdatasync): Add comment.
28751         * tests/test-unistd-c++.cc: Test fdatasync.
28753         unistd: update refs to newer POSIX
28754         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
28755         Suggested by Bruno Haible.
28757         fdatasync: new module
28758         * modules/fsync (Description): Document difference to fdatasync.
28759         * modules/fdatasync: New module.
28760         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
28761         * lib/fdatasync.c (fdatasync): Likewise.
28762         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
28763         defaults.
28764         * modules/unistd (Makefile.am): Set witnesses.
28765         * lib/unistd.in.h (fdatasync): Declare.
28766         * MODULES.html.sh: Document it.
28767         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
28768         * modules/fdatasync-tests: New test.
28769         * tests/test-fdatasync.c: Likewise.
28771 2011-09-16  Eric Blake  <eblake@redhat.com>
28773         test-fsync: enhance tests
28774         * modules/fsync-tests (Depends-on): Add errno, for mingw.
28775         * tests/test-fsync.c (main): Enhance test.
28777 2011-09-15  Bruno Haible  <bruno@clisp.org>
28779         Support for MSVC compiler: Ensure ssize_t gets defined.
28780         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
28781         * doc/posix-headers/stdio.texi: Likewise.
28782         * modules/stdio (Depends-on): Add ssize_t.
28783         * modules/sys_socket (Depends-on): Likewise.
28784         * modules/sys_types (Depends-on): Likewise.
28785         * modules/sys_uio (Depends-on): Likewise.
28786         * modules/unistd (Depends-on): Likewise.
28787         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
28788         * tests/test-sys_types.c: Check that ssize_t is defined.
28790 2011-09-14  Bruno Haible  <bruno@clisp.org>
28792         Avoid using #, the m4 comment starter character, near brackets.
28793         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
28794         delimiter character in sed expressions.
28795         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28796         Suggested by Eric Blake.
28798         Properly quote AC_CHECK_DECLS' 4th argument.
28799         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
28800         argument.
28801         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28802         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28803         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28804         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28805         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28806         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
28807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
28808         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
28809         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
28810         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
28811         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
28812         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28813         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28814         * m4/isinf.m4 (gl_ISINF): Likewise.
28815         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28816         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28817         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28818         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28820         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
28821         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28822         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28823         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
28824         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28825         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28826         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
28828         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28830         Reported by Eric Blake.
28832         Properly quote AC_CHECK_DECL's 4th argument.
28833         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
28834         argument.
28835         * m4/argp.m4 (gl_ARGP): Likewise.
28836         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28837         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28838         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28839         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28840         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
28841         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
28842         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
28843         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28845         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28846         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28847         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28848         Reported by Eric Blake.
28850 2011-09-14  Eric Blake  <eblake@redhat.com>
28852         opendir: avoid compile warning
28853         * lib/opendir.c (includes): Always include errno.h.
28854         Reported by Tatsuro MATSUOKA.
28856 2011-09-14  Jim Meyering  <meyering@redhat.com>
28858         maint.mk: sc_tight_scope: propagate failure from sub-make
28859         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
28860         Reported by Martin von Gagern.
28862 2011-09-13  Bruno Haible  <bruno@clisp.org>
28864         tempname: Support for MSVC.
28865         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
28866         MSVC.
28867         * modules/tempname (Depends-on): Add fcntl-h.
28869 2011-09-13  Bruno Haible  <bruno@clisp.org>
28871         sys_time: Support for MSVC.
28872         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
28873         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
28874         include <winsock2.h>.
28875         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
28876         function declarations that collide with POSIX.
28877         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
28878         (Makefile.am): Substitute HAVE_WINSOCK2_H.
28880 2011-09-13  Bruno Haible  <bruno@clisp.org>
28882         stat: Support for MSVC.
28883         * lib/stat.c: Include pathmax.h.
28884         * modules/stat (Depends-on): Add pathmax.
28886         pathmax: Support for native Windows.
28887         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
28889 2011-09-12  Bruno Haible  <bruno@clisp.org>
28891         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
28892         * lib/dirent.in.h (struct dirent): New type.
28893         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
28894         DT_WHT): New macros.
28895         (DIR): New type.
28896         (opendir, closedir): Declare only if the module 'opendir' is enabled.
28897         (readdir, rewinddir): New declarations.
28898         * lib/dirent-private.h: New file.
28899         * lib/opendir.c: New file.
28900         * lib/readdir.c: New file.
28901         * lib/rewinddir.c: New file.
28902         * lib/closedir.c: New file.
28903         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
28904         * m4/opendir.m4: New file.
28905         * m4/readdir.m4: New file.
28906         * m4/rewinddir.m4: New file.
28907         * m4/closedir.m4: New file.
28908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
28909         REPLACE_CLOSEDIR here.
28910         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
28911         readdir, rewinddir are declared.
28912         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
28913         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
28914         HAVE_REWINDDIR, HAVE_CLOSEDIR.
28915         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
28916         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
28917         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
28918         * modules/opendir: New file.
28919         * modules/readdir: New file.
28920         * modules/rewinddir: New file.
28921         * modules/closedir: New file.
28922         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
28923         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
28924         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
28925         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
28926         * NEWS: Mention the 'fchdir' change.
28928 2011-09-11  Bruno Haible  <bruno@clisp.org>
28930         asm-underscore.m4: Support for MSVC.
28931         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
28932         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
28934 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
28936         Doc about crypt functions.
28937         * doc/posix-functions/crypt.texi: Expand range of glibc versions
28938         needing for _GNU_SOURCE to get crypt.
28939         * doc/posix-functions/encrypt.texi: Likewise.
28940         * doc/posix-functions/setkey.texi: Likewise.
28942 2011-09-11  Bruno Haible  <bruno@clisp.org>
28944         doc: Update regarding MSVC 9.
28945         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
28946         tested".
28947         * doc/posix-functions/*.texi: Update with info about MSVC 9.
28948         * doc/posix-headers/*.texi: Likewise.
28949         * doc/pastposix-functions/*.texi: Likewise.
28950         * doc/glibc-functions/*.texi: Likewise.
28951         * doc/glibc-headers/*.texi: Likewise.
28953 2011-09-11  Bruno Haible  <bruno@clisp.org>
28955         unistd et al.: Don't assume <unistd.h> exists.
28956         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
28957         does not exist.
28958         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
28959         exist. But include <stdlib.h>.
28960         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
28961         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
28962         symlink() does not exist.
28963         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
28964         include <io.h> instead.
28965         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
28966         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
28967         include <direct.h> instead.
28968         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28970         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
28971         <io.h> instead.
28972         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
28973         correctly if the system does not have hard links.
28974         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
28975         <direct.h> instead.
28976         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
28977         it when looking for function declarations.
28978         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
28979         <direct.h> and <io.h> instead.
28980         * doc/posix-headers/unistd.texi: More details about MSVC problem.
28982 2011-09-11  Bruno Haible  <bruno@clisp.org>
28984         strcase: Support for MSVC.
28985         * modules/strcase (Status, Notice): Remove obsoletion mark.
28986         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
28987         * doc/posix-functions/strncasecmp.texi: Likewise.
28989         strings: Don't assume <strings.h> exists.
28990         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
28991         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
28992         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
28993         * doc/posix-headers/strings.texi: Mention the MSVC problem.
28995 2011-09-11  Bruno Haible  <bruno@clisp.org>
28997         dirent: Don't assume <dirent.h> exists.
28998         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
28999         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
29000         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
29001         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
29003 2011-09-11  Bruno Haible  <bruno@clisp.org>
29005         Fix wint_t on MSVC.
29006         * lib/wchar.in.h (wint_t): On MSVC, override it.
29007         * lib/wctype.in.h (wint_t): Likewise.
29008         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
29009         MSVC.
29010         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
29011         * doc/posix-headers/wctype.texi: Likewise.
29013 2011-09-11  Bruno Haible  <bruno@clisp.org>
29015         sys_types: Fix typo.
29016         * lib/sys_types.in.h: Fix typo in comment.
29017         Reported by Paul Eggert.
29019         Support for MSVC compiler: Ensure size_t gets defined.
29020         * modules/strings (Depends-on): Add 'sys_types'.
29021         * modules/sys_uio (Depends-on): Likewise.
29022         * lib/sys_uio.in.h: Update comment.
29024         C++ tests for module 'sys_types'.
29025         * modules/sys_types-c++-tests: New file.
29026         * tests/test-sys_types-c++.cc: New file.
29028         Tests for module 'sys_types'.
29029         * modules/sys_types-tests: New file.
29030         * tests/test-sys_types.c: New file.
29032         New module 'sys_types'.
29033         * lib/sys_types.in.h: New file.
29034         * m4/sys_types_h.m4: New file.
29035         * modules/sys_types: New file.
29036         * doc/posix-headers/sys_types.texi: Mention the new module and the
29037         size_t problem on MSVC 9.
29039 2011-09-11  Bruno Haible  <bruno@clisp.org>
29041         Support for MSVC compiler: Avoid division by a literal 0.
29042         * lib/math.in.h (NAN): Define through a function call also on MSVC.
29043         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
29044         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
29045         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
29046         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
29047         * tests/infinity.h: New file.
29048         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
29049         on MSVC.
29050         * tests/test-ceilf1.c: Include infinity.h.
29051         (main): Use Infinityf.
29052         * tests/test-ceil1.c: Include infinity.h.
29053         (main): Use Infinityd.
29054         * tests/test-ceill.c: Include infinity.h.
29055         (main): Use Infinityl.
29056         * tests/test-dprintf-posix.c: Include infinity.h.
29057         (test_function): Use Infinityd.
29058         * tests/test-floorf1.c: Include infinity.h.
29059         (main): Use Infinityf.
29060         * tests/test-floor1.c: Include infinity.h.
29061         (main): Use Infinityd.
29062         * tests/test-floorl.c: Include infinity.h.
29063         (main): Use Infinityl.
29064         * tests/test-fprintf-posix.c: Include infinity.h.
29065         (test_function): Use Infinityd.
29066         * tests/test-frexp.c: Include infinity.h.
29067         (main): Use Infinityd.
29068         * tests/test-frexpl.c: Include infinity.h.
29069         (main): Use Infinityl.
29070         * tests/test-isfinite.c: Include infinity.h.
29071         (test_isfinitef): Use Infinityf.
29072         (test_isfinited): Use Infinityd.
29073         (test_isfinitel): Use Infinityl.
29074         * tests/test-isinf.c: Include infinity.h.
29075         (test_isinff): Use Infinityf.
29076         (test_isinfd): Use Infinityd.
29077         (test_isinfl): Use Infinityl.
29078         * tests/test-isnan.c: Include infinity.h.
29079         (test_float): Use Infinityf.
29080         (test_double): Use Infinityd.
29081         (test_long_double): Use Infinityl.
29082         * tests/test-isnanf.h: Include infinity.h.
29083         (main): Use Infinityf.
29084         * tests/test-isnand.h: Include infinity.h.
29085         (main): Use Infinityd.
29086         * tests/test-isnanl.h: Include infinity.h.
29087         (main): Use Infinityl.
29088         * tests/test-ldexpl.c: Include infinity.h.
29089         (main): Use Infinityl.
29090         * tests/test-printf-posix.h: Include infinity.h.
29091         (test_function): Use Infinityd.
29092         * tests/test-roundf1.c: Include infinity.h.
29093         (main): Use Infinityf.
29094         * tests/test-round1.c: Include infinity.h.
29095         (main): Use Infinityd.
29096         * tests/test-roundl.c: Include infinity.h.
29097         (main): Use Infinityl.
29098         * tests/test-signbit.c: Include infinity.h.
29099         (test_signbitf): Use Infinityf.
29100         (test_signbitd): Use Infinityd.
29101         (test_signbitl): Use Infinityl.
29102         * tests/test-snprintf-posix.h: Include infinity.h.
29103         (test_function): Use Infinityd, Infinityl.
29104         * tests/test-sprintf-posix.h: Include infinity.h.
29105         (test_function): Use Infinityd, Infinityl.
29106         * tests/test-truncf1.c: Include infinity.h.
29107         (main): Use Infinityf.
29108         * tests/test-trunc1.c: Include infinity.h.
29109         (main): Use Infinityd.
29110         * tests/test-truncl.c: Include infinity.h.
29111         (main): Use Infinityl.
29112         * tests/test-vasnprintf-posix.c: Include infinity.h.
29113         (test_function): Use Infinityd, Infinityl.
29114         * tests/test-vasprintf-posix.c: Include infinity.h.
29115         (test_function): Use Infinityd, Infinityl.
29116         * modules/ceilf-tests (Files): Add tests/infinity.h.
29117         * modules/ceil-tests (Files): Likewise.
29118         * modules/ceill-tests (Files): Likewise.
29119         * modules/dprintf-posix-tests (Files): Likewise.
29120         * modules/floorf-tests (Files): Likewise.
29121         * modules/floor-tests (Files): Likewise.
29122         * modules/floorl-tests (Files): Likewise.
29123         * modules/fprintf-posix-tests (Files): Likewise.
29124         * modules/frexp-tests (Files): Likewise.
29125         * modules/frexp-nolibm-tests (Files): Likewise.
29126         * modules/frexpl-tests (Files): Likewise.
29127         * modules/frexpl-nolibm-tests (Files): Likewise.
29128         * modules/isfinite-tests (Files): Likewise.
29129         * modules/isinf-tests (Files): Likewise.
29130         * modules/isnan-tests (Files): Likewise.
29131         * modules/isnanf-tests (Files): Likewise.
29132         * modules/isnanf-nolibm-tests (Files): Likewise.
29133         * modules/isnand-tests (Files): Likewise.
29134         * modules/isnand-nolibm-tests (Files): Likewise.
29135         * modules/isnanl-tests (Files): Likewise.
29136         * modules/isnanl-nolibm-tests (Files): Likewise.
29137         * modules/ldexpl-tests (Files): Likewise.
29138         * modules/printf-posix-tests (Files): Likewise.
29139         * modules/roundf-tests (Files): Likewise.
29140         * modules/round-tests (Files): Likewise.
29141         * modules/roundl-tests (Files): Likewise.
29142         * modules/signbit-tests (Files): Likewise.
29143         * modules/snprintf-posix-tests (Files): Likewise.
29144         * modules/sprintf-posix-tests (Files): Likewise.
29145         * modules/truncf-tests (Files): Likewise.
29146         * modules/trunc-tests (Files): Likewise.
29147         * modules/truncl-tests (Files): Likewise.
29148         * modules/vasnprintf-posix-tests (Files): Likewise.
29149         * modules/vasprintf-posix-tests (Files): Likewise.
29150         * modules/vdprintf-posix-tests (Files): Likewise.
29151         * modules/vfprintf-posix-tests (Files): Likewise.
29152         * modules/vprintf-posix-tests (Files): Likewise.
29153         * modules/vsnprintf-posix-tests (Files): Likewise.
29154         * modules/vsprintf-posix-tests (Files): Likewise.
29155         * modules/xprintf-posix-tests (Files): Likewise.
29157 2011-09-11  Bruno Haible  <bruno@clisp.org>
29159         Ensure pid_t gets defined.
29160         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
29161         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
29162         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29163         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29164         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29165         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
29166         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29167         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29168         * tests/test-fcntl-h.c: Check that pid_t is defined.
29169         * tests/test-sched.c: Likewise.
29170         * tests/test-termios.c: Likewise.
29171         * tests/test-time.c: Likewise.
29172         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
29173         * doc/posix-headers/signal.texi: Likewise.
29174         * doc/posix-headers/sys_types.texi: Likewise.
29175         * doc/posix-headers/time.texi: Likewise.
29177 2011-09-11  Bruno Haible  <bruno@clisp.org>
29179         acl: Fix compilation on Solaris 10 (older version).
29180         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
29181         of ACE_EVERYONE.
29182         * lib/set-mode-acl.c (qset_acl): Likewise.
29183         Reported by Christian Jullien <eligis@orange.fr>.
29185 2011-09-10  Bruno Haible  <bruno@clisp.org>
29187         iconv, unsetenv: Add support for MSVC compiler.
29188         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
29189         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
29191 2011-09-10  Bruno Haible  <bruno@clisp.org>
29193         *printf: Add support for MSVC compiler.
29194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
29195         handles the exception caused by the %n directive. When cross-compiling,
29196         guess no on native Windows.
29197         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29198         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
29199         emulate it through vsnprintf.
29200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
29201         * doc/posix-functions/dprintf.texi: Update documentation regarding
29202         MSVC 9.
29203         * doc/posix-functions/fprintf.texi: Likewise.
29204         * doc/posix-functions/printf.texi: Likewise.
29205         * doc/posix-functions/snprintf.texi: Likewise.
29206         * doc/posix-functions/sprintf.texi: Likewise.
29207         * doc/posix-functions/swprintf.texi: Likewise.
29208         * doc/posix-functions/vdprintf.texi: Likewise.
29209         * doc/posix-functions/vfprintf.texi: Likewise.
29210         * doc/posix-functions/vprintf.texi: Likewise.
29211         * doc/posix-functions/vsnprintf.texi: Likewise.
29212         * doc/posix-functions/vsprintf.texi: Likewise.
29213         * doc/glibc-functions/asprintf.texi: Likewise.
29214         * doc/glibc-functions/obstack_printf.texi: Likewise.
29215         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29216         * doc/glibc-functions/vasprintf.texi: Likewise.
29218 2011-09-10  Bruno Haible  <bruno@clisp.org>
29220         nocrash: Add support for native Windows.
29221         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
29223 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
29224             Bruno Haible  <bruno@clisp.org>
29226         absolute-header, include-next: Add support for MSVC compiler.
29227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
29228         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
29229         directory separator in #line directives.
29230         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
29231         recognize also backslash as directory separator in #line directives.
29233 2011-09-08  Jim Meyering  <meyering@redhat.com>
29235         maint.mk: mark the post-release commit log with "maint: " prefix
29236         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
29237         one-line commit-log summary.
29239 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
29240             Bruno Haible  <bruno@clisp.org>
29242         Doc about crypt functions.
29243         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
29244         systems.
29245         * doc/posix-functions/encrypt.texi: Likewise.
29246         * doc/posix-functions/setkey.texi: Likewise.
29248 2011-09-08  Simon Josefsson  <simon@josefsson.org>
29250         * lib/gc.h: Fix copyright header.
29252 2011-09-07  Bruno Haible  <bruno@clisp.org>
29254         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
29255         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
29256         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
29258 2011-09-07  Bruno Haible  <bruno@clisp.org>
29260         openat: Work around compilation error with OSF/1 5.1 DTK cc.
29261         * lib/fopen.c: Use different syntax for include of <stdio.h>.
29262         * lib/freopen.c: Likewise.
29263         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
29264         * lib/lstat.c: Likewise.
29265         * lib/stat.c: Likewise.
29266         * lib/open.c: Use different syntax for include of <fcntl.h>.
29267         * lib/openat.c: Include fcntl.h again, explicitly.
29269 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
29271         parse-datetime: document the newly accepted format
29272         * doc/parse-datetime.texi (Combined date and time of day items):
29273         New section.
29275 2011-09-06  Bruno Haible  <bruno@clisp.org>
29277         acl: Fix a test failure on newer Solaris 10 with ZFS.
29278         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
29279         ENOSYS as no ACL.
29280         Reported by Jim Meyering.
29282 2011-09-06  Bruno Haible  <bruno@clisp.org>
29284         acl: Update for AIX >= 5.3 with NFS.
29285         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
29286         ENOSYS as no ACL.
29288         acl: Fix a test failure on AIX >= 5.3 with NFS.
29289         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
29290         as no ACL.
29292 2011-09-06  Bruno Haible  <bruno@clisp.org>
29294         acl: Fix a test failure on IRIX 6.5 with NFS.
29295         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
29296         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
29297         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
29298         * lib/copy-acl.c (qcopy_acl): Likewise.
29300 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
29302         openat: port to AIX 7.1 with large files
29303         AIX 7.1 does a "#define openat open64at" if large files are in use,
29304         so we can't simply #undef openat.  Use the orig_openat trick (similar
29305         to orig_open in lib/open.c) to work around the problem.  Problem
29306         reported by Kevin Brott for GNU tar, in the thread containing
29307         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
29308         * lib/openat.c (__need_system_fcntl_h): Define first.
29309         Include <fcntl.h> and <sys/types.h> before undefining.
29310         (orig_openat) [HAVE_OPENAT]: New inline function.
29311         (openat) [HAVE_OPENAT]: Do not undef.
29312         (rpl_openat): Use orig_openat, not openat.
29314 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29315             Bruno Haible  <bruno@clisp.org>
29317         acl: Avoid errors on NonStop Kernel.
29318         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
29319         ENOTSUP errors.
29321 2011-09-05  Bruno Haible  <bruno@clisp.org>
29323         acl: Clean up Solaris code.
29324         * lib/acl-internal.h: Remove no-op #if.
29325         * lib/file-has-acl.c: Likewise.
29326         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
29327         * lib/copy-acl.c (qcopy_acl): Likewise.
29329 2011-09-05  Bruno Haible  <bruno@clisp.org>
29331         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
29332         binaries built on the original Solaris 10.
29333         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
29334         trivial.
29336 2011-09-05  Bruno Haible  <bruno@clisp.org>
29338         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29339         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
29340         10.
29341         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
29342         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
29343         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
29344         instead of acl_get, facl_get, acl_set, facl_set.
29346 2011-09-05  Bruno Haible  <bruno@clisp.org>
29348         copy-file: Try unit tests on more file systems.
29349         * tests/test-copy-file-1.sh: New file.
29350         * tests/test-copy-file-2.sh: New file.
29351         * modules/copy-file-tests (Files): Add them.
29352         (Makefile.am): Add them to TESTS.
29354         acl: Try unit tests on more file systems.
29355         * tests/test-file-has-acl-1.sh: New file.
29356         * tests/test-file-has-acl-2.sh: New file.
29357         * tests/test-set-mode-acl-1.sh: New file.
29358         * tests/test-set-mode-acl-2.sh: New file.
29359         * tests/test-copy-acl-1.sh: New file.
29360         * tests/test-copy-acl-2.sh: New file.
29361         * modules/acl-tests (Files): Add them.
29362         (Makefile.am): Add them to TESTS.
29364 2011-09-04  Bruno Haible  <bruno@clisp.org>
29366         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29367         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
29368         10.
29369         (OLD_ALLOW, OLD_DENY): New macros.
29370         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
29371         ACE_ACCESS_ALLOWED_ACE_TYPE.
29372         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
29373         ACE_ACCESS_DENIED_ACE_TYPE.
29374         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
29375         (NEW_ACE_EXECUTE): Fix value.
29376         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
29377         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
29378         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
29379         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
29380         NEW_ACE_SYNCHRONIZE): New macros.
29381         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
29382         instead of acl_fromtext, acl_set, facl_set.
29383         Fixes a coreutils/tests/cp/perm failure.
29385 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
29387         openat: test for fstatat (..., 0) bug
29388         Further testing with tar suggests that fstatat (..., 0)
29389         does not work in general, on AIX 7.1; see
29390         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
29391         So, give up entirely on AIX 7.1's fstatat, and fall back on our
29392         replacement fstatat (which is what older AIX releases were using
29393         anyway).
29394         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
29395         use is now changed to orig_fstatat.  This was probably the right
29396         thing to do anyway.
29397         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
29398         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
29399         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
29400         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
29401         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
29402         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
29403         if the bug is found.
29405         openat: test for fstatat (AT_FDCWD, ..., 0) bug
29406         This tests for another fstatat bug on AIX 7.1:
29407         fstatat (AT_FDCWD, ..., 0) does not work.  See
29408         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
29409         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
29410         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
29411         (rpl_fstatat): Adjust so that it works around either (or both)
29412         bugs if present.
29413         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
29415 2011-09-03  Karl Berry  <karl@gnu.org>
29417         * doc/regex.texi (Character Class Operators): Avoid literal ":"
29418         in index entries.
29420 2011-09-02  Bruno Haible  <bruno@clisp.org>
29422         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
29423         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
29424         values of AR, ARFLAGS, RANLIB.
29425         Reported by John W. Eaton <jwe@gnu.org> for Octave.
29427 2011-09-02  Bruno Haible  <bruno@clisp.org>
29429         Find 'ar' program that fits with --host argument.
29430         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
29432 2011-09-02  Bruno Haible  <bruno@clisp.org>
29434         tests: init.sh: Support any non-GNU diff.
29435         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
29436         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
29437         Solaris 8.
29439 2011-09-02  Bruno Haible  <bruno@clisp.org>
29441         tests: init.sh: work also with any non-GNU diff that supports -u
29442         * tests/init.sh: Relax check for diff -u support.
29443         Rather than checking for GNU diff via --version, simply check
29444         for support for -u itself.  Useful at least on OpenBSD 4.9,
29445         AIX 7.1, IRIX 6.5, and Solaris 10.
29447 2011-09-01  Bruno Haible  <bruno@clisp.org>
29449         strtoimax, strtoumax: Document problem on HP-UX 11.
29450         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
29451         * doc/posix-functions/strtoumax.texi: Likewise.
29453 2011-09-01  Bruno Haible  <bruno@clisp.org>
29455         strtoumax: Avoid link error on OSF/1 with DTK cc.
29456         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
29457         defined as a function.
29458         * modules/strtoumax (Depends-on, configure.ac): Test only whether
29459         strtoumax is defined, not whether it is declared.
29461 2011-09-01  Bruno Haible  <bruno@clisp.org>
29463         strtoimax: Avoid link error on OSF/1 with DTK cc.
29464         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
29465         defined as a function.
29466         * modules/strtoimax (Depends-on, configure.ac): Test only whether
29467         strtoimax is defined, not whether it is declared.
29469 2011-09-01  Bruno Haible  <bruno@clisp.org>
29471         imaxdiv: Avoid link error on OSF/1 with DTK cc.
29472         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
29473         as a function.
29474         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
29475         whether it is declared.
29477 2011-09-01  Bruno Haible  <bruno@clisp.org>
29479         imaxabs: Avoid link error on OSF/1 with DTK cc.
29480         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
29481         as a function.
29482         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
29483         whether it is declared.
29485 2011-09-01  Bruno Haible  <bruno@clisp.org>
29487         Tests for module 'strtoumax'.
29488         * modules/strtoumax-tests: New file.
29489         * tests/test-strtoumax.c: New file.
29491         Tests for module 'strtoimax'.
29492         * modules/strtoimax-tests: New file.
29493         * tests/test-strtoimax.c: New file.
29495         Tests for module 'imaxdiv'.
29496         * modules/imaxdiv-tests: New file.
29497         * tests/test-imaxdiv.c: New file.
29499         Tests for module 'imaxabs'.
29500         * modules/imaxabs-tests: New file.
29501         * tests/test-imaxabs.c: New file.
29503 2011-09-01  Bruno Haible  <bruno@clisp.org>
29505         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
29506         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
29507         pthread_create.
29509 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29511         openat: work around AIX 7.1 fstatat issue
29512         This should fix the problem that was not properly fixed
29513         in the previous change, dated 2011-08-30.
29514         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
29515         __need_system_stat_h defined.
29516         (orig_fstatat) [HAVE_FSTATAT]: New function.
29517         (rpl_fstatat): Go back to the old way of doing things,
29518         except call orig_fstatat instead of fstatat.
29519         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
29520         Remove unnecessary check whether fstatat fills in st_size etc.
29522 2011-09-01  Bruno Haible  <bruno@clisp.org>
29524         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
29525         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
29526         just include the system's header.
29528 2011-08-31  Jim Meyering  <meyering@redhat.com>
29530         tests: avoid spurious assertion failure in test-float.c on ppc64
29531         * tests/test-float.c (test_long_double): Comment out an assertion,
29532         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
29533         with gcc-4.4.4.
29535         maint: indent with spaces, not TABs
29536         I need to get in the habit of running gnulib's "make check".
29537         Both of these would have been caught.
29538         * m4/largefile.m4: Indent with spaces, not TABs.
29539         * lib/parse-datetime.y (iso_8601_time): Likewise.
29540         Spotted by Pádraig Brady.
29542         test-parse-datetime.c: accommodate a relatively strict gcc warning
29543         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
29544         to avoid a warning from gcc's -Werror=missing-declarations.
29545         Insert a few spaces-before-funcall-parenthesis.
29547 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
29549         parse-datetime: accept ISO 8601 date and time rep with "T" separator
29550         The parser now accepts ISO 8601 date-time strings with "T" as the
29551         separator.  It has long parsed dates like "2004-02-29 16:21:42"
29552         with a space between the date and time strings.  Now it also parses
29553         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
29554         variants like "2004-02-29T16:21:42.333-07:00"
29555         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
29556         of day representation using the 'T' separator character.
29557         * doc/parse-datetime.texi (General date syntax): replace use of
29558         deprecated --iso-8601 option with --rfc-3339 in example of date
29559         command output formats that can be parsed.
29560         * tests/test-parse-datetime.c (tm_diff): New function, taken from
29561         lib/parse-datetime.y.
29562         (gmt_offset): New function.
29563         (main): Add additional test cases to validate ISO8601 extended
29564         date and time of day parsing.
29566 2011-08-31  Bruno Haible  <bruno@clisp.org>
29568         freopen: Documentation.
29569         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
29570         name.
29571         Reported by Claudio Bley <claudio.bley@gmail.com>.
29573 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
29575         freopen: Don't crash if the filename argument is NULL.
29576         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
29577         NULL.
29579 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29581         openat: work around AIX 7.1 fstatat bug
29582         Problem reported by Kevin Brott for GNU tar, in the thread containing
29583         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
29584         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
29585         FSTATAT_ST_SIZE_ETC_BROKEN.
29586         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
29587         rpl_fstatat.
29588         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
29589         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
29590         AC_CHECK_FUNCS_ONCE for fstatat.
29591         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
29592         fchmodat, mkdirat, openat and unlinkat.
29594 2011-08-30  Bruno Haible  <bruno@clisp.org>
29596         Avoid endless recursions if config.h includes some header files.
29597         * lib/fopen.c (__need_FILE): Define already before including config.h.
29598         * lib/freopen.c (__need_FILE): Likewise.
29599         * lib/open.c (__need_system_fcntl_h): Likewise.
29600         * lib/stat.c (__need_system_sys_stat_h): Likewise.
29601         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
29602         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29604 2011-08-25  Karl Berry  <karl@gnu.org>
29606         * config/srclist.txt (ylwrap): new try.
29607         * build-aux/ylwrap: new file.
29609 2011-08-23  Bruno Haible  <bruno@clisp.org>
29611         tmpdir: Use a good default directory on native Windows.
29612         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
29613         (P_tmpdir): Default to _P_tmpdir on native Windows.
29614         (path_search): On native Windows, try the value returned by GetTempPath
29615         before trying P_tmpdir.
29616         * modules/tmpdir (Depends-on): Add pathmax.
29617         Suggested by John Darrington <john@darrington.wattle.id.au>.
29619 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
29621         doc: fix typo in README-release
29622         * top/README-release: Capitalize first word of a sentence.
29624 2011-08-19  Jim Meyering  <meyering@redhat.com>
29626         fts: do not exhaust memory when processing million-entry directories
29627         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
29628         directory would require about 256*N bytes of memory.  Thus, it was
29629         easy to construct a directory too large to be processed by any of
29630         those tools.  With this change, fts' maximum memory utilization is
29631         now limited to around 30MB.
29632         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
29633         (fts_read): When we've processed the final entry (i.e., when
29634         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
29635         using the parent entry to read any remaining entries.  Dispatch
29636         depending on what fts_build returns:
29637         - NULL+stop, aka failure: stop
29638         - NULL otherwise: move up in the dir hierarchy
29639         - non-NULL: handle this new entry
29640         (fts_build): Declare and use new local, continue_readdir.
29641         Prepare to be called from fts_read, when the entries
29642         from a partially-read directory have just been exhausted.
29643         In that case, we'll skip the opendir and instead use the parent's
29644         fts_dirp and derive dir_fd from that.
29645         Finally, in the readdir loop, if we read max_entries entries,
29646         exit the loop ensuring *not* to call closedir.  This is required
29647         so that fts_dirp can be reused on a subsequent call.
29648         Prompted by Ben England's report of memory exhaustion in find
29649         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
29651         maint: fts: move decl of `dp' down into while loop; split a long line
29652         * lib/fts.c (fts_build): No semantic change.
29654         fts: add/use new struct member, fts_dirp
29655         We are about to use this to manage any directory with
29656         too many entries to read all of them into memory at once.
29657         To do that, we'll need to save the DIR* pointer in each
29658         affected FTSENT struct.
29659         * lib/fts_.h: Include <dirent.h>.
29660         (struct FTSENT) [fts_dirp]: New member.
29661         * lib/fts.c (closedir_and_clear): Define.
29662         Use it in place of closedir so that we are sure to
29663         clear the new fts_dirp member when done with it.
29664         (fts_alloc): Initialize the new member.
29665         (fts_lfree): Free, if needed.
29667         maint: fts: give __opendir2 a new parameter and rename
29668         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
29669         than surreptitiously using sole caller's "dir_fd".
29670         (fts_opendir): Rename from __opendir2.
29672         maint: fts.c: remove __opendir2's now-unused parameter, oflag
29673         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
29675         maint: fts.c: correct off-by-one indentation
29676         * lib/fts.c (fts_build): Correct indentation, change style
29677         of a couple of block comments, and bracing style.
29679         maint: fts.c: move __opendir2 #define "up" out of function body
29680         * lib/fts.c (__opendir2): Move "up".  No semantic change.
29682         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
29683         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
29684         out for a long time and besides was useful only on BSD systems.
29686 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29688         regex: port to Stratus OpenVOS
29689         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
29690         define to empty, rather than attempting nonportable optimizations.
29691         Problem reported by Paul Green in:
29692         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
29693         and fix suggested by Eric Blake in:
29694         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
29696 2011-08-17  Eric Blake  <eblake@redhat.com>
29698         getcwd: fix test failures on mingw
29699         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
29700         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
29701         test if long directory cannot be created, and allow mingw errno.
29703         getcwd-lgpl: fix m4 to match relaxed test for BSD
29704         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
29705         (gl_FUNC_GETCWD_SIGNATURE): New macro.
29706         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
29707         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
29708         signature problem.
29710         getcwd: fix compilation on mingw64
29711         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
29712         getcwd.
29713         Reported by Marc-André Lureau.
29715         pipe2: silence compiler warning
29716         * lib/pipe2.c (pipe2): Hide label if it is not used.
29718 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
29720         relocatable-prog: fix link error
29721         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
29722         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
29723         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
29724         into modules/relocatable-lib without noticing that
29725         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
29726         also needs to build relocatable.c.
29728 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29730         getaddrinfo: fix sh typo in gai_strerrorA decl checking
29731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
29732         shell code: it contained a 'break' that was not in a loop.
29733         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
29734         via a shell-language loop; this may have been true in old Autoconf
29735         versions, but it's not true in Autoconf 2.68.  I found this bug
29736         when testing coreutils git on Solaris 8, whose shell complains
29737         about the syntax error.
29739 2011-08-12  Simon Josefsson  <simon@josefsson.org>
29741         * lib/base64.c: Fix comment to reference RFC 4648.
29742         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
29743         <gvtulder@gmail.com>.
29745 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29747         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
29749         po/Makefile.in.in: fix make -q problem
29750         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
29751         rule, since there's no file named 'check-macro-version' and its
29752         use as a file breaks make -q.
29753         (all): Don't depend on check-macro-version.
29754         (CHECK_MACRO_VERSION): New macro.
29755         (stamp-po): Use it.
29757         configmake: fix make -q problem
29758         * modules/configmake (configmake.h): Update configmake.h's time stamp
29759         even if the file does not change.  Otherwise, 'make -q' fails.
29760         Problem reported by Simon Josefsson in
29761         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
29763 2011-08-11  Jim Meyering  <meyering@redhat.com>
29765         git-version-gen: correct the advice in a comment
29766         * build-aux/git-version-gen: Correct comment.
29767         Don't recommend to list .tarball-version in .gitignore.
29769 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29771         base64: fix off-by-one buffer size bug
29772         Problem and (trivial) fix reported by Gijs van Tulder in
29773         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
29774         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
29775         * tests/test-base64.c (main): Catch the bug.
29777 2011-08-10  Eric Blake  <eblake@redhat.com>
29779         closein: correct comments
29780         * lib/closein.c (close_stdin): Improve comments.
29782 2011-08-09  Bruno Haible  <bruno@clisp.org>
29784         More tests for 'fseeko'.
29785         * tests/test-fseeko3.c: New file, from Eric Blake.
29786         * tests/test-fseeko3.sh: New file.
29787         * modules/fseeko-tests (Files): Add them.
29788         (TESTS): Add test-fseeko3.sh.
29789         (check_PROGRAMS): Add test-fseeko3.
29791 2011-08-09  Eric Blake  <eblake@redhat.com>
29793         fseeko: remove unneeded hack
29794         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
29796         fseeko: fix bug on glibc
29797         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
29798         Reported by John W. Eaton.
29800 2011-08-08  Bruno Haible  <bruno@clisp.org>
29802         unictype/base: Fix interoperability with preinstalled libunistring.
29803         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
29804         Reported by Simon Josefsson.
29806 2011-08-08  Bruno Haible  <bruno@clisp.org>
29808         iswblank: Detect declaration correctly.
29809         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
29810         AC_CHECK_DECLS invocation.
29812 2011-08-08  Bruno Haible  <bruno@clisp.org>
29814         tcgetsid: Detect declaration correctly.
29815         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
29816         AC_CHECK_DECLS invocation.
29817         Reported by Simon Josefsson.
29819 2011-08-08  Eric Blake  <eblake@redhat.com>
29821         largefile: fix typo that regressed large file support
29822         * modules/largefile (configure.ac-early): Fix section name.
29824 2011-08-06  Karl Berry  <karl@gnu.org>
29826         * MODULES.html.sh (func_all_files): _Noreturn is no longer
29827         a separate module.
29829 2011-08-05  Simon Josefsson  <simon@josefsson.org>
29831         openat: Fix warnings and commens when building unlinkat.c on Hurd.
29832         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
29833         get prototype for free.
29835 2011-08-04  Bruno Haible  <bruno@clisp.org>
29837         Tests for module 'pathmax'.
29838         * modules/pathmax-tests: New file.
29839         * tests/test-pathmax.c: New file.
29841         canonicalize-lgpl: Support larger filenames on the Hurd.
29842         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
29843         Reported by Paul Eggert.
29845         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
29846         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
29847         * lib/chdir-long.h: Include pathmax.h.
29848         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
29849         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
29850         (PATH_MAX): Remove code that is done by pathmax.h.
29851         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
29852         * lib/tmpfile.c: Add a comment.
29853         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
29854         * modules/chdir-long (Depends-on): Add pathmax.
29855         * modules/getcwd (Depends-on): Add pathmax.
29856         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
29857         is not defined.
29858         * doc/posix-headers/limits.texi: Mention the pathmax module.
29859         * NEWS: Mention the change.
29861 2011-08-02  Bruno Haible  <bruno@clisp.org>
29863         pthread_sigmask: Actually use results of gl_THREADLIB.
29864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
29865         gl_THREADLIB, not gl_[]THREADLIB.
29866         Reported by Eric Blake.
29868 2011-08-02  Jim Meyering  <meyering@redhat.com>
29870         maint.mk: relax the default _gl_TS_function_match regexp
29871         * top/maint.mk (_gl_TS_function_match): Don't require at least one
29872         space between function name and "(" in an "extern" declaration.
29873         That would fail to match a decl with no space there: extern void foo();
29875 2011-07-31  Iain Nicol  <iain@thenicols.net>
29877         git-version-gen: document that EXTRA_DIST must include .version
29878         * build-aux/git-version-gen: In the how-to-use comment, document
29879         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
29880         will fail when run from an unpacked distribution tarball.
29882 2011-08-01  Bruno Haible  <bruno@clisp.org>
29884         wctype-h: Fix last change.
29885         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
29886         REPLACE_TOWLOWER to 0.
29887         Reported by Sam Steingold <sds@gnu.org>.
29889 2011-07-31  Bruno Haible  <bruno@clisp.org>
29891         frexpl: Update autoconf test.
29892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
29893         according to changes of 2011-06-20.
29895 2011-07-31  Bruno Haible  <bruno@clisp.org>
29897         sys_utsname: Add support for Minix.
29898         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
29899         <sys/utsname.h>.
29900         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29901         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
29903 2011-07-31  Bruno Haible  <bruno@clisp.org>
29905         strings: Add support for Minix.
29906         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
29907         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29908         * doc/posix-headers/strings.texi: Document the Minix problem.
29910 2011-07-31  Bruno Haible  <bruno@clisp.org>
29912         wctype-h: Add support for Minix.
29913         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
29914         REPLACE_TOWLOWER.
29915         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
29916         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
29917         REPLACE_ISWCNTRL.
29919 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
29921         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
29922         This is a performance improvement for 64-bit hosts: it causes the
29923         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
29925 2011-07-31  Bruno Haible  <bruno@clisp.org>
29927         stdioext: Add support for Minix.
29928         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
29929         * lib/fpurge.c (fpurge): Likewise.
29930         * lib/freadahead.c (freadahead): Likewise.
29931         * lib/freadable.c (freadable): Likewise.
29932         * lib/freading.c (freading): Likewise.
29933         * lib/freadptr.c (freadptr): Likewise.
29934         * lib/freadseek.c (freadptrinc): Likewise.
29935         * lib/fseeko.c (rpl_fseeko): Likewise.
29936         * lib/fseterr.c (fseterr): Likewise.
29937         * lib/fwritable.c (fwritable): Likewise.
29938         * lib/fwriting.c (fwriting): Likewise.
29939         * lib/fflush.c (clear_ungetc_buffer): Update comment.
29940         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
29942 2011-07-31  Bruno Haible  <bruno@clisp.org>
29944         errno: Port to Minix.
29945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
29946         ECONNABORTED are defined.
29947         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
29948         GNULIB_defined_ECONNABORTED): New macros.
29949         * lib/strerror-override.h (strerror_override): Test also
29950         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
29951         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
29952         ECONNABORTED.
29953         * doc/posix-headers/errno.texi: Mention the Minix problem.
29955 2011-07-31  Bruno Haible  <bruno@clisp.org>
29957         Work around declaration collisions on Minix.
29958         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
29959         defined, set REPLACE_MBSINIT.
29960         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
29961         defined, set REPLACE_MBRTOWC.
29962         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
29963         set REPLACE_MBRLEN.
29964         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
29965         defined, set REPLACE_MBSRTOWCS.
29966         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
29967         defined, set REPLACE_WCRTOMB.
29968         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
29969         defined, set REPLACE_WCSRTOMBS.
29971 2011-07-31  Bruno Haible  <bruno@clisp.org>
29973         Add support for Minix with ACK compiler.
29974         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
29975         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
29976         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
29978 2011-07-31  Bruno Haible  <bruno@clisp.org>
29980         Documentation about Minix.
29981         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
29982         * doc/glibc-headers/*.texi: Likewise.
29983         * doc/posix-functions/*.texi: Likewise.
29984         * doc/glibc-functions/*.texi: Likewise.
29986 2011-07-31  Bruno Haible  <bruno@clisp.org>
29988         snippet/warn-on-use: Fix indentation.
29989         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
29991 2011-07-25  Jim Meyering  <meyering@redhat.com>
29993         tests: test-update-copyright.sh: remove unnecessary "rm" commands
29994         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
29995         commands.
29997 2011-07-27  Jim Meyering  <meyering@redhat.com>
29999         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
30000         * top/maint.mk (gl_extract_significant_defines_): Now that
30001         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
30002         gnulib/lib/signal.in.h, and now that we recommend to
30003         define-if-undefined those two symbols in application code,
30004         we must filter them out of the "significant" list.
30005         This avoids a "make syntax-check" failure in coreutils.
30007 2011-07-26  Eric Blake  <eblake@redhat.com>
30009         warnings: add comments about previous patch
30010         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
30011         * m4/include_next.m4: Likewise.
30012         * m4/warn-on-use.m4: Likewise.
30013         * m4/warnings.m4: Likewise, and simplify use.
30014         Suggested by Stefano Lattarini.
30016         include-next, warnings: support older autoconf
30017         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
30018         AS_VAR_PUSHDEF in a way that works with older autoconf.
30019         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
30020         Reported by Daniel P. Berrange.
30022 2011-07-25  Bruno Haible  <bruno@clisp.org>
30024         fseek, ftell: Fix doc.
30025         * doc/posix-functions/fseek.texi: Reword statement about
30026         AC_SYS_LARGEFILE.
30027         * doc/posix-functions/ftell.texi: Likewise.
30029 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30030             Bruno Haible  <bruno@clisp.org>
30032         Add dependencies to the 'largefile' module.
30033         * modules/fopen (Depends-on): Add 'largefile'.
30034         * modules/freopen (Depends-on): Likewise.
30035         * modules/fseeko (Depends-on): Likewise.
30036         * modules/ftello (Depends-on): Likewise.
30037         * modules/glob (Depends-on): Likewise.
30038         * modules/lseek (Depends-on): Likewise.
30039         * modules/lstat (Depends-on): Likewise.
30040         * modules/mkostemp (Depends-on): Likewise.
30041         * modules/mkostemps (Depends-on): Likewise.
30042         * modules/mkstemp (Depends-on): Likewise.
30043         * modules/mkstemps (Depends-on): Likewise.
30044         * modules/open (Depends-on): Likewise.
30045         * modules/openat (Depends-on): Likewise.
30046         * modules/pread (Depends-on): Likewise.
30047         * modules/pwrite (Depends-on): Likewise.
30048         * modules/scandir (Depends-on): Likewise.
30049         * modules/stat (Depends-on): Likewise.
30050         * modules/tmpfile (Depends-on): Likewise.
30051         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
30052         since the containing module now depends on the largefile module.
30053         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
30054         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
30055         off_t is fixed by gnulib.
30056         * doc/posix-functions/freopen.texi: Likewise.
30057         * doc/posix-functions/fseeko.texi: Likewise.
30058         * doc/posix-functions/fstatat.texi: Likewise.
30059         * doc/posix-functions/ftello.texi: Likewise.
30060         * doc/posix-functions/glob.texi: Likewise.
30061         * doc/posix-functions/lseek.texi: Likewise.
30062         * doc/posix-functions/lstat.texi: Likewise.
30063         * doc/posix-functions/mkstemp.texi: Likewise.
30064         * doc/posix-functions/open.texi: Likewise.
30065         * doc/posix-functions/openat.texi: Likewise.
30066         * doc/posix-functions/pread.texi: Likewise.
30067         * doc/posix-functions/pwrite.texi: Likewise.
30068         * doc/posix-functions/scandir.texi: Likewise.
30069         * doc/posix-functions/stat.texi: Likewise.
30070         * doc/posix-functions/tmpfile.texi: Likewise.
30071         * doc/glibc-functions/mkostemp.texi: Likewise.
30072         * doc/glibc-functions/mkostemps.texi: Likewise.
30073         * doc/glibc-functions/mkstemps.texi: Likewise.
30075 2011-07-25  Bruno Haible  <bruno@clisp.org>
30077         fcntl: Move AC_LIBOBJ invocation to module description.
30078         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
30079         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
30081         fcntl: Remove call-in from fchdir.m4.
30082         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
30083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
30085         dup3: Remove potential call-in from fchdir.m4.
30086         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
30087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
30089         dup2: Move AC_LIBOBJ invocation to module description.
30090         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
30091         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
30092         Don't invoke AC_LIBOBJ.
30093         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
30095         dup2: Remove call-in from fchdir.m4.
30096         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
30097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
30099         fclose: Move AC_LIBOBJ invocation to module description.
30100         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
30101         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
30102         to 1.
30103         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
30105         fclose: Remove call-in from close.m4.
30106         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
30107         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
30109         close: Move AC_LIBOBJ invocation to module description.
30110         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
30111         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
30112         1.
30113         * modules/close (configure.ac): Invoke AC_LIBOBJ.
30115         close: Remove call-in from fchdir.m4.
30116         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
30117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
30119         open: Move AC_LIBOBJ invocation to module description.
30120         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
30121         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
30122         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
30124         open: Remove call-in from fchdir.m4.
30125         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
30126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
30128         fchdir: Start to remove gl_REPLACE_* idiom.
30129         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
30130         (gl_FUNC_FCHDIR): Invoke it.
30132 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30134         * lib/ftell.c (ftell): Comment out cast.
30136         close: use gl_REPLACE_FCLOSE only if defined
30137         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
30138         is defined.  The close module doesn't depend on the fclose module
30139         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
30140         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
30141         I reproduced the problem with "./gnulib-tool --test close sys_socket".
30143 2011-07-24  Jim Meyering  <meyering@redhat.com>
30145         test-select.h: avoid warning when using gcc's -Wmissing-declarations
30146         * tests/test-select.h (test_function): Declare as "static".
30148 2011-07-24  Bruno Haible  <bruno@clisp.org>
30150         doc: Mention the effects of AC_SYS_LARGEFILE.
30151         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
30152         on this function.
30153         * doc/posix-functions/aio_error.texi: Likewise.
30154         * doc/posix-functions/aio_fsync.texi: Likewise.
30155         * doc/posix-functions/aio_read.texi: Likewise.
30156         * doc/posix-functions/aio_return.texi: Likewise.
30157         * doc/posix-functions/aio_suspend.texi: Likewise.
30158         * doc/posix-functions/aio_write.texi: Likewise.
30159         * doc/posix-functions/fgetpos.texi: Likewise.
30160         * doc/posix-functions/fopen.texi: Likewise.
30161         * doc/posix-functions/freopen.texi: Likewise.
30162         * doc/posix-functions/fsetpos.texi: Likewise.
30163         * doc/posix-functions/fstatvfs.texi: Likewise.
30164         * doc/posix-functions/ftruncate.texi: Likewise.
30165         * doc/posix-functions/ftw.texi: Likewise.
30166         * doc/posix-functions/getrlimit.texi: Likewise.
30167         * doc/posix-functions/glob.texi: Likewise.
30168         * doc/posix-functions/lio_listio.texi: Likewise.
30169         * doc/posix-functions/lockf.texi: Likewise.
30170         * doc/posix-functions/mkstemp.texi: Likewise.
30171         * doc/posix-functions/mmap.texi: Likewise.
30172         * doc/posix-functions/nftw.texi: Likewise.
30173         * doc/posix-functions/openat.texi: Likewise.
30174         * doc/posix-functions/opendir.texi: Likewise.
30175         * doc/posix-functions/posix_fadvise.texi: Likewise.
30176         * doc/posix-functions/posix_fallocate.texi: Likewise.
30177         * doc/posix-functions/pread.texi: Likewise.
30178         * doc/posix-functions/pwrite.texi: Likewise.
30179         * doc/posix-functions/readdir.texi: Likewise.
30180         * doc/posix-functions/readdir_r.texi: Likewise.
30181         * doc/posix-functions/rewinddir.texi: Likewise.
30182         * doc/posix-functions/scandir.texi: Likewise.
30183         * doc/posix-functions/seekdir.texi: Likewise.
30184         * doc/posix-functions/setrlimit.texi: Likewise.
30185         * doc/posix-functions/statvfs.texi: Likewise.
30186         * doc/posix-functions/telldir.texi: Likewise.
30187         * doc/posix-functions/tmpfile.texi: Likewise.
30188         * doc/posix-functions/truncate.texi: Likewise.
30189         * doc/glibc-functions/fallocate.texi: Likewise.
30190         * doc/glibc-functions/fstatfs.texi: Likewise.
30191         * doc/glibc-functions/fts_children.texi: Likewise.
30192         * doc/glibc-functions/fts_read.texi: Likewise.
30193         * doc/glibc-functions/getdirentries.texi: Likewise.
30194         * doc/glibc-functions/mkostemp.texi: Likewise.
30195         * doc/glibc-functions/mkostemps.texi: Likewise.
30196         * doc/glibc-functions/mkstemps.texi: Likewise.
30197         * doc/glibc-functions/preadv.texi: Likewise.
30198         * doc/glibc-functions/pwritev.texi: Likewise.
30199         * doc/glibc-functions/sendfile.texi: Likewise.
30200         * doc/glibc-functions/statfs.texi: Likewise.
30202 2011-07-24  Bruno Haible  <bruno@clisp.org>
30204         doc: Fix typo.
30205         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
30207 2011-07-24  Bruno Haible  <bruno@clisp.org>
30209         doc: Mention fsusage.
30210         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
30212 2011-07-24  Bruno Haible  <bruno@clisp.org>
30214         doc: Mention new glibc headers and functions.
30215         * doc/glibc-headers/gshadow.texi: New file.
30216         * doc/glibc-functions/endsgent.texi: New file.
30217         * doc/glibc-functions/fgetsgent.texi: New file.
30218         * doc/glibc-functions/fgetsgent_r.texi: New file.
30219         * doc/glibc-functions/getsgent.texi: New file.
30220         * doc/glibc-functions/getsgent_r.texi: New file.
30221         * doc/glibc-functions/getsgnam.texi: New file.
30222         * doc/glibc-functions/getsgnam_r.texi: New file.
30223         * doc/glibc-functions/putsgent.texi: New file.
30224         * doc/glibc-functions/setsgent.texi: New file.
30225         * doc/glibc-functions/sgetsgent.texi: New file.
30226         * doc/glibc-functions/sgetsgent_r.texi: New file.
30227         * doc/glibc-functions/malloc_info.texi: New file.
30228         * doc/glibc-functions/preadv.texi: New file.
30229         * doc/glibc-functions/pwritev.texi: New file.
30230         * doc/glibc-functions/register_printf_modifier.texi: New file.
30231         * doc/glibc-functions/register_printf_specifier.texi: New file.
30232         * doc/glibc-functions/register_printf_type.texi: New file.
30233         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
30234         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
30235         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
30236         * doc/glibc-functions/pthread_getname_np.texi: New file.
30237         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
30238         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
30239         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
30240         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
30241         * doc/glibc-functions/pthread_setname_np.texi: New file.
30242         * doc/glibc-functions/pthread_sigqueue.texi: New file.
30243         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
30244         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
30245         * doc/glibc-functions/qsort_r.texi: New file.
30246         * doc/glibc-functions/quick_exit.texi: New file.
30247         * doc/glibc-functions/syncfs.texi: New file.
30248         * doc/gnulib.texi: Include them.
30249         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
30250         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
30251         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
30252         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
30253         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
30254         * doc/glibc-functions/execvpe.texi: Likewise.
30256 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30258         ftell: don't include <unistd.h>
30259         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
30260         guaranteed to define off_t, and the ftell module depends on the
30261         stdio module.
30263         ftell: do not assume wraparound signed arithmetic
30264         * lib/ftell.c: Include <limits.h>.
30265         (ftell): Don't assume wraparound signed arithmetic.
30267 2011-07-24  Bruno Haible  <bruno@clisp.org>
30269         close: No longer depend on module 'fclose'.
30270         * modules/close (Depends-on): Remove fclose.
30271         * NEWS: Mention the change.
30272         Suggested by Sam Steingold <sds@gnu.org>.
30274 2011-07-24  Bruno Haible  <bruno@clisp.org>
30276         fsusage: Enable large volume support on AIX >= 5.2.
30277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
30278         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
30279         instead of STAT_STATVFS.
30280         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
30282         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
30283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
30284         f_blocks field only on MacOS X.
30286         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
30287         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
30288         * modules/fsusage (Depends-on): Add largefile.
30290 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30292         * README: Modernize discussion of signed integers.
30293         Assuming overflow wraparound is no longer safe.
30294         Mention ones' complement and signed magnitude.
30296 2011-07-22  Bruno Haible  <bruno@clisp.org>
30298         select tests, pselect tests: Refactor.
30299         * tests/test-select.h: New file, extracted from tests/test-select.c.
30300         (select_fn): New type.
30301         (test, do_select, do_select_nowait, do_select_wait, test_tty,
30302         test_connect_first, test_accept_first, test_pair, test_socket_pair,
30303         test_pipe): Add my_select argument.
30304         (test_function): Renamed from main. Add my_select argument.
30305         * tests/test-select.c: Move most code to tests/test-select.h. Include
30306         test-select.h.
30307         * modules/select-tests (Files): Add tests/test-select.h.
30308         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
30309         (my_select, main): New functions.
30310         * modules/pselect-tests (Files): Add tests/test-select.h,
30311         tests/macros.h, tests/signature.h.
30312         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
30313         (configure.ac): Check for <sys/wait.h>.
30315 2011-07-22  Bruno Haible  <bruno@clisp.org>
30317         sys_select tests: Check the signature of FD_*.
30318         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
30319         signature tests from here...
30320         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
30321         here.
30322         * modules/sys_select-tests (Files): Add tests/signature.h.
30324 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30326         largefile: new module, replacing large-inode
30327         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
30328         * MODULES.html.sh: Add largefile, remove large-inode.
30329         * modules/largefile, m4/largefile.m4: New files.
30330         * modules/large-inode, m4/large-inode.m4: Remove.
30332         fsusage: port to MacOS X 10.7 with 4 TiB file systems
30333         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
30334         implementations that use only 32 bits to count blocks.
30335         On typical hosts with 1024-byte blocks, this fails with file
30336         systems as small as 4 TiB.  Problem reported by Herb Wartens
30337         <http://debbugs.gnu.org/9140> and this should also fix a similar
30338         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
30340         large-inode: New module
30341         * MODULES.html.sh: Add it.
30342         * modules/large-inode, m4/large-inode.m4: New files.
30344         extensions: Enable extensions on MacOS X 10.5 and later.
30345         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
30347 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
30349         file-has-acl: use acl_extended_file_nofollow if available
30350         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
30351         (acl_extended_file): New macro.
30352         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
30353         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
30355 2011-07-21  Bruno Haible  <bruno@clisp.org>
30357         Declare system functions in a way that works with C++.
30358         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
30359         declare fdopendir as extern "C".
30360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
30361         declare frexpl as extern "C".
30362         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
30363         declare gai_strerror as extern "C".
30364         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
30365         programs, declare gai_strerror as extern "C".
30366         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
30367         declare getlogin_r as extern "C".
30368         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
30369         as extern "C".
30370         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
30371         declare ldexpl as extern "C".
30372         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
30373         as extern "C".
30374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
30375         program, declare getmntinfo as extern "C".
30376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
30377         stpncpy as extern "C".
30378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
30379         program, declare __xpg_strerror_r as extern "C".
30380         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
30381         strndup as extern "C".
30382         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
30383         declare memset and bzero as extern "C".
30384         Reported by Sam Steingold <sds@gnu.org>.
30386 2011-07-12  Jim Meyering  <meyering@redhat.com>
30388         maint.mk: prohibit inclusion of "verify.h" without use
30389         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
30391 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30393         timer-time: A new module to check for timer_settime()
30394         * m4/timer_time.m4: Check for the posix function.
30395         * modules/timer-time: Add the new module.
30396         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
30397         Mention it.
30399 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
30400             Bruno Haible  <bruno@clisp.org>
30402         pthread_sigmask: assume POSIX threads if --avoid=threadlib
30403         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
30404         not defined, assume POSIX threads and look for pthread_sigmask in
30405         $LIBS, without changing $CPPFLAGS.
30407 2011-07-19  Bruno Haible  <bruno@clisp.org>
30409         strstr: Update cross-compilation guess.
30410         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
30411         CPUs, guess no, in view of glibc
30412         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
30413         Suggested by Eric Blake. Reported by Reuben Thomas.
30415 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30417         getopt-gnu: suppress core dumps from detection code
30418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
30419         to suppress core dumps that may well occur on glibc systems.
30420         * modules/getopt-gnu: Depend on nocrash.
30422 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30424         pthread_sigmask: ensure usleep is declared
30425         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
30426         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
30428 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30430         doc: Document NonStop portability issues.
30431         * doc/posix-functions/sigaction.texi (sigaction):
30432         * doc/posix-headers/signal.texi (signal.h):
30433         Document NonStop.  See Joachim Schmitz in
30434         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
30436 2011-07-15  Bruno Haible  <bruno@clisp.org>
30438         ffsl, ffsll: Avoid unportable behaviour.
30439         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
30441 2011-07-15  Bruno Haible  <bruno@clisp.org>
30443         ffs: More tests.
30444         * tests/test-ffs.c (NBITS): New macro.
30445         (main): Add more tests.
30446         * tests/test-ffsl.c (NBITS): New macro.
30447         (main): Add more tests.
30448         * tests/test-ffsll.c (NBITS): New macro.
30449         (main): Add more tests.
30451 2011-07-15  Eric Blake  <eblake@redhat.com>
30453         ffsl, ffsll: new modules
30454         * modules/ffsl: New file.
30455         * modules/ffsll: Likewise.
30456         * m4/ffsl.m4: Likewise.
30457         * m4/ffsll.m4: Likewise.
30458         * lib/ffsl.c: Likewise.
30459         * lib/ffsl.h: Likewise.
30460         * lib/ffsll.c: Likewise.
30461         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
30462         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
30463         * modules/string (Makefile.am): Substitute witnesses.
30464         * lib/strings.in.h (ffsl, ffsll): Declare.
30465         * modules/ffsl-tests: New test file.
30466         * modules/ffsll-tests: Likewise.
30467         * tests/test-ffsl.c: Likewise.
30468         * tests/test-ffsll.c: Likewise.
30469         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30470         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
30471         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
30473         ffs: fix m4 prerequisite
30474         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
30476         ffs: avoid undefined behavior
30477         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
30478         * tests/test-ffs.c (naive, main): Avoid signed shifts.
30479         Reported by Bruno Haible.
30481 2011-07-12  Bruno Haible  <bruno@clisp.org>
30483         pthread_sigmask: Rely on module 'threadlib'.
30484         * modules/pthread_sigmask (Depends-on): Add threadlib.
30485         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
30486         is defined.
30488 2011-07-12  Bruno Haible  <bruno@clisp.org>
30490         regex: Depend on module 'strcase'.
30491         * modules/regex (Depends-on): Add strcase, for strcasecmp().
30493 2011-07-12  Jim Meyering  <meyering@redhat.com>
30495         warn-on-use: fix typo in file name
30496         * modules/snippet/warn-on-use (Files): Correct file name:
30497         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
30499 2011-07-12  Bruno Haible  <bruno@clisp.org>
30501         strings: Document module.
30502         * doc/posix-headers/strings.texi: Mention module 'strings'.
30504 2011-07-12  Bruno Haible  <bruno@clisp.org>
30506         Rename module '_Noreturn' to 'snippet/_Noreturn'.
30507         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
30508         (Files, Makefile.am): Update.
30509         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
30510         * modules/stdlib (Depends-on): Update.
30512 2011-07-12  Bruno Haible  <bruno@clisp.org>
30514         * NEWS: Mention the changes.
30516         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
30517         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
30518         (Files, Makefile.am): Update.
30519         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
30520         * modules/arpa_inet (Depends-on): Update.
30521         * modules/ctype (Depends-on): Update.
30522         * modules/dirent (Depends-on): Update.
30523         * modules/fcntl-h (Depends-on): Update.
30524         * modules/glob (Depends-on): Update.
30525         * modules/iconv-h (Depends-on): Update.
30526         * modules/inttypes-incomplete (Depends-on): Update.
30527         * modules/langinfo (Depends-on): Update.
30528         * modules/locale (Depends-on): Update.
30529         * modules/math (Depends-on): Update.
30530         * modules/netdb (Depends-on): Update.
30531         * modules/poll-h (Depends-on): Update.
30532         * modules/pty (Depends-on): Update.
30533         * modules/search (Depends-on): Update.
30534         * modules/signal (Depends-on): Update.
30535         * modules/spawn (Depends-on): Update.
30536         * modules/stdio (Depends-on): Update.
30537         * modules/stdlib (Depends-on): Update.
30538         * modules/string (Depends-on): Update.
30539         * modules/strings (Depends-on): Update.
30540         * modules/sys_file (Depends-on): Update.
30541         * modules/sys_ioctl (Depends-on): Update.
30542         * modules/sys_select (Depends-on): Update.
30543         * modules/sys_socket (Depends-on): Update.
30544         * modules/sys_stat (Depends-on): Update.
30545         * modules/sys_time (Depends-on): Update.
30546         * modules/sys_times (Depends-on): Update.
30547         * modules/sys_utsname (Depends-on): Update.
30548         * modules/sys_wait (Depends-on): Update.
30549         * modules/termios (Depends-on): Update.
30550         * modules/time (Depends-on): Update.
30551         * modules/unistd (Depends-on): Update.
30552         * modules/wchar (Depends-on): Update.
30553         * modules/wctype-h (Depends-on): Update.
30554         * MODULES.html.sh (Support for building libraries and executables):
30555         Update.
30557         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
30558         * modules/snippet/unused-parameter: Renamed from
30559         modules/unused-parameter.
30560         (Files, Makefile.am): Update.
30561         * build-aux/snippet/unused-parameter.h: Renamed from
30562         build-aux/unused-parameter.h.
30563         * modules/selinux-h (Depends-on): Update.
30564         * modules/unistr/base (Depends-on): Update.
30565         * MODULES.html.sh (Core language properties): Update.
30567         Rename module 'link-warning' to 'snippet/link-warning'.
30568         * modules/snippet/link-warning: Renamed from modules/link-warning.
30569         (Files, Makefile.am): Update.
30570         * build-aux/snippet/link-warning.h: Renamed from
30571         build-aux/link-warning.h.
30572         * MODULES.html.sh (Support for building libraries and executables):
30573         Update.
30575         Rename module 'c++defs' to 'snippet/c++defs'.
30576         * modules/snippet/c++defs: Renamed from modules/c++defs.
30577         (Files, Makefile.am): Update.
30578         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
30579         * modules/arpa_inet (Depends-on): Update.
30580         * modules/ctype (Depends-on): Update.
30581         * modules/dirent (Depends-on): Update.
30582         * modules/fcntl-h (Depends-on): Update.
30583         * modules/glob (Depends-on): Update.
30584         * modules/iconv-h (Depends-on): Update.
30585         * modules/langinfo (Depends-on): Update.
30586         * modules/locale (Depends-on): Update.
30587         * modules/math (Depends-on): Update.
30588         * modules/netdb (Depends-on): Update.
30589         * modules/poll-h (Depends-on): Update.
30590         * modules/pty (Depends-on): Update.
30591         * modules/search (Depends-on): Update.
30592         * modules/signal (Depends-on): Update.
30593         * modules/spawn (Depends-on): Update.
30594         * modules/stdio (Depends-on): Update.
30595         * modules/stdlib (Depends-on): Update.
30596         * modules/string (Depends-on): Update.
30597         * modules/strings (Depends-on): Update.
30598         * modules/sys_ioctl (Depends-on): Update.
30599         * modules/sys_select (Depends-on): Update.
30600         * modules/sys_socket (Depends-on): Update.
30601         * modules/sys_stat (Depends-on): Update.
30602         * modules/sys_time (Depends-on): Update.
30603         * modules/sys_wait (Depends-on): Update.
30604         * modules/termios (Depends-on): Update.
30605         * modules/time (Depends-on): Update.
30606         * modules/unistd (Depends-on): Update.
30607         * modules/wchar (Depends-on): Update.
30608         * modules/wctype-h (Depends-on): Update.
30610         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
30611         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
30612         (Files, Makefile.am): Update.
30613         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
30614         * modules/argv-iter (Depends-on): Update.
30615         * modules/arpa_inet (Depends-on): Update.
30616         * modules/dirent (Depends-on): Update.
30617         * modules/fcntl-h (Depends-on): Update.
30618         * modules/fnmatch (Depends-on): Update.
30619         * modules/getopt-posix (Depends-on): Update.
30620         * modules/glob (Depends-on): Update.
30621         * modules/iconv-h (Depends-on): Update.
30622         * modules/inttypes-incomplete (Depends-on): Update.
30623         * modules/locale (Depends-on): Update.
30624         * modules/math (Depends-on): Update.
30625         * modules/netdb (Depends-on): Update.
30626         * modules/search (Depends-on): Update.
30627         * modules/signal (Depends-on): Update.
30628         * modules/spawn (Depends-on): Update.
30629         * modules/stdio (Depends-on): Update.
30630         * modules/stdlib (Depends-on): Update.
30631         * modules/string (Depends-on): Update.
30632         * modules/strings (Depends-on): Update.
30633         * modules/sys_socket (Depends-on): Update.
30634         * modules/sys_stat (Depends-on): Update.
30635         * modules/sys_time (Depends-on): Update.
30636         * modules/sys_times (Depends-on): Update.
30637         * modules/sys_utsname (Depends-on): Update.
30638         * modules/time (Depends-on): Update.
30639         * modules/unistd (Depends-on): Update.
30640         * modules/wchar (Depends-on): Update.
30641         * MODULES.html.sh (Support for building libraries and executables):
30642         Update.
30644 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30646         Improvements on _Noreturn and related modules.
30648         modules/_Exit-tests: test _Noreturn too
30649         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
30650         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
30651         (main): Use them.
30653         stdnoreturn, stdnoreturn-tests: remove modules
30654         They're not needed here and a bit premature for use elsewhere.  See
30655         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
30656         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
30657         * tests/test-stdnoreturn.c: Remove files.
30658         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
30659         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
30660         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
30661         and using noreturn.
30662         * modules/openat, modules/sigpipe-die, modules/xalloc:
30663         * modules/xmemdup0, modules/xstrtol:
30664         Remove dependency on stdnoreturn.
30666         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
30667         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
30668         Reparenthesize to avoid GCC warning.
30669         Support Microsoft's syntax.
30670         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
30672         _Noreturn-tests: remove module
30673         * modules/_Noreturn-tests: Remove.
30674         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
30675         * tests/test-_Noreturn.c: Remove.
30676         * tests/test-stdnoreturn.c: Merge from the old
30677         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
30679 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30681         _Noreturn, stdnoreturn, and related modules.
30683         * top/maint.mk: Adjust to new noreturn support.
30684         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
30685         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
30687         xalloc: use stdnoreturn.h
30688         * lib/xalloc.h: Include <stdnoreturn.h>.
30689         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30690         * modules/xalloc (Depends-on): Add stdnoreturn.
30692         xstrtol: use stdnoreturn.h
30693         * lib/xstrtol.h: Include <stdnoreturn.h>.
30694         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30695         * modules/xstrtol (Depends-on): Add stdnoreturn.
30697         xmemdup0: use stdnoreturn.h
30698         * lib/xmemdup0.h: Include <stdnoreturn.h>.
30699         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30700         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
30702         sigpipe-die: use stdnoreturn.h
30703         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
30704         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30705         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
30707         openat: use stdnoreturn.h
30708         * lib/openat.h: Include <stdnoreturn.h>.
30709         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30710         * modules/openat (Depends-on): Add stdnoreturn.
30712         * lib/openat-die.c (openat_save_fail): Modernize comment.
30714         * lib/xalloc-die.c (xalloc_die): Modernize comment.
30716         * lib/glthread/thread.h: Modernize comment.
30718         obstack: use _Noreturn
30719         * lib/obstack.c (__attribute__): Remove macro.
30720         (print_and_abort): Use _Noreturn.
30722         c-stack: use _Noreturn
30723         * lib/c-stack.c (die, overflow_handler, segv_handler):
30724         Use _Noreturn rather than __attribute__((noreturn)).
30726         argmatch-tests, exclude_tests: use _Noreturn
30727         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
30728         Remove.
30729         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
30731         stdlib: use _Noreturn
30732         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
30733         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
30734         * modules/stdlib (Depends-on): Add _Noreturn.
30735         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
30737         stdnoreturn-tests: new module
30738         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
30740         stdnoreturn: new module
30741         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
30742         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
30744         _Noreturn-tests: new module
30745         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
30747         _Noreturn: new module
30748         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
30749         New section, mentioning it.
30750         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
30752         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
30754 2011-07-11  Eric Blake  <eblake@redhat.com>
30756         ffs: new module
30757         * modules/ffs: New file.
30758         * m4/ffs.m4: Likewise.
30759         * lib/ffs.c: Likewise.
30760         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
30761         * modules/strings (Makefile.am): Substitute witness.
30762         (Depends-on): Add c++defs.
30763         * lib/strings.in.h (ffs): Declare.
30764         * modules/ffs-tests: New test file.
30765         * tests/test-ffs.c: Test new module.
30766         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30767         * doc/posix-functions/ffs.texi (ffs): Likewise.
30769         regex: avoid compiler warning
30770         * lib/regex.c (includes): Include <strings.h>, for use of
30771         strcasecmp in regcomp.c.
30772         Reported by Joachim Schmitz.
30774 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30776         stdint: respect system's intmax_t if INTMAX_MAX
30777         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
30778         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
30779         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
30780         long but int64_t is long long, and where we will clash with the
30781         system intmax_t if we override it.  See
30782         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
30783         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
30784         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
30785         similarly for UINTMAX_C.
30787 2011-07-08  Bruno Haible  <bruno@clisp.org>
30789         pthread_sigmask tests: Avoid a compiler warning.
30790         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
30791         non-zero.
30793         sigprocmask tests: A better way to avoid a compiler warning.
30794         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
30795         (main): Complain if system() returns non-zero.
30796         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
30798 2011-07-08  Bruno Haible  <bruno@clisp.org>
30800         pthread_sigmask: Work around IRIX bug.
30801         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
30802         bug.
30803         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
30804         there may be unblocked pending signals.
30805         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
30807 2011-07-08  Bruno Haible  <bruno@clisp.org>
30809         pthread_sigmask: Work around Cygwin bug.
30810         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
30811         bug.
30812         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
30813         the system's pthread_sigmask function.
30814         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
30816 2011-07-08  Bruno Haible  <bruno@clisp.org>
30818         pthread_sigmask: Work around bug in single-threaded implementation.
30819         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
30820         FreeBSD, HP-UX, Solaris bug.
30821         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
30822         * lib/pthread_sigmask.c: Include <stddef.h>.
30823         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
30824         the system's pthread_sigmask function.
30825         * modules/pthread_sigmask (configure.ac): Invoke
30826         gl_PREREQ_PTHREAD_SIGMASK.
30827         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
30828         HP-UX, Solaris.
30830 2011-07-08  Eric Blake  <eblake@redhat.com>
30832         test-sigprocmask: avoid compiler warning
30833         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
30834         * tests/test-sigprocmask.c (main): Use it to silence warning.
30835         Reported by Jim Meyering.
30837         test-snprintf: avoid compiler warning
30838         * tests/test-snprintf.c (main): Avoid shadowed declaration.
30839         * tests/test-vsnprintf.c (main): Likewise.
30840         Reported by Jim Meyering.
30842 2011-07-08  Bruno Haible  <bruno@clisp.org>
30844         Tests for module 'pthread_sigmask'.
30845         * modules/pthread_sigmask-tests: New file.
30846         * tests/test-pthread_sigmask1.c: New file, based on
30847         tests/test-sigprocmask.c.
30848         * tests/test-pthread_sigmask2.c: New file.
30850 2011-07-08  Jim Meyering  <meyering@redhat.com>
30852         test-getopt.h: avoid warning about an unused variable
30853         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
30855 2011-07-07  Jim Meyering  <meyering@redhat.com>
30857         maint: reduce list of files exempt from sc_prohibit_leading_TABs
30858         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
30859         now that it no longer contains leading TABs.
30860         Remove unused "url=FIXME" statement.
30862 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30864         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
30865         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30866         When gl_THREADLIB is not in use, assume that the POSIX sematics
30867         are desired.  This is better for Emacs, which uses POSIX semantics
30868         on GNUish and/or POSIXish platforms, and does not use threads at
30869         all otherwise.
30871         pthread_sigmask: fix typo when testing for libraries
30872         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30873         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
30875 2011-07-08  Eric Blake  <eblake@redhat.com>
30877         fts: introduce FTS_NOATIME
30878         * lib/fts_.h (FTS_NOATIME): New bit flag.
30879         (FTS_OPTIONMASK): Adjust.
30880         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
30881         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
30883 2011-07-08  Bruno Haible  <bruno@clisp.org>
30885         Tests for module 'thread'.
30886         * modules/thread-tests: New file.
30887         * tests/test-thread_self.c: New file.
30888         * tests/test-thread_create.cc: New file.
30890 2011-07-08  Bruno Haible  <bruno@clisp.org>
30892         thread: Avoid gcc warnings when using gl_thread_self().
30893         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
30894         'void *'.
30895         (gl_thread_self_pointer): Update.
30897 2011-07-07  Bruno Haible  <bruno@clisp.org>
30899         signal-c++-tests: Check declaration of pthread_sigmask.
30900         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
30901         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
30902         $(LIB_PTHREAD_SIGMASK).
30904 2011-07-07  Bruno Haible  <bruno@clisp.org>
30906         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
30907         * lib/signal.in.h (pthread_sigmask): Override if
30908         REPLACE_PTHREAD_SIGMASK is 1.
30909         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30910         REPLACE_PTHREAD_SIGMASK.
30911         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
30912         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
30913         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
30914         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
30915         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
30917 2011-07-07  Bruno Haible  <bruno@clisp.org>
30919         pthread_sigmask: Ensure declaration in <signal.h>.
30920         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
30921         include <pthread.h>.
30922         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
30923         problem.
30925 2011-07-07  Bruno Haible  <bruno@clisp.org>
30927         pthread_sigmask: Document the module.
30928         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
30930 2011-07-07  Bruno Haible  <bruno@clisp.org>
30932         pthread_sigmask: Follow gnulib conventions.
30933         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
30934         gl_PTHREAD_SIGMASK.
30935         * modules/pthread_sigmask (configure.ac): Update.
30937 2011-07-07  Bruno Haible  <bruno@clisp.org>
30939         pthread_sigmask: Make declaration C++ safe.
30940         * lib/signal.in.h: In two special conditions, just do an #include_next.
30941         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
30942         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
30943         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30944         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
30945         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
30946         not REPLACE_PTHREAD_MASK.
30947         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
30948         not REPLACE_PTHREAD_MASK.
30949         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
30951 2011-07-07  Bruno Haible  <bruno@clisp.org>
30953         pthread_sigmask: Fix return value.
30954         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
30955         * lib/pthread_sigmask.c: New file.
30956         * modules/pthread_sigmask (Files): Add it.
30957         (configure.ac): Invoke AC_LIBOBJ.
30959 2011-07-07  Eric Blake  <eblake@redhat.com>
30961         getopt: more portable argv creation
30962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
30963         const, use char arrays rather than strings.
30964         Suggested by Paul Eggert.
30966 2011-07-07  Bruno Haible  <bruno@clisp.org>
30968         Tests for module 'sigprocmask'.
30969         * modules/sigprocmask-tests: New file.
30970         * tests/test-sigprocmask.c: New file.
30972 2011-07-07  Bruno Haible  <bruno@clisp.org>
30974         float tests: Tweak.
30975         * tests/test-float.c (main): Tweak skip message.
30977 2011-07-07  Eric Blake  <eblake@redhat.com>
30979         getopt: avoid compiler warning during configure
30980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
30981         assigning string literals to non-const pointer.
30983         getopt-gnu: avoid crash in glibc getopt
30984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
30985         * tests/test-getopt.h (test_getopt): Enhance test.
30986         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30987         * doc/posix-functions/getopt.texi (getopt): Document it.
30988         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30989         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30990         Likewise.
30992 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30994         getopt: handle W; without long options in getopt [BZ #12922]
30995         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
30996         but no long options are defined, just return 'W'.
30998 2011-07-07  Bruno Haible  <bruno@clisp.org>
31000         Avoid literal tabs.
31001         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
31002         variable containing a tab instead of a literal tab.
31003         Reported by Jim Meyering.
31005 2011-07-07  Bruno Haible  <bruno@clisp.org>
31007         Comments.
31008         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
31010 2011-07-06  Bruno Haible  <bruno@clisp.org>
31012         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
31013         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
31014         <winsock2.h>.
31015         (rpl_fd_isset, FD_ISSET): New definitions, copied from
31016         lib/sys_socket.in.h.
31017         (close, gethostname): Hide declarations from <winsock2.h>.
31018         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31019         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
31020         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
31021         (select): Don't override if gnulib's <sys/select.h> was already
31022         included.
31023         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31024         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31025         setsockopt, shutdown, select): Tweak indentation.
31027 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31029         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
31030         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
31031         in an application that does not use the sys_select module.
31033 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
31035         poll: do not return 0 on timeout=-1
31036         * lib/poll.c: Loop with yield if no events occurred.
31038 2011-07-06  Eric Blake  <eblake@redhat.com>
31040         pthread_sigmask: always replace when not using pthread
31041         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
31042         replacement when using some threading other than pthread.  Fix
31043         logic bug.
31045 2011-07-06  Bruno Haible  <bruno@clisp.org>
31047         Comments.
31048         * m4/printf.m4: Update comments about mingw.
31050 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31052         sys_select: define sigset_t more portably
31053         * lib/sys_select.in.h: Always include <sys/types.h>, since
31054         we now need sigset_t and mingw defines it there.
31055         Include <signal.h> before split inclusion guard, to avoid
31056         mishaps on Solaris, whose <signal.h> eventually includes us.
31057         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
31058         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
31059         which come from ...
31060         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31061         gl_CHECK_TYPE_SIGSET_T.
31062         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
31063         does the real work.
31064         * modules/sys_select (Depends-on): Add 'signal'.
31066         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
31067         Suggested by Bruno Haible.
31069         pselect: Use pthread_sigmask, not sigprocmask.
31070         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
31071         multithreaded apps better than sigprocmask does.
31072         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
31073         sigprocmask directly.
31075 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31077         * lib/pselect.c (pselect): Use plain name, without "rpl_".
31078         Don't #undef,  since we don't need any underlying pselect.
31079         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
31080         (Depends-on): Add select.
31081         (Link): Add $(LIBSOCKET).
31082         These changes suggested by Bruno Haible.
31084         pselect: document better
31085         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31086         * doc/posix-functions/pselect.texi (pselect): Document new module.
31088         pthread_sigmask: new module
31089         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31090         * doc/posix-functions/pthread_sigmask.texi: Document new module.
31091         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
31092         This is done only as a macro; I don't know how well that'll
31093         work for C++.  Move <sys/types.h> include before the include_next,
31094         to avoid mishap on Solaris.
31095         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
31096         * modules/signal (Makefile.am): Substitute the check's results.
31097         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
31099         test-pselect: new module
31100         * modules/pselect-tests, tests/test-pselect.c: New files.
31101         * tests/test-select.c, tests/test-sys_select-c++.cc:
31102         If TEST_PSELECT is defined, test pselect instead of testing select.
31104         * tests/test-sys_select.c (sigset_t): Test for it, too.
31105         Suggested by Bruno Haible.
31107 2011-07-05  Eric Blake  <eblake@redhat.com>
31109         snprintf: guarantee %1$d, for libintl
31110         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
31111         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31112         * doc/posix-functions/snprintf.texi (snprintf): Update.
31113         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31114         * tests/test-snprintf.c (main): Enhance test.
31115         * tests/test-vsnprintf.c (main): Likewise.
31117 2011-07-05  Jim Meyering  <meyering@redhat.com>
31119         maint: exempt stdio-read.c and stdio-write.c from the cppi check
31120         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
31121         per Bruno's request, to accommodate this idiom (no space after "#")
31122         even when the function is inside an #if block:
31123         char *
31124         gets (char *s)
31125         #undef gets
31126         {
31127           ...
31128         }
31130 2011-07-04  Jim Meyering  <meyering@redhat.com>
31132         maint: indent with spaces, not TABs, and add a rule to check this
31133         * tests/test-userspec.c: Indent with spaces, not TABs.
31134         * tests/test-argp.c: Likewise.
31135         * tests/test-c-stack2.sh: Likewise.
31136         * tests/test-parse-duration.sh: Likewise
31137         * m4/strtod.m4: Likewise.
31138         * m4/alloca.m4: Likewise.
31139         * m4/pselect.m4: Likewise.
31140         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
31142 2011-07-03  Jim Meyering  <meyering@redhat.com>
31144         maint.mk: correct omissions in prohibit_argmatch_without_use check
31145         This rule would mistakenly report that argmatch.h is included without
31146         use even when both the argmatch and invalid_arg macro were used.
31147         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
31148         of argmatch and invalid_arg.
31150 2011-07-03  Bruno Haible  <bruno@clisp.org>
31152         Comments about EINTR.
31153         * lib/safe-read.h: Explain the purpose of this module.
31154         * lib/safe-write.h: Likewise.
31155         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
31156         module.
31157         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
31158         module.
31159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31161 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31163         xnanosleep: Rewrite to use new dtotimespec module.
31164         It has the conversion code that used to be in xnanosleep.
31165         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
31166         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
31167         (TIME_T_MAX): Remove.
31168         (xnanosleep): Rewrite in terms of dtotimespec.
31169         * modules/xnanosleep (Depends-on): Add dtotimespec.
31170         Remove intprops, stdbool.
31172         timespec-add, timespec-sub: new modules
31173         * lib/timespec.h (timespec_add, timespec_sub): New decls.
31174         * lib/timespec-add.c, lib/timespec-sub.c:
31175         * modules/timespec-add, modules/timespec-sub: New files.
31177         dtotimespec: new module
31178         * lib/timespec.h (dtotimespec): New decl.
31179         * lib/dtotimespec.c, modules/dtotimespec: New files.
31181         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
31183         pselect: new module
31184         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
31185         (pselect): New decls.
31186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
31187         since the standard pselect decl uses 'restrict'.
31188         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
31189         HAVE_PSELECT, REPLACE_PSELECT.
31190         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
31191         HAVE_PSELECT, REPLACE_PSELECT.
31192         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
31194         sys_select: don't depend on sys_socket
31195         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
31196         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
31197         This fix works on GNU and GNU-like platforms, but has not been tested
31198         on native Windows.
31199         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
31200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
31201         gl_HEADER_SYS_SOCKET.
31202         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
31203         gl_PREREQ_SYS_H_WINSOCK2.
31205 2011-06-29  Eric Blake  <eblake@redhat.com>
31207         pipe2: fix C89 compile problem
31208         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
31209         Reported by Bruno Haible.
31211         pipe, pipe2: don't corrupt fd on error
31212         * lib/pipe.c (pipe): Leave fd unchanged on error.
31213         * lib/pipe2.c (pipe2): Likewise.
31214         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
31215         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31217 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
31219         mmap-anon: do not use regular expressions inadvertently
31220         * m4/mmap-anon.m4: Remove trailing period from strings sought
31221         in the output.
31223 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
31225         nanosleep: fix integer overflow problem
31226         * lib/nanosleep.c (my_usleep): Don't assume signed integer
31227         arithmetic wraps around on overflow.
31229         nanosleep: simplify carrying
31230         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
31231         first call to the underyling nanosleep, not for the last one.
31232         This doesn't fix any bugs, but it simplifies the computation of
31233         the remaining delay.  Found while auditing integer overflow issues.
31235         dup2: remove test for existence of fcntl
31236         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
31237         "#if HAVE_FCNTL", in the configure-time test program.
31238         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
31239         and therefore speeds up "configure" a bit.  Found while
31240         adding the dup2 module to Emacs.
31242 2011-06-24  Eric Blake  <eblake@redhat.com>
31244         maint.mk: enhance useless header checks
31245         * top/maint.mk (_sc_header_without_use): Check both include
31246         styles.
31247         (sc_prohibit_assert_without_use)
31248         (sc_prohibit_close_stream_without_use)
31249         (sc_prohibit_getopt_without_use)
31250         (sc_prohibit_quotearg_without_use)
31251         (sc_prohibit_quote_without_use)
31252         (sc_prohibit_long_options_without_use)
31253         (sc_prohibit_inttostr_without_use)
31254         (sc_prohibit_ignore_value_without_use)
31255         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
31256         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
31257         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
31258         (sc_prohibit_hash_pjw_without_use)
31259         (sc_prohibit_safe_read_without_use)
31260         (sc_prohibit_argmatch_without_use)
31261         (sc_prohibit_canonicalize_without_use)
31262         (sc_prohibit_root_dev_ino_without_use)
31263         (sc_prohibit_openat_without_use)
31264         (sc_prohibit_c_ctype_without_use)
31265         (sc_prohibit_signal_without_use)
31266         (sc_prohibit_stdio--_without_use)
31267         (sc_prohibit_stdio-safer_without_use)
31268         (sc_prohibit_strings_without_use)
31269         (sc_prohibit_intprops_without_use)
31270         (sc_prohibit_stddef_without_use)
31271         (sc_prohibit_xfreopen_without_use): Update clients.
31273 2011-06-24  Jim Meyering  <meyering@redhat.com>
31275         syntax-check: keep one maint.mk rule in sync with its header
31276         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
31277         of the bug Eric has just fixed, with today's commit 25e4c2ec.
31278         I prefer to avoid temporary files here, so use <(...), but that
31279         is not supported by /bin/sh, so...
31280         (SHELL): Define to /bin/bash.
31282 2011-06-24  Eric Blake  <eblake@redhat.com>
31284         maint.mk: update sc_prohibit_intprops_without_use
31285         * top/maint.mk (_intprops_names): Match recent changes.
31287 2011-06-24  Bruno Haible  <bruno@clisp.org>
31289         strerror-override: No-op tweak.
31290         * lib/strerror-override.h (strerror_override): Reorder conditions,
31291         for consistency with lib/strerror-override.c.
31293 2011-06-23  Eric Blake  <eblake@redhat.com>
31295         maint.mk: test further PATH_MAX issues
31296         * top/maint.mk (sc_prohibit_path_max_array): Rename...
31297         (sc_prohibit_path_max_allocation): ...and also test alloca.
31298         Suggested by Jim Meyering.
31300 2011-06-22  Eric Blake  <eblake@redhat.com>
31302         maint.mk: add syntax-check to avoid char[PATH_MAX]
31303         * top/maint.mk (sc_prohibit_path_max_array): New rule.
31305         stat: be robust to PATH_MAX definition
31306         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
31307         * modules/stat (Depends-on): Add verify.
31309         link: work around IRIX bug
31310         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
31311         * lib/link.c (rpl_link): Work around it.
31312         * tests/test-link.h (test_link): Enhance test.
31313         * doc/posix-functions/link.texi (link): Document the bug.
31315         getopt: silence clang warning
31316         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
31317         dereference.
31318         Reported by Gustavo Martin Domato.
31320 2011-06-22  Jim Meyering  <meyering@redhat.com>
31322         bootstrap: do not insert a blank line into each .gitignore file
31323         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
31325 2011-06-21  Eric Blake  <eblake@redhat.com>
31327         perror: test for output mismatch
31328         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
31329         perror on IRIX.
31331         strerror_r: fix OpenBSD behavior on out-of-range
31332         * lib/strerror_r.c (strerror_r): Always use maximal string.
31333         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31335         strerror_r: fix OpenBSD behavior on 0
31336         * lib/strerror-override.c (strerror_override): Also override 0
31337         when needed.
31338         * lib/strerror-override.h (strerror_override): Likewise.
31339         * lib/strerror.c (strerror): Simplify, now that 0 override is done
31340         earlier.
31341         * lib/strerror_r.c (strerror_r): Likewise.
31342         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
31343         behavior...
31344         (gl_FUNC_STRERROR_0): ...into new macro.
31345         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
31346         is overridden.
31347         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
31348         * modules/strerror-override (Files): Add strerror.m4.
31349         (configure.ac): Also provide override for 0 when needed.
31350         * doc/posix-functions/strerror.texi (strerror): Document this.
31351         * doc/posix-functions/perror.texi (perror): Likewise.
31353         perror: adjust array size
31354         * modules/perror (Depends-on): Add strerror-override.
31355         * lib/perror.c (perror): Use it to avoid magic number.
31357         strerror-override: reduce size
31358         * lib/strerror-override.c (strerror_override): Use fewer lines.
31360 2011-06-20  Bruno Haible  <bruno@clisp.org>
31362         pathmax: Ensure correct value for PATH_MAX on HP-UX.
31363         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
31365 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31367         alloca: port to compilers that can optimize like GCC 4.6.0
31368         * lib/alloca.c (find_stack_direction): New signature, taken from
31369         Autoconf git.  This works with GCC 4.6.0.  This code should never
31370         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
31371         be used with other compilers that optimize as well as GCC 4.6.0 does.
31372         (alloca): Adjust to new signature.
31373         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
31374         New macro, which patches Autoconf in a similar way.
31376         c-stack: stop worrying about stack direction
31377         * lib/c-stack.c (find_stack_direction): Remove.
31378         (segv_handler): Don't worry about stack direction growth, as it's
31379         too much of a pain to configure this correctly, given how compilers
31380         are optimizing-away our stack-growth detection code.  Instead, assume
31381         that any access to just before or just after the stack is OK.
31382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
31383         Don't require AC_FUNC_ALLOCA; no longer needed.
31385 2011-06-20  Eric Blake  <eblake@redhat.com>
31387         test-stat: don't allocate PATH_MAX bytes
31388         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
31389         PATH_MAX-sized buffer.
31390         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
31391         * modules/stat-tests (Depends-on): Likewise.
31392         * tests/test-fstatat.c (includes): Drop pathmax.h.
31393         * tests/test-stat.c (includes): Likewise.
31394         Reported by Bruno Haible.
31396 2011-06-20  Bruno Haible  <bruno@clisp.org>
31398         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
31399         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
31400         * lib/float.c: New file.
31401         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
31402         REPLACE_FLOAT_LDBL.
31403         * modules/float (Files): Add lib/float.c.
31404         (configure.ac): Invoke AC_LIBOBJ.
31405         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
31407 2011-06-20  Bruno Haible  <bruno@clisp.org>
31409         Tests for module 'float'.
31410         * modules/float-tests: New file.
31411         * tests/test-float.c: New file.
31413 2011-06-19  Bruno Haible  <bruno@clisp.org>
31415         isinf: Coding style.
31416         * lib/isinf.c: Use GNU coding style.
31418 2011-06-19  Bruno Haible  <bruno@clisp.org>
31420         linkat test: Avoid test failure on AIX 7.1.
31421         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
31422         * tests/test-link.h (test_link): Likewise.
31424 2011-06-19  Bruno Haible  <bruno@clisp.org>
31426         pread test: Avoid test failure on OpenBSD 4.9.
31427         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
31429 2011-06-19  Bruno Haible  <bruno@clisp.org>
31431         sprintf-posix: Fix test failure on AIX 7.1.
31432         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
31433         * doc/posix-functions/dprintf.texi: Mention limited precision problem
31434         on AIX.
31435         * doc/posix-functions/fprintf.texi: Likewise.
31436         * doc/posix-functions/printf.texi: Likewise.
31437         * doc/posix-functions/snprintf.texi: Likewise.
31438         * doc/posix-functions/sprintf.texi: Likewise.
31439         * doc/posix-functions/vdprintf.texi: Likewise.
31440         * doc/posix-functions/vfprintf.texi: Likewise.
31441         * doc/posix-functions/vprintf.texi: Likewise.
31442         * doc/posix-functions/vsnprintf.texi: Likewise.
31443         * doc/posix-functions/vsprintf.texi: Likewise.
31445 2011-06-19  Bruno Haible  <bruno@clisp.org>
31447         roundl-ieee: Fix test failure on AIX 7.1.
31448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
31449         * doc/posix-functions/roundl.texi: Mention problem with negative
31450         arguments.
31452 2011-06-19  Bruno Haible  <bruno@clisp.org>
31454         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
31455         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
31456         * doc/posix-functions/round.texi: Mention problem with negative
31457         arguments.
31458         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
31460 2011-06-19  Bruno Haible  <bruno@clisp.org>
31462         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
31463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
31464         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
31465         * doc/posix-functions/roundf.texi: Mention problem with negative
31466         arguments.
31467         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
31469 2011-06-19  Bruno Haible  <bruno@clisp.org>
31471         ceilf-ieee: Work around bug on MacOS X 10.5.
31472         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
31474         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
31475         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
31476         IEEE compliant, avoid compiler optimizations.
31477         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
31478         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
31479         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
31480         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31481         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31482         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31485         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31486         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
31488 2011-06-19  Bruno Haible  <bruno@clisp.org>
31490         ceilf-ieee: Work around bug on AIX 7.1.
31491         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
31492         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
31494 2011-06-19  Bruno Haible  <bruno@clisp.org>
31496         ceil-ieee: Work around bug on AIX 7.1.
31497         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
31498         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
31500 2011-06-18  Bruno Haible  <bruno@clisp.org>
31502         fsync test: Avoid test failure on MacOS X and AIX.
31503         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
31504         EINVAL.
31506 2011-06-18  Bruno Haible  <bruno@clisp.org>
31508         openat, fdopendir tests: Fix link errors.
31509         * modules/openat-tests (Depends-on): Add progname.
31510         * modules/fdopendir-tests (Depends-on): Likewise.
31511         * tests/test-fchownat.c: Include progname.h.
31512         (main): Call set_program_name.
31513         * tests/test-fstatat.c: Include progname.h.
31514         (main): Call set_program_name.
31515         * tests/test-mkdirat.c: Include progname.h.
31516         (main): Call set_program_name.
31517         * tests/test-openat.c: Include progname.h.
31518         (main): Call set_program_name.
31519         * tests/test-unlinkat.c: Include progname.h.
31520         (main): Call set_program_name.
31521         * tests/test-fdopendir.c: Include progname.h.
31522         (main): Call set_program_name.
31524 2011-06-18  Bruno Haible  <bruno@clisp.org>
31526         Doc update.
31527         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
31528         HP-UX.
31529         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
31531 2011-06-18  Bruno Haible  <bruno@clisp.org>
31533         getcwd tests: Avoid compilation error on HP-UX 11.31.
31534         * modules/getcwd-tests (Depends-on): Add pathmax.
31535         * tests/test-getcwd.c: Include pathmax.h.
31537 2011-06-18  Bruno Haible  <bruno@clisp.org>
31539         isfinite, isinf: Fix link error on AIX 6 and 7.
31540         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
31541         needed, also test the macro with a 'float' argument.
31542         * m4/isinf.m4 (gl_ISINF): Likewise.
31544 2011-06-18  Bruno Haible  <bruno@clisp.org>
31546         getloadavg: Don't clobber LIBS. Regression from previous commit.
31547         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
31548         AC_CHECK_LIB from here...
31549         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
31550         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
31551         gl_func_getloadavg_done.
31552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31554 2011-06-18  Bruno Haible  <bruno@clisp.org>
31556         clean-temp: Improve documentation.
31557         * lib/clean-temp.h: Explain better how to use this module.
31558         Reported by John Darrington <john@darrington.wattle.id.au>.
31560 2011-06-17  Bruno Haible  <bruno@clisp.org>
31562         pread, pwrite: Avoid cc warning on AIX.
31563         * lib/unistd.in.h (pread): Undefine before defining as a macro.
31564         (pwrite): Likewise.
31566 2011-06-17  Bruno Haible  <bruno@clisp.org>
31568         spawn-pipe tests: Fix link error.
31569         * tests/test-spawn-pipe-child.c: Undefine fprintf.
31570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31572 2011-06-17  Bruno Haible  <bruno@clisp.org>
31574         Tests: Remove unnecessary dependency.
31575         * modules/canonicalize-tests (Depends-on): Remove progname.
31576         * modules/chown-tests (Depends-on): Likewise.
31577         * modules/dirname-tests (Depends-on): Likewise.
31578         * modules/fdopendir-tests (Depends-on): Likewise.
31579         * modules/fdutimensat-tests (Depends-on): Likewise.
31580         * modules/hash-tests (Depends-on): Likewise.
31581         * modules/lchown-tests (Depends-on): Likewise.
31582         * modules/linkat-tests (Depends-on): Likewise.
31583         * modules/renameat-tests (Depends-on): Likewise.
31584         * modules/spawn-pipe-tests (Depends-on): Likewise.
31585         * modules/utimensat-tests (Depends-on): Likewise.
31587 2011-06-17  Bruno Haible  <bruno@clisp.org>
31589         spawn-pipe tests: Fix link error.
31590         * tests/test-spawn-pipe-child.c: Undefine fflush.
31592 2011-06-17  Bruno Haible  <bruno@clisp.org>
31594         Fix tests link errors.
31595         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
31596         * modules/chown-tests (Makefile.am): Don't link test-chown with
31597         LIBINTL.
31598         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
31599         LIBINTL.
31600         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
31601         LIBINTL.
31602         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
31603         LIBINTL.
31605 2011-06-16  Bruno Haible  <bruno@clisp.org>
31607         crypto/gc-sha1: Fix recent regression.
31608         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
31609         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
31611         crypto/gc-md5: Fix recent regression.
31612         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
31614         crypto/gc-md4: Fix recent regression.
31615         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
31616         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
31618         crypto/gc-arctwo: Fix recent regression.
31619         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
31620         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
31622         crypto/gc-rijndael: Fix recent regression.
31623         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
31624         (configure.ac): Invoke AC_LIBOBJ here.
31625         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
31626         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31628         crypto/gc-hmac-sha1: Fix recent regression.
31629         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
31630         (configure.ac): Invoke AC_LIBOBJ here.
31631         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
31632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31634         crypto/gc-hmac-md5: Fix recent regression.
31635         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
31636         (configure.ac): Invoke AC_LIBOBJ here.
31637         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
31638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31640         crypto/gc-des: Fix recent regression.
31641         * modules/crypto/gc-des (Files): Remove m4/des.m4.
31642         (configure.ac): Invoke AC_LIBOBJ here.
31643         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
31644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31646         crypto/gc-arcfour: Fix recent regression.
31647         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
31648         (configure.ac): Invoke AC_LIBOBJ here.
31649         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
31650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31652 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
31654         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
31655         After the 2011-05-21 change, this macro requires
31656         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
31657         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31659 2011-06-16  Bruno Haible  <bruno@clisp.org>
31661         fprintftime: Move AC_LIBOBJ invocations to module description.
31662         * m4/fprintftime.m4: Remove file.
31663         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
31664         (configure.ac): Remove gl_FPRINTFTIME call.
31665         (Makefile.am): Augment lib_SOURCES.
31666         Reported by Jim Meyering.
31668 2011-06-16  Bruno Haible  <bruno@clisp.org>
31670         tmpfile-safer: Finish 2011-05-23 commit.
31671         * m4/stdio-safer.m4: Really remove file.
31672         Reported by Jim Meyering.
31674 2011-06-16  Bruno Haible  <bruno@clisp.org>
31676         syntax-check: Fix typo.
31677         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
31678         printf-posix.m4.
31679         Reported by Jim Meyering.
31681 2011-06-13  Jim Meyering  <meyering@redhat.com>
31683         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
31684         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
31686 2011-05-23  Bruno Haible  <bruno@clisp.org>
31688         yesno: Move AC_LIBOBJ invocations to module description.
31689         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
31690         * modules/yesno (Makefile.am): Augment lib_SOURCES.
31692 2011-05-23  Bruno Haible  <bruno@clisp.org>
31694         xstrtol: Move AC_LIBOBJ invocations to module description.
31695         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
31696         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
31698 2011-05-23  Bruno Haible  <bruno@clisp.org>
31700         xstrtold: Move AC_LIBOBJ invocations to module description.
31701         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
31702         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
31704 2011-05-23  Bruno Haible  <bruno@clisp.org>
31706         xstrtod: Move AC_LIBOBJ invocations to module description.
31707         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
31708         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
31710 2011-05-23  Bruno Haible  <bruno@clisp.org>
31712         xnanosleep: Move AC_LIBOBJ invocations to module description.
31713         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
31714         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
31716 2011-05-23  Bruno Haible  <bruno@clisp.org>
31718         xgetcwd: Move AC_LIBOBJ invocations to module description.
31719         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
31720         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
31722 2011-05-23  Bruno Haible  <bruno@clisp.org>
31724         xalloc: Move AC_LIBOBJ invocations to module description.
31725         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
31726         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
31728 2011-05-23  Bruno Haible  <bruno@clisp.org>
31730         write-any-file: Move AC_LIBOBJ invocations to module description.
31731         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
31732         invocation.
31733         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
31735 2011-05-23  Bruno Haible  <bruno@clisp.org>
31737         utimens: Move AC_LIBOBJ invocations to module description.
31738         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
31739         * modules/utimens (Makefile.am): Augment lib_SOURCES.
31741 2011-05-23  Bruno Haible  <bruno@clisp.org>
31743         utimecmp: Move AC_LIBOBJ invocations to module description.
31744         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
31745         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
31747 2011-05-23  Bruno Haible  <bruno@clisp.org>
31749         userspec: Move AC_LIBOBJ invocations to module description.
31750         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
31751         * modules/userspec (Makefile.am): Augment lib_SOURCES.
31753 2011-05-23  Bruno Haible  <bruno@clisp.org>
31755         unlinkdir: Move AC_LIBOBJ invocations to module description.
31756         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
31757         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
31759 2011-05-23  Bruno Haible  <bruno@clisp.org>
31761         unistd-safer: Move AC_LIBOBJ invocations to module description.
31762         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
31763         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
31765 2011-05-23  Bruno Haible  <bruno@clisp.org>
31767         tempname: Move AC_LIBOBJ invocations to module description.
31768         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
31769         * modules/tempname (Makefile.am): Augment lib_SOURCES.
31771 2011-05-23  Bruno Haible  <bruno@clisp.org>
31773         strftime: Move AC_LIBOBJ invocations to module description.
31774         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
31775         * modules/strftime (Makefile.am): Augment lib_SOURCES.
31777 2011-05-23  Bruno Haible  <bruno@clisp.org>
31779         stdlib-safer: Move AC_LIBOBJ invocations to module description.
31780         * m4/stdlib-safer.m4: Remove file.
31781         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
31782         (configure.ac): Remove gl_STDLIB_SAFER call.
31783         (Makefile.am): Augment lib_SOURCES.
31785 2011-05-23  Bruno Haible  <bruno@clisp.org>
31787         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
31788         * m4/stdio-safer.m4: Remove file.
31789         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
31790         (configure.ac): Remove gl_TMPFILE_SAFER call.
31791         (Makefile.am): Augment lib_SOURCES.
31793 2011-05-23  Bruno Haible  <bruno@clisp.org>
31795         popen-safer: Move AC_LIBOBJ invocations to module description.
31796         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
31797         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
31798         (configure.ac): Remove gl_POPEN_SAFER call.
31799         (Makefile.am): Augment lib_SOURCES.
31801 2011-05-23  Bruno Haible  <bruno@clisp.org>
31803         freopen-safer: Move AC_LIBOBJ invocations to module description.
31804         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
31805         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
31806         (configure.ac): Remove gl_FREOPEN_SAFER call.
31807         (Makefile.am): Augment lib_SOURCES.
31809 2011-05-23  Bruno Haible  <bruno@clisp.org>
31811         fopen-safer: Move AC_LIBOBJ invocations to module description.
31812         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
31813         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
31814         (configure.ac): Remove gl_FOPEN_SAFER call.
31815         (Makefile.am): Augment lib_SOURCES.
31817 2011-05-23  Bruno Haible  <bruno@clisp.org>
31819         crypto/sha512: Move AC_LIBOBJ invocations to module description.
31820         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
31821         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
31823 2011-05-23  Bruno Haible  <bruno@clisp.org>
31825         crypto/sha256: Move AC_LIBOBJ invocations to module description.
31826         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
31827         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
31829 2011-05-23  Bruno Haible  <bruno@clisp.org>
31831         crypto/sha1: Move AC_LIBOBJ invocations to module description.
31832         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
31833         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
31835 2011-05-23  Bruno Haible  <bruno@clisp.org>
31837         settime: Move AC_LIBOBJ invocations to module description.
31838         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
31839         * modules/settime (Makefile.am): Augment lib_SOURCES.
31841 2011-05-23  Bruno Haible  <bruno@clisp.org>
31843         savedir: Move AC_LIBOBJ invocations to module description.
31844         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
31845         * modules/savedir (Makefile.am): Augment lib_SOURCES.
31847 2011-05-23  Bruno Haible  <bruno@clisp.org>
31849         save-cwd: Move AC_LIBOBJ invocations to module description.
31850         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
31851         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
31853 2011-05-23  Bruno Haible  <bruno@clisp.org>
31855         same: Move AC_LIBOBJ invocations to module description.
31856         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
31857         * modules/same (Makefile.am): Augment lib_SOURCES.
31859 2011-05-23  Bruno Haible  <bruno@clisp.org>
31861         safe-write: Move AC_LIBOBJ invocations to module description.
31862         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
31863         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
31864         instead of gl_SAFE_WRITE.
31865         (Makefile.am): Augment lib_SOURCES.
31867 2011-05-23  Bruno Haible  <bruno@clisp.org>
31869         safe-read: Move AC_LIBOBJ invocations to module description.
31870         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
31871         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
31872         of gl_SAFE_READ.
31873         (Makefile.am): Augment lib_SOURCES.
31875 2011-05-23  Bruno Haible  <bruno@clisp.org>
31877         safe-alloc: Move AC_LIBOBJ invocations to module description.
31878         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
31879         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
31881 2011-05-23  Bruno Haible  <bruno@clisp.org>
31883         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
31884         * m4/rijndael.m4: Remove file.
31885         * modules/crypto/rijndael (Files): Remove it.
31886         (configure.ac): Remove gl_RIJNDAEL call.
31887         (Makefile.am): Augment lib_SOURCES.
31889 2011-05-23  Bruno Haible  <bruno@clisp.org>
31891         readtokens: Move AC_LIBOBJ invocations to module description.
31892         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
31893         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
31895 2011-05-23  Bruno Haible  <bruno@clisp.org>
31897         read-file: Move AC_LIBOBJ invocations to module description.
31898         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
31899         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
31900         of gl_FUNC_READ_FILE.
31901         (Makefile.am): Augment lib_SOURCES.
31903 2011-05-23  Bruno Haible  <bruno@clisp.org>
31905         quotearg: Move AC_LIBOBJ invocations to module description.
31906         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
31907         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
31909 2011-05-23  Bruno Haible  <bruno@clisp.org>
31911         quote: Move AC_LIBOBJ invocations to module description.
31912         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
31913         * modules/quote (Makefile.am): Augment lib_SOURCES.
31915 2011-05-23  Bruno Haible  <bruno@clisp.org>
31917         posixver: Move AC_LIBOBJ invocations to module description.
31918         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
31919         * modules/posixver (Makefile.am): Augment lib_SOURCES.
31921 2011-05-23  Bruno Haible  <bruno@clisp.org>
31923         posixtm: Move AC_LIBOBJ invocations to module description.
31924         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
31925         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
31927 2011-05-23  Bruno Haible  <bruno@clisp.org>
31929         physmem: Move AC_LIBOBJ invocations to module description.
31930         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
31931         * modules/physmem (Makefile.am): Augment lib_SOURCES.
31933 2011-05-23  Bruno Haible  <bruno@clisp.org>
31935         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
31936         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
31937         invocation.
31938         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
31940 2011-05-23  Bruno Haible  <bruno@clisp.org>
31942         mpsort: Move AC_LIBOBJ invocations to module description.
31943         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
31944         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
31946 2011-05-23  Bruno Haible  <bruno@clisp.org>
31948         modechange: Move AC_LIBOBJ invocations to module description.
31949         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
31950         * modules/modechange (Makefile.am): Augment lib_SOURCES.
31952 2011-05-23  Bruno Haible  <bruno@clisp.org>
31954         mkdir-p: Move AC_LIBOBJ invocations to module description.
31955         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
31956         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
31958 2011-05-23  Bruno Haible  <bruno@clisp.org>
31960         mkancesdirs: Move AC_LIBOBJ invocations to module description.
31961         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
31962         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
31964 2011-05-23  Bruno Haible  <bruno@clisp.org>
31966         mgetgroups: Move AC_LIBOBJ invocations to module description.
31967         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
31968         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
31970 2011-05-23  Bruno Haible  <bruno@clisp.org>
31972         memxor: Move AC_LIBOBJ invocations to module description.
31973         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
31974         * modules/memxor (Makefile.am): Augment lib_SOURCES.
31976 2011-05-23  Bruno Haible  <bruno@clisp.org>
31978         memcoll: Move AC_LIBOBJ invocations to module description.
31979         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
31980         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
31982 2011-05-23  Bruno Haible  <bruno@clisp.org>
31984         memcasecmp: Move AC_LIBOBJ invocations to module description.
31985         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
31986         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
31988 2011-05-23  Bruno Haible  <bruno@clisp.org>
31990         crypto/md5: Move AC_LIBOBJ invocations to module description.
31991         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
31992         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
31994 2011-05-23  Bruno Haible  <bruno@clisp.org>
31996         crypto/md4: Move AC_LIBOBJ invocations to module description.
31997         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
31998         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
32000 2011-05-23  Bruno Haible  <bruno@clisp.org>
32002         crypto/md2: Move AC_LIBOBJ invocations to module description.
32003         * m4/md2.m4: Remove file.
32004         * modules/crypto/md2 (Files): Remove it.
32005         (configure.ac): Remove gl_MD2 call.
32006         (Makefile.am): Augment lib_SOURCES.
32008 2011-05-23  Bruno Haible  <bruno@clisp.org>
32010         long-options: Move AC_LIBOBJ invocations to module description.
32011         * m4/long-options.m4: Remove file.
32012         * modules/long-options (Files): Remove it.
32013         (configure.ac): Remove gl_LONG_OPTIONS call.
32014         (Makefile.am): Augment lib_SOURCES.
32016 2011-05-23  Bruno Haible  <bruno@clisp.org>
32018         i-ring: Move AC_LIBOBJ invocations to module description.
32019         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
32020         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
32022 2011-05-23  Bruno Haible  <bruno@clisp.org>
32024         idcache: Move AC_LIBOBJ invocations to module description.
32025         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
32026         * modules/idcache (Makefile.am): Augment lib_SOURCES.
32028 2011-05-23  Bruno Haible  <bruno@clisp.org>
32030         human: Move AC_LIBOBJ invocations to module description.
32031         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
32032         * modules/human (Makefile.am): Augment lib_SOURCES.
32034 2011-05-23  Bruno Haible  <bruno@clisp.org>
32036         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
32037         * m4/hmac-sha1.m4: Remove file.
32038         * modules/crypto/hmac-sha1 (Files): Remove it.
32039         (configure.ac): Remove gl_HMAC_SHA1 call.
32040         (Makefile.am): Augment lib_SOURCES.
32042 2011-05-23  Bruno Haible  <bruno@clisp.org>
32044         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
32045         * m4/hmac-md5.m4: Remove file.
32046         * modules/crypto/hmac-md5 (Files): Remove it.
32047         (configure.ac): Remove gl_HMAC_MD5 call.
32048         (Makefile.am): Augment lib_SOURCES.
32050 2011-05-23  Bruno Haible  <bruno@clisp.org>
32052         hash: Move AC_LIBOBJ invocations to module description.
32053         * m4/hash.m4: Remove file.
32054         * modules/hash (Files): Remove it.
32055         (configure.ac): Remove gl_HASH call.
32056         (Makefile.am): Augment lib_SOURCES.
32058 2011-05-23  Bruno Haible  <bruno@clisp.org>
32060         hard-locale: Move AC_LIBOBJ invocations to module description.
32061         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
32062         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
32064 2011-05-23  Bruno Haible  <bruno@clisp.org>
32066         getugroups: Move AC_LIBOBJ invocations to module description.
32067         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
32068         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
32070 2011-05-23  Bruno Haible  <bruno@clisp.org>
32072         gettime: Move AC_LIBOBJ invocations to module description.
32073         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
32074         * modules/gettime (Makefile.am): Augment lib_SOURCES.
32076 2011-05-23  Bruno Haible  <bruno@clisp.org>
32078         getndelim2: Move AC_LIBOBJ invocations to module description.
32079         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
32080         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
32082 2011-05-23  Bruno Haible  <bruno@clisp.org>
32084         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
32085         * m4/gc-pbkdf2-sha1.m4: Remove file.
32086         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
32087         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
32088         (Makefile.am): Augment lib_SOURCES.
32090 2011-05-23  Bruno Haible  <bruno@clisp.org>
32092         fts: Move AC_LIBOBJ invocations to module description.
32093         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
32094         * modules/fts (configure.ac): ... to here.
32096 2011-05-23  Bruno Haible  <bruno@clisp.org>
32098         file-type: Move AC_LIBOBJ invocations to module description.
32099         * m4/file-type.m4: Remove file.
32100         * modules/file-type (Files): Remove it.
32101         (configure.ac): Remove gl_FILE_TYPE call.
32102         (Makefile.am): Augment lib_SOURCES.
32104 2011-05-23  Bruno Haible  <bruno@clisp.org>
32106         filenamecat*: Respect rules for use of AC_LIBOBJ.
32107         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
32108         Remove AC_LIBOBJ invocation.
32109         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
32110         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
32112 2011-05-23  Bruno Haible  <bruno@clisp.org>
32114         filemode: Move AC_LIBOBJ invocations to module description.
32115         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
32116         * modules/filemode (Makefile.am): Augment lib_SOURCES.
32118 2011-05-23  Bruno Haible  <bruno@clisp.org>
32120         openat-safer: Move AC_LIBOBJ invocations to module description.
32121         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
32122         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
32124 2011-05-23  Bruno Haible  <bruno@clisp.org>
32126         fcntl-safer: Move AC_LIBOBJ invocations to module description.
32127         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
32128         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
32130 2011-05-23  Bruno Haible  <bruno@clisp.org>
32132         exclude: Move AC_LIBOBJ invocations to module description.
32133         * m4/exclude.m4: Remove file.
32134         * modules/exclude (Files): Remove it.
32135         (configure.ac): Remove gl_EXCLUDE call.
32136         (Makefile.am): Augment lib_SOURCES.
32138 2011-05-23  Bruno Haible  <bruno@clisp.org>
32140         dirname*: Respect rules for use of AC_LIBOBJ.
32141         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
32142         invocations.
32143         * modules/dirname (Makefile.am): Augment lib_SOURCES.
32144         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
32146 2011-05-23  Bruno Haible  <bruno@clisp.org>
32148         dirent-safer: Move AC_LIBOBJ invocations to module description.
32149         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
32150         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
32152 2011-05-23  Bruno Haible  <bruno@clisp.org>
32154         crypto/des: Move AC_LIBOBJ invocations to module description.
32155         * m4/des.m4: Remove file.
32156         * modules/crypto/des (Files): Remove it.
32157         (configure.ac): Remove gl_DES call.
32158         (Makefile.am): Augment lib_SOURCES.
32160 2011-05-23  Bruno Haible  <bruno@clisp.org>
32162         cycle-check: Move AC_LIBOBJ invocations to module description.
32163         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
32164         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
32166 2011-05-23  Bruno Haible  <bruno@clisp.org>
32168         c-strtold: Move AC_LIBOBJ invocations to module description.
32169         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
32170         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
32172 2011-05-23  Bruno Haible  <bruno@clisp.org>
32174         c-strtod: Move AC_LIBOBJ invocations to module description.
32175         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
32176         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
32178 2011-05-23  Bruno Haible  <bruno@clisp.org>
32180         crc: Move AC_LIBOBJ invocations to module description.
32181         * m4/crc.m4: Remove file.
32182         * modules/crc (Files): Remove it.
32183         (configure.ac): Remove gl_CRC call.
32184         (Makefile.am): Augment lib_SOURCES.
32186 2011-05-23  Bruno Haible  <bruno@clisp.org>
32188         close-stream: Move AC_LIBOBJ invocations to module description.
32189         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
32190         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
32192 2011-05-23  Bruno Haible  <bruno@clisp.org>
32194         closeout: Move AC_LIBOBJ invocations to module description.
32195         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
32196         * modules/closeout (Makefile.am): Augment lib_SOURCES.
32198 2011-05-23  Bruno Haible  <bruno@clisp.org>
32200         closein: Move AC_LIBOBJ invocations to module description.
32201         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
32202         * modules/closein (Makefile.am): Augment lib_SOURCES.
32204 2011-05-23  Bruno Haible  <bruno@clisp.org>
32206         cloexec: Move AC_LIBOBJ invocations to module description.
32207         * m4/cloexec.m4: Remove file.
32208         * modules/cloexec (Files): Remove it.
32209         (configure.ac): Remove gl_CLOEXEC call.
32210         (Makefile.am): Augment lib_SOURCES.
32212 2011-05-23  Bruno Haible  <bruno@clisp.org>
32214         check-version: Move AC_LIBOBJ invocations to module description.
32215         * m4/check-version.m4: Remove file.
32216         * modules/check-version (Files): Remove it.
32217         (configure.ac): Remove gl_CHECK_VERSION call.
32218         (Makefile.am): Augment lib_SOURCES.
32220 2011-05-23  Bruno Haible  <bruno@clisp.org>
32222         chdir-safer: Move AC_LIBOBJ invocations to module description.
32223         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
32224         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
32226 2011-05-23  Bruno Haible  <bruno@clisp.org>
32228         canonicalize: Move AC_LIBOBJ invocations to module description.
32229         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
32230         AC_LIBOBJ invocation.
32231         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
32233 2011-05-23  Bruno Haible  <bruno@clisp.org>
32235         canon-host: Move AC_LIBOBJ invocations to module description.
32236         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
32237         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
32238         instead of gl_CANON_HOST.
32239         (Makefile.am): Augment lib_SOURCES.
32241 2011-05-23  Bruno Haible  <bruno@clisp.org>
32243         backupfile: Move AC_LIBOBJ invocations to module description.
32244         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
32245         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
32247 2011-05-23  Bruno Haible  <bruno@clisp.org>
32249         argmatch: Move AC_LIBOBJ invocations to module description.
32250         * m4/argmatch.m4: Remove file.
32251         * modules/argmatch (Files): Remove it.
32252         (configure.ac): Remove gl_ARGMATCH call.
32253         (Makefile.am): Augment lib_SOURCES.
32255 2011-05-23  Bruno Haible  <bruno@clisp.org>
32257         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
32258         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
32259         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
32261 2011-05-23  Bruno Haible  <bruno@clisp.org>
32263         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
32264         * m4/arcfour.m4: Remove file.
32265         * modules/crypto/arcfour (Files): Remove it.
32266         (configure.ac): Remove gl_ARCFOUR call.
32267         (Makefile.am): Augment lib_SOURCES.
32269 2011-05-22  Bruno Haible  <bruno@clisp.org>
32271         write: Move AC_LIBOBJ invocations to module description.
32272         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
32273         * modules/write (configure.ac): ... to here.
32275 2011-05-22  Bruno Haible  <bruno@clisp.org>
32277         wmemset: Move AC_LIBOBJ invocations to module description.
32278         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
32279         here...
32280         * modules/wmemset (configure.ac): ... to here.
32282 2011-05-22  Bruno Haible  <bruno@clisp.org>
32284         wmemmove: Move AC_LIBOBJ invocations to module description.
32285         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
32286         here...
32287         * modules/wmemmove (configure.ac): ... to here.
32289 2011-05-22  Bruno Haible  <bruno@clisp.org>
32291         wmemcpy: Move AC_LIBOBJ invocations to module description.
32292         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
32293         here...
32294         * modules/wmemcpy (configure.ac): ... to here.
32296 2011-05-22  Bruno Haible  <bruno@clisp.org>
32298         wmemcmp: Move AC_LIBOBJ invocations to module description.
32299         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
32300         here...
32301         * modules/wmemcmp (configure.ac): ... to here.
32303 2011-05-22  Bruno Haible  <bruno@clisp.org>
32305         wmemchr: Move AC_LIBOBJ invocations to module description.
32306         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
32307         here...
32308         * modules/wmemchr (configure.ac): ... to here.
32310 2011-05-22  Bruno Haible  <bruno@clisp.org>
32312         wcswidth: Move AC_LIBOBJ invocations to module description.
32313         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
32314         here...
32315         * modules/wcswidth (configure.ac): ... to here.
32317 2011-05-22  Bruno Haible  <bruno@clisp.org>
32319         wcwidth: Respect rules for use of AC_LIBOBJ.
32320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
32321         invocation from here...
32322         * modules/wcwidth (configure.ac): ... to here.
32323         (Depends-on): Update conditions.
32325 2011-05-22  Bruno Haible  <bruno@clisp.org>
32327         wctype: Move AC_LIBOBJ invocations to module description.
32328         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
32329         invocation from here...
32330         * modules/wctype (configure.ac): ... to here.
32331         (Depends-on): Update conditions.
32333 2011-05-22  Bruno Haible  <bruno@clisp.org>
32335         wctrans: Move AC_LIBOBJ invocations to module description.
32336         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
32337         invocation from here...
32338         * modules/wctrans (configure.ac): ... to here.
32340 2011-05-22  Bruno Haible  <bruno@clisp.org>
32342         wctomb: Move AC_LIBOBJ invocations to module description.
32343         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
32344         invocations from here...
32345         * modules/wctomb (configure.ac): ... to here.
32347 2011-05-22  Bruno Haible  <bruno@clisp.org>
32349         wctob: Move AC_LIBOBJ invocations to module description.
32350         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
32351         gl_PREREQ_WCTOB invocations from here...
32352         * modules/wctob (configure.ac): ... to here.
32353         (Depends-on): Update conditions.
32355 2011-05-22  Bruno Haible  <bruno@clisp.org>
32357         wcsxfrm: Move AC_LIBOBJ invocations to module description.
32358         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
32359         here...
32360         * modules/wcsxfrm (configure.ac): ... to here.
32362 2011-05-22  Bruno Haible  <bruno@clisp.org>
32364         wcstok: Move AC_LIBOBJ invocations to module description.
32365         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
32366         * modules/wcstok (configure.ac): ... to here.
32368 2011-05-22  Bruno Haible  <bruno@clisp.org>
32370         wcsstr: Move AC_LIBOBJ invocations to module description.
32371         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
32372         * modules/wcsstr (configure.ac): ... to here.
32374 2011-05-22  Bruno Haible  <bruno@clisp.org>
32376         wcsspn: Move AC_LIBOBJ invocations to module description.
32377         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
32378         * modules/wcsspn (configure.ac): ... to here.
32380 2011-05-22  Bruno Haible  <bruno@clisp.org>
32382         wcsrtombs: Move AC_LIBOBJ invocations to module description.
32383         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
32384         gl_PREREQ_WCSRTOMBS invocations from here...
32385         * modules/wcsrtombs (configure.ac): ... to here.
32387 2011-05-22  Bruno Haible  <bruno@clisp.org>
32389         wcsrchr: Move AC_LIBOBJ invocations to module description.
32390         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
32391         here...
32392         * modules/wcsrchr (configure.ac): ... to here.
32394 2011-05-22  Bruno Haible  <bruno@clisp.org>
32396         wcspbrk: Move AC_LIBOBJ invocations to module description.
32397         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
32398         here...
32399         * modules/wcspbrk (configure.ac): ... to here.
32401 2011-05-22  Bruno Haible  <bruno@clisp.org>
32403         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
32404         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
32405         gl_PREREQ_WCSNRTOMBS invocations from here...
32406         * modules/wcsnrtombs (configure.ac): ... to here.
32408 2011-05-22  Bruno Haible  <bruno@clisp.org>
32410         wcsnlen: Move AC_LIBOBJ invocations to module description.
32411         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
32412         here...
32413         * modules/wcsnlen (configure.ac): ... to here.
32415 2011-05-22  Bruno Haible  <bruno@clisp.org>
32417         wcsncpy: Move AC_LIBOBJ invocations to module description.
32418         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
32419         here...
32420         * modules/wcsncpy (configure.ac): ... to here.
32422 2011-05-22  Bruno Haible  <bruno@clisp.org>
32424         wcsncmp: Move AC_LIBOBJ invocations to module description.
32425         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
32426         here...
32427         * modules/wcsncmp (configure.ac): ... to here.
32429 2011-05-22  Bruno Haible  <bruno@clisp.org>
32431         wcsncat: Move AC_LIBOBJ invocations to module description.
32432         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
32433         here...
32434         * modules/wcsncat (configure.ac): ... to here.
32436 2011-05-22  Bruno Haible  <bruno@clisp.org>
32438         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
32439         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
32440         from here...
32441         * modules/wcsncasecmp (configure.ac): ... to here.
32443 2011-05-22  Bruno Haible  <bruno@clisp.org>
32445         wcslen: Move AC_LIBOBJ invocations to module description.
32446         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
32447         * modules/wcslen (configure.ac): ... to here.
32449 2011-05-22  Bruno Haible  <bruno@clisp.org>
32451         wcsdup: Move AC_LIBOBJ invocations to module description.
32452         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
32453         * modules/wcsdup (configure.ac): ... to here.
32455 2011-05-22  Bruno Haible  <bruno@clisp.org>
32457         wcscspn: Move AC_LIBOBJ invocations to module description.
32458         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
32459         here...
32460         * modules/wcscspn (configure.ac): ... to here.
32462 2011-05-22  Bruno Haible  <bruno@clisp.org>
32464         wcscpy: Move AC_LIBOBJ invocations to module description.
32465         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
32466         * modules/wcscpy (configure.ac): ... to here.
32468 2011-05-22  Bruno Haible  <bruno@clisp.org>
32470         wcscoll: Move AC_LIBOBJ invocations to module description.
32471         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
32472         here...
32473         * modules/wcscoll (configure.ac): ... to here.
32475 2011-05-22  Bruno Haible  <bruno@clisp.org>
32477         wcscmp: Move AC_LIBOBJ invocations to module description.
32478         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
32479         * modules/wcscmp (configure.ac): ... to here.
32481 2011-05-22  Bruno Haible  <bruno@clisp.org>
32483         wcschr: Move AC_LIBOBJ invocations to module description.
32484         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
32485         * modules/wcschr (configure.ac): ... to here.
32487 2011-05-22  Bruno Haible  <bruno@clisp.org>
32489         wcscat: Move AC_LIBOBJ invocations to module description.
32490         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
32491         * modules/wcscat (configure.ac): ... to here.
32493 2011-05-22  Bruno Haible  <bruno@clisp.org>
32495         wcscasecmp: Move AC_LIBOBJ invocations to module description.
32496         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
32497         here...
32498         * modules/wcscasecmp (configure.ac): ... to here.
32500 2011-05-22  Bruno Haible  <bruno@clisp.org>
32502         wcrtomb: Move AC_LIBOBJ invocations to module description.
32503         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
32504         invocations from here...
32505         * modules/wcrtomb (configure.ac): ... to here.
32507 2011-05-22  Bruno Haible  <bruno@clisp.org>
32509         wcpncpy: Move AC_LIBOBJ invocations to module description.
32510         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
32511         here...
32512         * modules/wcpncpy (configure.ac): ... to here.
32514 2011-05-22  Bruno Haible  <bruno@clisp.org>
32516         wcpcpy: Move AC_LIBOBJ invocations to module description.
32517         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
32518         * modules/wcpcpy (configure.ac): ... to here.
32520 2011-05-22  Bruno Haible  <bruno@clisp.org>
32522         waitpid: Move AC_LIBOBJ invocations to module description.
32523         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
32524         invocation from here...
32525         * modules/waitpid (configure.ac): ... to here.
32527 2011-05-22  Bruno Haible  <bruno@clisp.org>
32529         utimensat: Move AC_LIBOBJ invocations to module description.
32530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
32531         here...
32532         * modules/utimensat (configure.ac): ... to here.
32534 2011-05-22  Bruno Haible  <bruno@clisp.org>
32536         usleep: Move AC_LIBOBJ invocations to module description.
32537         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
32538         here...
32539         * modules/usleep (configure.ac): ... to here.
32541 2011-05-22  Bruno Haible  <bruno@clisp.org>
32543         unlockpt: Move AC_LIBOBJ invocations to module description.
32544         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
32545         gl_PREREQ_UNLOCKPT invocations from here...
32546         * modules/unlockpt (configure.ac): ... to here.
32548 2011-05-22  Bruno Haible  <bruno@clisp.org>
32550         unlink: Respect rules for use of AC_LIBOBJ.
32551         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
32552         * modules/unlink (configure.ac): ... to here.
32554 2011-05-22  Bruno Haible  <bruno@clisp.org>
32556         uname: Move AC_LIBOBJ invocations to module description.
32557         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
32558         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
32559         here...
32560         * modules/uname (configure.ac): ... to here.
32562 2011-05-22  Bruno Haible  <bruno@clisp.org>
32564         ttyname_r: Move AC_LIBOBJ invocations to module description.
32565         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
32566         gl_PREREQ_TTYNAME_R invocations from here...
32567         * modules/ttyname_r (configure.ac): ... to here.
32569 2011-05-22  Bruno Haible  <bruno@clisp.org>
32571         tsearch: Move AC_LIBOBJ invocations to module description.
32572         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
32573         invocations from here...
32574         * modules/tsearch (configure.ac): ... to here.
32576 2011-05-22  Bruno Haible  <bruno@clisp.org>
32578         towctrans: Move AC_LIBOBJ invocations to module description.
32579         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
32580         AC_LIBOBJ invocation from here...
32581         * modules/towctrans (configure.ac): ... to here.
32583 2011-05-22  Bruno Haible  <bruno@clisp.org>
32585         tmpfile: Move AC_LIBOBJ invocations to module description.
32586         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
32587         invocations from here...
32588         * modules/tmpfile (configure.ac): ... to here.
32590 2011-05-22  Bruno Haible  <bruno@clisp.org>
32592         times: Move AC_LIBOBJ invocations to module description.
32593         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
32594         * modules/times (configure.ac): ... to here.
32596 2011-05-22  Bruno Haible  <bruno@clisp.org>
32598         time_r: Move AC_LIBOBJ invocations to module description.
32599         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
32600         invocations from here...
32601         * modules/time_r (configure.ac): ... to here.
32603 2011-05-22  Bruno Haible  <bruno@clisp.org>
32605         timegm: Move AC_LIBOBJ invocations to module description.
32606         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
32607         invocations from here...
32608         * modules/timegm (configure.ac): ... to here.
32610 2011-05-22  Bruno Haible  <bruno@clisp.org>
32612         tcgetsid: Move AC_LIBOBJ invocations to module description.
32613         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
32614         and gl_PREREQ_TCGETSID invocations from here...
32615         * modules/tcgetsid (configure.ac): ... to here.
32616         (Depends-on): Update conditions.
32618 2011-05-22  Bruno Haible  <bruno@clisp.org>
32620         symlinkat: Move AC_LIBOBJ invocations to module description.
32621         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
32622         here...
32623         * modules/symlinkat (configure.ac): ... to here.
32625 2011-05-22  Bruno Haible  <bruno@clisp.org>
32627         symlink: Move AC_LIBOBJ invocations to module description.
32628         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
32629         here...
32630         * modules/symlink (configure.ac): ... to here.
32632 2011-05-22  Bruno Haible  <bruno@clisp.org>
32634         strverscmp: Move AC_LIBOBJ invocations to module description.
32635         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
32636         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
32637         from here...
32638         * modules/strverscmp (configure.ac): ... to here.
32640 2011-05-22  Bruno Haible  <bruno@clisp.org>
32642         strtok_r: Move AC_LIBOBJ invocations to module description.
32643         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
32644         and gl_PREREQ_STRTOK_R invocations from here...
32645         * modules/strtok_r (configure.ac): ... to here.
32646         (Depends-on): Update conditions.
32648 2011-05-22  Bruno Haible  <bruno@clisp.org>
32650         strtoumax: Move AC_LIBOBJ invocations to module description.
32651         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
32652         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
32653         from here...
32654         * modules/strtoumax (configure.ac): ... to here.
32656 2011-05-22  Bruno Haible  <bruno@clisp.org>
32658         strtoimax: Move AC_LIBOBJ invocations to module description.
32659         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
32660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
32661         from here...
32662         * modules/strtoimax (configure.ac): ... to here.
32664 2011-05-22  Bruno Haible  <bruno@clisp.org>
32666         strtoull: Move AC_LIBOBJ invocations to module description.
32667         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
32668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
32669         from here...
32670         * modules/strtoull (configure.ac): ... to here.
32672 2011-05-22  Bruno Haible  <bruno@clisp.org>
32674         strtoll: Move AC_LIBOBJ invocations to module description.
32675         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
32676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
32677         here...
32678         * modules/strtoll (configure.ac): ... to here.
32680 2011-05-22  Bruno Haible  <bruno@clisp.org>
32682         strtoul: Move AC_LIBOBJ invocations to module description.
32683         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
32684         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32685         * modules/strtoul (configure.ac): ... to here.
32687 2011-05-22  Bruno Haible  <bruno@clisp.org>
32689         strtol: Move AC_LIBOBJ invocations to module description.
32690         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
32691         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32692         * modules/strtol (configure.ac): ... to here.
32694 2011-05-22  Bruno Haible  <bruno@clisp.org>
32696         strtod: Move AC_LIBOBJ invocations to module description.
32697         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
32698         invocations from here...
32699         * modules/strtod (configure.ac): ... to here.
32701 2011-05-22  Bruno Haible  <bruno@clisp.org>
32703         strstr*: Move AC_LIBOBJ invocations to module description.
32704         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
32705         invocations from here...
32706         * modules/strstr-simple (configure.ac): ... to here.
32707         * modules/strstr (configure.ac): ... and here.
32709 2011-05-22  Bruno Haible  <bruno@clisp.org>
32711         strsignal: Move AC_LIBOBJ invocations to module description.
32712         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
32713         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
32714         * modules/strsignal (configure.ac): ... to here.
32715         (Depends-on): Update conditions.
32717 2011-05-22  Bruno Haible  <bruno@clisp.org>
32719         strsep: Move AC_LIBOBJ invocations to module description.
32720         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
32721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
32722         here...
32723         * modules/strsep (configure.ac): ... to here.
32725 2011-05-22  Bruno Haible  <bruno@clisp.org>
32727         strptime: Move AC_LIBOBJ invocations to module description.
32728         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
32729         gl_PREREQ_STRPTIME invocations from here...
32730         * modules/strptime (configure.ac): ... to here.
32732 2011-05-22  Bruno Haible  <bruno@clisp.org>
32734         strpbrk: Move AC_LIBOBJ invocations to module description.
32735         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
32736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
32737         here...
32738         * modules/strpbrk (configure.ac): ... to here.
32740 2011-05-22  Bruno Haible  <bruno@clisp.org>
32742         strnlen: Move AC_LIBOBJ invocations to module description.
32743         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
32744         invocations from here...
32745         * modules/strnlen (configure.ac): ... to here.
32747 2011-05-22  Bruno Haible  <bruno@clisp.org>
32749         strndup: Move AC_LIBOBJ invocations to module description.
32750         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
32751         invocations from here...
32752         * modules/strndup (configure.ac): ... to here.
32753         (Depends-on): Update conditions.
32755 2011-05-22  Bruno Haible  <bruno@clisp.org>
32757         strncat: Move AC_LIBOBJ invocations to module description.
32758         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
32759         invocations from here...
32760         * modules/strncat (configure.ac): ... to here.
32762 2011-05-22  Bruno Haible  <bruno@clisp.org>
32764         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
32765         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
32766         invocations from here...
32767         * modules/strdup (configure.ac): ... to here.
32768         * modules/strdup-posix (configure.ac): ... and here.
32770 2011-05-22  Bruno Haible  <bruno@clisp.org>
32772         strcspn: Move AC_LIBOBJ invocations to module description.
32773         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
32774         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
32775         here...
32776         * modules/strcspn (configure.ac): ... to here.
32778 2011-05-22  Bruno Haible  <bruno@clisp.org>
32780         strchrnul: Move AC_LIBOBJ invocations to module description.
32781         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
32782         gl_PREREQ_STRCHRNUL invocations from here...
32783         * modules/strchrnul (configure.ac): ... to here.
32785 2011-05-22  Bruno Haible  <bruno@clisp.org>
32787         strcasestr*: Move AC_LIBOBJ invocations to module description.
32788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
32789         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
32790         * modules/strcasestr-simple (configure.ac): ... to here.
32791         * modules/strcasestr (configure.ac): ... and here.
32793 2011-05-22  Bruno Haible  <bruno@clisp.org>
32795         strcase: Move AC_LIBOBJ invocations to module description.
32796         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
32797         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
32798         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
32799         gl_PREREQ_STRNCASECMP invocations from here...
32800         * modules/strcase (configure.ac): ... to here.
32802 2011-05-22  Bruno Haible  <bruno@clisp.org>
32804         stpncpy: Move AC_LIBOBJ invocations to module description.
32805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
32806         here...
32807         * modules/stpncpy (configure.ac): ... to here.
32809 2011-05-22  Bruno Haible  <bruno@clisp.org>
32811         stpcpy: Move AC_LIBOBJ invocations to module description.
32812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
32813         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
32814         here...
32815         * modules/stpcpy (configure.ac): ... to here.
32817 2011-05-21  Bruno Haible  <bruno@clisp.org>
32819         stat: Move AC_LIBOBJ invocations to module description.
32820         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
32821         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
32822         here...
32823         * modules/stat (configure.ac): ... to here.
32825 2011-05-21  Bruno Haible  <bruno@clisp.org>
32827         sleep: Move AC_LIBOBJ invocations to module description.
32828         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
32829         * modules/sleep (configure.ac): ... to here.
32831 2011-05-21  Bruno Haible  <bruno@clisp.org>
32833         signbit: Move AC_LIBOBJ invocations to module description.
32834         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
32835         * modules/signbit (configure.ac): ... to here.
32837 2011-05-21  Bruno Haible  <bruno@clisp.org>
32839         sigprocmask: Move AC_LIBOBJ invocations to module description.
32840         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
32841         gl_PREREQ_SIGPROMASK invocations from here...
32842         * modules/sigprocmask (configure.ac): ... to here.
32844 2011-05-21  Bruno Haible  <bruno@clisp.org>
32846         sigaction: Move AC_LIBOBJ invocations to module description.
32847         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
32848         gl_PREREQ_SIGACTION invocations from here...
32849         * modules/sigaction (configure.ac): ... to here.
32851 2011-05-21  Bruno Haible  <bruno@clisp.org>
32853         sig2str: Move AC_LIBOBJ invocations to module description.
32854         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
32855         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
32856         here...
32857         * modules/sig2str (configure.ac): ... to here.
32859 2011-05-21  Bruno Haible  <bruno@clisp.org>
32861         setlocale: Move AC_LIBOBJ invocations to module description.
32862         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
32863         gl_PREREQ_SETLOCALE invocations from here...
32864         * modules/setlocale (configure.ac): ... to here.
32866 2011-05-21  Bruno Haible  <bruno@clisp.org>
32868         unsetenv: Move AC_LIBOBJ invocations to module description.
32869         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
32870         and gl_PREREQ_UNSETENV invocations from here...
32871         * modules/unsetenv (configure.ac): ... to here.
32872         (Depends-on): Update.
32874 2011-05-21  Bruno Haible  <bruno@clisp.org>
32876         setenv: Move AC_LIBOBJ invocations to module description.
32877         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
32878         here...
32879         * modules/setenv (configure.ac): ... to here.
32881 2011-05-21  Bruno Haible  <bruno@clisp.org>
32883         selinux-h: Move AC_LIBOBJ invocations to module description.
32884         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
32885         AC_LIBOBJ invocation from here...
32886         * modules/selinux-h (configure.ac): ... to here.
32888 2011-05-21  Bruno Haible  <bruno@clisp.org>
32890         select: Respect rules for use of AC_LIBOBJ.
32891         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
32892         here...
32893         * modules/select (configure.ac): ... to here.
32895 2011-05-21  Bruno Haible  <bruno@clisp.org>
32897         scandir: Move AC_LIBOBJ invocations to module description.
32898         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
32899         invocations from here...
32900         * modules/scandir (configure.ac): ... to here.
32902 2011-05-21  Bruno Haible  <bruno@clisp.org>
32904         rpmatch: Move AC_LIBOBJ invocations to module description.
32905         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
32906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
32907         here...
32908         * modules/rpmatch (configure.ac): ... to here.
32910 2011-05-21  Bruno Haible  <bruno@clisp.org>
32912         rmdir: Respect rules for use of AC_LIBOBJ.
32913         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
32914         * modules/rmdir (configure.ac): ... to here.
32916 2011-05-21  Bruno Haible  <bruno@clisp.org>
32918         renameat: Move AC_LIBOBJ invocations to module description.
32919         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
32920         here...
32921         * modules/renameat (configure.ac): ... to here.
32923 2011-05-21  Bruno Haible  <bruno@clisp.org>
32925         rename: Respect rules for use of AC_LIBOBJ.
32926         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
32927         here...
32928         * modules/rename (configure.ac): ... to here.
32930 2011-05-21  Bruno Haible  <bruno@clisp.org>
32932         remove: Move AC_LIBOBJ invocations to module description.
32933         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
32934         here...
32935         * modules/remove (configure.ac): ... to here.
32937 2011-05-21  Bruno Haible  <bruno@clisp.org>
32939         relocatable-lib: Move AC_LIBOBJ invocations to module description.
32940         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
32941         macro.
32942         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
32943         * modules/relocatable-lib (configure.ac): ... to here.
32944         * modules/relocatable-prog-wrapper (configure.ac): Invoke
32945         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
32947 2011-05-21  Bruno Haible  <bruno@clisp.org>
32949         relocatable-prog: Move AC_LIBOBJ invocations to module description.
32950         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
32951         here...
32952         * modules/relocatable-prog (configure.ac): ... to here.
32954 2011-05-21  Bruno Haible  <bruno@clisp.org>
32956         regex: Move AC_LIBOBJ invocations to module description.
32957         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
32958         invocations from here...
32959         * modules/regex (configure.ac): ... to here.
32961 2011-05-21  Bruno Haible  <bruno@clisp.org>
32963         realloc-*: Move AC_LIBOBJ invocations to module description.
32964         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
32965         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
32966         AC_LIBOBJ invocations from here...
32967         * modules/realloc-gnu (configure.ac): ... to here.
32968         * modules/realloc-posix (configure.ac): ... and here.
32970 2011-05-21  Bruno Haible  <bruno@clisp.org>
32972         readutmp: Move AC_LIBOBJ invocations to module description.
32973         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
32974         * modules/readutmp (configure.ac): ... to here.
32976 2011-05-21  Bruno Haible  <bruno@clisp.org>
32978         readlinkat: Move AC_LIBOBJ invocations to module description.
32979         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
32980         here...
32981         * modules/readlinkat (configure.ac): ... to here.
32983 2011-05-21  Bruno Haible  <bruno@clisp.org>
32985         readlink: Move AC_LIBOBJ invocations to module description.
32986         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
32987         gl_PREREQ_READLINK invocations from here...
32988         * modules/readlink (configure.ac): ... to here.
32990 2011-05-21  Bruno Haible  <bruno@clisp.org>
32992         readline: Move AC_LIBOBJ invocations to module description.
32993         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
32994         gl_PREREQ_READLINE invocations from here...
32995         * modules/readline (configure.ac): ... to here.
32997 2011-05-21  Bruno Haible  <bruno@clisp.org>
32999         read: Move AC_LIBOBJ invocations to module description.
33000         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
33001         * modules/read (configure.ac): ... to here.
33003 2011-05-21  Bruno Haible  <bruno@clisp.org>
33005         rawmemchr: Move AC_LIBOBJ invocations to module description.
33006         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
33007         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
33008         from here...
33009         * modules/rawmemchr (configure.ac): ... to here.
33011 2011-05-21  Bruno Haible  <bruno@clisp.org>
33013         random_r: Move AC_LIBOBJ invocations to module description.
33014         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
33015         gl_PREREQ_RANDOM_R invocations from here...
33016         * modules/random_r (configure.ac): ... to here.
33018 2011-05-21  Bruno Haible  <bruno@clisp.org>
33020         pwrite: Move AC_LIBOBJ invocations to module description.
33021         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
33022         * modules/pwrite (configure.ac): ... to here.
33024 2011-05-21  Bruno Haible  <bruno@clisp.org>
33026         putenv: Move AC_LIBOBJ invocations to module description.
33027         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
33028         * modules/putenv (configure.ac): ... to here.
33030 2011-05-21  Bruno Haible  <bruno@clisp.org>
33032         login_tty: Move AC_LIBOBJ invocations to module description.
33033         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
33034         * modules/login_tty (configure.ac): ... to here.
33036 2011-05-21  Bruno Haible  <bruno@clisp.org>
33038         openpty: Move AC_LIBOBJ invocations to module description.
33039         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
33040         * modules/openpty (configure.ac): ... to here.
33042 2011-05-21  Bruno Haible  <bruno@clisp.org>
33044         forkpty: Move AC_LIBOBJ invocations to module description.
33045         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
33046         * modules/forkpty (configure.ac): ... to here.
33048 2011-05-21  Bruno Haible  <bruno@clisp.org>
33050         ptsname: Move AC_LIBOBJ invocations to module description.
33051         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
33052         invocations from here...
33053         * modules/ptsname (configure.ac): ... to here.
33055 2011-05-21  Bruno Haible  <bruno@clisp.org>
33057         pread: Move AC_LIBOBJ invocations to module description.
33058         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
33059         * modules/pread (configure.ac): ... to here.
33061 2011-05-21  Bruno Haible  <bruno@clisp.org>
33063         posix_spawn*: Move AC_LIBOBJ invocations to module description.
33064         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
33065         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
33066         * modules/posix_spawn (configure.ac): ... to here.
33067         * modules/posix_spawnp (configure.ac): ... and here.
33069 2011-05-21  Bruno Haible  <bruno@clisp.org>
33071         popen: Move AC_LIBOBJ invocations to module description.
33072         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
33073         invocations from here...
33074         * modules/popen (configure.ac): ... to here.
33076 2011-05-21  Bruno Haible  <bruno@clisp.org>
33078         poll: Move AC_LIBOBJ invocations to module description.
33079         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
33080         invocations from here...
33081         * modules/poll (configure.ac): ... to here.
33083 2011-05-21  Bruno Haible  <bruno@clisp.org>
33085         pipe-posix: Move AC_LIBOBJ invocations to module description.
33086         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
33087         * modules/pipe-posix (configure.ac): ... to here.
33089 2011-05-21  Bruno Haible  <bruno@clisp.org>
33091         openat: Respect rules for use of AC_LIBOBJ.
33092         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
33093         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33094         * modules/openat (configure.ac): ... to here.
33096 2011-05-21  Bruno Haible  <bruno@clisp.org>
33098         obstack-printf*: Move AC_LIBOBJ invocations to module description.
33099         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
33100         invocation from here...
33101         * modules/obstack-printf (configure.ac): ... to here.
33102         * modules/obstack-printf-posix (configure.ac): ... and here.
33104 2011-05-21  Bruno Haible  <bruno@clisp.org>
33106         nl_langinfo: Move AC_LIBOBJ invocations to module description.
33107         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
33108         from here...
33109         * modules/nl_langinfo (configure.ac): ... to here.
33111 2011-05-21  Bruno Haible  <bruno@clisp.org>
33113         nanosleep: Move AC_LIBOBJ invocations to module description.
33114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
33115         gl_PREREQ_NANOSLEEP invocations from here...
33116         * modules/nanosleep (configure.ac): ... to here.
33118 2011-05-21  Bruno Haible  <bruno@clisp.org>
33120         mountlist: Move AC_LIBOBJ invocations to module description.
33121         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
33122         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
33123         * modules/mountlist (configure.ac): ... to here.
33125 2011-05-21  Bruno Haible  <bruno@clisp.org>
33127         mktime: Respect rules for use of AC_LIBOBJ.
33128         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
33129         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
33130         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
33131         (gl_FUNC_MKTIME_INTERNAL): ... and here...
33132         * modules/mktime (configure.ac): ... to here.
33133         * modules/mktime-internal (configure.ac): ... and here.
33134         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
33136 2011-05-21  Bruno Haible  <bruno@clisp.org>
33138         mkstemps: Move AC_LIBOBJ invocations to module description.
33139         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
33140         here...
33141         * modules/mkstemps (configure.ac): ... to here.
33143 2011-05-21  Bruno Haible  <bruno@clisp.org>
33145         mkstemp: Move AC_LIBOBJ invocations to module description.
33146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
33147         gl_PREREQ_MKSTEMP invocations from here...
33148         * modules/mkstemp (configure.ac): ... to here.
33150 2011-05-21  Bruno Haible  <bruno@clisp.org>
33152         mkostemps: Move AC_LIBOBJ invocations to module description.
33153         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
33154         here...
33155         * modules/mkostemps (configure.ac): ... to here.
33157 2011-05-21  Bruno Haible  <bruno@clisp.org>
33159         mkostemp: Move AC_LIBOBJ invocations to module description.
33160         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
33161         gl_PREREQ_MKOSTEMP invocations from here...
33162         * modules/mkostemp (configure.ac): ... to here.
33164 2011-05-21  Bruno Haible  <bruno@clisp.org>
33166         mknod: Move AC_LIBOBJ invocations to module description.
33167         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
33168         * modules/mknod (configure.ac): ... to here.
33170 2011-05-21  Bruno Haible  <bruno@clisp.org>
33172         mkfifoat: Move AC_LIBOBJ invocations to module description.
33173         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
33174         here...
33175         * modules/mkfifoat (configure.ac): ... to here.
33177 2011-05-21  Bruno Haible  <bruno@clisp.org>
33179         mkfifo: Respect rules for use of AC_LIBOBJ.
33180         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
33181         here...
33182         * modules/mkfifo (configure.ac): ... to here.
33184 2011-05-21  Bruno Haible  <bruno@clisp.org>
33186         mkdtemp: Move AC_LIBOBJ invocations to module description.
33187         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
33188         invocations from here...
33189         * modules/mkdtemp (configure.ac): ... to here.
33191 2011-05-21  Bruno Haible  <bruno@clisp.org>
33193         mkdir: Move AC_LIBOBJ invocations to module description.
33194         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
33195         * modules/mkdir (configure.ac): ... to here.
33197 2011-05-21  Bruno Haible  <bruno@clisp.org>
33199         memset: Move AC_LIBOBJ invocations to module description.
33200         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
33201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
33202         here...
33203         * modules/memset (configure.ac): ... to here.
33205 2011-05-21  Bruno Haible  <bruno@clisp.org>
33207         memrchr: Move AC_LIBOBJ invocations to module description.
33208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
33209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
33210         here...
33211         * modules/memrchr (configure.ac): ... to here.
33213 2011-05-21  Bruno Haible  <bruno@clisp.org>
33215         mempcpy: Move AC_LIBOBJ invocations to module description.
33216         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
33217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
33218         here...
33219         * modules/mempcpy (configure.ac): ... to here.
33221 2011-05-21  Bruno Haible  <bruno@clisp.org>
33223         memmove: Move AC_LIBOBJ invocations to module description.
33224         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
33225         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
33226         here...
33227         * modules/memmove (configure.ac): ... to here.
33229 2011-05-21  Bruno Haible  <bruno@clisp.org>
33231         memmem*: Move AC_LIBOBJ invocations to module description.
33232         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
33233         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
33234         here...
33235         (gl_FUNC_MEMMEM): ... and here...
33236         * modules/memmem-simple (configure.ac): ... to here.
33237         * modules/memmem (configure.ac): ... and here.
33239 2011-05-21  Bruno Haible  <bruno@clisp.org>
33241         memcpy: Move AC_LIBOBJ invocations to module description.
33242         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
33243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
33244         here...
33245         * modules/memcpy (configure.ac): ... to here.
33247 2011-05-21  Bruno Haible  <bruno@clisp.org>
33249         memcmp: Simplify autoconf macro.
33250         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
33251         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
33252         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
33254 2011-05-21  Bruno Haible  <bruno@clisp.org>
33256         memcmp: Move AC_LIBOBJ invocations to module description.
33257         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
33258         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
33259         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
33260         * modules/memcmp (configure.ac): ... to here.
33261         (Depends-on): Update conditions.
33263 2011-05-21  Bruno Haible  <bruno@clisp.org>
33265         memchr: Respect rules for use of AC_LIBOBJ.
33266         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
33267         invocations from here...
33268         * modules/memchr (configure.ac): ... to here.
33270 2011-05-21  Bruno Haible  <bruno@clisp.org>
33272         mbtowc: Move AC_LIBOBJ invocations to module description.
33273         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
33274         invocations from here...
33275         * modules/mbtowc (configure.ac): ... to here.
33277 2011-05-21  Bruno Haible  <bruno@clisp.org>
33279         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
33280         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
33281         gl_PREREQ_MBSRTOWCS invocations from here...
33282         * modules/mbsrtowcs (configure.ac): ... to here.
33284 2011-05-21  Bruno Haible  <bruno@clisp.org>
33286         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
33287         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
33288         gl_PREREQ_MBSNRTOWCS invocations from here...
33289         * modules/mbsnrtowcs (configure.ac): ... to here.
33291 2011-05-21  Bruno Haible  <bruno@clisp.org>
33293         mbsinit: Move AC_LIBOBJ invocations to module description.
33294         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
33295         invocations from here...
33296         * modules/mbsinit (configure.ac): ... to here.
33298 2011-05-21  Bruno Haible  <bruno@clisp.org>
33300         mbrlen: Move AC_LIBOBJ invocations to module description.
33301         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
33302         invocations from here...
33303         * modules/mbrlen (configure.ac): ... to here.
33305 2011-05-21  Bruno Haible  <bruno@clisp.org>
33307         mbrtowc: Respect rules for use of AC_LIBOBJ.
33308         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
33309         invocations from here...
33310         * modules/mbrtowc (configure.ac): ... to here.
33312 2011-05-21  Bruno Haible  <bruno@clisp.org>
33314         malloc-*: Move AC_LIBOBJ invocations to module description.
33315         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
33316         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
33317         AC_LIBOBJ invocations from here...
33318         * modules/malloc-gnu (configure.ac): ... to here.
33319         * modules/malloc-posix (configure.ac): ... and here.
33321 2011-05-21  Bruno Haible  <bruno@clisp.org>
33323         lstat, openat: Respect rules for use of AC_LIBOBJ.
33324         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
33325         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
33326         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
33327         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
33328         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
33329         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
33330         here.
33331         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
33333 2011-05-21  Bruno Haible  <bruno@clisp.org>
33335         lseek: Move AC_LIBOBJ invocations to module description.
33336         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
33337         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
33338         * modules/lseek (configure.ac): ... to here.
33340 2011-05-21  Bruno Haible  <bruno@clisp.org>
33342         linkat: Move AC_LIBOBJ invocations to module description.
33343         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
33344         here...
33345         * modules/linkat (configure.ac): ... to here.
33347 2011-05-21  Bruno Haible  <bruno@clisp.org>
33349         link: Respect rules for use of AC_LIBOBJ.
33350         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
33351         * modules/link (configure.ac): ... to here.
33353 2011-05-21  Bruno Haible  <bruno@clisp.org>
33355         lchown: Move AC_LIBOBJ invocations to module description.
33356         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
33357         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33358         * modules/lchown (configure.ac): ... to here.
33360 2011-05-21  Bruno Haible  <bruno@clisp.org>
33362         iswctype: Move AC_LIBOBJ invocations to module description.
33363         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
33364         here...
33365         * modules/iswctype (configure.ac): ... to here.
33367 2011-05-21  Bruno Haible  <bruno@clisp.org>
33369         iswblank: Move AC_LIBOBJ invocations to module description.
33370         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
33371         here...
33372         * modules/iswblank (configure.ac): ... to here.
33374 2011-05-21  Bruno Haible  <bruno@clisp.org>
33376         atanl: Move AC_LIBOBJ invocations to module description.
33377         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
33378         * modules/atanl (configure.ac): ... to here.
33380 2011-05-21  Bruno Haible  <bruno@clisp.org>
33382         acosl: Move AC_LIBOBJ invocations to module description.
33383         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
33384         * modules/acosl (configure.ac): ... to here.
33386 2011-05-21  Bruno Haible  <bruno@clisp.org>
33388         asinl: Respect rules for use of AC_LIBOBJ.
33389         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
33390         * modules/asinl (configure.ac): ... to here.
33392 2011-05-21  Bruno Haible  <bruno@clisp.org>
33394         tanl: Move AC_LIBOBJ invocations to module description.
33395         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
33396         * modules/tanl (configure.ac): ... to here.
33398 2011-05-21  Bruno Haible  <bruno@clisp.org>
33400         cosl: Move AC_LIBOBJ invocations to module description.
33401         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
33402         * modules/cosl (configure.ac): ... to here.
33404 2011-05-21  Bruno Haible  <bruno@clisp.org>
33406         sinl: Move AC_LIBOBJ invocations to module description.
33407         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
33408         * modules/sinl (configure.ac): ... to here.
33410 2011-05-21  Bruno Haible  <bruno@clisp.org>
33412         logl: Move AC_LIBOBJ invocations to module description.
33413         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
33414         * modules/logl (configure.ac): ... to here.
33416 2011-05-21  Bruno Haible  <bruno@clisp.org>
33418         expl: Move AC_LIBOBJ invocations to module description.
33419         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
33420         * modules/expl (configure.ac): ... to here.
33422 2011-05-21  Bruno Haible  <bruno@clisp.org>
33424         roundl: Move AC_LIBOBJ invocations to module description.
33425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
33426         * modules/roundl (configure.ac): ... to here.
33428 2011-05-21  Bruno Haible  <bruno@clisp.org>
33430         round: Move AC_LIBOBJ invocations to module description.
33431         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
33432         * modules/round (configure.ac): ... to here.
33434 2011-05-21  Bruno Haible  <bruno@clisp.org>
33436         roundf: Move AC_LIBOBJ invocations to module description.
33437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
33438         * modules/roundf (configure.ac): ... to here.
33440 2011-05-21  Bruno Haible  <bruno@clisp.org>
33442         truncl: Move AC_LIBOBJ invocations to module description.
33443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
33444         * modules/truncl (configure.ac): ... to here.
33446 2011-05-21  Bruno Haible  <bruno@clisp.org>
33448         trunc: Move AC_LIBOBJ invocations to module description.
33449         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
33450         * modules/trunc (configure.ac): ... to here.
33452 2011-05-21  Bruno Haible  <bruno@clisp.org>
33454         truncf: Move AC_LIBOBJ invocations to module description.
33455         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
33456         * modules/truncf (configure.ac): ... to here.
33458 2011-05-21  Bruno Haible  <bruno@clisp.org>
33460         ceill: Move AC_LIBOBJ invocations to module description.
33461         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
33462         * modules/ceill (configure.ac): ... to here.
33464 2011-05-21  Bruno Haible  <bruno@clisp.org>
33466         ceil: Move AC_LIBOBJ invocations to module description.
33467         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
33468         * modules/ceil (configure.ac): ... to here.
33470 2011-05-21  Bruno Haible  <bruno@clisp.org>
33472         ceilf: Move AC_LIBOBJ invocations to module description.
33473         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
33474         * modules/ceilf (configure.ac): ... to here.
33476 2011-05-21  Bruno Haible  <bruno@clisp.org>
33478         floorl: Respect rules for use of AC_LIBOBJ.
33479         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
33480         * modules/floorl (configure.ac): ... to here.
33482 2011-05-21  Bruno Haible  <bruno@clisp.org>
33484         floor: Respect rules for use of AC_LIBOBJ.
33485         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
33486         * modules/floor (configure.ac): ... to here.
33488 2011-05-21  Bruno Haible  <bruno@clisp.org>
33490         floorf: Move AC_LIBOBJ invocations to module description.
33491         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
33492         * modules/floorf (configure.ac): ... to here.
33494 2011-05-20  Bruno Haible  <bruno@clisp.org>
33496         sqrtl: Respect rules for use of AC_LIBOBJ.
33497         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
33498         * modules/sqrtl (configure.ac): ... to here.
33500 2011-05-20  Bruno Haible  <bruno@clisp.org>
33502         ldexpl: Respect rules for use of AC_LIBOBJ.
33503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
33504         * modules/ldexpl (configure.ac): ... to here.
33506 2011-05-20  Bruno Haible  <bruno@clisp.org>
33508         frexpl*: Respect rules for use of AC_LIBOBJ.
33509         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
33510         invocation from here...
33511         * modules/frexpl (configure.ac): ... to here.
33512         * modules/frexpl-nolibm (configure.ac): ... and here.
33514 2011-05-20  Bruno Haible  <bruno@clisp.org>
33516         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
33517         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
33518         invocation from here...
33519         * modules/frexp (configure.ac): ... to here.
33520         * modules/frexp-nolibm (configure.ac): ... and here.
33522 2011-05-20  Bruno Haible  <bruno@clisp.org>
33524         isnan: Respect rules for use of AC_LIBOBJ.
33525         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
33526         invocations here.
33527         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
33528         REPLACE_ISNAN.
33529         * modules/isnand (configure.ac): Likewise.
33530         * modules/isnanl (configure.ac): Likewise.
33532 2011-05-20  Bruno Haible  <bruno@clisp.org>
33534         isnanl*: Respect rules for use of AC_LIBOBJ.
33535         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
33536         invocation from here...
33537         * modules/isnanl (configure.ac): ... to here.
33538         * modules/isnanl-nolibm (configure.ac): ... and here.
33540 2011-05-20  Bruno Haible  <bruno@clisp.org>
33542         isnand*: Move AC_LIBOBJ invocations to module description.
33543         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
33544         invocation from here...
33545         * modules/isnand (configure.ac): ... to here.
33546         * modules/isnand-nolibm (configure.ac): ... and here.
33548 2011-05-20  Bruno Haible  <bruno@clisp.org>
33550         isnanf*: Move AC_LIBOBJ invocations to module description.
33551         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
33552         invocation from here...
33553         * modules/isnanf (configure.ac): ... to here.
33554         * modules/isnanf-nolibm (configure.ac): ... and here.
33556 2011-05-20  Bruno Haible  <bruno@clisp.org>
33558         isnan*: Separate the AC_LIBOBJ invocations.
33559         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
33560         AC_LIBOBJ invocation.
33561         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
33562         here.
33563         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
33564         AC_LIBOBJ invocation.
33565         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
33566         here.
33567         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
33568         AC_LIBOBJ invocation.
33569         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
33570         here.
33571         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
33573 2011-05-08  Bruno Haible  <bruno@clisp.org>
33575         isinf: Move AC_LIBOBJ invocations to module description.
33576         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
33577         * modules/isinf (configure.ac): ... to here.
33579 2011-05-08  Bruno Haible  <bruno@clisp.org>
33581         isfinite: Move AC_LIBOBJ invocations to module description.
33582         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
33583         * modules/isfinite (configure.ac): ... to here.
33585 2011-05-08  Bruno Haible  <bruno@clisp.org>
33587         isblank: Move AC_LIBOBJ invocations to module description.
33588         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
33589         here...
33590         * modules/isblank (configure.ac): ... to here.
33592 2011-05-08  Bruno Haible  <bruno@clisp.org>
33594         isapipe: Move AC_LIBOBJ invocations to module description.
33595         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
33596         gl_PREREQ_ISAPIPE invocations from here...
33597         * modules/isapipe (configure.ac): ... to here.
33598         (Depends-on): Update condition.
33600 2011-05-08  Bruno Haible  <bruno@clisp.org>
33602         ioctl: Move AC_LIBOBJ invocations to module description.
33603         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
33604         invocations from here...
33605         * modules/ioctl (configure.ac): ... to here.
33606         (Depends-on): Update condition.
33608 2011-05-08  Bruno Haible  <bruno@clisp.org>
33610         imaxdiv: Move AC_LIBOBJ invocations to module description.
33611         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
33612         invocations from here...
33613         * modules/imaxdiv (configure.ac): ... to here.
33615 2011-05-08  Bruno Haible  <bruno@clisp.org>
33617         imaxabs: Move AC_LIBOBJ invocations to module description.
33618         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
33619         invocations from here...
33620         * modules/imaxabs (configure.ac): ... to here.
33622 2011-05-08  Bruno Haible  <bruno@clisp.org>
33624         getaddrinfo: Move AC_LIBOBJ invocations to module description.
33625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
33626         AC_LIBOBJ invocations from here...
33627         * modules/getaddrinfo (configure.ac): ... to here.
33628         (Depends-on): Add conditions.
33630 2011-05-08  Bruno Haible  <bruno@clisp.org>
33632         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33633         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
33634         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33635         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
33636         (gl_PREREQ_INET_PTON): ... from here.
33637         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
33638         gl_PREREQ_INET_PTON here.
33639         (Depends-on): Update condition.
33641 2011-05-08  Bruno Haible  <bruno@clisp.org>
33643         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33644         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
33645         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33646         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
33647         (gl_PREREQ_INET_NTOP): ... from here.
33648         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
33649         gl_PREREQ_INET_NTOP here.
33650         (Depends-on): Update condition.
33652 2011-05-08  Bruno Haible  <bruno@clisp.org>
33654         iconv_open: Move AC_LIBOBJ invocations to module description.
33655         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
33656         AC_LIBOBJ invocations from here...
33657         * modules/iconv_open (configure.ac): ... to here.
33659 2011-05-08  Bruno Haible  <bruno@clisp.org>
33661         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
33662         If module 'iconv_open' is among the main modules and module
33663         'iconv_open-utf' is among the tests dependencies, then
33664         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
33665         return the special iconv_t values. Therefore iconv() and iconv_close()
33666         must support these special iconv_t values, already in lib, not only in
33667         tests.
33668         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
33669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
33670         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
33671         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
33672         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
33673         (Depends-on): Add the dependencies of iconv_open-utf.
33674         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
33675         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
33676         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
33678 2011-05-08  Bruno Haible  <bruno@clisp.org>
33680         group-member: Move AC_LIBOBJ invocations to module description.
33681         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
33682         gl_PREREQ_GROUP_MEMBER invocations from here...
33683         * modules/group-member (configure.ac): ... to here.
33685 2011-05-08  Bruno Haible  <bruno@clisp.org>
33687         grantpt: Move AC_LIBOBJ invocations to module description.
33688         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
33689         invocations from here...
33690         * modules/grantpt (configure.ac): ... to here.
33692 2011-05-08  Bruno Haible  <bruno@clisp.org>
33694         glob: Move AC_LIBOBJ invocations to module description.
33695         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
33696         from here...
33697         * modules/glob (configure.ac): ... to here.
33699 2011-05-08  Bruno Haible  <bruno@clisp.org>
33701         getusershell: Move AC_LIBOBJ invocations to module description.
33702         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
33703         Move AC_LIBOBJ invocation from here...
33704         * modules/getusershell (configure.ac): ... to here.
33705         (Depends-on): Update condition.
33707 2011-05-08  Bruno Haible  <bruno@clisp.org>
33709         gettimeofday: Move AC_LIBOBJ invocations to module description.
33710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33711         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
33712         gl_PREREQ_GETTIMEOFDAY invocations from here...
33713         * modules/gettimeofday (configure.ac): ... to here.
33715 2011-05-08  Bruno Haible  <bruno@clisp.org>
33717         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
33718         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
33719         just gl_FUNC_TZSET.
33720         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
33721         (gl_FUNC_TZSET_CLOBBER): Remove actions.
33722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
33723         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
33725 2011-05-08  Bruno Haible  <bruno@clisp.org>
33727         getsubopt: Move AC_LIBOBJ invocations to module description.
33728         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
33729         gl_PREREQ_GETSUBOPT invocations from here...
33730         * modules/getsubopt (configure.ac): ... to here.
33732 2011-05-08  Bruno Haible  <bruno@clisp.org>
33734         getpass-gnu: Move AC_LIBOBJ invocations to module description.
33735         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
33736         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
33737         * modules/getpass-gnu (configure.ac): ... to here.
33739 2011-05-08  Bruno Haible  <bruno@clisp.org>
33741         getpass: Move AC_LIBOBJ invocations to module description.
33742         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
33743         gl_PREREQ_GETPASS invocations from here...
33744         * modules/getpass (configure.ac): ... to here.
33746 2011-05-08  Bruno Haible  <bruno@clisp.org>
33748         getpagesize: Move AC_LIBOBJ invocations to module description.
33749         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
33750         from here...
33751         * modules/getpagesize (configure.ac): ... to here.
33753 2011-05-08  Bruno Haible  <bruno@clisp.org>
33755         getopt: Move AC_LIBOBJ invocations to module description.
33756         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
33757         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
33758         invocations from here...
33759         * modules/getopt-gnu (configure.ac): ... to here.
33760         * modules/getopt-posix (configure.ac): ... and here.
33761         (Depends-on): Update condition.
33763 2011-05-08  Bruno Haible  <bruno@clisp.org>
33765         getopt, argp: Respect rules for use of AC_LIBOBJ.
33766         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
33767         (gl_REPLACE_GETOPT_ALWAYS): New macro.
33768         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
33769         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
33771 2011-05-08  Bruno Haible  <bruno@clisp.org>
33773         getlogin_r: Move AC_LIBOBJ invocations to module description.
33774         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
33775         gl_PREREQ_GETLOGIN_R invocations from here...
33776         * modules/getlogin_r (configure.ac): ... to here.
33778 2011-05-08  Bruno Haible  <bruno@clisp.org>
33780         getlogin: Move AC_LIBOBJ invocations to module description.
33781         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
33782         here...
33783         * modules/getlogin (configure.ac): ... to here.
33785 2011-05-08  Bruno Haible  <bruno@clisp.org>
33787         getloadavg: Move AC_LIBOBJ invocations to module description.
33788         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
33789         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
33790         * modules/getloadavg (configure.ac): ... to here.
33792 2011-05-08  Bruno Haible  <bruno@clisp.org>
33794         gethrxtime: Move AC_LIBOBJ invocations to module description.
33795         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
33796         LIB_GETHRXTIME from here...
33797         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
33798         invocations from here...
33799         * modules/gethrxtime (configure.ac): ... to here.
33801 2011-05-08  Bruno Haible  <bruno@clisp.org>
33803         gethostname: Move AC_LIBOBJ invocations to module description.
33804         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
33805         gl_PREREQ_GETHOSTNAME invocations from here...
33806         * modules/gethostname (configure.ac): ... to here.
33808 2011-05-08  Bruno Haible  <bruno@clisp.org>
33810         getgroups: Move AC_LIBOBJ invocations to module description.
33811         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
33812         here...
33813         * modules/getgroups (configure.ac): ... to here.
33815 2011-05-08  Bruno Haible  <bruno@clisp.org>
33817         getdtablesize: Move AC_LIBOBJ invocations to module description.
33818         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
33819         invocation from here...
33820         * modules/getdtablesize (configure.ac): ... to here.
33822 2011-05-08  Bruno Haible  <bruno@clisp.org>
33824         getdomainname: Move AC_LIBOBJ invocations to module description.
33825         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
33826         gl_PREREQ_GETDOMAINNAME invocations from here...
33827         * modules/getdomainname (configure.ac): ... to here.
33829 2011-05-08  Bruno Haible  <bruno@clisp.org>
33831         getline: Move AC_LIBOBJ invocations to module description.
33832         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
33833         invocations from here...
33834         * modules/getline (configure.ac): ... to here.
33836 2011-05-08  Bruno Haible  <bruno@clisp.org>
33838         getline: Simplify.
33839         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
33840         It's already handled through the module dependency.
33842 2011-05-08  Bruno Haible  <bruno@clisp.org>
33844         getdelim: Move AC_LIBOBJ invocations to module description.
33845         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
33846         and gl_PREREQ_GETDELIM invocations from here...
33847         * modules/getdelim (configure.ac): ... to here.
33848         (Depends-on): Fix condition.
33850 2011-05-08  Bruno Haible  <bruno@clisp.org>
33852         getcwd: Move AC_LIBOBJ invocations to module description.
33853         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
33854         invocations from here...
33855         * modules/getcwd (configure.ac): ... to here.
33857 2011-05-08  Bruno Haible  <bruno@clisp.org>
33859         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
33860         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
33861         here...
33862         * modules/getcwd-lgpl (configure.ac): ... to here.
33864 2011-05-07  Bruno Haible  <bruno@clisp.org>
33866         crypto/gc: Move AC_LIBOBJ invocations to module description.
33867         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
33868         * modules/crypto/gc (configure.ac): ... to here.
33870 2011-05-07  Bruno Haible  <bruno@clisp.org>
33872         fwriting: Move AC_LIBOBJ invocations to module description.
33873         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
33874         here...
33875         * modules/fwriting (configure.ac): ... to here.
33877 2011-05-07  Bruno Haible  <bruno@clisp.org>
33879         fwritable: Move AC_LIBOBJ invocations to module description.
33880         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
33881         here...
33882         * modules/fwritable (configure.ac): ... to here.
33884 2011-05-07  Bruno Haible  <bruno@clisp.org>
33886         futimens: Move AC_LIBOBJ invocations to module description.
33887         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
33888         here...
33889         * modules/futimens (configure.ac): ... to here.
33891 2011-05-07  Bruno Haible  <bruno@clisp.org>
33893         ftruncate: Move AC_LIBOBJ invocations to module description.
33894         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
33895         gl_PREREQ_FTRUNCATE invocations from here...
33896         * modules/ftruncate (configure.ac): ... to here.
33898 2011-05-07  Bruno Haible  <bruno@clisp.org>
33900         fsync: Move AC_LIBOBJ invocations to module description.
33901         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
33902         invocations from here...
33903         * modules/fsync (configure.ac): ... to here.
33905 2011-05-07  Bruno Haible  <bruno@clisp.org>
33907         fsusage: Move AC_LIBOBJ invocations to module description.
33908         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
33909         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
33910         * modules/fsusage (configure.ac): ... to here.
33912 2011-05-07  Bruno Haible  <bruno@clisp.org>
33914         freopen: Move AC_LIBOBJ invocations to module description.
33915         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
33916         invocations from here...
33917         * modules/freopen (configure.ac): ... to here.
33919 2011-05-07  Bruno Haible  <bruno@clisp.org>
33921         free: Move AC_LIBOBJ invocations to module description.
33922         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
33923         invocations from here...
33924         * modules/free (configure.ac): ... to here.
33926 2011-05-07  Bruno Haible  <bruno@clisp.org>
33928         freadable: Move AC_LIBOBJ invocations to module description.
33929         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
33930         here...
33931         * modules/freadable (configure.ac): ... to here.
33933 2011-05-07  Bruno Haible  <bruno@clisp.org>
33935         fpurge: Move AC_LIBOBJ invocations to module description.
33936         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
33937         invocations from here...
33938         * modules/fpurge (configure.ac): ... to here.
33940 2011-05-07  Bruno Haible  <bruno@clisp.org>
33942         fpending: Move AC_LIBOBJ invocations to module description.
33943         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
33944         gl_FUNC_FPENDING.
33945         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
33946         invocations from here...
33947         * modules/fpending (configure.ac): ... to here.
33949 2011-05-07  Bruno Haible  <bruno@clisp.org>
33951         fopen: Move AC_LIBOBJ invocations to module description.
33952         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
33953         invocations from here...
33954         * modules/fopen (configure.ac): ... to here.
33956 2011-05-07  Bruno Haible  <bruno@clisp.org>
33958         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
33959         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
33960         gl_FUNC_FNMATCH_POSIX.
33961         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
33962         invocations from here...
33963         * modules/fnmatch (configure.ac): ... to here.
33964         * modules/fnmatch-gnu (configure.ac): ... and here.
33966 2011-05-07  Bruno Haible  <bruno@clisp.org>
33968         flock: Move AC_LIBOBJ invocations to module description.
33969         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
33970         invocations from here...
33971         * modules/flock (configure.ac): ... to here.
33973 2011-05-07  Bruno Haible  <bruno@clisp.org>
33975         fileblocks: Move AC_LIBOBJ invocations to module description.
33976         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
33977         gl_PREREQ_FILEBLOCKS invocations from here...
33978         * modules/fileblocks (configure.ac): ... to here.
33980 2011-05-06  Bruno Haible  <bruno@clisp.org>
33982         fflush: Move AC_LIBOBJ invocations to module description.
33983         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
33984         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
33985         invocations from here...
33986         * modules/fflush (configure.ac): ... to here.
33988 2011-05-06  Bruno Haible  <bruno@clisp.org>
33990         fdopendir: Move AC_LIBOBJ invocations to module description.
33991         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
33992         here...
33993         * modules/fdopendir (configure.ac): ... to here.
33994         (Depends-on): Improve conditions.
33996 2011-05-06  Bruno Haible  <bruno@clisp.org>
33998         _Exit: Move AC_LIBOBJ invocations to module description.
33999         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
34000         invocations from here...
34001         * modules/_Exit (configure.ac): ... to here.
34003 2011-05-21  Bruno Haible  <bruno@clisp.org>
34005         euidaccess: Respect rules for use of AC_LIBOBJ.
34006         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34007         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
34008         from here...
34009         * modules/euidaccess (configure.ac): ... to here.
34011 2011-05-06  Bruno Haible  <bruno@clisp.org>
34013         error: Move AC_LIBOBJ invocations to module description.
34014         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
34015         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
34016         invocations from here...
34017         * modules/error (configure.ac): ... to here.
34019 2011-05-06  Bruno Haible  <bruno@clisp.org>
34021         duplocale: Move AC_LIBOBJ invocations to module description.
34022         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
34023         gl_PREREQ_DUPLOCALE invocations from here...
34024         * modules/duplocale (configure.ac): ... to here.
34026 2011-05-05  Bruno Haible  <bruno@clisp.org>
34028         dirfd: Move AC_LIBOBJ invocations to module description.
34029         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
34030         gl_FUNC_DIRFD.
34031         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
34032         here...
34033         * modules/dirfd (configure.ac): ... to here.
34034         (Depends-on): Fix condition.
34036 2011-05-05  Bruno Haible  <bruno@clisp.org>
34038         chown: Respect rules for use of AC_LIBOBJ.
34039         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
34040         * modules/chown (configure.ac): ... to here.
34042 2011-05-05  Bruno Haible  <bruno@clisp.org>
34044         chdir-long: Move AC_LIBOBJ invocations to module description.
34045         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
34046         gl_PREREQ_CHDIR_LONG invocations from here...
34047         * modules/chdir-long (configure.ac): ... to here.
34049 2011-05-05  Bruno Haible  <bruno@clisp.org>
34051         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
34052         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
34053         from here...
34054         * modules/canonicalize-lgpl (configure.ac): ... to here.
34056 2011-05-05  Bruno Haible  <bruno@clisp.org>
34058         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
34059         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
34060         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
34061         REPLACE_CALLOC.
34062         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
34063         * modules/calloc-gnu (configure.ac): Likewise.
34065 2011-05-05  Bruno Haible  <bruno@clisp.org>
34067         btowc: Move AC_LIBOBJ invocations to module description.
34068         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
34069         invocations from here...
34070         * modules/btowc (configure.ac): ... to here.
34072 2011-05-21  Bruno Haible  <bruno@clisp.org>
34074         atexit: Move AC_LIBOBJ invocations to module description.
34075         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
34076         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
34077         here...
34078         * modules/atexit (configure.ac): ... to here.
34080 2011-05-05  Bruno Haible  <bruno@clisp.org>
34082         atoll: Move AC_LIBOBJ invocations to module description.
34083         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
34084         invocations from here...
34085         * modules/atoll (configure.ac): ... to here.
34087 2011-05-05  Bruno Haible  <bruno@clisp.org>
34089         argz: Move AC_LIBOBJ invocations to module description.
34090         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
34091         * modules/argz (configure.ac): ... to here.
34093 2011-05-05  Bruno Haible  <bruno@clisp.org>
34095         alphasort: Move AC_LIBOBJ invocations to module description.
34096         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
34097         gl_PREREQ_ALPHASORT invocations from here...
34098         * modules/alphasort (configure.ac): ... to here.
34100 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34102         verify: new macro verify_expr; verify_true deprecated
34103         * NEWS: Mention this.
34104         * doc/verify.texi (Compile-time Assertions): Document this.
34105         * lib/verify.h (verify_true): Deprecate.
34106         (verify_expr): New macro.
34107         * tests/test-verify.c (function): Test verify_expr.
34109 2011-06-14  Jim Meyering  <meyering@redhat.com>
34111         init.sh: give more portable redirection-related advice in a comment
34112         * tests/init.sh (stderr_fileno_): Update the advice in comments.
34113         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
34114         for lots of discussion.  Stefano Lattarini suggested the solution
34115         of putting "9>&2" after the command.  Reported by Bruno Haible.
34117 2011-06-13  Bruno Haible  <bruno@clisp.org>
34119         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
34120         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
34121         'none'.
34123 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
34125         ftoastr: use strtof only if HAVE_STRTOF
34126         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
34127         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
34128         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
34129         * modules/ftoastr (configure.ac): Check for strtof.
34131 2011-06-13  Bruno Haible  <bruno@clisp.org>
34133         gnulib-tool: Addendum to 2011-06-08 commit.
34134         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
34135         and --witness-c-macro have been given, augment AM_CPPFLAGS.
34137 2011-06-13  Bruno Haible  <bruno@clisp.org>
34139         fseeko: Provide a non-inline replacement of fseek().
34140         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
34141         * modules/fseeko (Depends-on): Add fseek.
34142         * modules/fseek (License): Change to LGPLv2+.
34144 2011-06-13  Bruno Haible  <bruno@clisp.org>
34146         ftello: Provide a non-inline replacement of ftell().
34147         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
34148         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
34149         not have ftello() (such as on mingw).
34150         * modules/ftello (Depends-on): Add ftell.
34151         * modules/ftell (License): Change to LGPLv2+.
34153 2011-05-07  Bruno Haible  <bruno@clisp.org>
34155         ftell: Move AC_LIBOBJ invocations to module description.
34156         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
34157         * modules/ftell (configure.ac): ... to here.
34159 2011-05-07  Bruno Haible  <bruno@clisp.org>
34161         ftello: Respect rules for use of AC_LIBOBJ.
34162         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
34163         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
34164         here...
34165         * modules/ftello (configure.ac): ... to here.
34167 2011-05-07  Bruno Haible  <bruno@clisp.org>
34169         fseeko: Simplify.
34170         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
34171         (gl_FUNC_FSEEKO): Inline it here.
34173 2011-05-07  Bruno Haible  <bruno@clisp.org>
34175         fseek: Move AC_LIBOBJ invocations to module description.
34176         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
34177         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34178         * modules/fseek (configure.ac): ... to here.
34180 2011-05-07  Bruno Haible  <bruno@clisp.org>
34182         fseek: Respect rules for use of AC_LIBOBJ.
34183         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
34184         here...
34185         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
34187 2011-05-07  Bruno Haible  <bruno@clisp.org>
34189         fseeko: Respect rules for use of AC_LIBOBJ.
34190         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
34191         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
34192         here...
34193         * modules/fseeko (configure.ac): ... to here.
34195 2011-06-13  Bruno Haible  <bruno@clisp.org>
34197         gnulib-tool: Allow comments in the 'Depends-on' section.
34198         * doc/gnulib.texi (Module description): Mention comment syntax in the
34199         Depends-on section.
34200         * gnulib-tool (func_get_dependencies): Filter out comment lines.
34202 2011-06-13  Bruno Haible  <bruno@clisp.org>
34204         file-set.h: guard __attibute__ use, now that it's not always defined
34205         * lib/file-set.h (record_file): Use __attribute__ only with compiler
34206         versions that support it.  This fixes a coreutils build failure with
34207         the vendor cc on HP-UX 11.31.
34209 2011-06-12  Bruno Haible  <bruno@clisp.org>
34211         acl: Add support for HP-UX >= 11.11 JFS ACLs.
34212         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
34213         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
34214         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
34215         (acl, aclsort): New declarations.
34216         (aclv_nontrivial): New declaration.
34217         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
34218         (file_has_acl): Read also the second kind of HP-UX ACLs.
34219         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
34220         kind of HP-UX ACLs if the first kind fails.
34221         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
34222         second kind of HP-UX ACLs.
34223         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
34224         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
34225         agree.
34226         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34227         hpuxjfs.
34228         Handle hpuxjfs.
34229         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34230         hpuxjfs.
34231         Handle hpuxjfs.
34232         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34233         (func_test_same_acls): Use both lsacl and getacl.
34234         Handle hpuxjfs.
34235         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34236         (func_test_same_acls): Use both lsacl and getacl.
34237         Handle hpuxjfs.
34239 2011-06-12  Bruno Haible  <bruno@clisp.org>
34241         acl: Complete the 2010-08-10 fix.
34242         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
34243         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
34244         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
34245         explicitly.
34246         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
34247         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
34249 2011-06-12  Bruno Haible  <bruno@clisp.org>
34251         spawn-pipe tests: Comments.
34252         * tests/test-spawn-pipe-child.c (main): Update comment.
34253         Reported by James Youngman <jay@gnu.org>.
34255 2011-06-11  James Youngman  <jay@gnu.org>
34257         New module 'stat-size'.
34258         * modules/stat-size: New module.  Provides macros for accessing
34259         file size information in instances of struct stat.  Depends on the
34260         fileblocks module because it calls st_blocks.
34261         * lib/stat-size.h: New file, adapted from coreutils' system.h.
34262         * doc/gnulib.texi: Include stat-size.texi.
34263         * doc/stat-size.texi: Documentation for this module.
34264         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
34265         * m4/fileblocks.m4: Mention that stat-size depends on the call to
34266         AC_STRUCT_ST_BLOCKS.
34268 2011-06-09  Bruno Haible  <bruno@clisp.org>
34270         thread: Support pthreads-win32.
34271         * lib/glthread/thread.h (gl_thread_self): Define differently on
34272         pthreads-win32.
34273         (gl_null_thread): New declaration.
34274         (gl_thread_self_pointer): New macro.
34275         * lib/glthread/thread.c (gl_null_thread): New constant.
34276         * tests/test-lock.c: Use gl_thread_self_pointer instead of
34277         gl_thread_self.
34278         * tests/test-tls.c: Likewise.
34279         Suggested by Paul Eggert. Reported by Eric Blake.
34281 2011-06-09  Bruno Haible  <bruno@clisp.org>
34283         thread: Fix confusion between NULL and 0.
34284         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
34285         Reported by Paul Eggert.
34287 2011-06-09  Bruno Haible  <bruno@clisp.org>
34289         spawn-pipe tests: Avoid test failure on HP-UX 11.
34290         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
34291         is closed.
34293 2011-06-09  Bruno Haible  <bruno@clisp.org>
34295         acl tests: Fix compilation error on HP-UX 11.
34296         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
34298 2011-06-09  Bruno Haible  <bruno@clisp.org>
34300         rmdir: Avoid test failure on HP-UX 10.20.
34301         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
34302         EEXIST.
34304 2011-06-08  Eric Blake  <eblake@redhat.com>
34306         perror: fix test on mingw
34307         * modules/perror-tests (Depends-on): Add dup2.
34309         strerror_r-posix: fix on MacOS
34310         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
34311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
34312         logic bug.
34313         * lib/strerror_r.c (strerror_r): Fix the bug.
34314         * lib/strerror.c (strerror): Likewise.
34315         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
34316         problem.
34317         * doc/posix-functions/strerror.texi (strerror): Likewise.
34318         * doc/posix-functions/perror.texi (perror): Likewise.
34319         * tests/test-strerror.c (main): Enhance test.
34320         * tests/test-strerror_r.c (main): Likewise.
34322 2011-06-08  Bruno Haible  <bruno@clisp.org>
34324         gnulib-tool: Better isolation between different gnulib-tool invocations.
34325         * gnulib-tool: New option --witness-c-macro.
34326         (witness_c_macro): New variable.
34327         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
34328         AM_CPPFLAGS define it as a C macro.
34329         (func_emit_tests_Makefile_am): Likewise.
34330         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
34331         read it from there.
34332         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
34333         m4_define, not AC_DEFUN.
34334         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
34335         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
34336         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
34337         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
34338         s|...|...|, to substitute the values of the GNULIB_* module indicator
34339         variables.
34340         * modules/dirent (Makefile.am): Likewise.
34341         * modules/fcntl-h (Makefile.am): Likewise.
34342         * modules/iconv-h (Makefile.am): Likewise.
34343         * modules/langinfo (Makefile.am): Likewise.
34344         * modules/locale (Makefile.am): Likewise.
34345         * modules/math (Makefile.am): Likewise.
34346         * modules/netdb (Makefile.am): Likewise.
34347         * modules/poll-h (Makefile.am): Likewise.
34348         * modules/pty (Makefile.am): Likewise.
34349         * modules/search (Makefile.am): Likewise.
34350         * modules/signal (Makefile.am): Likewise.
34351         * modules/spawn (Makefile.am): Likewise.
34352         * modules/stdio (Makefile.am): Likewise.
34353         * modules/stdlib (Makefile.am): Likewise.
34354         * modules/string (Makefile.am): Likewise.
34355         * modules/sys_ioctl (Makefile.am): Likewise.
34356         * modules/sys_select (Makefile.am): Likewise.
34357         * modules/sys_socket (Makefile.am): Likewise.
34358         * modules/sys_stat (Makefile.am): Likewise.
34359         * modules/sys_times (Makefile.am): Likewise.
34360         * modules/sys_utsname (Makefile.am): Likewise.
34361         * modules/sys_wait (Makefile.am): Likewise.
34362         * modules/termios (Makefile.am): Likewise.
34363         * modules/time (Makefile.am): Likewise.
34364         * modules/unistd (Makefile.am): Likewise.
34365         * modules/wchar (Makefile.am): Likewise.
34367 2011-06-08  Eric Blake  <eblake@redhat.com>
34369         strerror: simplify replacement
34370         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
34371         * modules/strerror (configure.ac): No prereqs needed here...
34372         * modules/strerror-override (configure.ac): ...but this needs it.
34373         (Files): Add file for needed prereq macro.
34375 2011-06-08  Bruno Haible  <bruno@clisp.org>
34377         strerror_r-posix: Tweaks.
34378         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
34379         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
34380         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
34381         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
34382         (gl_FUNC_STRERROR_R): ... to here.
34383         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
34385 2011-06-07  Eric Blake  <eblake@redhat.com>
34387         perror: document fixed bugs
34388         * doc/posix-functions/perror.texi (perror): Document recent
34389         patches.
34391 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
34393         stat-time: get_stat_birthtime failure is better-defined
34394         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
34395         return a timestamp whose tv_sec and tv_nsec values are both -1.
34396         Previously, the spec said only that the tv_nsec value was negative.
34397         This upward-compatible change simplifies GNU tar a bit.
34399 2011-06-07  Eric Blake  <eblake@redhat.com>
34401         strerror_r-posix: work around cygwin 1.7.9
34402         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
34403         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
34404         bug without replacing strerror_r.
34405         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
34406         strerror_r is buggy, but without requiring strerror_r compilation.
34407         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
34409         test-perror: relax test to ignore cygwin bug
34410         * tests/test-perror2.c (main): Relax test on requiring detection
34411         of stream errors, and use unbuffered stream.
34412         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
34413         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
34414         * doc/posix-functions/fputc.texi (fputc): Likewise.
34415         * doc/posix-functions/fputs.texi (fputs): Likewise.
34416         * doc/posix-functions/fputws.texi (fputws): Likewise.
34417         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
34418         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
34419         * doc/posix-functions/getopt.texi (getopt): Likewise.
34420         * doc/posix-functions/perror.texi (perror): Likewise.
34421         * doc/posix-functions/printf.texi (printf): Likewise.
34422         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
34423         * doc/posix-functions/psignal.texi (psignal): Likewise.
34424         * doc/posix-functions/putc.texi (putc): Likewise.
34425         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
34426         Likewise.
34427         * doc/posix-functions/putchar.texi (putchar): Likewise.
34428         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
34429         Likewise.
34430         * doc/posix-functions/puts.texi (puts): Likewise.
34431         * doc/posix-functions/putwc.texi (putwc): Likewise.
34432         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34433         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34434         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34435         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
34436         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34437         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34438         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34439         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
34441 2011-05-22  Bruno Haible  <bruno@clisp.org>
34443         strerror: Move AC_LIBOBJ invocations to module description.
34444         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
34445         gl_PREREQ_STRERROR invocations from here...
34446         * modules/strerror (configure.ac): ... to here.
34448 2011-05-21  Bruno Haible  <bruno@clisp.org>
34450         perror: Use common idiom.
34451         * modules/perror (configure.ac): Reorder statements.
34453 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
34455         tests: fix usage message in 'mktempd_'
34456         * tests/init.sh (mktempd_): In the usage message, use literal
34457         'mktempd_', not '$ME' (which is even undefined), as the name of
34458         the subroutine.
34460 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
34462         tests init: new function 'fatal_', for hard errors
34463         Before this patch, the only way offered by tests/init.sh to
34464         properly signal a hard error was the `framework_failure_'
34465         function.  But the error message issued by that function,
34466         as its name would suggest, refers to a set-up failure in the
34467         testsuite, while hard errors can obviously also be due to
34468         other reasons.  The best way to fix this inconsistency is to
34469         introduce a new function with a more general error message.
34470         * tests/init.sh (fatal_): New function.
34472 2011-06-06  Eric Blake  <eblake@redhat.com>
34474         canonicalize-lgpl: use common idiom
34475         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
34476         over newer POSIX -Rf.
34477         Reported by Bruno Haible.
34479         canonicalize-lgpl: work around AIX realpath bug
34480         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
34481         * doc/posix-functions/realpath.texi (realpath): Document it.
34482         Reported by Bruno Haible.
34484         strerror: work around FreeBSD bug
34485         * lib/strerror.c (strerror): Special case 0.
34486         Reported by Bruno Haible.
34488         strerror-override: avoid bloating errno module
34489         * modules/errno (Files, configure.ac): Move replacement strings...
34490         * modules/strerror-override: ...to new module.
34491         * modules/strerror (Depends-on): Add strerror-override.
34492         * modules/strerror_r-posix (Depends-on): Likewise.
34493         * MODULES.html.sh: Document new module.
34494         Reported by Bruno Haible.
34496 2011-06-06  Bruno Haible  <bruno@clisp.org>
34498         spawn-pipe tests: Rename program.
34499         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
34500         * tests/test-spawn-pipe-child.c: Update comment.
34501         * tests/test-spawn-pipe.sh: Update.
34502         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
34504         spawn-pipe tests: Link the child program only against libc.
34505         * tests/test-spawn-pipe-child.c: New file, extracted from
34506         tests/test-spawn-pipe.c.
34507         (main): Expect only one argument.
34508         (is_open): New function, copied from tests/test-pipe.c.
34509         * tests/test-spawn-pipe.c: Don't include <errno.h>.
34510         (child_main): Remove function.
34511         (test_pipe): Pass only one argument to the child program.
34512         (main): Remove child process code. Expect the child program's name as
34513         first argument.
34514         * tests/test-spawn-pipe.sh: Pass the child program's name as first
34515         argument.
34516         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
34517         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
34518         test-spawn-pipe-child against no libraries.
34520 2011-06-06  Bruno Haible  <bruno@clisp.org>
34522         careadlinkat: Avoid mismatch between ssize_t and int.
34523         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
34524         * lib/careadlinkat.c (careadlinkatcwd): Define always.
34526 2011-06-06  Jim Meyering  <meyering@redhat.com>
34528         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
34529         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
34530         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
34532 2011-06-05  Bruno Haible  <bruno@clisp.org>
34534         ansi-c++-opt: Interoperability with libtool.
34535         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
34536         set the variable to "no", not to ":".
34537         * NEWS: Mention the change.
34539 2011-06-05  Bruno Haible  <bruno@clisp.org>
34541         acl: Fix test failure on AIX 7.
34542         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
34543         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
34545 2011-06-05  Bruno Haible  <bruno@clisp.org>
34547         pipe-filter-ii: Fix test failure on AIX and IRIX.
34548         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
34549         with EAGAIN, retry with a smaller buffer size.
34551 2011-06-05  Bruno Haible  <bruno@clisp.org>
34553         localename: Fix link dependencies.
34554         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
34555         * modules/localename-tests (Makefile.am): Link test-localename with
34556         $(LIBTHREAD).
34558 2011-06-05  Bruno Haible  <bruno@clisp.org>
34560         error: Avoid gcc warning.
34561         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
34563 2011-06-05  Bruno Haible  <bruno@clisp.org>
34565         unsetenv: Avoid gcc warning.
34566         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
34568 2011-06-05  Bruno Haible  <bruno@clisp.org>
34570         setenv: Avoid gcc warning.
34571         * lib/setenv.c (setenv): Provide declaration if system lacks it.
34573 2011-06-05  Bruno Haible  <bruno@clisp.org>
34575         sys_select: Ensure memset is declared also on AIX 7.
34576         * lib/sys_select.in.h: Include <string.h> also on AIX.
34577         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
34578         self-contained also on AIX 7.1.
34580 2011-06-04  Jim Meyering  <meyering@redhat.com>
34582         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
34583         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
34584         function name, "error".
34585         (_gl_translatable_diag_func_re): New configurable variable.
34587 2011-06-04  Bruno Haible  <bruno@clisp.org>
34589         getopt: Avoid gcc warning.
34590         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
34592 2011-06-04  Bruno Haible  <bruno@clisp.org>
34594         strerror_r: Fix comments.
34595         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
34596         commit.
34598 2011-06-04  Bruno Haible  <bruno@clisp.org>
34600         perror: Fix compilation error.
34601         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
34602         Undefine fprintf, not sprintf.
34603         * modules/perror (Depends-on): Remove intprops, verify.
34605 2011-06-04  Bruno Haible  <bruno@clisp.org>
34607         setlocale: Enable replacement on Cygwin 1.5.
34608         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
34609         Cygwin 1.5.x.
34610         * doc/posix-functions/setlocale.texi: Mention that the problem with the
34611         LC_CTYPE category also exists on Cygwin 1.5.x.
34613 2011-06-04  Bruno Haible  <bruno@clisp.org>
34615         strerror-override: Don't disable symbol renamings.
34616         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
34617         * lib/strerror-override.c: Include config.h.
34618         (strerror_override): Don't undefine.
34620 2011-06-03  Bruno Haible  <bruno@clisp.org>
34622         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
34623         * lib/localename.h: Update copyright header.
34624         * lib/localename.c: Likewise.
34625         * lib/relocatable.h: Likewise.
34626         * lib/relocatable.c: Likewise.
34628 2011-06-02  Bruno Haible  <bruno@clisp.org>
34630         doc: Fix a module name.
34631         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
34633 2011-06-02  Bruno Haible  <bruno@clisp.org>
34635         pipe2: Remove dependency on 'nonblocking' module.
34636         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
34637         O_NONBLOCK is defined by gnulib.
34638         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
34639         is zero.
34640         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
34641         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
34642         defined by gnulib.
34643         (get_nonblocking_flag): New function.
34644         (main): Test O_NONBLOCK flag only if it is nonzero.
34645         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
34647 2011-06-03  Jim Meyering  <meyering@redhat.com>
34649         maint: three new prohibit-header-without-use rules
34650         Prohibit use of cloexec.h, posixver.h, same.h without use.
34651         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
34652         (sc_prohibit_posixver_without_use): Likewise.
34653         (sc_prohibit_same_without_use): Likewise.
34655 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34657         allocator: 'die' routine is now given requested size
34658         * lib/allocator.h (struct allocator.die): New size arg.
34659         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
34660         If the actual problem is an ssize_t limitation, not a size_t or
34661         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
34663 2011-06-01  Eric Blake  <eblake@redhat.com>
34665         strerror: drop strerror_r dependency
34666         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
34667         * lib/strerror-override.c (strerror_override): ...to new file.
34668         * lib/strerror-override.h: Add prototype.
34669         * lib/strerror-impl.h: Delete.
34670         * lib/strerror.c (strerror): New implementation.
34671         * modules/errno (Files): Add new files.
34672         (configure.ac): Compile new file as appropriate.
34673         * modules/strerror (Files): Drop unused file.
34674         (Depends-on): Drop strerror_r-posix.
34675         * MODULES.html.sh: Document strerror_r-posix.
34676         Requested by Sam Steingold.
34678         perror: call strerror_r directly
34679         * modules/perror (Files): Drop strerror-impl.h.
34680         * lib/perror.c (perror): Use our own stack buffer, rather than
34681         calling a wrapper that uses static storage.
34682         * doc/posix-functions/perror.texi (perror): Document a limitation
34683         of our replacement.
34685         strerror_r: fix includes for FreeBSD
34686         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
34687         since we use abort on some platforms.
34688         Reported by Matthias Bolte.
34690 2011-05-31  Bruno Haible  <bruno@clisp.org>
34692         Fix link errors in tests: openat-die uses gettext-h.
34693         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
34694         against $(LIBINTL).
34695         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
34696         against $(LIBINTL).
34697         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
34698         $(LIBINTL).
34699         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
34700         against $(LIBINTL).
34701         * modules/linkat-tests (Makefile.am): Link test-linkat against
34702         $(LIBINTL).
34703         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
34704         $(LIBINTL).
34705         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
34706         against $(LIBINTL).
34707         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
34708         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
34709         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
34710         $(LIBINTL).
34711         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
34712         $(LIBINTL).
34713         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
34714         $(LIBINTL).
34715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34717 2011-05-31  Bruno Haible  <bruno@clisp.org>
34719         Fix link errors in tests: wait-process uses gettext-h.
34720         * modules/nonblocking-pipe-tests (Makefile.am): Set
34721         test_nonblocking_pipe_main_LDADD.
34722         * modules/nonblocking-socket-tests (Makefile.am): Link
34723         test-nonblocking-socket-main against $(LIBINTL).
34724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34726 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34728         assert-h: work around 'verify' incompatibility
34729         * lib/verify.h: Use @...@ directives, not ifdef.
34730         * modules/assert-h (assert.h): Implement the directives.
34731         (assert.h): Substitute the symbol-prefix more consistently.
34733 2011-05-29  Jim Meyering  <meyering@redhat.com>
34735         trim: remove three superfluous assignments
34736         * lib/trim.c (trim2): Remove three superfluous assignments
34737         and correct brace positioning.
34739 2011-05-29  Bruno Haible  <bruno@clisp.org>
34741         wctype-h: Avoid namespace pollution on Solaris 2.6.
34742         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
34743         identifiers.
34744         * doc/posix-headers/wctype.texi: Mention the problem.
34745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34747 2011-05-28  Jim Meyering  <meyering@redhat.com>
34749         parse-datetime.y: accommodate -Wstrict-overflow
34750         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
34751         placate -Wstrict-overflow.
34753         trim: avoid a warning from -O2 -Wstrict-overflow
34754         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
34756 2011-05-29  Bruno Haible  <bruno@clisp.org>
34758         gnulib-tool: Fix bug in yesterday's commit.
34759         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
34760         twice.
34762 2011-05-29  Bruno Haible  <bruno@clisp.org>
34764         Allow multiple gnulib generated include files to be combined.
34765         * gnulib-tool (func_compute_include_guard_prefix): New function.
34766         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
34767         ${gl_include_guard_prefix} references.
34768         (func_import, func_create_testdir): Invoke
34769         func_compute_include_guard_prefix.
34770         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
34771         * lib/ctype.in.h: Likewise.
34772         * lib/dirent.in.h: Likewise.
34773         * lib/errno.in.h: Likewise.
34774         * lib/fcntl.in.h: Likewise.
34775         * lib/float.in.h: Likewise.
34776         * lib/getopt.in.h: Likewise.
34777         * lib/iconv.in.h: Likewise.
34778         * lib/langinfo.in.h: Likewise.
34779         * lib/locale.in.h: Likewise.
34780         * lib/math.in.h: Likewise.
34781         * lib/netdb.in.h: Likewise.
34782         * lib/netinet_in.in.h: Likewise.
34783         * lib/poll.in.h: Likewise.
34784         * lib/pthread.in.h: Likewise.
34785         * lib/pty.in.h: Likewise.
34786         * lib/sched.in.h: Likewise.
34787         * lib/se-selinux.in.h: Likewise.
34788         * lib/search.in.h: Likewise.
34789         * lib/signal.in.h: Likewise.
34790         * lib/spawn.in.h: Likewise.
34791         * lib/stdarg.in.h: Likewise.
34792         * lib/stddef.in.h: Likewise.
34793         * lib/stdint.in.h: Likewise.
34794         * lib/stdio.in.h: Likewise.
34795         * lib/stdlib.in.h: Likewise.
34796         * lib/string.in.h: Likewise.
34797         * lib/strings.in.h: Likewise.
34798         * lib/sys_file.in.h: Likewise.
34799         * lib/sys_ioctl.in.h: Likewise.
34800         * lib/sys_select.in.h: Likewise.
34801         * lib/sys_socket.in.h: Likewise.
34802         * lib/sys_stat.in.h: Likewise.
34803         * lib/sys_time.in.h: Likewise.
34804         * lib/sys_times.in.h: Likewise.
34805         * lib/sys_uio.in.h: Likewise.
34806         * lib/sys_utsname.in.h: Likewise.
34807         * lib/sys_wait.in.h: Likewise.
34808         * lib/sysexits.in.h: Likewise.
34809         * lib/termios.in.h: Likewise.
34810         * lib/time.in.h: Likewise.
34811         * lib/unistd.in.h: Likewise.
34812         * lib/wchar.in.h: Likewise.
34813         * lib/wctype.in.h: Likewise.
34814         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
34815         * modules/ctype (Makefile.am): Likewise.
34816         * modules/dirent (Makefile.am): Likewise.
34817         * modules/errno (Makefile.am): Likewise.
34818         * modules/fcntl-h (Makefile.am): Likewise.
34819         * modules/float (Makefile.am): Likewise.
34820         * modules/getopt-posix (Makefile.am): Likewise.
34821         * modules/iconv-h (Makefile.am): Likewise.
34822         * modules/langinfo (Makefile.am): Likewise.
34823         * modules/locale (Makefile.am): Likewise.
34824         * modules/math (Makefile.am): Likewise.
34825         * modules/netdb (Makefile.am): Likewise.
34826         * modules/netinet_in (Makefile.am): Likewise.
34827         * modules/poll-h (Makefile.am): Likewise.
34828         * modules/pthread (Makefile.am): Likewise.
34829         * modules/pty (Makefile.am): Likewise.
34830         * modules/sched (Makefile.am): Likewise.
34831         * modules/search (Makefile.am): Likewise.
34832         * modules/selinux-h (Makefile.am): Likewise.
34833         * modules/signal (Makefile.am): Likewise.
34834         * modules/spawn (Makefile.am): Likewise.
34835         * modules/stdarg (Makefile.am): Likewise.
34836         * modules/stddef (Makefile.am): Likewise.
34837         * modules/stdint (Makefile.am): Likewise.
34838         * modules/stdio (Makefile.am): Likewise.
34839         * modules/stdlib (Makefile.am): Likewise.
34840         * modules/string (Makefile.am): Likewise.
34841         * modules/strings (Makefile.am): Likewise.
34842         * modules/sys_file (Makefile.am): Likewise.
34843         * modules/sys_ioctl (Makefile.am): Likewise.
34844         * modules/sys_select (Makefile.am): Likewise.
34845         * modules/sys_socket (Makefile.am): Likewise.
34846         * modules/sys_stat (Makefile.am): Likewise.
34847         * modules/sys_time (Makefile.am): Likewise.
34848         * modules/sys_times (Makefile.am): Likewise.
34849         * modules/sys_uio (Makefile.am): Likewise.
34850         * modules/sys_utsname (Makefile.am): Likewise.
34851         * modules/sys_wait (Makefile.am): Likewise.
34852         * modules/sysexits (Makefile.am): Likewise.
34853         * modules/termios (Makefile.am): Likewise.
34854         * modules/time (Makefile.am): Likewise.
34855         * modules/unistd (Makefile.am): Likewise.
34856         * modules/wchar (Makefile.am): Likewise.
34857         * modules/wctype-h (Makefile.am): Likewise.
34858         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
34860 2011-05-29  Bruno Haible  <bruno@clisp.org>
34862         assert-h: Allow multiple gnulib generated replacements to coexist.
34863         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
34865 2011-05-29  Bruno Haible  <bruno@clisp.org>
34867         argp: Allow coexistence with strerror_r-posix module.
34868         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
34869         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
34870         by gnulib's <string.h> replacement), assume it has the POSIX signature,
34871         not the glibc signature.
34873 2011-05-28  Bruno Haible  <bruno@clisp.org>
34875         gnulib-tool: Alternative structure of testdirs, similar to --import.
34876         * gnulib-tool: New option --single-configure.
34877         (func_usage): Document it.
34878         (single_configure): New variable.
34879         (func_modules_transitive_closure_separately,
34880         func_modules_transitive_closure_separately,
34881         func_determine_use_libtests, func_modules_add_dummy_separately,
34882         func_modules_to_filelist_separately): New functions, extracted from
34883         func_import.
34884         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
34885         (func_import): Use the new functions.
34886         (func_create_testdir): Set final_modules. Handle $single_configure =
34887         true case.
34889 2011-05-28  Bruno Haible  <bruno@clisp.org>
34891         getloadavg: Remove an unreliable safety check.
34892         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
34893         getloadavg.c is in place.
34894         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
34895         Reported by Sam Steingold <sds@gnu.org>.
34897 2011-05-28  Bruno Haible  <bruno@clisp.org>
34899         doc: Cleanup yet another file produced by texinfo.tex.
34900         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
34902 2011-05-28  Bruno Haible  <bruno@clisp.org>
34904         Finish the conditional dependencies mechanism.
34905         * gnulib-tool: New option --no-conditional-dependencies.
34906         (func_usage): Document it. Don't mark --conditional-dependencies as
34907         experimental.
34908         (cond_dependencies): The possible values can now be true, false, empty.
34909         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
34910         (func_import): Store setting in gnulib-cache.m4 and read it from there.
34911         * doc/gnulib-tool.texi (Conditional dependencies): New section.
34913 2011-05-28  Bruno Haible  <bruno@clisp.org>
34915         doc: Use a recent texinfo.tex.
34916         * doc/Makefile (tex_opts): New variable.
34917         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
34919 2011-05-28  Jim Meyering  <meyering@redhat.com>
34921         intprops.h: adjust comment to match code change
34922         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
34923         only once, it *may* have side effects.  Also fix an unrelated typo.
34924         (_GL_INT_SIGNED): Likewise.
34926 2011-05-26  Simon Josefsson  <simon@josefsson.org>
34928         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
34930 2011-05-26  Bruno Haible  <bruno@clisp.org>
34932         mbsrchr: Avoid collision with system function on Interix.
34933         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
34934         Reported by Markus Duft <mduft@gentoo.org>.
34936 2011-05-15  James Youngman  <jay@gnu.org>
34938         getopt: for ambiguous options, enumerate the possibilities.
34939         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
34940         the ambiguous options when an ambiguous prefix is given. This was
34941         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
34942         glibc change was
34943         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
34945 2011-05-25  Eric Blake  <eblake@redhat.com>
34947         getcwd: work around mingw bug
34948         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
34949         * doc/posix-functions/getcwd.texi (getcwd): Document it.
34950         Reported by Matthias Bolte.
34952 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
34954         test-intprops: disable -Wtype-limits diagnostics
34955         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
34956         diagnostics.  Otherwise, the integer overflow macros generate many
34957         diagnostics.  Reported by Jim Meyering in
34958         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
34960         intprops: shorten, to pacify gcc -Woverlength-strings
34961         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
34962         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
34963         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
34964         likely to run afoul of C compiler limits for string constant lengths.
34965         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
34967 2011-05-24  Eric Blake  <eblake@redhat.com>
34969         docs: document recently fixed glibc printf bug
34970         * doc/posix-functions/fprintf.texi (fprintf): Document it.
34971         * doc/posix-functions/printf.texi (printf): Likewise.
34972         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34973         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34975         closein-tests: convert to init.sh
34976         * modules/closein-tests (Files): Add init.sh
34977         * tests/test-closein.sh Use it.
34979         yesno-tests: convert to init.sh
34980         * modules/yesno-tests (Files): Add init.sh.
34981         * tests/test-yesno.sh: Use it.
34983         atexit-tests: ensure reliable exit status
34984         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
34985         Reported by Bruno Haible.
34987 2011-05-24  Bruno Haible  <bruno@clisp.org>
34989         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
34990         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
34991         gl_PREREQ_STRERROR_R invocations from here...
34992         * modules/strerror_r-posix (configure.ac): ... to here.
34994 2011-05-24  Eric Blake  <eblake@redhat.com>
34996         strerror_r: fix missing header
34997         * lib/strerror_r.c: Avoid compiler warning about snprintf.
34999         strerror_r: fix AIX test failures
35000         * lib/strerror_r.c (strerror_r): Convert silent truncation to
35001         ERANGE failure.
35003         strerror_r: fix Solaris test failures
35004         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
35005         failures.
35006         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35008         strerror_r: enforce POSIX recommendations
35009         * lib/strerror_r.c (safe_copy): New helper method.
35010         (strerror_r): Guarantee a non-empty string.
35011         * tests/test-strerror_r.c (main): Enhance tests to incorporate
35012         recent POSIX rulings and to match our strerror guarantees.
35013         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35015 2011-05-24  Jim Meyering  <meyering@redhat.com>
35017         test-perror2.c: avoid warning about unused variable
35018         * tests/test-perror2.c (main): Remove declaration of unused "fp".
35020 2011-05-24  Eric Blake  <eblake@redhat.com>
35022         perror: avoid spurious test failure on HP-UX
35023         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
35025         tests: fix logic bug in init.sh
35026         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
35027         shell.
35029 2011-05-24  Jim Meyering  <meyering@redhat.com>
35031         utimensat: do not reference an out-of-scope buffer
35032         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
35033         declared in an inner scope, yet "times" would be dereferenced outside
35034         the scope in which "ts" was valid.
35035         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
35036         of ts[2] "out/up", so that the use of aliased "times" (via
35037         "times = ts;") does not end up referencing an out-of-scope "ts"
35039         opendir-safer.c: don't clobber errno; don't close negative FD
35040         * lib/opendir-safer.c (opendir_safer):
35041         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
35042         file descriptor, and more importantly, don't clobber the
35043         offending errno value with EINVAL.  Before, upon failure
35044         of dup_safer, we would pass the negative file descriptor to
35045         fdopendir, which would clobber errno.
35047 2011-05-23  Bruno Haible  <bruno@clisp.org>
35049         idcache: Fix module description.
35050         * modules/idcache (Include): Set to "idcache.h".
35052 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35054         gnulib-tool: fix portability problem with MacOS sed
35055         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
35056         before the "}".  Problem reported by Leo in
35057         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
35058         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
35059         sed_extract_condition1, sed_extract_condition2.
35061 2011-05-23  Bruno Haible  <bruno@clisp.org>
35063         hash: Simplify autoconf macro.
35064         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
35066 2011-05-23  Bruno Haible  <bruno@clisp.org>
35068         getugroups: Fix module description.
35069         * modules/getugroups (Include): Set to "getugroups.h".
35071 2011-05-23  Bruno Haible  <bruno@clisp.org>
35073         linkat: Simplify autoconf macro.
35074         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
35076 2011-05-23  Bruno Haible  <bruno@clisp.org>
35077             Eric Blake  <eblake@redhat.com>
35079         linkat, renameat: Update dependencies.
35080         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
35081         * modules/linkat (Depends-on): Likewise. Remove also readlink,
35082         symlinkat.
35084 2011-05-23  Jim Meyering  <meyering@redhat.com>
35086         maint.mk: more tight_scope improvements
35087         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
35088         (_gl_TS_headers): Define only in if-0'd block.
35089         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
35090         sometimes we must *not* use it.  Adjust uses accordingly.
35091         (sc_tight_scope): Use much simpler grep-based test to determine
35092         whether we skip this rule.
35094         maint.mk: generalize/improve the tight-scope rule
35095         * top/maint.mk: Emit a warning when the test is skipped.
35096         (_gl_TS_dir): Add $(srcdir)/ prefix.
35097         (_gl_TS_function_match): Simplify, rather than trying
35098         to enumerate common types.  Otherwise, it would fail to match an
35099         "extern unsigned char const *" declaration in idutils.
35100         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
35101         a way to support use of that type of macro.
35102         (_gl_TS_var_match): Simplify regexp.
35103         (_gl_TS_obj_files): New configurable variable.
35104         (_gl_TS_headers): Likewise.
35106 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35108         verify: fix bug when gnulib <assert.h> is also included
35109         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
35110         is defined, not if _GL_STATIC_ASSERT_H is not defined.
35111         Perhaps there's a better way, but this fixes the immediate problem.
35112         Problem reported by Bruno Haible in
35113         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
35115 2011-05-22  Bruno Haible  <bruno@clisp.org>
35117         xgetcwd: Simplify autoconf macro.
35118         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
35120 2011-05-22  Bruno Haible  <bruno@clisp.org>
35122         New module 'mktime-internal'.
35123         * modules/mktime-internal: New file.
35124         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
35125         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
35126         mktime_internal as a C macro if libc has __mktime_internal.
35127         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
35128         conditions.
35129         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
35131 2011-05-22  Bruno Haible  <bruno@clisp.org>
35133         timegm: Correct mktime replacement statements.
35134         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
35135         defining mktime as a C macro. This completes a 2009-07-28 commit.
35137 2011-05-22  Bruno Haible  <bruno@clisp.org>
35139         timegm: Simplify autoconf macro.
35140         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
35142 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
35144         clock-time: change to LGPLv2+.
35145         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
35146         BSD-like but we have no mark for that; this is good enough for now.
35148 2011-05-21  Bruno Haible  <bruno@clisp.org>
35150         strerror_r: Fix comments.
35151         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
35153 2011-05-21  Bruno Haible  <bruno@clisp.org>
35155         relocatable-prog-wrapper: Fix possible link error.
35156         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
35157         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
35158         (gl_FUNC_SETENV): ... to here.
35159         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
35160         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
35162 2011-05-21  Bruno Haible  <bruno@clisp.org>
35164         relocatable-prog-wrapper: Assume strerror() exists.
35165         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
35166         m4/strerror.m4.
35167         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
35168         * lib/relocwrapper.c: Remove mention of strerror module.
35169         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
35170         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
35171         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
35172         C macro.
35174 2011-05-21  Bruno Haible  <bruno@clisp.org>
35176         select: Simplify replacement idiom.
35177         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
35178         Win32 platforms.
35179         * lib/sys_select.in.h (select): Simplify accordingly.
35180         * modules/select (Depends-on): Likewise.
35182 2011-05-21  Bruno Haible  <bruno@clisp.org>
35184         mkdir-p: Simplify autoconf macro.
35185         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
35186         gl_FUNC_LCHOWN.
35188 2011-05-21  Eric Blake  <eblake@redhat.com>
35190         strerror_r: avoid clobbering strerror on cygwin
35191         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
35192         fall back instead to sys_errlist.
35193         * modules/strerror (configure.ac): Add witness.
35194         * tests/test-strerror_r.c (main): Enhance test.
35195         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35196         * tests/test-perror2.c (main): Free memory before exit.
35198 2011-05-21  Bruno Haible  <bruno@clisp.org>
35200         mkdtemp: Use gnulib naming conventions.
35201         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
35202         * modules/mkdtemp (configure.ac): Update.
35204 2011-05-20  Eric Blake  <eblake@redhat.com>
35206         strerror_r: avoid corrupting errno on Solaris
35207         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
35208         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35210         strerror_r: avoid compiler warning
35211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
35213         strerror_r: simplify AIX code
35214         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
35216         test-perror: avoid spurious failure on FreeBSD
35217         * modules/perror-tests (Depends-on): Add strerror, now that
35218         strerror_r no longer pulls it in.
35220 2011-05-20  Bruno Haible  <bruno@clisp.org>
35222         strerror_r-posix: Remove unused dependencies.
35223         * modules/strerror_r-posix (Depends-on): Remove strerror.
35224         Reported by Eric Blake.
35226 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35228         intprops: remove assumption about A|B representation
35229         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
35230         is a valid integer if both A and B are.  Although this is true for
35231         all known practical hosts, the C standard doesn't guarantee it,
35232         and the code need not assume it.  Also, this change may work around
35233         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
35234         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
35236 2011-05-20  Eric Blake  <eblake@redhat.com>
35238         perror: work around FreeBSD bug
35239         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
35240         is broken.  Move AC_LIBOBJ...
35241         * modules/perror (configure.ac): Here.
35242         * doc/posix-functions/perror.texi (perror): Document this.
35243         * tests/test-perror2.c (main): Enhance test.
35245         test-perror: check for strerror interactions
35246         * tests/macros.h (STREQ): Add macro.
35247         * modules/perror-tests (Files): Add second test.
35248         * tests/test-perror2.c (main): New file.
35249         * doc/posix-functions/perror.texi (perror): Document glibc bug.
35251         test-perror: rewrite to use init script
35252         * modules/perror-tests (Files): Add init.sh.
35253         * tests/test-perror.sh: Use temporary directory.
35255 2011-05-20  Jim Meyering  <meyering@redhat.com>
35257         maint: replace misused "a" with "an"
35258         * doc/intprops.texi: "a integer"
35259         * doc/regex.texi: "a explanation"
35260         * lib/alignof.h: "a object"
35261         * lib/argmatch.h: "a explanation"
35262         * lib/argp-help.c: "a option" and "a OPTION_DOC"
35263         * lib/stdint.in.h: "a integer"
35264         * lib/userspec.c: "a owner"
35265         * doc/gnulib.texi: Fix "a idea", and reword.
35267 2011-05-19  Jim Meyering  <meyering@redhat.com>
35269         maint: correct misuse of "a" and "an"
35270         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
35271         * lib/argp-help.c: "an docum...": s/an/a/
35272         * lib/argp-parse.c: "An vector": s/An/A/
35273         * lib/execute.c: "an native": s/an/a/
35274         * lib/spawn-pipe.c: Likewise.
35275         * lib/gc.h: "an Gc_rc": s/an/a/
35276         * lib/unigbrk.in.h: "an grapheme": s/an/a/
35277         * lib/fts.c: "an stat.st_dev": s/an/a/
35279 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35281         intprops-tests: work around HP-UX 11.23 cc bug with constants
35282         * tests/test-intprops.c (VERIFY): New macro.
35283         (main): Use it, instead of verify, to work around the compiler bug; see
35284         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35286         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
35287         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
35288         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
35289         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
35290         (_GL_REMAINDER_OVERFLOW): Use it.
35292         intprops-tests: revert unsigned part of previous change
35293         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
35294         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
35295         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
35296         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
35298 2011-05-19  Bruno Haible  <bruno@clisp.org>
35300         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
35301         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
35302         strerror_r() returned without filling the buffer.
35303         Reported by Eric Blake.
35305 2011-05-19  Eric Blake  <eblake@redhat.com>
35307         strerror_r: guarantee unchanged errno
35308         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
35309         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
35310         failure.
35311         * tests/test-strerror_r.c (main): Enhance test.
35313 2011-05-19  Bruno Haible  <bruno@clisp.org>
35315         strerror_r: Reorder #if blocks.
35316         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
35317         for consistency with the previous commit.
35319 2011-05-19  Bruno Haible  <bruno@clisp.org>
35321         perror: Avoid clobbering the strerror buffer when possible.
35322         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
35323         * lib/strerror.c: Include it.
35324         * modules/strerror (Files): Add lib/strerror-impl.h.
35325         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
35326         (my_strerror): New function, defined through lib/strerror-impl.h.
35327         (perror): Use it instead of strerror.
35328         * modules/perror (Files): Add lib/strerror-impl.h.
35329         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
35331 2011-05-19  Eric Blake  <eblake@redhat.com>
35333         strerror_r: fix on newer cygwin
35334         * lib/strerror_r.c (strerror_r): Cygwin now has
35335         __xpg_strerror_r, use it.
35337 2011-05-19  Bruno Haible  <bruno@clisp.org>
35339         strerror_r: Avoid clobbering the strerror buffer when possible.
35340         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
35341         (sys_nerr, sys_errlist): New declarations.
35342         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
35343         HP-UX, native Win32, IRIX, and 32-bit Solaris.
35344         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
35346 2011-05-19  Bruno Haible  <bruno@clisp.org>
35348         strerror_r: Fix test failure on mingw.
35349         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
35350         EXTEND_STRERROR_R.
35351         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
35352         macros from errno.in.h instead.
35354 2011-05-19  Eric Blake  <eblake@redhat.com>
35356         strerror: relax test for Solaris
35357         * tests/test-strerror.c (main): Permit Solaris behavior.
35358         * tests/test-strerror_r.c (main): Likewise.
35360         strerror: enforce POSIX ruling on strerror(0)
35361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
35362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
35363         * lib/strerror_r.c (rpl_strerror_r): Work around it.
35364         * doc/posix-functions/strerror.texi (strerror): Document it.
35365         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
35366         * tests/test-strerror.c (main): Strengthen test.
35367         * tests/test-strerror_r.c (main): Likewise.
35369 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35371         intprop-tests: port to older and more-pedantic compilers
35372         * modules/intprops-tests (Files): Add tests/macros.h.
35373         * tests/test-intprops.c: Include macros.h.
35374         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
35375         it's no longer documented to expand to an integer constant expression.
35376         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
35377         argument is floating point, as it's no longer documented to expand
35378         to an integer constant expression in that case.
35379         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
35380         compiler bugs reported by Bruno Haible.  See
35381         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35382         (U0, U1): New constants, to work around the same bugs.  Also,
35383         in tests, use e.g., "(unsigned int) 39" rather than "39u".
35385         intprops: work around C compiler bugs
35386         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
35387         bug in Sun C 5.11 2010/08/13 and other compilers; see
35388         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35390         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
35391         * doc/intprops.texi (Integer Type Determination): Fix
35392         documentation for TYPE_IS_INTEGER: it returns an constant
35393         expression, not an integer constant expression.  Fix doc for
35394         TYPE_SIGNED: it returns an integer constant expression only if its
35395         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
35396         hardly worth documented that way....)
35398 2011-05-18  Bruno Haible  <bruno@clisp.org>
35400         strerror_r: Avoid clobbering the strerror buffer when possible.
35401         * lib/strerror_r.c (strerror_r): Merge the three implementations.
35402         Handle gnulib defined errno values here. When strerror() returns NULL
35403         or an empty string, return EINVAL.
35404         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
35405         gnulib defined errno values here.
35406         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
35408 2011-05-18  Eric Blake  <eblake@redhat.com>
35410         fnmatch: avoid compiler warning
35411         * lib/fnmatch_loop.c (FCT): Use correct type.
35412         Reported by Matthias Bolte.
35414 2011-05-13  Jim Meyering  <meyering@redhat.com>
35416         maint.mk: three new prohibit_<HDR>_without_use rules
35417         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
35418         (sc_prohibit_stdio-safer_without_use): Likewise.
35419         (sc_prohibit_xfreopen_without_use): Likewise.
35421 2011-05-17  Jim Meyering  <meyering@redhat.com>
35423         announce-gen: fail if the NEWS delta is empty
35424         If there's nothing noteworthy in NEWS, then either you forgot
35425         or you shouldn't be releasing.
35426         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
35428 2011-05-17  Pádraig Brady  <P@draigBrady.com>
35430         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
35431         reserved symbols starting with double underscore from the check.
35433 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35435         intprops: add doc
35436         * doc/intprops.texi: New file, documenting intprops.
35437         * doc/gnulib.texi (Particular Modules): Include it.
35439         verify: add doc to gnulib manual and fix example
35440         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
35441         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
35442         (Compile-time Assertions): Fix example so it can't overflow.
35444 2011-05-17  Jim Meyering  <meyering@redhat.com>
35446         warnings.m4: don't usurp save_CPPFLAGS variable name
35447         * m4/warnings.m4: Prefix local temporary variable name with gl_.
35449         doc: fix typo
35450         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
35452 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35453             Bruno Haible  <bruno@clisp.org>
35455         doc: Tweak recent change.
35456         * README (Portability guidelines): Tweak new text.
35457         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
35458         Interix 6.1.
35460 2011-05-16  Eric Blake  <eblake@redhat.com>
35462         inttypes: avoid autoconf warning
35463         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
35464         * m4/stdint.m4 (gl_STDINT_H): Likewise.
35466 2011-05-16  Sam Steingold  <sds@gnu.org>
35467         and Eric Blake  <eblake@redhat.com>
35469         vc-list-files: accept multiple directory operands
35470         * build-aux/vc-list-files: Iterate over all remaining operands.
35472 2011-05-16  Bruno Haible  <bruno@clisp.org>
35474         Fix confusion regarding deprecated modules.
35475         * modules/calloc (Status, Notice): Mark module as deprecated, not
35476         obsolete.
35477         * modules/fnmatch-posix (Status, Notice): Likewise.
35478         * modules/getdate (Status, Notice): Likewise.
35479         * modules/getopt (Status, Notice): Likewise.
35480         * modules/malloc (Status, Notice): Likewise.
35481         * modules/pipe (Status, Notice): Likewise.
35482         * modules/realloc (Status, Notice): Likewise.
35483         * modules/rename-dest-slash (Status, Notice): Likewise.
35484         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
35485         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
35486         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
35487         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
35488         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
35490 2011-05-16  Bruno Haible  <bruno@clisp.org>
35492         doc: List the target platforms.
35493         * doc/gnulib-intro.texi (Target Platforms): New section.
35494         * doc/gnulib.texi (Introduction): Update menu.
35495         * README (Portability guidelines): Refer to the new section. Update
35496         statement about oldest supported environment. Remove rationale why
35497         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
35498         unportable C89 function.
35499         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
35500         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
35502 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35504         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
35506 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35508         intprops-tests: new module
35509         * modules/intprops-tests, tests/test-intprops.c: New files.
35511         intprops: add safe, portable integer overflow checking
35512         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
35513         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
35514         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
35515         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
35516         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
35517         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
35518         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
35519         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
35520         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
35521         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
35522         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
35524 2011-05-12  James Youngman  <jay@gnu.org>
35526         Add a test for glibc's Bugzilla bug #12378.
35527         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
35528         doesn't allow the literal matching of a lone "[" (which is
35529         required by POSIX).
35530         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
35532 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35534         Sync glibc change fixing Bugzilla bug #12378.
35535         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
35536         beginning and fall back to matching as normal character if the
35537         string ends before the matching ']' is found.  This is what POSIX
35538         requires.
35540 2011-05-13  Eric Blake  <eblake@redhat.com>
35542         getcwd-lgpl: relax test for FreeBSD
35543         * doc/posix-functions/getcwd.texi (getcwd): Document portability
35544         issue.
35545         * tests/test-getcwd-lgpl.c (main): Relax test.
35546         Reported by Matthias Bolte.
35548 2011-05-11  Eric Blake  <eblake@redhat.com>
35550         test-fflush: silence compiler warning
35551         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
35553 2011-05-11  Bruno Haible  <bruno@clisp.org>
35555         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
35556         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
35557         * modules/canonicalize (Depends-on): Add 'nocrash'.
35558         * modules/canonicalize-lgpl (Depends-on): Likewise.
35559         * doc/posix-functions/realpath.texi: Update platforms list.
35560         Reported by Ryan Schmidt <ryandesign@macports.org>.
35562 2011-05-11  Bruno Haible  <bruno@clisp.org>
35564         group-member: Declare function in <unistd.h>.
35565         * lib/unistd.in.h (group_member): New declaration.
35566         * lib/group-member.h: Remove file.
35567         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
35568         * tests/test-unistd-c++.cc: Check signature of group_member.
35569         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
35570         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
35571         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
35572         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
35573         HAVE_GROUP_MEMBER.
35574         * modules/group-member (Files): Remove lib/group-member.h.
35575         (Depends-on): Add unistd. Specify conditions.
35576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35577         (Include): Change to <unistd.h>.
35578         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
35579         HAVE_GROUP_MEMBER.
35580         * NEWS: Mention the change.
35581         * lib/euidaccess.c: Don't include group-member.h.
35583 2011-05-11  Bruno Haible  <bruno@clisp.org>
35585         group-member: Document module.
35586         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
35587         module.
35589 2011-05-11  Bruno Haible  <bruno@clisp.org>
35591         fclose: Fix mistake earlier today.
35592         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
35594 2011-05-11  Eric Blake  <eblake@redhat.com>
35596         fclose: preserve fflush errors
35597         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
35598         Reported by Jim Meyering.
35600         bootstrap: support a prereq of 'rpcgen -' on RHEL5
35601         * build-aux/bootstrap (check_versions): When no specific version
35602         is required, merely check that the app produces an exit status
35603         that indicates its existence.
35605         maint.mk: drop redundant check
35606         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
35607         the same but better.
35609 2011-05-11  Bruno Haible  <bruno@clisp.org>
35611         fclose: Fix possible link error.
35612         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
35613         unregister_shadow_fd. Improve comments.
35614         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
35615         Eric Blake.
35617 2011-05-11  Jim Meyering  <meyering@redhat.com>
35619         maint.mk: improve "can not" detection and generalize rule name
35620         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
35621         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
35622         Use the same technique as in sc_prohibit_doubled_word, so that
35623         we recognize "can not" also when the words are separated by a newline.
35624         Suggested by Eric Blake.
35625         (perl_filename_lineno_text_): Define.  Factored out of...
35626         (prohibit_doubled_word_): ...here.  Use the new definition.
35627         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
35628         (prohibit_undesirable_word_seq_RE_): New overridable variable.
35629         (ignore_undesirable_word_sequence_RE_): New overridable variable.
35631 2011-05-10  Eric Blake  <eblake@redhat.com>
35633         fclose: avoid double close race when possible
35634         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
35635         all but WINDOWS_SOCKETS.
35637 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
35639         openat: correct new comment
35640         * lib/openat-proc.c (openat_proc_name): Correct the comment.
35642 2011-05-10  Jim Meyering  <meyering@redhat.com>
35644         openat: add comments
35645         * lib/openat-proc.c (openat_proc_name): Add comments,
35646         mostly from Eric Blake.
35648 2011-05-09  Eric Blake  <eblake@redhat.com>
35650         openat: reduce syscalls in first probe of /proc
35651         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
35652         be a directory.  Simplify the probe for .. bugs.
35653         * modules/openat (Depends-on): Drop same-inode.
35654         Reported by Bastien ROUCARIES.
35656 2011-05-09  Jim Meyering  <meyering@redhat.com>
35658         maint.mk: change semantics/name of tight_scope variables
35659         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
35660         Rename variables to align with semantics that make them more useful.
35662         maint.mk: tweak new rule's name not to impinge
35663         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
35664         (sc_tight_scope): Use new rule name rather than $@-0.
35666         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
35667         * top/maint.mk (sc_tight_scope): New rule.
35668         (sc_tight_scope-0): New rule, ifdef'd out.
35669         (_gl_TS_dir): Default.
35670         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
35671         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
35673 2011-05-09  Simon Josefsson  <simon@josefsson.org>
35675         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
35676         Haible <bruno@clisp.org>.
35678 2011-05-08  Bruno Haible  <bruno@clisp.org>
35680         Comments.
35681         * m4/isnanf.m4: Add comment.
35682         * m4/isnanl.m4: Likewise.
35684 2011-05-08  Bruno Haible  <bruno@clisp.org>
35686         glob: Remove obsolete macro.
35687         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
35689 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
35691         intprops: Sun C 5.11 supports __typeof__
35692         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
35693         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
35694         which is new.
35695         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
35697         intprops: switch to usual gnulib indenting and naming
35698         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
35699         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
35701         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
35703 2011-05-08  Jim Meyering  <meyering@redhat.com>
35705         maint.mk: suppress "Entering/Leaving directory" diag in announcement
35706         * top/maint.mk (release-prep): Use make's --no-print-directory
35707         option when generating the announcement.  This eliminates the
35708         pesky "make[2]: Entering/Leaving directory" diagnostics in the
35709         generated announcement template.
35711 2011-05-08  Bruno Haible  <bruno@clisp.org>
35713         tzset: Fix gettimeofday wrapper on Solaris 2.6.
35714         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
35715         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
35717 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35719         ignore-value, verify: Omit include files from lib_SOURCES.
35720         * modules/ignore-value, modules/verify (Makefile.am):
35721         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
35722         that leads Automake to duplicate use of am__objects_... variables
35723         in Makefile.in.  See
35724         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
35726 2011-05-07  Bruno Haible  <bruno@clisp.org>
35728         fclose: Simplify autoconf macro.
35729         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
35730         defined.
35732 2011-05-07  Bruno Haible  <bruno@clisp.org>
35734         canonicalize-lgpl: Fix autoconf macro ordering bug.
35735         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
35736         gl_STDLIB_H_DEFAULTS.
35738 2011-05-06  Eric Blake  <eblake@redhat.com>
35740         maintainer-makefile: make sc_po_check easier to tune
35741         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
35742         to probe for strings, such as an alternate location for gnulib.
35744         fclose: guarantee behavior on seekable stdin
35745         * modules/fclose (Depends-on): Add fflush.
35746         * doc/posix-functions/fclose.texi (fclose): Document this.
35747         * tests/test-fclose.c (main): Make test for this unconditional.
35749 2011-05-06  Bruno Haible  <bruno@clisp.org>
35751         fflush, fpurge: Relicense under LGPLv2+.
35752         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
35753         * modules/fpurge (License): Likewise.
35754         With permission from Eric Blake and Jim Meyering.
35755         Suggested by Eric Blake.
35757 2011-05-06  Karl Berry  <karl@gnu.org>
35759         * MODULES.html.sh (func_all_modules): remove exit.
35761 2011-05-06  Jim Meyering  <meyering@redhat.com>
35763         maint.mk: use info-gnu@ as the default only for a stable release
35764         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
35765         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
35766         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
35767         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
35769 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
35771         assert-h: new module, which supports C1X-style static_assert
35772         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
35773         * lib/verify.h: Revamp so that this can be copied into assert.h,
35774         while retaining the ability to use it standalone as before.
35775         Rename private identifiers so as not to encroach on the
35776         standard C namespace, since this is now used by assert.h.
35777         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
35778         the old verify_true.
35779         (_GL_VERIFY_TRUE): New macro, with much of the contents of
35780         the old verify_true.  Use _GL_VERIFY_TYPE.
35781         (_GL_VERIFY): New macro, with much of the contents of the old verify.
35782         (static_assert): New macro, if _GL_STATIC_ASSERT_H
35783         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
35784         defined when this file is copied into the replacement assert.h.
35785         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
35786         and _Static_assert is not built in.
35787         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
35788         defined, and use the new macros mentioned above.
35789         * doc/posix-headers/assert.texi: Document this.
35791 2011-05-05  Bruno Haible  <bruno@clisp.org>
35793         fclose, fflush: Respect rules for use of AC_LIBOBJ.
35794         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
35795         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
35796         gl_REPLACE_FCLOSE here.
35797         * modules/fflush (Depends-on): Remove fclose.
35798         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
35799         combination with module 'fclose'.
35801 2011-05-05  Bruno Haible  <bruno@clisp.org>
35803         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
35804         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
35805         gl_FUNC_FFLUSH.
35806         (gl_FUNC_FFLUSH): Use it.
35807         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
35808         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
35809         gl_REPLACE_FSEEKO here.
35811 2011-05-05  Bruno Haible  <bruno@clisp.org>
35813         tzset: Relicense under LGPL.
35814         * modules/tzset (License): Change to LGPL.
35815         No agreement needed; it's a no-op.
35817         strtoimax, strtoumax: Relicense under LGPL.
35818         * modules/strtoimax (License): Change to LGPL.
35819         * modules/strtoumax (License): Likewise.
35820         With permission from Jim Meyering, Paul Eggert:
35821         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
35822         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
35824         getgroups: Relicense under LGPL.
35825         * modules/getgroups (License): Change to LGPL.
35826         With permission from Jim Meyering, Paul Eggert, Eric Blake:
35827         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
35828         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
35829         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35831         nanosleep: Relicense under LGPL.
35832         * modules/nanosleep (License): Change to LGPL.
35833         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
35834         Haible:
35835         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
35836         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
35837         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35838         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
35840         futimens: Relicense under LGPL.
35841         * modules/futimens (License): Change to LGPL.
35842         With permission from Eric Blake:
35843         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35845         fflush: Relicense under LGPL.
35846         * modules/fflush (License): Change to LGPL.
35847         With permission from Eric Blake, Bruno Haible, Jim Meyering:
35848         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35849         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
35850         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
35852         tmpfile: Relicense under LGPL.
35853         * modules/tmpfile (License): Change to LGPL.
35854         With permission from Ben Pfaff:
35855         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
35857         isfinite: Relicense under LGPL.
35858         * modules/isfinite (License): Change to LGPL.
35859         With permission from Ben Pfaff, Bruno Haible:
35860         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
35861         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
35863         acosl..tanl: Relicense under LGPL.
35864         * modules/acosl (License): Change to LGPL.
35865         * modules/asinl (License): Likewise.
35866         * modules/atanl (License): Likewise.
35867         * modules/cosl (License): Likewise.
35868         * modules/expl (License): Likewise.
35869         * modules/logl (License): Likewise.
35870         * modules/sinl (License): Likewise.
35871         * modules/sqrtl (License): Likewise.
35872         * modules/tanl (License): Likewise.
35873         Source code originally from glibc and Paolo Bonzini. Agreements:
35874         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
35875         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
35877 2011-05-05  Bruno Haible  <bruno@clisp.org>
35879         signal: Define sighandler_t.
35880         * lib/signal.in.h (sighandler_t): New type.
35881         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
35882         whether sighandler_t is defined.
35883         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
35884         * modules/signal (Depends-on): Add extensions.
35885         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
35886         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
35887         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
35889 2011-05-05  Eric Blake  <eblake@redhat.com>
35891         maint: remove useless REPLACE_*_H macros
35892         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
35893         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35894         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35895         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
35896         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35897         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35898         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
35899         * m4/btowc.m4: Update callers.
35900         * m4/dirfd.m4: Likewise.
35901         * m4/duplocale.m4: Likewise.
35902         * m4/fchdir.m4: Likewise.
35903         * m4/fdopendir.m4: Likewise.
35904         * m4/inet_ntop.m4: Likewise.
35905         * m4/inet_pton.m4: Likewise.
35906         * m4/ioctl.m4: Likewise.
35907         * m4/mbrlen.m4: Likewise.
35908         * m4/mbrtowc.m4: Likewise.
35909         * m4/mbsinit.m4: Likewise.
35910         * m4/mbsnrtowcs.m4: Likewise.
35911         * m4/mbsrtowcs.m4: Likewise.
35912         * m4/poll.m4: Likewise.
35913         * m4/setlocale.m4: Likewise.
35914         * m4/wcrtomb.m4: Likewise.
35915         * m4/wcsnrtombs.m4: Likewise.
35916         * m4/wcsrtombs.m4: Likewise.
35917         * m4/wctob.m4: Likewise.
35918         * m4/wcwidth.m4: Likewise.
35919         * modules/posix_spawn: Likewise.
35920         * modules/posix_spawn_file_actions_addclose: Likewise.
35921         * modules/posix_spawn_file_actions_adddup2: Likewise.
35922         * modules/posix_spawn_file_actions_addopen: Likewise.
35923         * modules/posix_spawn_file_actions_destroy: Likewise.
35924         * modules/posix_spawn_file_actions_init: Likewise.
35925         * modules/posix_spawnattr_destroy: Likewise.
35926         * modules/posix_spawnattr_getflags: Likewise.
35927         * modules/posix_spawnattr_getpgroup: Likewise.
35928         * modules/posix_spawnattr_getschedparam: Likewise.
35929         * modules/posix_spawnattr_getschedpolicy: Likewise.
35930         * modules/posix_spawnattr_getsigdefault: Likewise.
35931         * modules/posix_spawnattr_getsigmask: Likewise.
35932         * modules/posix_spawnattr_init: Likewise.
35933         * modules/posix_spawnattr_setflags: Likewise.
35934         * modules/posix_spawnattr_setpgroup: Likewise.
35935         * modules/posix_spawnattr_setschedparam: Likewise.
35936         * modules/posix_spawnattr_setschedpolicy: Likewise.
35937         * modules/posix_spawnattr_setsigdefault: Likewise.
35938         * modules/posix_spawnattr_setsigmask: Likewise.
35939         * modules/posix_spawnp: Likewise.
35941 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
35943         Add option to do-release-commit-and-tag to specify branch.
35944         * build-aux/do-release-commit-and-tag: Add --branch.
35946 2011-05-03  Bruno Haible  <bruno@clisp.org>
35948         Avoid unnecessary compilation units, through conditional dependencies.
35949         * modules/accept (Depends-on): Add conditions to the dependencies.
35950         * modules/acosl (Depends-on): Likewise.
35951         * modules/argz (Depends-on): Likewise.
35952         * modules/asinl (Depends-on): Likewise.
35953         * modules/atanl (Depends-on): Likewise.
35954         * modules/atoll (Depends-on): Likewise.
35955         * modules/bind (Depends-on): Likewise.
35956         * modules/btowc (Depends-on): Likewise.
35957         * modules/canonicalize-lgpl (Depends-on): Likewise.
35958         * modules/ceil (Depends-on): Likewise.
35959         * modules/ceilf (Depends-on): Likewise.
35960         * modules/ceill (Depends-on): Likewise.
35961         * modules/chdir-long (Depends-on): Likewise.
35962         * modules/chown (Depends-on): Likewise.
35963         * modules/close (Depends-on): Likewise.
35964         * modules/connect (Depends-on): Likewise.
35965         * modules/cosl (Depends-on): Likewise.
35966         * modules/dirfd (Depends-on): Likewise.
35967         * modules/dprintf (Depends-on): Likewise.
35968         * modules/dprintf-posix (Depends-on): Likewise.
35969         * modules/error (Depends-on): Likewise.
35970         * modules/euidaccess (Depends-on): Likewise.
35971         * modules/expl (Depends-on): Likewise.
35972         * modules/faccessat (Depends-on): Likewise.
35973         * modules/fchdir (Depends-on): Likewise.
35974         * modules/fclose (Depends-on): Likewise.
35975         * modules/fcntl (Depends-on): Likewise.
35976         * modules/fdopendir (Depends-on): Likewise.
35977         * modules/fflush (Depends-on): Likewise.
35978         * modules/floor (Depends-on): Likewise.
35979         * modules/floorf (Depends-on): Likewise.
35980         * modules/floorl (Depends-on): Likewise.
35981         * modules/fnmatch (Depends-on): Likewise.
35982         * modules/fopen (Depends-on): Likewise.
35983         * modules/fprintf-posix (Depends-on): Likewise.
35984         * modules/frexp (Depends-on): Likewise.
35985         * modules/frexp-nolibm (Depends-on): Likewise.
35986         * modules/frexpl (Depends-on): Likewise.
35987         * modules/frexpl-nolibm (Depends-on): Likewise.
35988         * modules/fseek (Depends-on): Likewise.
35989         * modules/fsusage (Depends-on): Likewise.
35990         * modules/ftell (Depends-on): Likewise.
35991         * modules/ftello (Depends-on): Likewise.
35992         * modules/futimens (Depends-on): Likewise.
35993         * modules/getcwd (Depends-on): Likewise.
35994         * modules/getcwd-lgpl (Depends-on): Likewise.
35995         * modules/getdelim (Depends-on): Likewise.
35996         * modules/getdomainname (Depends-on): Likewise.
35997         * modules/getgroups (Depends-on): Likewise.
35998         * modules/gethostname (Depends-on): Likewise.
35999         * modules/getline (Depends-on): Likewise.
36000         * modules/getlogin_r (Depends-on): Likewise.
36001         * modules/getopt-posix (Depends-on): Likewise.
36002         * modules/getpeername (Depends-on): Likewise.
36003         * modules/getsockname (Depends-on): Likewise.
36004         * modules/getsockopt (Depends-on): Likewise.
36005         * modules/getsubopt (Depends-on): Likewise.
36006         * modules/getusershell (Depends-on): Likewise.
36007         * modules/glob (Depends-on): Likewise.
36008         * modules/grantpt (Depends-on): Likewise.
36009         * modules/iconv_open (Depends-on): Likewise.
36010         * modules/iconv_open-utf (Depends-on): Likewise.
36011         * modules/inet_ntop (Depends-on): Likewise.
36012         * modules/inet_pton (Depends-on): Likewise.
36013         * modules/ioctl (Depends-on): Likewise.
36014         * modules/isapipe (Depends-on): Likewise.
36015         * modules/isfinite (Depends-on): Likewise.
36016         * modules/isinf (Depends-on): Likewise.
36017         * modules/lchown (Depends-on): Likewise.
36018         * modules/ldexpl (Depends-on): Likewise.
36019         * modules/link (Depends-on): Likewise.
36020         * modules/linkat (Depends-on): Likewise.
36021         * modules/listen (Depends-on): Likewise.
36022         * modules/logl (Depends-on): Likewise.
36023         * modules/lstat (Depends-on): Likewise.
36024         * modules/mbrlen (Depends-on): Likewise.
36025         * modules/mbrtowc (Depends-on): Likewise.
36026         * modules/mbsinit (Depends-on): Likewise.
36027         * modules/mbsnrtowcs (Depends-on): Likewise.
36028         * modules/mbsrtowcs (Depends-on): Likewise.
36029         * modules/mbtowc (Depends-on): Likewise.
36030         * modules/memcmp (Depends-on): Likewise.
36031         * modules/mkdir (Depends-on): Likewise.
36032         * modules/mkdtemp (Depends-on): Likewise.
36033         * modules/mkfifo (Depends-on): Likewise.
36034         * modules/mkfifoat (Depends-on): Likewise.
36035         * modules/mknod (Depends-on): Likewise.
36036         * modules/mkostemp (Depends-on): Likewise.
36037         * modules/mkostemps (Depends-on): Likewise.
36038         * modules/mkstemp (Depends-on): Likewise.
36039         * modules/mkstemps (Depends-on): Likewise.
36040         * modules/mktime (Depends-on): Likewise.
36041         * modules/nanosleep (Depends-on): Likewise.
36042         * modules/open (Depends-on): Likewise.
36043         * modules/openat (Depends-on): Likewise.
36044         * modules/perror (Depends-on): Likewise.
36045         * modules/poll (Depends-on): Likewise.
36046         * modules/popen (Depends-on): Likewise.
36047         * modules/posix_spawn (Depends-on): Likewise.
36048         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
36049         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36050         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36051         * modules/posix_spawnp (Depends-on): Likewise.
36052         * modules/pread (Depends-on): Likewise.
36053         * modules/printf-posix (Depends-on): Likewise.
36054         * modules/ptsname (Depends-on): Likewise.
36055         * modules/putenv (Depends-on): Likewise.
36056         * modules/pwrite (Depends-on): Likewise.
36057         * modules/readline (Depends-on): Likewise.
36058         * modules/readlink (Depends-on): Likewise.
36059         * modules/readlinkat (Depends-on): Likewise.
36060         * modules/recv (Depends-on): Likewise.
36061         * modules/recvfrom (Depends-on): Likewise.
36062         * modules/regex (Depends-on): Likewise.
36063         * modules/remove (Depends-on): Likewise.
36064         * modules/rename (Depends-on): Likewise.
36065         * modules/renameat (Depends-on): Likewise.
36066         * modules/rmdir (Depends-on): Likewise.
36067         * modules/round (Depends-on): Likewise.
36068         * modules/roundf (Depends-on): Likewise.
36069         * modules/roundl (Depends-on): Likewise.
36070         * modules/rpmatch (Depends-on): Likewise.
36071         * modules/select (Depends-on): Likewise.
36072         * modules/send (Depends-on): Likewise.
36073         * modules/sendto (Depends-on): Likewise.
36074         * modules/setenv (Depends-on): Likewise.
36075         * modules/setlocale (Depends-on): Likewise.
36076         * modules/setsockopt (Depends-on): Likewise.
36077         * modules/shutdown (Depends-on): Likewise.
36078         * modules/sigaction (Depends-on): Likewise.
36079         * modules/signbit (Depends-on): Likewise.
36080         * modules/sigprocmask (Depends-on): Likewise.
36081         * modules/sinl (Depends-on): Likewise.
36082         * modules/sleep (Depends-on): Likewise.
36083         * modules/snprintf (Depends-on): Likewise.
36084         * modules/snprintf-posix (Depends-on): Likewise.
36085         * modules/socket (Depends-on): Likewise.
36086         * modules/sprintf-posix (Depends-on): Likewise.
36087         * modules/sqrtl (Depends-on): Likewise.
36088         * modules/stat (Depends-on): Likewise.
36089         * modules/strchrnul (Depends-on): Likewise.
36090         * modules/strdup-posix (Depends-on): Likewise.
36091         * modules/strerror (Depends-on): Likewise.
36092         * modules/strerror_r-posix (Depends-on): Likewise.
36093         * modules/strndup (Depends-on): Likewise.
36094         * modules/strnlen (Depends-on): Likewise.
36095         * modules/strptime (Depends-on): Likewise.
36096         * modules/strsep (Depends-on): Likewise.
36097         * modules/strsignal (Depends-on): Likewise.
36098         * modules/strstr-simple (Depends-on): Likewise.
36099         * modules/strtod (Depends-on): Likewise.
36100         * modules/strtoimax (Depends-on): Likewise.
36101         * modules/strtok_r (Depends-on): Likewise.
36102         * modules/strtoumax (Depends-on): Likewise.
36103         * modules/symlink (Depends-on): Likewise.
36104         * modules/symlinkat (Depends-on): Likewise.
36105         * modules/tanl (Depends-on): Likewise.
36106         * modules/tcgetsid (Depends-on): Likewise.
36107         * modules/tmpfile (Depends-on): Likewise.
36108         * modules/trunc (Depends-on): Likewise.
36109         * modules/truncf (Depends-on): Likewise.
36110         * modules/truncl (Depends-on): Likewise.
36111         * modules/uname (Depends-on): Likewise.
36112         * modules/unlink (Depends-on): Likewise.
36113         * modules/unlockpt (Depends-on): Likewise.
36114         * modules/unsetenv (Depends-on): Likewise.
36115         * modules/usleep (Depends-on): Likewise.
36116         * modules/utimensat (Depends-on): Likewise.
36117         * modules/vasprintf (Depends-on): Likewise.
36118         * modules/vdprintf (Depends-on): Likewise.
36119         * modules/vdprintf-posix (Depends-on): Likewise.
36120         * modules/vfprintf-posix (Depends-on): Likewise.
36121         * modules/vprintf-posix (Depends-on): Likewise.
36122         * modules/vsnprintf (Depends-on): Likewise.
36123         * modules/vsnprintf-posix (Depends-on): Likewise.
36124         * modules/vsprintf-posix (Depends-on): Likewise.
36125         * modules/wcrtomb (Depends-on): Likewise.
36126         * modules/wcscasecmp (Depends-on): Likewise.
36127         * modules/wcscspn (Depends-on): Likewise.
36128         * modules/wcsdup (Depends-on): Likewise.
36129         * modules/wcsncasecmp (Depends-on): Likewise.
36130         * modules/wcsnrtombs (Depends-on): Likewise.
36131         * modules/wcspbrk (Depends-on): Likewise.
36132         * modules/wcsrtombs (Depends-on): Likewise.
36133         * modules/wcsspn (Depends-on): Likewise.
36134         * modules/wcsstr (Depends-on): Likewise.
36135         * modules/wcstok (Depends-on): Likewise.
36136         * modules/wcswidth (Depends-on): Likewise.
36137         * modules/wctob (Depends-on): Likewise.
36138         * modules/wctomb (Depends-on): Likewise.
36139         * modules/wctype (Depends-on): Likewise.
36140         * modules/wcwidth (Depends-on): Likewise.
36141         * modules/write (Depends-on): Likewise.
36143 2011-05-03  Bruno Haible  <bruno@clisp.org>
36145         Support for conditional dependencies.
36146         * doc/gnulib.texi (Module description): Document the syntax of
36147         conditional dependencies.
36148         * gnulib-tool: New option --conditional-dependencies.
36149         (func_usage): Document it.
36150         (cond_dependencies): New variable.
36151         (func_get_automake_snippet_conditional,
36152         func_get_automake_snippet_unconditional): New functions, extracted from
36153         func_get_automake_snippet.
36154         (func_get_automake_snippet): Use them.
36155         (sed_first_32_chars): New variable.
36156         (func_module_shellfunc_name): New function.
36157         (func_module_shellvar_name): New function.
36158         (func_module_conditional_name): New function.
36159         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
36160         func_cond_module_condition): New functions.
36161         (func_modules_transitive_closure): Add support for conditional
36162         dependencies.
36163         (func_emit_lib_Makefile_am): For a conditional module, enclose the
36164         conditional automake snippet in an automake conditional.
36165         (func_emit_autoconf_snippets): Emit shell functions that contain the
36166         code for conditional modules.
36167         (func_import, func_create_testdir): Update specification.
36169 2011-05-03  Eric Blake  <eblake@redhat.com>
36171         test-getaddrinfo: report error information
36172         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
36174 2011-05-03  Jim Meyering  <meyering@redhat.com>
36176         bootstrap: avoid build failure when $GZIP is set
36177         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
36178         program name.  If defined at all, it is supposed to list gzip options.
36179         Reported by Alan Curry in http://debbugs.gnu.org/8609
36181 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
36183         readme-release: new module with release instructions
36184         * modules/readme-release: New module.
36185         * top/README-release: New file, from coreutils, grep, diffutils.
36186         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36188 2011-05-02  Eric Blake  <eblake@redhat.com>
36190         fflush: also replace fclose when fixing fflush
36191         * modules/fflush (Depends-on): Add fclose.
36192         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
36193         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
36194         memstreams with no backing fd.
36195         * doc/posix-functions/fclose.texi (fclose): Document the use of
36196         fflush module to fix the bug.
36197         * tests/test-fclose.c (main): Relax test when fclose is used in
36198         isolation.
36200         fclose: add some tests
36201         * modules/fclose-tests: New test module.
36202         * tests/test-fclose.c: New file.
36203         * doc/posix-functions/fclose.texi (fclose): Document the bug.
36205         fclose: reduced dependencies
36206         * modules/fclose (Depends-on): Switch from fflush/fseeko to
36207         simpler lseek.
36208         * lib/fclose.c (rpl_fclose): Likewise.
36209         Reported by Simon Josefsson.
36211         exit: drop remaining clients
36212         * modules/argmatch (Depends-on): Replace exit with stdlib.
36213         * modules/copy-file (Depends-on): Likewise.
36214         * modules/execute (Depends-on): Likewise.
36215         * modules/exitfail (Depends-on): Likewise.
36216         * modules/obstack (Depends-on): Likewise.
36217         * modules/pagealign_alloc (Depends-on): Likewise.
36218         * modules/pipe-filter-gi (Depends-on): Likewise.
36219         * modules/pipe-filter-ii (Depends-on): Likewise.
36220         * modules/savewd (Depends-on): Likewise.
36221         * modules/spawn-pipe (Depends-on): Likewise.
36222         * modules/wait-process (Depends-on): Likewise.
36223         * modules/xsetenv (Depends-on): Likewise.
36224         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
36225         * modules/git-merge-changelog (Depends-on): Likewise.
36226         * modules/long-options (Depends-on): Likewise.
36227         * modules/pt_chown (Depends-on): Likewise.
36228         * modules/sysexits (Depends-on): Likewise.
36230         freading: relax license from LGPLv3+ to LGPLv2+
36231         * modules/freading (License): Relax LGPL version.
36233 2011-05-02  Bruno Haible  <bruno@clisp.org>
36235         fchdir: Remove unused dependencies.
36236         * modules/fchdir (Depends-on): Remove include_next.
36238 2011-05-02  Bruno Haible  <bruno@clisp.org>
36240         gnulib-tool: Refactor.
36241         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
36242         from func_emit_autoconf_snippets.
36243         (func_emit_autoconf_snippets): Use it.
36245 2011-05-02  Simon Josefsson  <simon@josefsson.org>
36247         * NEWS: Document removal of 'exit'.
36248         * modules/exit: Remove file.
36250 2011-05-01  Bruno Haible  <bruno@clisp.org>
36252         Update DEPENDENCIES.
36253         * DEPENDENCIES (gettext): Recommend the newest release.
36254         Reported by Simon Josefsson.
36256 2011-05-01  Bruno Haible  <bruno@clisp.org>
36258         gnulib-tool: Reduce code duplication.
36259         * gnulib-tool (func_emit_autoconf_snippets): New function.
36260         (func_import, func_create_testdir): Use it.
36262 2011-04-30  Eric Blake  <eblake@redhat.com>
36264         fclose: don't fail on non-seekable input stream
36265         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
36266         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
36267         since fflush is allowed to fail in that case.
36269 2011-04-30  Bruno Haible  <bruno@clisp.org>
36271         dup3: cleanup
36272         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
36274 2011-04-30  Bruno Haible  <bruno@clisp.org>
36276         netdb: Make it work in C++ mode.
36277         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
36278         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
36279         module.
36280         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
36281         gl_MODULE_INDICATOR_FOR_TESTS.
36282         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
36283         * modules/netdb-c++-tests: New file.
36284         * tests/test-netdb-c++.cc: New file.
36286 2011-04-30  Bruno Haible  <bruno@clisp.org>
36288         New modules 'vfscanf', 'vscanf'.
36289         * modules/vfscanf: New file.
36290         * modules/vscanf: New file.
36291         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
36292         here.
36293         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
36294         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
36296 2011-04-30  Bruno Haible  <bruno@clisp.org>
36298         passfd: Add comments.
36299         * lib/passfd.c: Add comments about platforms.
36301 2011-04-30  Bruno Haible  <bruno@clisp.org>
36303         sys_uio: Make <sys/uio.h> self-contained.
36304         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
36305         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
36307 2011-04-30  Bruno Haible  <bruno@clisp.org>
36309         sys_socket: Ensure 'struct iovec' definition.
36310         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
36311         <sys/socket.h>.
36312         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
36314 2011-04-30  Bruno Haible  <bruno@clisp.org>
36316         sys_uio: Protect definition of 'struct iovec'.
36317         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
36318         it as a C struct.
36320 2011-04-30  Bruno Haible  <bruno@clisp.org>
36322         manywarnings: fix indentation
36323         * m4/manywarnings.m4: Indent by 2 spaces consistently.
36325 2011-04-30  Pádraig Brady  <P@draigBrady.com>
36327         manywarnings: add -Wno-missing-field-initializers if needed.
36328         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
36329         option if it's needed to allow initialization with { 0, }
36331 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
36333         announce-gen: cosmetic improvement
36334         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
36336 2011-04-29  Jim Meyering  <meyering@redhat.com>
36338         vc-list-files: indent with spaces, not TABs
36339         * build-aux/vc-list-files: Convert leading TABs to spaces,
36340         to match the style of most other files in gnulib.
36342         announce-gen: indent with spaces, not TABs
36343         * build-aux/announce-gen: Convert all TABs to spaces, to match
36344         the style of most other files in gnulib.
36346 2011-04-29  Eric Blake  <eblake@redhat.com>
36348         quotearg: avoid uninitialized variable use
36349         * lib/quotearg.c (quoting_options_from_style): Initialize
36350         remaining fields, and ensure that custom styles are only used via
36351         quoting_options rather than quoting_style.
36353 2011-04-29  Jim Meyering  <meyering@redhat.com>
36355         maint.mk: remove unused VC-tag variable
36356         * top/maint.mk (VC-tag): Remove unused variable.
36358 2011-04-29  Bruno Haible  <bruno@clisp.org>
36360         netdb: fix gai_strerror replacements
36361         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
36362         * modules/netdb: Substitute it.
36364 2011-04-29  Jim Meyering  <meyering@redhat.com>
36366         test-getcwd.c: avoid new set-but-not-used warning
36367         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
36368         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
36369         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
36370         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
36372         test-hash.c: avoid a new shadowing warning
36373         * tests/test-hash.c (main): Don't shadow "dup".
36375 2011-04-28  Eric Blake  <eblake@redhat.com>
36377         getaddrinfo: fix gai_strerror signature
36378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
36379         and work around mingw with UNICODE defined.
36380         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
36381         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
36382         * modules/netdb (Makefile.am): Substitute it.
36383         * lib/netdb.in.h (gai_strerror): Declare replacement.
36384         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
36385         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
36386         the fix.
36388         getsockopt: avoid compiler warning
36389         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
36390         Reported by Matthias Bolte.
36392         tests: drop unused link dependency
36393         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
36394         * modules/dirent-safer-tests (Makefile.am): Likewise.
36395         * modules/fdopendir-tests (Makefile.am): Likewise.
36396         * modules/mkfifoat-tests (Makefile.am): Likewise.
36397         * modules/openat-safer-tests (Makefile.am): Likewise.
36398         * modules/openat-tests (Makefile.am): Likewise.
36399         * modules/readlinkat-tests (Makefile.am): Likewise.
36400         * modules/symlinkat-tests (Makefile.am): Likewise.
36401         * modules/linkat-tests (Makefile.am): Likewise.
36402         (Depends-on): Switch to filenamecat-lgpl.
36403         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
36404         LIBINTL.
36405         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
36406         * tests/test-linkat.c (main): Don't require xalloc.
36408         hash, mgetgroups: drop xalloc dependency
36409         * lib/hash.c (includes): Adjust includes.
36410         * lib/mgetgroups.c (includes): Likewise.
36411         (xgetgroups): Move...
36412         * lib/xgetgroups.c: ...to new file.
36413         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
36414         * modules/xgetgroups: New file, split from...
36415         * modules/mgetgroups: ...here.
36416         (Depends-on): Add xalloc-oversized.
36417         * modules/hash (Depends-on): Likewise.
36418         * modules/hash-tests (Depends-on): Drop xalloc.
36419         (test_hash_LDADD): Drop unused library.
36420         * tests/test-hash.c (main): Break xalloc dependency.
36421         (includes): Drop unused include.
36423         xalloc-oversized: new module
36424         * modules/xalloc-oversized: New module.
36425         * modules/xalloc (Depends-on): Add it.
36426         * lib/xalloc.h (xalloc_oversized): Move...
36427         * lib/xalloc-oversized.h: ...into new file.
36429         utimecmp: drop dependency on xmalloc
36430         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
36431         due to memory pressure.
36432         * modules/utimecmp (Depends-on): Drop xalloc.
36434 2011-04-27  Eric Blake  <eblake@redhat.com>
36436         getcwd: fix mingw bugs
36437         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
36438         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
36439         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
36441 2011-04-27  Bruno Haible  <bruno@clisp.org>
36443         mkstemps: Ensure declaration on MacOS X 10.5.
36444         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
36445         * doc/glibc-functions/mkstemps.texi: Document header file problem on
36446         MacOS X.
36448 2011-04-27  Bruno Haible  <bruno@clisp.org>
36450         mkstemp: More documentation.
36451         * doc/posix-functions/mkstemp.texi: Document header file problem on
36452         MacOS X.
36454 2011-04-27  Bruno Haible  <bruno@clisp.org>
36456         mkstemp: Tweak configure message when cross-compiling.
36457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
36458         result as a guess.
36460 2011-04-27  Bruno Haible  <bruno@clisp.org>
36462         clean-temp: Clarify what it does.
36463         * lib/clean-temp.h: Add more comments.
36464         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
36465         module.
36466         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
36467         * doc/glibc-functions/mkstemps.texi: Likewise.
36468         * doc/glibc-functions/mkostemps.texi: Likewise.
36470 2011-04-27  Eric Blake  <eblake@redhat.com>
36472         fchdir: avoid extra chdir and fix test
36473         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
36474         getcwd-lgpl.
36475         * lib/fchdir.c (get_name): Any absolute name will do; it does not
36476         have to be canonical.
36477         (canonicalize_file_name): Drop unused macro.
36478         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
36480         filenamecat-lgpl: fix licence
36481         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
36482         when it was first created.
36484         linkat, renameat: add missing dependency
36485         * modules/linkat (Depends-on): Require getcwd-lgpl.
36486         * modules/renameat (Depends-on): Likewise.
36488         tests: reduce dependencies
36489         * tests/test-linkat.c (main): Use lighter-weight getcwd.
36490         * tests/test-renameat.c (main): Likewise.
36491         * modules/linkat-tests (Depends-on): Relax dependency.
36492         * modules/renameat-tests (Depends-on): Likewise.
36493         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
36494         dependency explicit.
36496         save-cwd: reduce default dependency
36497         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
36498         * lib/save-cwd.c: Update comments.
36499         * NEWS: Document the semantic change.
36501         getcwd: enhance tests
36502         * tests/test-getcwd-lgpl.c: New file, taken from...
36503         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
36504         repeat long path stress tests from m4 probe.
36505         * modules/getcwd-lgpl-tests: New module.
36506         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
36507         * m4/getcwd-abort-bug.m4: Update comment.
36508         * m4/getcwd-path-max.m4: Likewise.
36510         getcwd-lgpl: new module
36511         * modules/getcwd-lgpl: New module.
36512         * lib/getcwd-lgpl.c: New file.
36513         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36514         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36515         * modules/getcwd (configure.ac): Set C witness.
36516         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
36518         getcwd: tweak comments
36519         * m4/getcwd-abort-bug.m4: Fix comments.
36520         * m4/getcwd-path-max.m4: Likewise.
36521         * m4/getcwd.m4: Likewise.
36523 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
36524         and Eric Blake  <eblake@redhat.com>
36526         mkstemp: replace if system version uses wrong permissions
36527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
36528         read/write mode bits set in file created by mkstemp.
36529         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
36531 2011-04-27  Eric Blake  <eblake@redhat.com>
36533         passfd: avoid compiler warning
36534         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
36535         Reported by Laine Stump.
36537 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
36539         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
36540         required by the NetBSD (and perhaps other 4.4BSD derived) join.
36542 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
36543         and Eric Blake  <eblake@redhat.com>
36545         mkstemp: mention clean-temp module
36546         * lib/mkstemp.c: Add comment.
36547         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
36549 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
36551         inttypes: also provide default values for 32-bit tests
36552         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
36553         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
36555 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
36557         strtoumax: remove dependency on strtoimax
36558         This is like the strtoull change of yesterday.
36559         * modules/strtoumax (Files): Add lib/strtoimax.c.
36560         (Depends-on): Remove strtoimax and add verify.
36562         inttypes-incomplete: new module
36563         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
36564         all but the PRI* and SCN* parts of gl_INTTYPES_H.
36565         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
36566         of gl_INTTYPES_H.
36567         (gl_INTTYPES_H): Rewrite in terms of these new macros.
36568         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
36569         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
36570         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
36571         * modules/strtoumax, modules/xstrtol (Depends-on):
36572         Depend on inttypes-incomplete, not inttypes.
36573         * modules/inttypes-incomplete: New module, containing the contents
36574         of the old modules/inttypes module, except that the Files: section
36575         omits m4/inttypes-pri.m4, and the configure.ac section invokes
36576         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
36577         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
36578         (Depends-on): Depend only on inttypes-incomplete.
36579         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
36581         inttypes: omit now-redundant strtoimax and strtoumax work
36582         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
36583         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
36585         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
36586         This supports apps that need pointers to strtoimax and strtoumax,
36587         and ports to HP-UX 11.00 64.bit, which has macros that expand to
36588         nonexistent functions.  See
36589         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
36590         et seq.
36591         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
36592         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
36593         a macro.
36594         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36596 2011-04-25  Simon Josefsson  <simon@josefsson.org>
36598         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
36600 2011-04-25  Bruno Haible  <bruno@clisp.org>
36602         strtol, strtoul: Mark modules as obsolete.
36603         * modules/strtol (Status, Notice): New sections.
36604         * modules/strtoul (Status, Notice): New sections.
36606 2011-04-25  Bruno Haible  <bruno@clisp.org>
36608         strtod: Remove check for strtod, unless supporting old platforms.
36609         * modules/strtod-obsolete: New file.
36610         * m4/strtod-obsolete.m4: New file.
36611         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
36612         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
36613         * modules/strtod (Depends-on): Add strtod-obsolete.
36614         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
36616 2011-04-25  Bruno Haible  <bruno@clisp.org>
36618         strcase: Make module obsolete.
36619         * modules/strcase (Status, Notice): New sections.
36621 2011-04-25  Bruno Haible  <bruno@clisp.org>
36623         dup2: Remove check for dup2, unless supporting old obsolete platforms.
36624         * modules/dup2-obsolete: New file.
36625         * m4/dup2-obsolete.m4: New file.
36626         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
36627         gl_FUNC_DUP2_OBSOLETE is not also defined.
36628         * modules/dup2 (Depends-on): Add dup2-obsolete.
36629         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
36631 2011-04-25  Bruno Haible  <bruno@clisp.org>
36633         strnlen: Avoid memchr related link error on old obsolete platforms.
36634         * modules/memchr-obsolete: New file.
36635         * m4/memchr-obsolete.m4: New file.
36636         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
36637         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
36638         * modules/memchr (Depends-on): Add memchr-obsolete.
36639         * modules/strnlen (Depends-on): Likewise.
36640         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
36642 2011-04-25  Jim Meyering  <meyering@redhat.com>
36644         maint.mk: makefile_at_at_check extend and clean up
36645         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
36646         in addition to */Makefile.am.
36647         Exempt legitimate uses of @VAR@ notation, e.g.,
36648         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
36649         Remove obsolete coreutils-specific comment.
36650         Prompted by discussion here:
36651         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
36653 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36655         strtoul: remove dependency on strtol
36656         This is so that 'configure' need not check for strtol merely because
36657         the application needs strtoul.
36658         * modules/strtoul (Files): Add lib/strtol.c.
36659         (Depends-on): Remove strtol.
36661         strtoull: remove dependency on strtoul
36662         This is like the strtoll change.
36663         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
36664         (Depends-on): Remove strtoul.
36666         strtoll: remove dependency on strtol
36667         This is so that 'configure' need not check for strtol merely because
36668         the application needs strtoll.
36669         * modules/strtoll (Files): Add lib/strtol.c.
36670         (Depends-on): Remove strtol.
36672 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36674         inttypes: Move some configure check to module 'imaxdiv'.
36675         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
36676         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
36677         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
36679 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36681         inttypes: Move some configure check to module 'imaxabs'.
36682         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
36683         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
36684         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
36686 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36688         inttypes: Remove configure tests that are not needed since 2009-12-31.
36689         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
36690         gl_cv_header_working_inttypes_h.
36692 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36694         * modules/strnlen (Depends-on): Remove memchr.
36695         The strnlen implementation doesn't need the memchr module's fixes; see
36696         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
36698         strtol: remove dependency on wchar
36699         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
36700         * modules/strtol (Depends-on): Remove wchar.
36702 2011-04-21  Eric Blake  <eblake@redhat.com>
36704         passfd: fix test regression on Linux
36705         * modules/passfd-tests (configure.ac): Correct socketpair check.
36707         passfd: speed up configure and drop unused code
36708         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
36709         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
36710         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
36711         Instead of probing at configure for unix_scm_rights_bsd44_way,
36712         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
36713         check to a struct member probe.
36714         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
36715         (sendfd, recvfd): Update preprocessor checks.
36716         * modules/passfd (Files): Reflect rename, and drop unused file.
36717         (Depends-on): Drop unused dependency.
36719         passfd: allow compilation on mingw
36720         * modules/sys_socket (Depends-on): Add sys_uio.
36721         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
36722         iovec and a minimal struct msghdr.
36723         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
36724         * tests/test-sys_socket.c (main): Enhance test.
36725         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
36726         guaranteed to provide what we need.
36727         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
36728         * modules/passfd-tests (Depends-on): Add sys_wait.
36729         * tests/test-passfd.c (main): Skip test on mingw, for now.
36730         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
36731         partial 'struct msghdr' implementation.
36733         sys_uio: new module
36734         * modules/sys_uio: New module.
36735         * modules/sys_uio-tests: Likewise.
36736         * lib/sys_uio.in.h: New file.
36737         * m4/sys_uio_h.m4: Likewise.
36738         * tests/test-sys_uio.c: Likewise.
36739         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
36740         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
36742 2011-04-20  Jim Meyering  <meyering@redhat.com>
36744         useless-if-before-free: avoid false-positive
36745         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
36746         disjunct so that it too requires a terminating ";".  Without that,
36747         this script would identify as useless one statement from gcc that
36748         was not:
36749           if (aligned_ptr)
36750             free (((void **) aligned_ptr) [-1]);
36752 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
36754         doc: update users.txt.
36755         * users.txt: Add barcode.
36757 2011-04-19  Bruno Haible  <bruno@clisp.org>
36759         ioctl: Remove link dependency on native Windows.
36760         * lib/fd-hook.h: Renamed from lib/close-hook.h.
36761         (gl_close_fn, gl_ioctl_fn): New types.
36762         (struct fd_hook): Renamed from struct close_hook. Change type of
36763         private_close_fn field. Add private_ioctl_fn field.
36764         (close_hook_fn): Add parameter for primary close method.
36765         (execute_close_hooks, execute_all_close_hooks): Likewise.
36766         (ioctl_hook_fn): New type.
36767         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
36768         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36769         argument.
36770         (unregister_fd_hook): Renamed from unregister_close_hook.
36771         * lib/fd-hook.c: Renamed from lib/close-hook.c.
36772         Don't include <unistd.h>.
36773         (close): Remove undef.
36774         (anchor): Update.
36775         (execute_close_hooks): Add argument for primary close method.
36776         (execute_all_close_hooks): Likewise.
36777         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
36778         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36779         argument. Allow each argument to be NULL.
36780         (unregister_fd_hook): Renamed from unregister_close_hook.
36781         * lib/close.c (rpl_close): Pass 'close' function pointer to
36782         execute_all_close_hooks.
36783         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
36784         (primary_ioctl): New function.
36785         (ioctl): Don't call ioctlsocket here. Instead, call
36786         execute_all_ioctl_hooks.
36787         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
36788         close method.
36789         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
36790         (fd_sockets_hook): Renamed from close_sockets_hook.
36791         (gl_sockets_startup, gl_sockets_cleanup): Update.
36792         * modules/fd-hook: Renamed from modules/close-hook. Update.
36793         * modules/close (Depends-on): Add fd-hook, remove close-hook.
36794         * modules/sockets (Depends-on): Likewise.
36795         * modules/ioctl (Depends-on): Add fd-hook.
36796         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
36797         GNULIB_SOCKET.
36799 2011-04-19  Bruno Haible  <bruno@clisp.org>
36801         Move the support of O_NONBLOCK in open() to the 'open' module.
36802         * modules/nonblocking (Depends-on): Remove 'open'.
36803         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
36804         gl_cv_have_open_O_NONBLOCK.
36805         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
36806         O_NONBLOCK support.
36807         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
36809 2011-04-17  Bruno Haible  <bruno@clisp.org>
36811         pipe2: Simplify code.
36812         * lib/pipe2.c (pipe2): Reduce code duplication.
36814 2011-04-17  Bruno Haible  <bruno@clisp.org>
36816         nonblocking: Add comment.
36817         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
36819 2011-04-17  Bruno Haible  <bruno@clisp.org>
36821         nonblocking: Add tests for sockets.
36822         * tests/test-nonblocking-socket.sh: New file.
36823         * tests/test-nonblocking-socket-main.c: New file.
36824         * tests/test-nonblocking-socket-child.c: New file.
36825         * tests/test-nonblocking-socket.h: New file.
36826         * tests/socket-server.h: New file.
36827         * tests/socket-client.h: New file.
36828         * modules/nonblocking-socket-tests: New file.
36829         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
36831 2011-04-17  Bruno Haible  <bruno@clisp.org>
36833         nonblocking: Add tests for pipes.
36834         * tests/test-nonblocking-pipe.sh: New file.
36835         * tests/test-nonblocking-pipe-main.c: New file.
36836         * tests/test-nonblocking-pipe-child.c: New file.
36837         * tests/test-nonblocking-pipe.h: New file.
36838         * tests/test-nonblocking-writer.h: New file.
36839         * tests/test-nonblocking-reader.h: New file.
36840         * tests/test-nonblocking-misc.h: New file.
36841         * modules/nonblocking-pipe-tests: New file.
36842         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
36844 2011-04-16  Bruno Haible  <bruno@clisp.org>
36846         gettext: Clarify the needed programmer actions.
36847         * modules/gettext (Notice): New field.
36848         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36850 2011-04-16  Bruno Haible  <bruno@clisp.org>
36852         strchrnul: Tweak last commit.
36853         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
36854         bug.
36855         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
36856         as in _GL_FUNCDECL_SYS.
36857         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
36858         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
36860 2011-04-15  Eric Blake  <eblake@redhat.com>
36862         strchrnul: work around cygwin bug
36863         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
36864         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
36865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
36866         * modules/string (Makefile.am): Substitute it.
36867         * lib/string.in.h (strchrnul): Use it.
36869 2011-04-15  Bruno Haible  <bruno@clisp.org>
36871         Don't require lib/stdio-write.c when only module 'stdio' is used.
36872         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
36873         invocation.
36874         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
36876 2011-04-14  Bruno Haible  <bruno@clisp.org>
36878         Support non-blocking pipe I/O in read() on native Windows.
36879         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
36880         (read): New declaration.
36881         * lib/read.c: New file.
36882         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
36883         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
36884         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
36885         vscanf): New declarations.
36886         * lib/stdio-read.c: New file.
36887         * m4/read.m4: New file.
36888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
36889         REPLACE_READ.
36890         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
36891         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36892         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
36893         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
36894         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
36895         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36896         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
36897         * modules/read: New file.
36898         * modules/nonblocking (Files): Add lib/stdio-read.c.
36899         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
36900         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
36901         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36902         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
36903         * modules/pread (Depends-on): Add read.
36904         * modules/safe-read (Depends-on): Likewise.
36905         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
36906         gets, scanf, vfscanf, vscanf): Verify signatures.
36907         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
36908         problem with non-blocking pipes.
36909         * doc/posix-functions/fgetc.texi: Likewise.
36910         * doc/posix-functions/fgets.texi: Likewise.
36911         * doc/posix-functions/fread.texi: Likewise.
36912         * doc/posix-functions/fscanf.texi: Likewise.
36913         * doc/posix-functions/getc.texi: Likewise.
36914         * doc/posix-functions/getchar.texi: Likewise.
36915         * doc/posix-functions/gets.texi: Likewise.
36916         * doc/posix-functions/scanf.texi: Likewise.
36917         * doc/posix-functions/vfscanf.texi: Likewise.
36918         * doc/posix-functions/vscanf.texi: Likewise.
36920 2011-04-14  Bruno Haible  <bruno@clisp.org>
36922         Support non-blocking pipe I/O in write() on native Windows.
36923         * lib/write.c (rpl_write): Split a write request that failed merely
36924         because the byte count was larger than the pipe buffer's size.
36925         * doc/posix-functions/write.texi: Mention the problem with large byte
36926         counts.
36928 2011-04-14  Bruno Haible  <bruno@clisp.org>
36930         wchar: Ensure that wchar_t gets defined on uClibc.
36931         * lib/wchar.in.h: On uClibc, include <stddef.h>.
36932         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
36934 2011-04-13  Bruno Haible  <bruno@clisp.org>
36936         safe-write, full-read: Avoid unnecessary compilation units.
36937         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
36938         (Depends-on): Remove safe-read. Add ssize_t.
36939         * modules/full-read (Files): Add lib/full-write.c.
36940         (Depends-on): Add full-write.
36942 2011-04-13  Bruno Haible  <bruno@clisp.org>
36944         Support non-blocking pipe I/O and SIGPIPE in pwrite().
36945         * modules/pwrite (Depends-on): Add 'write'.
36947 2011-04-13  Bruno Haible  <bruno@clisp.org>
36949         Support non-blocking pipe I/O in write() on native Windows.
36950         * lib/unistd.in.h (write): Enable replacement also if
36951         GNULIB_UNISTD_H_NONBLOCKING is 1.
36952         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
36953         (rpl_write): When failing to write on a non-blocking pipe, change
36954         errno from ENOSPC to EAGAIN.
36955         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
36956         putchar, puts, vfprintf, vprintf): Enable replacement also if
36957         GNULIB_STDIO_H_NONBLOCKING is 1.
36958         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
36959         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
36960         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
36961         CALL_WITH_SIGPIPE_EMULATION.
36962         (CALL_WITH_SIGPIPE_EMULATION): Use them.
36963         * m4/nonblocking.m4: New file.
36964         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
36965         for non-blocking I/O support.
36966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36967         GNULIB_UNISTD_H_NONBLOCKING.
36968         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
36969         required for non-blocking I/O support.
36970         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
36971         * modules/nonblocking (Files): Add m4/nonblocking.m4,
36972         lib/stdio-write.c, m4/asm-underscore.m4.
36973         (Depends-on): Add stdio, unistd.
36974         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
36975         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
36976         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
36977         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
36978         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
36979         problem with non-blocking pipes.
36980         * doc/posix-functions/fputc.texi: Likewise.
36981         * doc/posix-functions/fputs.texi: Likewise.
36982         * doc/posix-functions/fwrite.texi: Likewise.
36983         * doc/posix-functions/printf.texi: Likewise.
36984         * doc/posix-functions/putc.texi: Likewise.
36985         * doc/posix-functions/putchar.texi: Likewise.
36986         * doc/posix-functions/puts.texi: Likewise.
36987         * doc/posix-functions/vfprintf.texi: Likewise.
36988         * doc/posix-functions/vprintf.texi: Likewise.
36989         * doc/posix-functions/write.texi: Likewise.
36991 2011-04-10  Jim Meyering  <meyering@redhat.com>
36993         maint.mk: prohibit doubled words
36994         Detect them also when they're separated by a newline.
36995         There are 3 ways to customize it:
36996           - disable the test on a per file basis, as usual with rules using
36997             $(VC_LIST_EXCEPT)
36998           - replace the default doubled-word-selecting regexp (affects all files)
36999           - ignore a particular file-vs-doubled-word match
37000         I nearly used that last one to ignore the "is is" match in
37001         coreutils' NEWS file, since the text was "ls -is is ..."
37002         To do that, I would have added this line to cfg.mk:
37003           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
37004         but it would have ignored any "is is" match in NEWS.
37005         Low probability, but still...
37006         Instead, I changed the text, slightly:
37007           -  ls -is is now consistent with ls -lis in ignoring values returned
37008           +  "ls -is" is now consistent with ls -lis in ignoring values returned
37009         * top/maint.mk (prohibit_double_word_RE_): Provide default.
37010         (prohibit_doubled_word_): Define.
37011         (sc_prohibit_doubled_word): New rule.
37012         (sc_prohibit_the_the): Remove.  Subsumed by the above.
37014 2011-04-10  Jim Meyering  <meyering@redhat.com>
37016         maint: fix doubled-word typo in comment
37017         * m4/gethostname.m4: s/is is/it is/
37018         * m4/getdomainname.m4: Likewise.
37020 2011-04-10  Jim Meyering  <meyering@redhat.com>
37022         maint: remove doubled word: s/it it/it/
37023         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
37025 2011-04-10  Jim Meyering  <meyering@redhat.com>
37027         maint.mk: remove useless semicolon and backslash
37028         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
37029         semicolon and backslash.
37031 2011-04-10  Bruno Haible  <bruno@clisp.org>
37033         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
37034         * modules/stdint-tests (Depends-on): Add wchar.
37036 2011-04-10  Jim Meyering  <meyering@redhat.com>
37038         maint: remove doubled words in comments, e.g., s/a a/a/
37039         * lib/strptime.c (day_of_the_week): s/the the/the/
37040         * tests/test-chown.h (test_chown): s/a a/a/
37042         test-chown.h: correct a cast
37043         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
37044         when the destination is a stat.st_gid.
37046 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
37048         getaddrinfo: Fix test for sa_len member.
37049         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
37050         include <sys/types.h> before <sys/socket.h>.
37052 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37054         maint: change "can not" to "cannot"
37055         * doc/posix-functions/iconv.texi (iconv): This one crossed line
37056         boundaries.
37058 2011-04-09  Jim Meyering  <meyering@redhat.com>
37060         maint: change "a a" to "a"
37061         * tests/test-lchown.h (test_lchown): s/a a/a/
37063         maint.mk: prohibit \<the the\>
37064         * top/maint.mk (sc_prohibit_the_the): New rule.
37066         maint: fix "the the" in comment
37067         * lib/count-one-bits.h: s/the the/the/
37069         maint: change "can not" to "cannot"
37070         But do not change the occurrences in maintain.texi or in
37071         build-aux/po/Makefile.in.in, which I presume comes from gettext.
37072         * doc/gnulib-tool.texi: s/can not/cannot/
37073         * doc/posix-functions/accept.texi (accept): Likewise.
37074         * doc/posix-functions/socket.texi (socket): Likewise.
37075         * lib/mbrtowc.c: Likewise.
37077         maint.mk: prohibit use of "can not"
37078         * top/maint.mk (sc_prohibit_can_not): New rule.
37079         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
37081 2011-04-09  Bruno Haible  <bruno@clisp.org>
37083         careadlinkat: Guard against misuse of careadlinkatcwd.
37084         * lib/careadlinkat.c: Include <stdlib.h>.
37085         (careadlinkatcwd): Check that the fd argument is as expected.
37087 2011-04-09  Bruno Haible  <bruno@clisp.org>
37089         careadlinkat: Use common coding style.
37090         * lib/careadlinkat.c: Move gnulib includes after system includes.
37092 2011-04-09  Bruno Haible  <bruno@clisp.org>
37094         careadlinkat: Clarify specification.
37095         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
37096         (careadlinkatcwd): Add comment.
37097         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
37099 2011-04-09  Bruno Haible  <bruno@clisp.org>
37101         areadlinkat: Avoid link error on many platforms.
37102         * modules/areadlinkat (Depends-on): Add areadlink.
37104 2011-04-09  Bruno Haible  <bruno@clisp.org>
37106         allocator, careadlinkat: Fix double-inclusion guard.
37107         * lib/allocator.h: Fix double-inclusion guard.
37108         * lib/careadlinkat.h: Likewise.
37110 2011-04-09  Bruno Haible  <bruno@clisp.org>
37112         relocatable-prog-wrapper: Update after module 'areadlink' changed.
37113         * lib/relocwrapper.c: Update dependencies hierarchy.
37114         * build-aux/install-reloc: Update list of files to be compiled.
37115         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
37116         lib/allocator.[hc].
37118 2011-04-08  Eric Blake  <eblake@redhat.com>
37120         strftime: silence gnulib-tool warning
37121         * modules/strftime-tests (Depends-on): Drop automatic dependency.
37123 2011-04-08  Bruno Haible  <bruno@clisp.org>
37125         verify: Fix syntax error with GCC 4.6 in C++ mode.
37126         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
37127         (HAVE_STATIC_ASSERT): New macro.
37128         (verify_true, verify): Use 'static_assert' if it is supported and
37129         '_Static_assert' is not supported.
37131 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
37133         allocator: New module.
37134         * modules/allocator, lib/allocator.c: New files.
37135         * lib/allocator.h (stdlib_allocator): New decl.
37136         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
37137         Remove.  Do not include <stdlib.h>.
37138         (careadlinkat): Use stdlib_allocator instead of rolling our own.
37139         * modules/careadlinkat (Files): Remove lib/allocator.h.
37140         (Depends-on): Add allocator.
37142         stdlib: let modules use system malloc, realloc
37143         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
37144         if !_GL_USE_STDLIB_ALLOC.
37145         (malloc, realloc): Limit this change to a smaller scope.
37147         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
37148         (malloc, realloc): Don't #undef; no longer needed.
37149         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37150         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37151         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37152         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37153         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37154         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37155         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37156         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37158         careadlinkat: rename members to avoid problem
37159         * lib/allocator.h (struct allocator): Rename members from
37160         malloc/realloc to allocate/reallocate, to avoid problems if malloc
37161         and realloc are #define'd.  Reported by Eric Blake in
37162         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
37163         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
37165 2011-04-08  Eric Blake  <eblake@redhat.com>
37167         nonblocking: reduce dependency
37168         * tests/test-nonblocking.c: Only test sockets when in use.
37169         * modules/nonblocking-tests (Depends-on): Drop socket.
37170         (Makefile.am): Link even if sockets are not present.
37171         * modules/pipe2-tests (Makefile.am): Likewise.
37172         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
37174         pipe2: fix O_NONBLOCK support on mingw
37175         * modules/pipe2 (Depends-on): Add nonblocking.
37176         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
37177         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
37178         * tests/test-nonblocking.c (main): Likewise.
37179         * modules/pipe2-tests (Makefile.am): Avoid link failure.
37181         fcntl-h: fix O_ACCMODE on cygwin
37182         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
37183         * lib/fcntl.in.h (O_ACCMODE): Fix it.
37185         pipe-filter: drop O_NONBLOCK workarounds
37186         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
37187         * modules/pipe-filter-ii (Depends-on): Likewise.
37188         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
37190         nonblocking: provide O_NONBLOCK for mingw
37191         * modules/nonblocking (Depends-on): Add open.
37192         (configure.ac): Set new witness macro.
37193         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
37194         * modules/fcntl-h (Makefile.am): Substitute it.
37195         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
37196         nonblocking module is in use.
37197         * lib/nonblocking.c: Adjust portability test.
37198         * lib/open.c (open): Don't let native open see gnulib flag.
37199         * tests/test-fcntl-h.c (main): Enhance test.
37200         * tests/test-open.h (test_open): Likewise.
37201         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
37203         careadlinkat: fix compilation error on mingw
37204         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
37205         within struct allocator.
37207 2011-04-06  Eric Blake  <eblake@redhat.com>
37209         binary-io: relicense under LGPLv2+
37210         * modules/binary-io (License): Relax to LGPLv2+.
37211         Requested for libvirt, and required by pipe2.
37213 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
37215         verify: use _Static_assert if available
37216         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
37217         (verify_true, verify): Use it if available.  This generates better
37218         diagnostics with GCC 4.6.0 and later.
37220 2011-04-05  Bruno Haible  <bruno@clisp.org>
37222         Remove leftover generated .h files after config.status changed.
37224         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
37225         GL_GENERATE_ALLOCA_H.
37226         * modules/alloca-opt (Makefile.am): Remove alloca.h if
37227         GL_GENERATE_ALLOCA_H evaluates to false.
37229         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
37230         GL_GENERATE_ARGZ_H.
37231         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
37232         evaluates to false.
37234         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
37235         GL_GENERATE_BYTESWAP_H.
37236         * modules/byteswap (Makefile.am): Remove byteswap.h if
37237         GL_GENERATE_BYTESWAP_H evaluates to false.
37239         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
37240         GL_GENERATE_ERRNO_H.
37241         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
37242         evaluates to false.
37244         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
37245         GL_GENERATE_FLOAT_H.
37246         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
37247         evaluates to false.
37249         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
37250         GL_GENERATE_FNMATCH_H.
37251         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
37252         GL_GENERATE_FNMATCH_H evaluates to false.
37254         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
37255         GL_GENERATE_GLOB_H.
37256         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
37257         evaluates to false.
37259         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
37260         automake conditional GL_GENERATE_ICONV_H.
37261         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
37262         evaluates to false.
37264         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
37265         GL_GENERATE_NETINET_IN_H.
37266         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
37267         GL_GENERATE_NETINET_IN_H evaluates to false.
37269         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
37270         conditional GL_GENERATE_PTHREAD_H.
37271         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
37272         * modules/pthread (Makefile.am): Remove pthread.h if
37273         GL_GENERATE_PTHREAD_H evaluates to false.
37275         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
37276         GL_GENERATE_SCHED_H.
37277         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
37278         evaluates to false.
37280         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
37281         conditional GL_GENERATE_SELINUX_CONTEXT_H.
37282         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
37283         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
37285         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
37286         GL_GENERATE_STDARG_H.
37287         * modules/stdarg (Makefile.am): Remove stdarg.h if
37288         GL_GENERATE_STDARG_H evaluates to false.
37290         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
37291         GL_GENERATE_STDBOOL_H.
37292         * modules/stdbool (Makefile.am): Remove stdbool.h if
37293         GL_GENERATE_STDBOOL_H evaluates to false.
37295         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
37296         conditional GL_GENERATE_STDDEF_H.
37297         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
37298         * modules/stddef (Makefile.am): Remove stddef.h if
37299         GL_GENERATE_STDDEF_H evaluates to false.
37301         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
37302         GL_GENERATE_STDINT_H.
37303         * modules/stdint (Makefile.am): Remove stdint.h if
37304         GL_GENERATE_STDINT_H evaluates to false.
37306         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
37307         GL_GENERATE_SYSEXITS_H.
37308         * modules/sysexits (Makefile.am): Remove sysexits.h if
37309         GL_GENERATE_SYSEXITS_H evaluates to false.
37311         Reported by Karl Berry and Ralf Wildenhues.
37313 2011-04-05  Bruno Haible  <bruno@clisp.org>
37315         Ensure to rebuild generated .h files when config.status has changed.
37316         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
37317         config.status.
37318         * modules/ctype (Makefile.am): Likewise.
37319         * modules/dirent (Makefile.am): Likewise.
37320         * modules/errno (Makefile.am): Likewise.
37321         * modules/fcntl-h (Makefile.am): Likewise.
37322         * modules/float (Makefile.am): Likewise.
37323         * modules/getopt-posix (Makefile.am): Likewise.
37324         * modules/glob (Makefile.am): Likewise.
37325         * modules/iconv-h (Makefile.am): Likewise.
37326         * modules/inttypes (Makefile.am): Likewise.
37327         * modules/langinfo (Makefile.am): Likewise.
37328         * modules/locale (Makefile.am): Likewise.
37329         * modules/math (Makefile.am): Likewise.
37330         * modules/netdb (Makefile.am): Likewise.
37331         * modules/netinet_in (Makefile.am): Likewise.
37332         * modules/poll-h (Makefile.am): Likewise.
37333         * modules/pthread (Makefile.am): Likewise.
37334         * modules/pty (Makefile.am): Likewise.
37335         * modules/sched (Makefile.am): Likewise.
37336         * modules/search (Makefile.am): Likewise.
37337         * modules/selinux-h (Makefile.am): Likewise.
37338         * modules/signal (Makefile.am): Likewise.
37339         * modules/spawn (Makefile.am): Likewise.
37340         * modules/stdarg (Makefile.am): Likewise.
37341         * modules/stdbool (Makefile.am): Likewise.
37342         * modules/stddef (Makefile.am): Likewise.
37343         * modules/stdint (Makefile.am): Likewise.
37344         * modules/stdio (Makefile.am): Likewise.
37345         * modules/stdlib (Makefile.am): Likewise.
37346         * modules/string (Makefile.am): Likewise.
37347         * modules/strings (Makefile.am): Likewise.
37348         * modules/sys_file (Makefile.am): Likewise.
37349         * modules/sys_ioctl (Makefile.am): Likewise.
37350         * modules/sys_select (Makefile.am): Likewise.
37351         * modules/sys_socket (Makefile.am): Likewise.
37352         * modules/sys_stat (Makefile.am): Likewise.
37353         * modules/sys_time (Makefile.am): Likewise.
37354         * modules/sys_times (Makefile.am): Likewise.
37355         * modules/sys_utsname (Makefile.am): Likewise.
37356         * modules/sys_wait (Makefile.am): Likewise.
37357         * modules/sysexits (Makefile.am): Likewise.
37358         * modules/termios (Makefile.am): Likewise.
37359         * modules/time (Makefile.am): Likewise.
37360         * modules/unistd (Makefile.am): Likewise.
37361         * modules/wchar (Makefile.am): Likewise.
37362         * modules/wctype-h (Makefile.am): Likewise.
37363         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
37365 2011-04-05  Bruno Haible  <bruno@clisp.org>
37367         pipe2: Relicense under LGPLv2+.
37368         * modules/pipe2 (License): Change to LGPLv2+.
37369         Requested by Eric Blake, for libvirt.
37371 2011-04-05  Bruce Korb  <bkorb@gnu.org>
37373         bootstrap: compute gnulib_extra_files after updating build_aux
37374         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
37375         change build_aux or also supply gnulib_extra_files.  Handle correctly.
37377 2011-04-05  Eric Blake  <eblake@redhat.com>
37379         bootstrap: preserve git whitelist item sorting
37380         * build-aux/bootstrap (sort_patterns): New function.
37381         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
37383 2011-04-05  Simon Josefsson  <simon@josefsson.org>
37385         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
37386         sc_space_tab check.
37388 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
37390         areadlink, areadlinkat: rewrite in terms of careadlinkat
37391         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
37392         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
37393         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
37394         (malloc, realloc): Remove #undefs.
37395         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
37396         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
37397         readlink, ssize_t, stdint, unistd.
37398         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
37399         areadlink, stdint.
37401         careadlinkat: new module
37402         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
37403         * modules/careadlinkat: New files, written by me with
37404         a review and feedback from Ben Pfaff in
37405         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
37407 2011-04-01  Bruno Haible  <bruno@clisp.org>
37409         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
37410         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
37411         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
37412         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
37413         Reported by Bruce Korb <bruce.korb@gmail.com>.
37415 2011-04-01  Bruno Haible  <bruno@clisp.org>
37417         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
37418         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
37419         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
37420         * modules/wcpcpy (Depends-on): Add extensions.
37421         * modules/wcpncpy (Depends-on): Likewise.
37422         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
37423         systems.
37424         * doc/posix-functions/wcpncpy.texi: Likewise.
37425         * doc/posix-functions/wcwidth.texi: Likewise.
37427 2011-03-31  Eric Blake  <eblake@redhat.com>
37429         nonblocking: fix mingw test failures
37430         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
37431         non-blocking flag on regular file.
37432         (get_nonblocking_flag): Set errno on invalid fd.
37433         * tests/test-nonblocking.c (main): Avoid test failure on
37434         directories if fchdir is not active.
37435         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
37437 2011-03-31  Bruno Haible  <bruno@clisp.org>
37439         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
37440         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
37441         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
37442         Reported by Simon Josefsson <simon@josefsson.org>.
37444 2011-03-31  Bruno Haible  <bruno@clisp.org>
37445         and Eric Blake  <eblake@redhat.com>
37447         nonblocking: new module
37448         * modules/nonblocking: New module.
37449         * modules/nonblocking-tests: Likewise.
37450         * lib/nonblocking.h: New file.
37451         * lib/nonblocking.c: Likewise.
37452         * tests/test-nonblocking.c: New test.
37453         * lib/ioctl.c (ioctl) [mingw]: Update comment.
37455 2011-03-30  Bruno Haible  <bruno@clisp.org>
37457         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
37458         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
37459         instead of 'printf' format for GCC >= 4.4.
37460         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
37461         (fprintf, printf, vfprintf, vprintf): Declare with
37462         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
37463         the system's vfprintf() function.
37464         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
37466 2011-03-30  Eric Blake  <eblake@redhat.com>
37468         passfd: fix scoping bug
37469         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
37470         before sendmsg/recvmsg.
37472         passfd: standardize coding conventions
37473         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
37474         can be learned at compile time.
37475         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
37476         ifdefs.
37477         (sendfd, recvfd): Follow gnulib code conventions.
37479         passfd: fix incorrect sendmsg arguments
37480         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
37481         incorrect msg_controllen value.
37482         * modules/passfd-tests (Depends-on): Check for alarm.
37483         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
37484         Reported by Bastien ROUCARIES.
37486 2011-03-30  Bruno Haible  <bruno@clisp.org>
37488         c-strcasestr: Relicense under LGPLv2+.
37489         * modules/c-strcasestr (License): Change to LGPLv2+.
37490         Requested by Eric Blake, for libvirt.
37492 2011-03-30  Simon Josefsson  <simon@josefsson.org>
37494         * users.txt: Add libidn2.  Fix libtasn1 link.
37496 2011-03-30  Jim Meyering  <meyering@redhat.com>
37498         tests: readlink* ("",... fails with EINVAL on newer kernels
37499         readlink and readlinkat have typically failed with ENOENT for
37500         the invalid, empty file name,  "".  However, with the advent
37501         of linux-2.6.39, they fail with EINVAL.
37502         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
37503         when operating on the empty file name.
37504         * tests/test-readlink.h (test_readlink): Likewise.
37506 2011-03-29  Bruno Haible  <bruno@clisp.org>
37508         Relicense some modules under LGPLv2+, for libidn2.
37509         * modules/array-mergesort (License): Change to LGPLv2+.
37510         * modules/c-strcaseeq (License): Likewise.
37511         * modules/striconveh (License): Likewise.
37512         * modules/striconveha (License): Likewise.
37513         * modules/uniconv/base (License): Likewise.
37514         * modules/uniconv/u8-conv-from-enc (License): Likewise.
37515         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
37516         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
37517         * modules/unictype/base (License): Likewise.
37518         * modules/unictype/bidiclass-of (License): Likewise.
37519         * modules/unictype/category-M (License): Likewise.
37520         * modules/unictype/category-none (License): Likewise.
37521         * modules/unictype/category-of (License): Likewise.
37522         * modules/unictype/category-test (License): Likewise.
37523         * modules/unictype/category-test-withtable (License): Likewise.
37524         * modules/unictype/combining-class (License): Likewise.
37525         * modules/unictype/joiningtype-of (License): Likewise.
37526         * modules/unictype/scripts (License): Likewise.
37527         * modules/uninorm/base (License): Likewise.
37528         * modules/uninorm/canonical-decomposition (License): Likewise.
37529         * modules/uninorm/composition (License): Likewise.
37530         * modules/uninorm/decompose-internal (License): Likewise.
37531         * modules/uninorm/decomposition-table (License): Likewise.
37532         * modules/uninorm/nfc (License): Likewise.
37533         * modules/uninorm/nfd (License): Likewise.
37534         * modules/uninorm/u32-normalize (License): Likewise.
37535         * modules/unistr/base (License): Likewise.
37536         * modules/unistr/u32-cpy (License): Likewise.
37537         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
37538         * modules/unistr/u32-to-u8 (License): Likewise.
37539         * modules/unistr/u32-uctomb (License): Likewise.
37540         * modules/unistr/u8-check (License): Likewise.
37541         * modules/unistr/u8-mblen (License): Likewise.
37542         * modules/unistr/u8-mbtouc (License): Likewise.
37543         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
37544         * modules/unistr/u8-mbtoucr (License): Likewise.
37545         * modules/unistr/u8-prev (License): Likewise.
37546         * modules/unistr/u8-strlen (License): Likewise.
37547         * modules/unistr/u8-to-u32 (License): Likewise.
37548         * modules/unistr/u8-uctomb (License): Likewise.
37549         * modules/unitypes (License): Likewise.
37550         Requested by Simon Josefsson.
37552 2011-03-29  Simon Josefsson  <simon@josefsson.org>
37554         lib-symbol-visibility: Add a notice.
37555         * modules/lib-symbol-visibility (Notice): New field.
37557 2011-03-29  Bruno Haible  <bruno@clisp.org>
37559         getaddrinfo: Doc fix.
37560         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
37561         section "fixed in Gnulib".
37563 2011-03-28  Simon Josefsson  <simon@josefsson.org>
37565         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
37566         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
37568 2011-03-26  Bruno Haible  <bruno@clisp.org>
37570         unictype/property-byname: Reduce the number of load-time relocations.
37571         * lib/unictype/pr_byname.c: Include <stdlib.h>.
37572         (UC_PROPERTY_INDEX_*): New enumeration values.
37573         (uc_property_byname): Convert an index from the lookup table to an
37574         uc_property_t.
37575         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
37576         values.
37578 2011-03-26  Bruno Haible  <bruno@clisp.org>
37580         unictype/property-byname: Allow omitted word separators and aliases.
37581         * lib/unictype/pr_byname.gperf: Add property names without word
37582         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
37583         for 'space'.
37585 2011-03-26  Bruno Haible  <bruno@clisp.org>
37587         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
37588         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
37589         also hyphens to space.
37590         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
37591         without spaces.
37592         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
37594 2011-03-26  Bruno Haible  <bruno@clisp.org>
37596         unictype/joiningtype-byname: Recognize long names as well.
37597         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
37598         a long name.
37599         * lib/unictype/joiningtype_byname.c: Include <string.h>,
37600         unictype/joiningtype_byname.h.
37601         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
37602         * lib/unictype/joiningtype_byname.gperf: New file.
37603         * modules/unictype/joiningtype-byname (Files): Add
37604         lib/unictype/joiningtype_byname.gperf.
37605         (Depends-on): Add gperf.
37606         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
37607         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
37608         long names.
37610         Tests for module 'unictype/joiningtype-longname'.
37611         * modules/unictype/joiningtype-longname-tests: New file.
37612         * tests/unictype/test-joiningtype_longname.c: New file.
37614         New module 'unictype/joiningtype-longname'.
37615         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
37616         * lib/unictype/joiningtype_longname.c: New file.
37617         * modules/unictype/joiningtype-longname: New file.
37618         * modules/unictype/joiningtype-all (Depends-on): Add
37619         unictype/joiningtype-longname.
37621 2011-03-26  Bruno Haible  <bruno@clisp.org>
37623         unictype/bidiclass-byname: Recognize long names as well.
37624         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
37625         name.
37626         * lib/unictype/bidi_byname.c: Include <string.h>,
37627         unictype/bidi_byname.h.
37628         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
37629         * lib/unictype/bidi_byname.gperf: New file.
37630         * modules/unictype/bidiclass-byname (Files): Add
37631         lib/unictype/bidi_byname.gperf.
37632         (Depends-on): Add gperf.
37633         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
37634         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
37635         long names.
37637         Tests for module 'unictype/bidiclass-longname'.
37638         * modules/unictype/bidiclass-longname-tests: New file.
37639         * tests/unictype/test-bidi_longname.c: New file.
37641         New module 'unictype/bidiclass-longname'.
37642         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
37643         * lib/unictype/bidi_longname.c: New file.
37644         * modules/unictype/bidiclass-longname: New file.
37645         * modules/unictype/bidiclass-all (Depends-on): Add
37646         unictype/bidiclass-longname.
37648 2011-03-26  Bruno Haible  <bruno@clisp.org>
37650         unictype/bidi*: Rename modules.
37651         * modules/unictype/bidiclass-all: Renamed from
37652         modules/unictype/bidicategory-all.
37653         * modules/unictype/bidiclass-name: Renamed from
37654         modules/unictype/bidiclass-name.
37655         (Description): Update.
37656         * modules/unictype/bidiclass-name-tests: Renamed from
37657         modules/unictype/bidicategory-name-tests.
37658         * modules/unictype/bidiclass-byname: Renamed from
37659         modules/unictype/bidicategory-byname.
37660         (Description): Update.
37661         * modules/unictype/bidiclass-byname-tests: Renamed from
37662         modules/unictype/bidicategory-byname-tests.
37663         * modules/unictype/bidiclass-of: Renamed from
37664         modules/unictype/bidicategory-of.
37665         (Description): Update.
37666         * modules/unictype/bidiclass-of-tests: Renamed from
37667         modules/unictype/bidicategory-of-tests.
37668         * modules/unictype/bidiclass-test: Renamed from
37669         modules/unictype/bidicategory-test.
37670         (Description): Update.
37671         * modules/unictype/bidiclass-test-tests: Renamed from
37672         modules/unictype/bidicategory-test-tests.
37673         * modules/unictype/bidicategory-all: New file, a simple redirection.
37674         * modules/unictype/bidicategory-name: Likewise.
37675         * modules/unictype/bidicategory-byname: Likewise.
37676         * modules/unictype/bidicategory-of: Likewise.
37677         * modules/unictype/bidicategory-test: Likewise.
37678         * modules/unictype/property-bidi-* (Dependencies): Update.
37679         * lib/unictype/bidi_*.c: Update comment.
37681 2011-03-26  Bruno Haible  <bruno@clisp.org>
37683         unictype/bidi*: Rename functions, part 2.
37684         * modules/unictype/bidicategory-name (configure.ac): Update required
37685         libunistring version.
37686         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
37688 2011-03-25  Bruno Haible  <bruno@clisp.org>
37690         New module 'unictype/combining-class-all'.
37691         * modules/unictype/combining-class-all: New file.
37693         Tests for module 'unictype/combining-class-byname'.
37694         * modules/unictype/combining-class-byname-tests: New file.
37695         * tests/unictype/test-combiningclass_byname.c: New file.
37697         New module 'unictype/combining-class-byname'.
37698         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
37699         * lib/unictype/combiningclass_byname.c: New file.
37700         * lib/unictype/combiningclass_byname.gperf: New file.
37701         * modules/unictype/combining-class-byname: New file.
37703         Tests for module 'unictype/combining-class-longname'.
37704         * modules/unictype/combining-class-longname-tests: New file.
37705         * tests/unictype/test-combiningclass_longname.c: New file.
37707         New module 'unictype/combining-class-longname'.
37708         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
37709         * lib/unictype/combiningclass_longname.c: New file.
37710         * modules/unictype/combining-class-longname: New file.
37712         Tests for module 'unictype/combining-class-name'.
37713         * modules/unictype/combining-class-name-tests: New file.
37714         * tests/unictype/test-combiningclass_name.c: New file.
37716         New module 'unictype/combining-class-name'.
37717         * lib/unictype.in.h (uc_combining_class_name): New declaration.
37718         * lib/unictype/combiningclass_name.c: New file.
37719         * modules/unictype/combining-class-name: New file.
37721 2011-03-25  Bruno Haible  <bruno@clisp.org>
37723         unictype/combining-class: Rename source files.
37724         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
37725         of unictype/combining.h.
37726         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
37727         Update.
37728         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
37729         * modules/unictype/combining-class (Description): Fix.
37730         (Files, Makefile.am): Update.
37731         * tests/unictype/test-combiningclass.c: Renamed from
37732         tests/unictype/test-combining.c.
37733         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
37735 2011-03-25  Bruno Haible  <bruno@clisp.org>
37737         unictype: Update list of canonical combining classes.
37738         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
37740 2011-03-25  Bruno Haible  <bruno@clisp.org>
37742         unictype/category-byname: Recognize long names as well.
37743         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
37744         a long name.
37745         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
37746         unictype/categ_byname.h.
37747         (UC_CATEGORY_INDEX_*): New enumeration values.
37748         (uc_general_category_byname): Use uc_general_category_lookup and
37749         convert from index to value.
37750         * lib/unictype/categ_byname.gperf: New file.
37751         * modules/unictype/category-byname (Files): Add
37752         lib/unictype/categ_byname.gperf.
37753         (Depends-on): Add gperf.
37754         (Makefile.am): Add rule for generating unictype/categ_byname.h.
37755         * tests/unictype/test-categ_byname.c (main): Test the recognition of
37756         long names.
37758         Tests for module 'unictype/category-longname'.
37759         * modules/unictype/category-longname-tests: New file.
37760         * tests/unictype/test-categ_longname.c: New file.
37762         New module 'unictype/category-longname'.
37763         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
37764         * lib/unictype/categ_longname.c: New file.
37765         * modules/unictype/category-longname: New file.
37766         * modules/unictype/category-all (Depends-on): Add it.
37768 2011-03-25  Bruno Haible  <bruno@clisp.org>
37770         Tests for module 'unictype/category-LC'.
37771         * modules/unictype/category-LC-tests: New file.
37772         * tests/unictype/test-categ_LC.c: New file, automatically generated.
37774         New module 'unictype/category-LC'.
37775         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
37776         (UC_CATEGORY_LC): New declaration.
37777         (UC_CASED_LETTER): New macro.
37778         * lib/gen-uni-tables.c (is_category_LC): New function.
37779         (output_categories): Also handle category LC.
37780         (UC_CATEGORY_MASK_LC): New enumeration value.
37781         (general_category_byname): Also handle category LC.
37782         * lib/unictype/categ_LC.c: New file.
37783         * lib/unictype/categ_LC.h: New file, automatically generated.
37784         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
37785         category LC.
37786         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
37787         * modules/unictype/category-LC: New file.
37788         * modules/unictype/category-byname (Depends-on): Add
37789         unictype/category-LC.
37790         * modules/unictype/category-all (Depends-on): Likewise.
37792 2011-03-25  Eric Blake  <eblake@redhat.com>
37794         xmalloc: revert yesterday's regression
37795         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
37796         realloc's underlying behavior (allowing allocation of zero-size
37797         objects, especially if malloc-gnu is also in use).
37799 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
37801         maint.mk: add missing version to VC-tag
37802         * top/maint.mk: git tag was missing actual tag name; add it.
37804         valgrind: do leak checking, and exit with code 1 on error (not 0)
37805         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
37806         to VALGRIND.
37808 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
37810         posix-modules: say what it does.
37811         * posix-modules: Add a line to the --help output saying what it does.
37813 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
37815         xmalloc: Do not leak if underlying realloc is C99 compatible.
37816         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
37817         This avoids a leak on C99-based systems.  See
37818         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
37820 2011-03-24  Eric Blake  <eblake@redhat.com>
37822         realloc: document portability problem
37823         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
37824         passing 0 size to realloc.
37826 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
37828         doc: update users.txt
37829         * users.txt: Add cvsps, tmpwatch
37831 2011-03-23  Matt Rice  <ratmice@gmail.com>
37833         doc: update users.txt
37834         * users.txt: Add gdb.
37836 2011-03-23  Jim Meyering  <meyering@redhat.com>
37838         doc: update users.txt
37839         Looking through matches up to the following URL (there are still
37840         several more pages), I found several projects that use gnulib:
37841         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
37842         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
37843         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
37845 2011-03-22  Bruno Haible  <bruno@clisp.org>
37847         unictype/bidi*: Rename functions.
37848         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
37849         uc_bidi_class, uc_is_bidi_class): New declarations.
37850         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
37851         uc_bidi_category_byname.
37852         (uc_bidi_category_byname): New function.
37853         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
37854         u_bidi_category_name.
37855         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
37856         (uc_bidi_category_name): New function.
37857         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
37858         uc_bidi_category.
37859         (uc_bidi_category): New function.
37860         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
37861         uc_is_bidi_category. Invoke uc_bidi_class.
37862         (uc_is_bidi_category): New function.
37863         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
37864         instead of uc_bidi_category_byname.
37865         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
37866         instead of uc_bidi_category_name.
37867         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
37868         uc_bidi_category.
37869         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
37870         instead of uc_is_bidi_category.
37872 2011-03-21  Bruno Haible  <bruno@clisp.org>
37874         New module 'unictype/joininggroup-all'.
37875         * modules/unictype/joininggroup-all: New file.
37877         Tests for module 'unictype/joininggroup-of'.
37878         * modules/unictype/joininggroup-of-tests: New file.
37879         * tests/unictype/test-joininggroup_of.c: New file.
37880         * tests/unictype/test-joininggroup_of.h: New file, automatically
37881         generated by gen-uni-tables.
37883         New module 'unictype/joininggroup-of'.
37884         * modules/unictype/joininggroup-of: New file.
37885         * lib/unictype/joininggroup_of.c: New file.
37886         * lib/unictype/joininggroup_of.h: New file, automatically generated by
37887         gen-uni-tables.
37889         Tests for module 'unictype/joininggroup-byname'.
37890         * modules/unictype/joininggroup-byname-tests: New file.
37891         * tests/unictype/test-joininggroup_byname.c: New file.
37893         New module 'unictype/joininggroup-byname'.
37894         * modules/unictype/joininggroup-byname: New file.
37895         * lib/unictype/joininggroup_byname.c: New file.
37896         * lib/unictype/joininggroup_byname.gperf: New file.
37898         Tests for module 'unictype/joininggroup-name'.
37899         * modules/unictype/joininggroup-name-tests: New file.
37900         * tests/unictype/test-joininggroup_name.c: New file.
37902         New module 'unictype/joininggroup-name'.
37903         * modules/unictype/joininggroup-name: New file.
37904         * lib/unictype/joininggroup_name.c: New file.
37905         * lib/unictype/joininggroup_name.h: New file.
37907         New module 'unictype/joiningtype-all'.
37908         * modules/unictype/joiningtype-all: New file.
37910         Tests for module 'unictype/joiningtype-of'.
37911         * modules/unictype/joiningtype-of-tests: New file.
37912         * tests/unictype/test-joiningtype_of.c: New file.
37913         * tests/unictype/test-joiningtype_of.h: New file, automatically
37914         generated by gen-uni-tables.
37916         New module 'unictype/joiningtype-of'.
37917         * modules/unictype/joiningtype-of: New file.
37918         * lib/unictype/joiningtype_of.c: New file.
37919         * lib/unictype/joiningtype_of.h: New file, automatically generated by
37920         gen-uni-tables.
37922         Tests for module 'unictype/joiningtype-byname'.
37923         * modules/unictype/joiningtype-byname-tests: New file.
37924         * tests/unictype/test-joiningtype_byname.c: New file.
37926         New module 'unictype/joiningtype-byname'.
37927         * modules/unictype/joiningtype-byname: New file.
37928         * lib/unictype/joiningtype_byname.c: New file.
37930         Tests for module 'unictype/joiningtype-name'.
37931         * modules/unictype/joiningtype-name-tests: New file.
37932         * tests/unictype/test-joiningtype_name.c: New file.
37934         New module 'unictype/joiningtype-name'.
37935         * modules/unictype/joiningtype-name: New file.
37936         * lib/unictype/joiningtype_name.c: New file.
37938         unictype: Add support for Arabic shaping properties.
37939         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
37940         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
37941         declarations.
37942         (UC_JOINING_GROUP_*): New enumeration values.
37943         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
37944         declarations.
37945         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
37946         (unicode_joining_type): New variable.
37947         (UC_JOINING_GROUP_*): New enumeration values.
37948         (unicode_joining_group): New variable.
37949         (fill_arabicshaping, joining_type_as_c_identifier,
37950         output_joining_type_test, output_joining_type,
37951         joining_group_as_c_identifier, output_joining_group_test,
37952         output_joining_group): New functions.
37953         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
37954         fill_arabicshaping and output_joining_type_test, output_joining_type,
37955         output_joining_group_test, output_joining_group.
37956         Reported by Simon Josefsson.
37958 2011-03-21  Jim Meyering  <meyering@redhat.com>
37960         strftime: fix a bug in yesterday's change
37961         * lib/strftime.c (add): Accommodate width's initial value of -1.
37962         Otherwise, nstrftime would copy uninitialized data into
37963         the result buffer.
37965 2011-03-21  Jim Meyering  <meyering@redhat.com>
37967         tests: add strftime-tests module
37968         * tests/test-strftime.c: New file.
37969         * modules/strftime-tests: New module.
37971 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37973         strftime: don't assume a byte count fits in 'int'
37974         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
37975         found this problem by static analysis, using gcc -Wstrict-overflow
37976         (GCC 4.5.2, x86-64).  This reported an optimization that depended
37977         on an integer overflow having undefined behavior, but it turns out
37978         that the argument is a size, which might not fit in 'int' anyway,
37980 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37982         stdio: don't require ignore_value around fwrite
37984         This patch works around libc bug 11959
37985         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
37986         Without this patch, applications must often write
37987         ignore_value (fwrite (...)) even though the ignore_value is
37988         not helpful here.  It's common to write many objects, using
37989         fwrite/printf/etc., and then use ferror to detect output error.
37991         I considered making this patch optional, but decided against it,
37992         because libc is obviously being inconsistent here: there is no
37993         reason libc should insist that user code must inspect fwrite
37994         return's value without also insisting that it inspect printf's,
37995         putchar's, etc.  If user code wants to have a strict style where
37996         all these functions' values are checked (so that ferror need not
37997         be checked), we could add support for that style in a new gnulib
37998         module, but in the meantime it's better to be consistent and to
37999         support common usage.
38001         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
38002         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
38003         that we are compiling in checking mode, and if not C++, and
38004         if not already wrapping fwrite for some other reason.
38005         (fwrite): #define to rpl_fwrite if the latter is defined.
38007 2011-03-20  Bruno Haible  <bruno@clisp.org>
38009         verror: Fix compilation error introduced on 2011-02-13.
38010         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
38011         instead of __attribute__.
38012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38014 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38015             Bruno Haible  <bruno@clisp.org>
38017         socklen: do not depend on sys_socket
38018         While trying to modify Emacs to use gnulib's socklen module,
38019         I discovered a circular dependency: socklen depends on sys_socket
38020         and vice versa.  Emacs can use socklen, but it does not need
38021         sys_socket because it has its own substitute for sys/socket.h.
38022         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
38023         gl_TYPE_SOCKLEN_T.
38024         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
38025         gl_PREREQ_SYS_H_SOCKET.
38026         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
38027         gl_PREREQ_SYS_H_SOCKET.
38028         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
38029         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
38030         * modules/socklen (Depends-on): Do not depend on sys_socket.
38031         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
38033 2011-03-20  Jim Meyering  <meyering@redhat.com>
38035         maint.mk: sort file names *after* new transformation
38036         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
38037         prefix would have led to an unwarranted failure in GNU parted.
38038         Sort after that transformation.
38040 2011-03-19  Jim Meyering  <meyering@redhat.com>
38042         maint.mk: fix po-file syntax-check rule
38043         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
38044         Patch by Bruno Haible.
38046 2011-03-19  Bruno Haible  <bruno@clisp.org>
38048         socklen: Update comment.
38049         * m4/socklen.m4: Update comment about platforms.
38051 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38052             Bruno Haible  <bruno@clisp.org>
38054         inet_ntop, inet_pton: Simplify.
38055         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
38056         documented to provide socklen_t and we already depend on sys_socket.
38057         * modules/inet_pton (Depends-on): Likewise.
38058         * lib/arpa_inet.in.h: Adjust comment.
38060 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38061             Bruno Haible  <bruno@clisp.org>
38063         netdb: Simplify.
38064         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
38065         documented to provide socklen_t and we already depend on sys_socket.
38066         * lib/netdb.in.h: Adjust comment.
38068 2011-03-19  Bruno Haible  <bruno@clisp.org>
38070         sys_socket, netdb: Document problem with socklen_t.
38071         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
38072         platforms.
38073         * doc/posix-headers/netdb.texi: Likewise.
38075 2011-03-18  Eric Blake  <eblake@redhat.com>
38077         maint.mk: let po check work in VPATH build
38078         * top/maint.mk (po_file): Allow cfg.mk override.
38079         (sc_po_check): Allow VPATH use.
38080         Reported by Jiri Denemark.
38082 2011-03-16  Jim Meyering  <meyering@redhat.com>
38084         maint.mk: allow fine-grained syntax-check exclusion via Make variables
38085         Before, you would have had to create one .x-sc_ file per rule in order
38086         to exempt offending files.  Now, you may instead use a Make variable --
38087         usually defined in cfg.mk -- whose name identifies the affected rule.
38088         * top/maint.mk (_sc_excl): Define.
38089         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
38090         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
38092 2011-03-13  Bruno Haible  <bruno@clisp.org>
38094         ignore-value tests: Avoid warnings.
38095         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
38096         empty for gcc < 3.4.
38098 2011-03-13  Bruno Haible  <bruno@clisp.org>
38100         passfd: Fix link error on Solaris.
38101         * modules/passfd (Description): Correct.
38102         (Depends-on): Add socketlib.
38103         (Link): New section.
38104         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
38106 2011-03-13  Bruno Haible  <bruno@clisp.org>
38108         passfd: Fix link error on AIX 5.2.
38109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
38111 2011-03-13  Bruno Haible  <bruno@clisp.org>
38113         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
38114         * lib/sys_socket.in.h: Include <stddef.h>.
38115         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
38116         CMSG_FIRSTHDR. Remove unused variable.
38118 2011-03-13  Bruno Haible  <bruno@clisp.org>
38120         passfd: Fix compilation error on OpenBSD.
38121         * lib/passfd.c: Include <sys/uio.h>.
38123 2011-03-13  Bruno Haible  <bruno@clisp.org>
38125         passfd test: Fix warnings.
38126         * tests/test-passfd.c: Include <sys/wait.h>.
38127         (main): Fix typo.
38129 2011-03-13  Bruno Haible  <bruno@clisp.org>
38131         passfd module, part 4, tweaks.
38132         * tests/test-passfd.c: Reorder includes.
38133         (main): Fix perror and printf calls.
38135 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38137         passfd module, part 4.
38138         * modules/passfd-tests: New file.
38139         * tests/test-passfd.c: New file.
38141 2011-03-13  Jim Meyering  <meyering@redhat.com>
38143         Makefile: rely on GNU make; derive syntax-check rule names
38144         Rather than requiring that each sc_ rule be listed as a dependent
38145         of "check", use features of GNU make to derive the list.
38146         * Makefile (syntax-check-rules): Define.
38147         (check): Depend on the new variable, not the hard-coded list.
38149 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
38150             Bruno Haible  <bruno@clisp.org>
38152         passfd module, part 3.
38153         * lib/passfd.h (recvfd): Add a flags argument.
38154         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
38155         (recvfd): Add a flags argument.
38156         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
38157         exists.
38158         * modules/passfd (Depends-on): Add cloexec.
38159         Suggested by Eric Blake.
38161 2011-03-13  Bruno Haible  <bruno@clisp.org>
38163         passfd module, part 2, tweaks.
38164         * modules/passfd (Files): Reorder.
38165         (Depends-on): Remove errno.
38166         (Include): Remove <sys/socket.h>, <sys/un.h>.
38167         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
38168         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
38169         specification header. Include <sys/socket.h> always. Don't include
38170         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
38171         (sendfd): Clarify that it sets errno when it fails.
38172         (recvfd): Fix specification.
38174 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38176         passfd module, part 2.
38177         * modules/passfd: New file.
38178         * lib/passfd.h: New file.
38179         * lib/passfd.c: New file.
38181 2011-03-12  Bruno Haible  <bruno@clisp.org>
38183         wcswidth, mbswidth: Avoid integer overflow.
38184         * lib/wcswidth.c: Include <limits.h>.
38185         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
38186         * lib/mbswidth.c: Include <limits.h>.
38187         (mbsnwidth): Avoid 'int' overflow.
38188         Reported by Jim Meyering.
38190 2011-03-12  Bruno Haible  <bruno@clisp.org>
38192         futimens, utimensat: Avoid endless recursion on Solaris 10.
38193         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
38194         Solaris.
38195         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
38196         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
38198 2011-03-11  Jim Meyering  <meyering@redhat.com>
38200         maint.mk: relax a regexp to accommodate other formatting styles
38201         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
38202         between "ngettext" and the following "(".
38204 2011-03-11  Pádraig Brady  <P@draigBrady.com>
38206         maint.mk: suppress a false positive warning
38207         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
38208         diagnostics are marked with ngettext.
38210 2011-03-10  Eric Blake  <eblake@redhat.com>
38212         wchar: add explicit dependencies, for Tru64
38213         * modules/mbmemcasecoll (Depends-on): Add wchar.
38214         * modules/mbtowc (Depends-on): Likewise.
38215         * modules/vasnprintf (Depends-on): Likewise.
38216         * modules/unistdio/u-printf-args (Depends-on): Likewise.
38217         * modules/wctomb (Depends-on): Likewise.
38218         Reported by Peter O'Gorman.
38220 2011-03-08  Bruno Haible  <bruno@clisp.org>
38222         passfd module, part 1, tweaks.
38223         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
38224         Improve indentation. Improve AC_MSG_CHECKING messages.
38225         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
38226         gl_SOCKET_FAMILIES.
38228 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38230         passfd module, part 1.
38231         * m4/afunix.m4: New file.
38232         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
38233         sockets.
38235 2011-03-08  Bruno Haible  <bruno@clisp.org>
38237         regex-quote: New API.
38238         * lib/regex-quote.h: Include <stdbool.h>.
38239         (struct regex_quote_spec): New type.
38240         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38241         New declarations.
38242         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38243         'const struct regex_quote_spec *' argument.
38244         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
38245         (pcre_special): New constant.
38246         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38247         New functions.
38248         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38249         'const struct regex_quote_spec *' argument.
38250         * modules/regex-quote (Depends-on): Add stdbool.
38251         * tests/test-regex-quote.c (check): Update for new API. Add test for
38252         anchored results.
38253         * NEWS: Mention the API change.
38254         Reported by Reuben Thomas and Eric Blake.
38256 2011-03-06  Bruno Haible  <bruno@clisp.org>
38258         regex-quote: Fix creation of POSIX extended regular expressions.
38259         * lib/regex-quote.c (ere_special): Add grouping and alternation
38260         operators.
38262 2011-03-05  Bruno Haible  <bruno@clisp.org>
38264         doc: Improve doc regarding autopoint vs. gnulib.
38265         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
38266         disable autopoint while running autoreconf.
38267         Suggested by Ralf Wildenhues.
38269 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38271         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
38272         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
38274 2011-03-03  Bruce Korb  <bkorb@gnu.org>
38276         parse-duration: remove xalloc.h dependency
38277         * lib/parse-duration.c (parse_period): handle NULL return from
38278         strdup instead of calling xstrdup().
38279         * modules/parse-duration: remove "xalloc" dependency
38281 2011-03-03  Matthew Booth  <mbooth@redhat.com>
38283         bootstrap: honor m4_base when running aclocal
38284         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
38286 2011-03-02  Jim Meyering  <meyering@redhat.com>
38288         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
38289         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
38290         on request from Matt Booth.
38292 2011-03-01  Eric Blake  <eblake@redhat.com>
38294         test-link: work on Hurd
38295         * tests/test-link.h (test_link): Hurd rejects linking directories
38296         with EISDIR instead of the POSIX-mandated EPERM.
38298 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
38300         stdio: simplify by moving files to printf-posix, sigpipe
38301         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
38302         since this symbol is needed only if printf is replaced.
38303         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
38304         Require gl_ASM_SYMBOL_PREFIX.
38305         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
38306         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
38307         (Depends-on): Add 'raise'.
38308         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
38309         * modules/stdio (Files): Remove lib/stdio-write.c,
38310         m4/asm-underscore.m4.
38311         (Depends-on): Remove 'raise'.
38313         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
38314         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
38315         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
38316         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
38318 2011-02-28  Bruno Haible  <bruno@clisp.org>
38320         localcharset: Assume ANSI C behaviour of free().
38321         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
38322         calling free().
38323         Suggested by Simon Josefsson <simon@josefsson.org>.
38325 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
38326             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
38327             Bruno Haible  <bruno@clisp.org>  (tiny change)
38329         On Cygwin, use /proc file system instead of win32 API.
38330         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
38331         Win32 file names.
38332         (DllMain): Simplify by removing Cygwin specific code.
38333         (find_shared_library_fullname): Use Linux specific implementation also
38334         for Cygwin.
38335         (get_shared_library_fullname): Update accordingly.
38336         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
38337         Win32 file names.
38338         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
38339         Cygwin specific code.
38341 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
38342             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
38344         Fix OpenMP flag detection for various Fortran compilers.
38345         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
38346         OpenMP-conditional compilation construct, to force compile
38347         failure with missing OpenMP flag.
38348         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
38350 2011-02-25  Eric Blake  <eblake@redhat.com>
38352         strstr: expand test coverage
38353         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
38354         compilation.
38355         * tests/test-memmem.c (main): Duplicate tests.
38356         * tests/test-strcasestr.c (main): Likewise.
38357         * tests/test-c-strcasestr.c (main): Likewise.
38359 2011-02-25  Jim Meyering  <meyering@redhat.com>
38361         maint.mk: detect missing-NL-at-EOF, too
38362         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
38363         it also detects when a file lacks a newline at EOF.
38364         (require_exactly_one_NL_at_EOF_): Renamed from
38365         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
38366         since people may well have .x-sc_... file names tied to the
38367         existing name.  Suggested by Eric Blake.
38369 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38371         dirname: move m4/dos.m4 functionality into lib/dosname.h
38373         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
38374         extracts symbols from it, puts them into config.h; but it's much
38375         easier to use the symbols directly.  filename.h already does this,
38376         but it disagrees with dos.m4 in some respects.  This patch
38377         introduces a different include file dosname.h that packages up
38378         dos.m4, and then later we can work on merging filename.h and
38379         dosname.h.  Applications that need only the easy-to-configure
38380         symbols should consider including dosname.h rather than dirname.h.
38381         * NEWS: Mention incompatible changes.
38382         * m4/dos.m4: Remove.
38383         * lib/dosname.h, modules/dosname: New files.
38384         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
38385         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
38386         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
38387         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
38388         Include dosname.h, not dirname.h.
38389         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
38390         Include dosname.h, for definitions of symbols like ISSLASH
38391         that used to be in config.h.
38392         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
38393         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
38394         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38395         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38396         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
38397         * modules/rmdir (Files): Likewise.
38398         * modules/stat (Files): Likewise.
38399         * modules/unlink (Files): Likewise.
38400         * modules/dirname-lgpl (Depends-on): Add dosname.
38401         * modules/lstat (Depends-on): Likewise.
38402         * modules/openat (Depends-on): Likewise.
38403         * modules/rmdir (Depends-on): Likewise.
38404         * modules/savewd (Depends-on): Likewise.
38405         * modules/stat (Depends-on): Likewise.
38406         * modules/unlink (Depends-on): Likewise.
38407         * modules/openat (Depends-on): Remove dirname-lgpl.
38408         * modules/savewd (Depends-on): Likewise.
38409         * tests/test-dirname.c: Do not use removed symbols like
38410         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
38411         the remaining symbols, e.g., ISSLASH ('\\').
38413 2011-02-25  Eric Blake  <eblake@redhat.com>
38415         strstr: revert patches that introduced bug and pessimization
38416         * lib/str-two-way.h: Add another reference.
38417         (two_way_short_needle, two_way_long_needle): Revert changes from
38418         2011-02-24; they pessimize search speed.
38419         (critical_factorization): Partially revert changes from
38420         2010-06-22; they violate the requirement that the left half of the
38421         needle be smaller than the period of the needle.
38423 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38425         filenamecat: remove unnecessary dependency on dirname-lgpl
38426         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
38427         is no direct dependency, just an indirect one via filenamecat-lgpl.
38429         remove: remove unnecessary use of m4/dos.m4
38430         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
38431         * modules/remove (FILES): Remove m4/dos.m4.
38433         * lib/openat-proc.c: Don't include dirname.h; not needed.
38435         backupfile: remove unnecessary use of m4/dos.m4
38436         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
38437         of its symbols are used by the backupfile code.  backupfile.c does
38438         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
38439         for the rare case of programs that want all their backup file
38440         names to live within 8+3 limits, and dos.m4 doesn't address that.
38441         * modules/backupfile (Files): Remove m4/dos.m4.
38443 2011-02-24  Jim Meyering  <meyering@redhat.com>
38445         strstr: fix a bug whereby strstr would mistakenly return NULL
38446         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
38447         in period calculation.
38448         (two_way_long_needle): Likewise.
38449         The original problem was reported by Mike Stump in
38450         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
38451         Ralf Wildenhues provided the short needle and haystack.
38452         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
38453         Add a more involved test to trigger the bug in two_way_long_needle.
38455 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38457         gnulib-tool: remove use of bold display in help screen
38458         * gnulib-tool (func_usage): Do not use bold display anymore in the
38459         help screen.  That was just meant to be a temporary emphasis for a
38460         backward-incompatible change.
38462 2011-02-23  Bruno Haible  <bruno@clisp.org>
38464         Fix misindentation of preprocessor directives.
38465         * lib/argp-namefrob.h: Reindent preprocessor directives.
38466         * lib/getopt_int.h (struct _getopt_data): Likewise.
38467         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
38468         * lib/vasnprintf.c (decode_long_double): Likewise.
38469         * tests/test-argmatch.c: Insert blank lines, for clarity.
38470         * tests/test-exclude.c: Likewise.
38472 2011-02-22  Bruno Haible  <bruno@clisp.org>
38474         ioctl: Fix for MacOS X in 64-bit mode.
38475         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
38476         value.
38477         Suggested by Eric Blake.
38478         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
38480 2011-02-22  Jim Meyering  <meyering@redhat.com>
38482         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
38483         * Makefile (sc_cpp_indent_check): Don't limit the check to files
38484         in lib/.
38486 2011-02-22  Eric Blake  <eblake@redhat.com>
38488         maint: avoid any CDPATH issue
38489         * Makefile (sc_cpp_indent_check): Anchor cd argument.
38491         maint: adjust cpp indentation for my modules, as well
38492         * Makefile (sc_cpp_indent_check): Add my name.
38493         * lib/fbufmode.c: Filter through cppi.
38494         * lib/fpurge.c: Likewise.
38495         * lib/freadable.c: Likewise.
38496         * lib/freading.c: Likewise.
38497         * lib/fwritable.c: Likewise.
38498         * lib/fwriting.c: Likewise.
38499         * lib/sigaction.c: Likewise.
38501 2011-02-22  Jim Meyering  <meyering@redhat.com>
38503         maint: adjust cpp indentation to reflect nesting depth
38504         I.e., in a block of code that begins with an unnested "#if",
38505         put one space between the "#" in column 1 and following token.
38506         For example,
38507         -#include <sys/vfs.h>
38508         +# include <sys/vfs.h>
38509         Do this only in .c files that are part of a module I maintain.
38510         * lib/linkat.c: Filter through cppi.
38511         * lib/nanosleep.c: Likewise.
38512         * lib/openat.c: Likewise.
38513         * lib/openat-die.c: Likewise.
38514         * lib/dup3.c: Likewise.
38515         * lib/fchownat.c: Likewise.
38516         * lib/flock.c: Likewise.
38517         * lib/fsync.c: Likewise.
38518         * lib/fts.c: Likewise.
38519         * lib/getpass.c: Likewise.
38520         * lib/gettimeofday.c: Likewise.
38521         * lib/userspec.c: Likewise.
38522         * Makefile (sc_cpp_indent_check): New rule, to check this.
38524 2011-02-22  Bruno Haible  <bruno@clisp.org>
38526         New module 'wctomb'.
38527         * lib/stdlib.in.h (wctomb): New declaration.
38528         * lib/wctomb.c: New file.
38529         * lib/wctomb-impl.h: New file.
38530         * m4/wctomb.m4: New file.
38531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
38532         REPLACE_WCTOMB.
38533         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
38534         REPLACE_WCTOMB.
38535         * modules/wctomb: New file.
38536         * tests/test-stdlib-c++.cc: Test signature of wctomb.
38537         * doc/posix-functions/wctomb.texi: Mention the new module.
38538         * modules/wctob (Depends-on): Add wctomb.
38540 2011-02-22  Bruno Haible  <bruno@clisp.org>
38542         New module 'mbtowc'.
38543         * lib/stdlib.in.h (mbtowc): New declaration.
38544         * lib/mbtowc.c: New file.
38545         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
38546         * m4/mbtowc.m4: New file.
38547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
38548         REPLACE_MBTOWC.
38549         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
38550         REPLACE_MBTOWC.
38551         * modules/mbtowc: New file.
38552         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
38553         * doc/posix-functions/mbtowc.texi: Mention the new module.
38554         * modules/btowc (Depends-on): Add mbtowc.
38556 2011-02-22  Bruno Haible  <bruno@clisp.org>
38558         wcrtomb: Add more tests for native Windows platforms.
38559         * tests/test-wcrtomb-w32-1.sh: New file.
38560         * tests/test-wcrtomb-w32-2.sh: New file.
38561         * tests/test-wcrtomb-w32-3.sh: New file.
38562         * tests/test-wcrtomb-w32-4.sh: New file.
38563         * tests/test-wcrtomb-w32-5.sh: New file.
38564         * tests/test-wcrtomb-w32.c: New file.
38565         * modules/wcrtomb-tests (Files): Add them.
38566         (Makefile.am): Arrange to run these tests.
38567         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
38568         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
38570 2011-02-20  Bruno Haible  <bruno@clisp.org>
38572         wcrtomb: Enhance test.
38573         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
38575 2011-02-20  Bruno Haible  <bruno@clisp.org>
38577         mbrtowc: Tiny optimization.
38578         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
38580 2011-02-20  Jim Meyering  <meyering@redhat.com>
38582         test-exclude.c: remove unmatched #endif
38583         * tests/test-exclude.c: Remove stray #endif, left over from
38584         the change of a week ago.
38586 2011-02-19  Jim Meyering  <meyering@redhat.com>
38588         git-version-gen: skip "-dirty" check when appropriate
38589         * build-aux/git-version-gen: Don't run any git commands when the
38590         version string comes from .tarball-version.  Prior to this, we
38591         would run git update-index --refresh even from a just-unpacked
38592         tarball directory, and that could affect a .git/ directory in a
38593         parent of the build directory.  Reported by Mike Frysinger.
38595 2011-02-19  Bruno Haible  <bruno@clisp.org>
38597         unictype/property-byname: Reduce the size of the 'data' segment.
38598         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
38600 2011-02-19  Bruno Haible  <bruno@clisp.org>
38602         unictype/scripts: Reduce the size of the 'data' segment.
38603         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
38604         '%pic'.
38605         * lib/unictype/scripts_byname.gperf: Regenerated.
38607 2011-02-19  Bruno Haible  <bruno@clisp.org>
38609         stdint: Update documentation.
38610         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
38612 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
38614         stdint: omit redundant check for wchar.h
38615         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
38616         always tests whether wchar.h exists, so remove the now-redundant test.
38618 2011-02-18  Bruno Haible  <bruno@clisp.org>
38620         stdint: Cut dependency to module 'wchar'.
38621         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
38622         include the necessary prerequisites.
38623         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
38624         * modules/stdint (Depends-on): Remove wchar.
38625         (Makefile.am): Substitute HAVE_WCHAR_H.
38626         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
38628 2011-02-18  Eric Blake  <eblake@redhat.com>
38630         longlong: skip, rather than fail, on cross-compilation
38631         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
38632         when cross-compiling; regression from 2011-02-16.
38634 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38636         * NEWS: Mention 2011-02-08 change to stdlib.
38638 2011-02-17  Bruno Haible  <bruno@clisp.org>
38640         getloadavg: Add comments about platforms.
38641         * m4/getloadavg.m4: Add comment.
38642         * lib/getloadavg.c: Likewise.
38644 2011-02-17  Bruno Haible  <bruno@clisp.org>
38646         getloadavg: Fix link error on Solaris 2.6.
38647         * modules/getloadavg (Link): New section.
38648         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
38649         linking test-getloadavg.
38650         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
38651         getloadavg.
38653 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38655         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
38656         It was 'int', but this doesn't match the IRIX 6.5 manual.
38657         Suggested by Bruno Haible in
38658         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
38660 2011-02-17  Bruno Haible  <bruno@clisp.org>
38662         havelib: Fix comments.
38663         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
38664         change.
38666 2011-02-17  Bruno Haible  <bruno@clisp.org>
38668         havelib: Update config.rpath.
38669         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
38671 2011-02-17  Bruno Haible  <bruno@clisp.org>
38673         getloadavg test: Add some plausibility checks.
38674         * tests/test-getloadavg.c (check_avg): Print a warning when the value
38675         is improbable.
38677 2011-02-16  Eric Blake  <eblake@redhat.com>
38679         maintainer-makefile: make syntax-check a no-op from tarballs
38680         * top/maint.mk (no-vc-detected): New rule.
38681         (local-checks-available): Use it to avoid hanging if someone tries
38682         'make syntax-check' from a tarball.  Also append to any non-syntax
38683         checks already defined in cfg.mk.
38685 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
38687         longlong: tune, particularly for common case of c99
38689         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
38690         or running anything if c99, or if unsigned long long int does not
38691         work.  In either case, we know the answer without further tests.
38692         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
38693         it at most once, and use its results for both long long int and
38694         unsigned long long int.  This is more likely to be efficient in
38695         the common case where the program wants to check for both long
38696         long int and unsigned long long int.
38697         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
38698         since the answer is already known.
38700 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
38702         getloadavg: set errno
38703         * lib/getloadavg.c: Set errno when returning -1.  If no other
38704         error number looks appropriate, set it to ENOSYS if the getloadavg
38705         looks like it can't possibly ever work, ENOTSUP otherwise.
38706         Suggested by Bruno Haible in
38707         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
38709         getloadavg: trim unused parts and speed up 'configure'
38710         * NEWS: Document this.
38711         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
38712         always compiled if getloadavg is absent.
38713         Move test code to ...
38714         * tests/test-getloadavg.c: New file, containing previous
38715         contents of test from lib/getloadavg.c.  It also contains
38716         suggestions by Bruno Haible in
38717         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
38718         * modules/getloadavg-tests: New file.
38719         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
38720         Do tests in the same order as they're needed for getloadavg.c.
38721         Omit setgid-related tests that generate symbols KMEM_GROUP,
38722         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
38723         Do only the tests that are needed to see whether the system has
38724         getloadavg, moving the other tests into ...
38725         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
38726         NLIST_NAME_UNION; nobody should be using it.  Do not define
38727         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
38728         relevant, as the user of this module shouldn't care how getloadavg
38729         is implemented.
38731         getloadavg: omit unused var
38732         * lib/getloadavg.c (getloadavg): Omit unused local variable.
38734 2011-02-15  Jim Meyering  <meyering@redhat.com>
38736         doc: update users.txt
38737         * users.txt: Update iwhd's URL.
38739 2011-02-13  Bruno Haible  <bruno@clisp.org>
38741         Consistent macro naming for macros that use GCC __attribute__.
38742         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
38743         _ATTRIBUTE_NONNULL_.
38744         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
38745         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
38746         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
38747         ATTRIBUTE_DEPRECATED.
38748         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
38749         ATTRIBUTE_NORETURN.
38750         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38751         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38752         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38753         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38754         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
38755         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
38756         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
38757         ATTRIBUTE_SENTINEL.
38758         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
38759         ATTRIBUTE_RETURN_CHECK.
38760         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
38761         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
38762         ATTRIBUTE_NORETURN.
38763         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
38764         Reported by Paul Eggert.
38766 2011-02-13  Bruno Haible  <bruno@clisp.org>
38768         Don't interfere with a program's definition of __attribute__.
38769         * lib/argp.h (__attribute__): Remove definition.
38770         (_GL_ATTRIBUTE_FORMAT): New macro.
38771         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
38772         * lib/argp-fmtstream.h (__attribute__): Remove definition.
38773         (_GL_ATTRIBUTE_FORMAT): New macro.
38774         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
38775         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
38776         GCC 3 or newer.
38777         * lib/error.h (__attribute__): Remove definition.
38778         (_GL_ATTRIBUTE_FORMAT): New macro.
38779         (error, error_at_line): Use it.
38780         * lib/hash.h (__attribute__): Remove definition.
38781         (ATTRIBUTE_WUR): Update definition. Define always.
38782         * lib/openat.h (__attribute__): Remove definition.
38783         (ATTRIBUTE_NORETURN): Update definition. Define always.
38784         * lib/sigpipe-die.h (__attribute__): Remove definition.
38785         (ATTRIBUTE_NORETURN): Update definition. Define always.
38786         * lib/vasnprintf.h (__attribute__): Remove definition.
38787         (_GL_ATTRIBUTE_FORMAT): New macro.
38788         (asnprintf, vasnprintf): Use it.
38789         * lib/xalloc.h (__attribute__): Remove definition.
38790         (ATTRIBUTE_NORETURN): Update definition. Define always.
38791         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
38792         * lib/xmemdup0.h (__attribute__): Remove definition.
38793         (ATTRIBUTE_NORETURN): Update definition. Define always.
38794         * lib/xprintf.h (__attribute__): Remove definition.
38795         (_GL_ATTRIBUTE_FORMAT): New macro.
38796         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
38797         * lib/xstrtol.h (__attribute__): Remove definition.
38798         (ATTRIBUTE_NORETURN): Update definition. Define always.
38799         * lib/xvasprintf.h (__attribute__): Remove definition.
38800         (_GL_ATTRIBUTE_FORMAT): New macro.
38801         (xasprintf, xvasprintf): Use it.
38802         * tests/test-argmatch.c (__attribute__): Remove definition.
38803         (ATTRIBUTE_NORETURN): Update definition. Define always.
38804         * tests/test-exclude.c (__attribute__): Remove definition.
38805         (ATTRIBUTE_NORETURN): Update definition. Define always.
38806         Reported by Paul Eggert.
38808 2011-02-13  Bruno Haible  <bruno@clisp.org>
38810         mbrtowc: Add more tests for native Windows platforms.
38811         * tests/test-mbrtowc-w32-1.sh: New file.
38812         * tests/test-mbrtowc-w32-2.sh: New file.
38813         * tests/test-mbrtowc-w32-3.sh: New file.
38814         * tests/test-mbrtowc-w32-4.sh: New file.
38815         * tests/test-mbrtowc-w32-5.sh: New file.
38816         * tests/test-mbrtowc-w32.c: New file.
38817         * modules/mbrtowc-tests (Files): Add them.
38818         (Makefile.am): Arrange to run these tests.
38819         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
38820         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
38822 2011-02-13  Bruno Haible  <bruno@clisp.org>
38824         mbrtowc: Work around native Windows bug.
38825         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
38826         guess when no suitable locale for testing was found.
38827         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
38829 2011-02-13  Bruno Haible  <bruno@clisp.org>
38831         mbsinit: Work around mingw bug.
38832         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
38833         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
38834         Windows.
38835         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
38837 2011-02-13  Bruno Haible  <bruno@clisp.org>
38839         mbsinit: Don't crash for a NULL argument.
38840         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
38841         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
38843 2011-02-13  Bruno Haible  <bruno@clisp.org>
38845         Don't interfere with a program's definition of __attribute__.
38846         * lib/stdio.in.h (__attribute__): Remove definition.
38847         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
38848         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
38849         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
38850         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
38851         * lib/string.in.h (__attribute__): Remove definition.
38852         Reported by Paul Eggert.
38854 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38856         stdlib: don't get in the way of non-GCC __attribute__
38857         See thread starting at
38858         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
38859         Revert previous stdlib change, installing the following instead:
38860         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
38861         to get in the way of a non-GCC compiler that supports __attribute__.
38862         (_GL_ATTRIBUTE_RETURN): New macro.
38863         (_Exit): Use it instead of __attribute__.
38865 2011-02-12  Bruno Haible  <bruno@clisp.org>
38867         quotearg test: Avoid test failure on mingw.
38868         * tests/test-quotearg.sh: Convert the locale identifier from native
38869         Windows syntax to Unix syntax.
38871 2011-02-12  Bruno Haible  <bruno@clisp.org>
38873         setlocale: Prefer gnulib's override over libintl's override.
38874         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
38875         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
38876         GNULIB_defined_setlocale is set.
38878 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38880         stdlib: support non-GCC __attribute__
38882         Fix a serious and tricky problem encountered when attempting to
38883         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
38884         5.5, but it crashed due to memory corruption on Solaris 10 with
38885         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
38886         bits that are otherwise zero.  This tagging is optional inside
38887         Emacs but is preferred and is used when __attribute__ ((__aligned
38888         (8))) works, as it does with both recent-enough GCC and with Sun C
38889         5.11.  However, Sun C 5.11 is not GCC and does not #define
38890         __GNUC__ and __GNUC_MINOR__.
38892         When I added the getloadavg module to Emacs, it brought in
38893         stdlib.in.h, which contained this fragment:
38895            #ifndef __attribute__
38896            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
38897            #  define __attribute__(Spec)   /* empty */
38898            # endif
38899            #endif
38901         When files that include <stdlib.h> were compiled with Sun C 5.11,
38902         the above code disabled __attribute__ ((__aligned (8))), which
38903         caused variables to not be properly aligned, which eventually led
38904         to the pointer corruption mentioned above.  (This was a bit hard
38905         to diagnose, unfortunately.)
38907         Several "#define __attribute__(X) /* empty */" code snippets need
38908         to be eradicated from Gnulib to work with non-GCC compilers that
38909         support __attribute__.  The Autoconf way to do this is to test for
38910         each kind of attribute that we want support for, and selectively
38911         enable that in source code.
38913         Fix this problem just for stdlib.h, by adding a test for the
38914         __noreturn__ attribute, and change stdlib.in.h to use that test
38915         when needed.  This technique can be easily generalized to the
38916         other *.in.h files and attributes, and a similar technique can be
38917         used for *.h and *.c files.  This patch is enough to solve the
38918         problem for Emacs + getloadavg, and I thought I'd publish it for
38919         feedback before undertaking further, similar fixes in other
38920         modules.
38922         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
38923         because it's not needed for stdlib.h.  It merely substitutes the
38924         value directly into stdlib.h.  We may well need to #define it, or
38925         similar symbols, for other modules, but it's nice to also have an
38926         option to not #define it for applications like Emacs that do not
38927         need it.
38929         * lib/stdlib.in.h (__attribute__): Do not #define.
38930         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
38931         be defined only if the _Exit module is also used.
38932         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
38933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
38934         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
38935         platforms.
38936         * modules/_Exit (Files): Add m4/attribute.m4.
38937         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
38938         * m4/attribute.m4: New file.
38940 2011-02-12  Bruno Haible  <bruno@clisp.org>
38942         wcsrtombs: Work around bug on native Windows.
38943         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
38944         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
38945         instead of len.
38946         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
38948 2011-02-12  Bruno Haible  <bruno@clisp.org>
38950         mbsrtowcs: Work around bug on native Windows.
38951         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
38952         against mingw bug.
38953         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
38955 2011-02-12  Bruno Haible  <bruno@clisp.org>
38957         Avoid setlocale bugs in tests.
38958         * modules/btowc (Dependencies): Add setlocale.
38959         * modules/c-strcase (Dependencies): Likewise.
38960         * modules/mbmemcasecmp (Dependencies): Likewise.
38961         * modules/mbmemcasecoll (Dependencies): Likewise.
38962         * modules/mbrtowc (Dependencies): Likewise.
38963         * modules/mbscasecmp (Dependencies): Likewise.
38964         * modules/mbscasestr (Dependencies): Likewise.
38965         * modules/mbschr (Dependencies): Likewise.
38966         * modules/mbscspn (Dependencies): Likewise.
38967         * modules/mbsinit (Dependencies): Likewise.
38968         * modules/mbsncasecmp (Dependencies): Likewise.
38969         * modules/mbsnrtowcs (Dependencies): Likewise.
38970         * modules/mbspbrk (Dependencies): Likewise.
38971         * modules/mbspcasecmp (Dependencies): Likewise.
38972         * modules/mbsrchr (Dependencies): Likewise.
38973         * modules/mbsrtowcs (Dependencies): Likewise.
38974         * modules/mbsspn (Dependencies): Likewise.
38975         * modules/mbsstr (Dependencies): Likewise.
38976         * modules/nl_langinfo (Dependencies): Likewise.
38977         * modules/quotearg (Dependencies): Likewise.
38978         * modules/unicase/locale-language (Dependencies): Likewise.
38979         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
38980         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
38981         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
38982         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
38983         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
38984         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
38985         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
38986         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
38987         * modules/vasnprintf-posix (Dependencies): Likewise.
38988         * modules/wcrtomb (Dependencies): Likewise.
38989         * modules/wcsnrtombs (Dependencies): Likewise.
38990         * modules/wcsrtombs (Dependencies): Likewise.
38992 2011-02-12  Bruno Haible  <bruno@clisp.org>
38994         setlocale: Workaround native Windows bug.
38995         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
38996         succeeds but sets LC_CTYPE to "C", report a failure.
38997         * tests/test-setlocale2.sh: New file.
38998         * tests/test-setlocale2.c: New file.
38999         * modules/setlocale-tests (Files): Add the new files.
39000         (Makefile.am): Enable test-setlocale2.sh test.
39001         * doc/posix-functions/setlocale.texi: Mention workaround.
39003 2011-02-11  Bruno Haible  <bruno@clisp.org>
39005         Tests for module 'setlocale'.
39006         * modules/setlocale-tests: New file.
39007         * tests/test-setlocale1.sh: New file.
39008         * tests/test-setlocale1.c: New file.
39010         New module 'setlocale'.
39011         * lib/locale.in.h (setlocale): New declaration.
39012         * lib/setlocale.c: New file, based on
39013         gettext/gettext-runtime/intl/setlocale.c.
39014         * m4/setlocale.m4: New file.
39015         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
39016         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
39017         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
39018         REPLACE_SETLOCALE.
39019         * modules/setlocale: New file.
39020         * tests/test-locale-c++.cc: Test the declaration of setlocale.
39021         * doc/posix-functions/setlocale.texi: Mention the new module.
39023 2011-02-11  Bruno Haible  <bruno@clisp.org>
39025         Prepare for locale dependent tests on mingw.
39026         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
39027         because it has the wrong locale encoding.
39028         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
39029         French_France.1252 instead of "fr".
39030         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
39031         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
39032         because it has the wrong locale encoding.
39033         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
39034         native Windows, try Turkish_Turkey.65001.
39035         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
39036         Chinese_China.54936.
39038         Prepare for locale dependent tests on mingw.
39039         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
39040         differently.
39041         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
39042         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
39043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39044         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39046 2011-02-11  Eric Blake  <eblake@redhat.com>
39048         strptime: avoid compiler warnings
39049         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
39050         compiler warnings about dead code.
39051         Reported by Daniel P. Berrange.
39053 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
39055         doc: update users.txt
39056         * users.txt: Add rcs.
39058 2011-02-10  John W. Eaton  <jwe@gnu.org>
39060         doc: update users.txt
39061         * users.txt: Add octave.
39063 2011-02-10  Jim Meyering  <meyering@redhat.com>
39065         doc: update users.txt
39066         * users.txt: Add iwhd.
39068 2011-02-09  Bruno Haible  <bruno@clisp.org>
39070         gnulib-tool: Make copyright notice adjustment more robust.
39071         * gnulib-tool (func_import): In sed_transform_main_lib_file,
39072         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
39073         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
39074         License".
39075         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
39077 2011-02-06  Bruno Haible  <bruno@clisp.org>
39079         New module 'towctrans'.
39080         * modules/towctrans: New file.
39081         * lib/wctype.in.h (towctrans): New declaration.
39082         * lib/towctrans.c: New file.
39083         * lib/towctrans-impl.h: New file.
39084         * m4/towctrans.m4: New file.
39085         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
39086         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
39087         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
39088         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
39089         * doc/posix-functions/towctrans.texi: Mention the new module.
39091 2011-02-06  Bruno Haible  <bruno@clisp.org>
39093         New module 'wctrans'.
39094         * modules/wctrans: New file.
39095         * lib/wctype.in.h (wctrans): New declaration.
39096         * lib/wctrans.c: New file.
39097         * lib/wctrans-impl.h: New file.
39098         * m4/wctrans.m4: New file.
39099         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
39100         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
39101         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
39102         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
39103         * doc/posix-functions/wctrans.texi: Mention the new module.
39105 2011-02-06  Bruno Haible  <bruno@clisp.org>
39107         New module 'iswctype'.
39108         * modules/iswctype: New file.
39109         * lib/wctype.in.h (iswctype): New declaration.
39110         * lib/iswctype.c: New file.
39111         * lib/iswctype-impl.h: New file.
39112         * m4/iswctype.m4: New file.
39113         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
39114         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
39115         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
39116         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
39117         * doc/posix-functions/iswctype.texi: Mention the new module and the
39118         HP-UX 11.00 problem.
39120 2011-02-06  Bruno Haible  <bruno@clisp.org>
39122         New module 'wctype'.
39123         * modules/wctype: Change to represent the wctype() substitute.
39124         * lib/wctype.in.h (wctype): New declaration.
39125         * lib/wctype.c: New file.
39126         * lib/wctype-impl.h: New file.
39127         * m4/wctype.m4: New file.
39128         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
39129         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
39130         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
39131         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
39132         * doc/posix-functions/wctype.texi: Mention the new module and the
39133         HP-UX 11.00 problem.
39135 2011-02-06  Bruno Haible  <bruno@clisp.org>
39137         wctype-h: Ensure wctype_t and wctrans_t are defined.
39138         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
39139         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39140         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39141         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
39142         HAVE_WCTRANS_T.
39143         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
39145 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39147         flock: fix license typo
39149         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
39150         omitted.
39152 2011-02-08  Bruno Haible  <bruno@clisp.org>
39154         Split large sed scripts, for HP-UX sed.
39155         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
39156         to avoid HP-UX limit of 99 commands, in the near future.
39157         * modules/stdlib (Makefile.am): Likewise.
39158         * modules/unistd (Makefile.am): Likewise.
39159         * modules/wchar (Makefile.am): Likewise.
39160         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39161         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
39162         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
39164 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39165             Bruno Haible  <bruno@clisp.org>
39167         stdlib: improve random_r modularization
39168         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
39169         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
39170         you also need the random_r module to get this material right.
39171         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
39172         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
39173         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
39175 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39177         stdlib: don't depend on stdint
39178         * lib/stdlib.in.h: Don't include <stdint.h> merely because
39179         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
39180         be independent of whether stdint.h is needed.
39181         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
39182         here, instead of ...
39183         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
39184         struct random_data should be using the random_r module, not just
39185         the stdlib module (which wouldn't make sense: what package needs
39186         just struct random_data without also needing random_r?).
39187         * modules/stdlib (Depends-on): Remove stdint.
39189         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
39190         See the thread rooted at
39191         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
39192         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
39193         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
39194         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
39195         __VMS)); previously it was always included (via fcntl--.h).
39196         (getloadavg): Do not use c_strtod.  Instead, approximate it by
39197         hand; this is good enough for load averages.  Also, do not use
39198         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
39199         flags directly if available and don't bother otherwise.  (Packages
39200         that need the extra reliability should use the modules that define
39201         these flags on older platforms that lack them.)
39202         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
39203         fcntl-safer.
39205 2011-02-08  Jim Meyering  <meyering@redhat.com>
39207         di-set.h, ino-map.h: add multiple-inclusion guard
39208         Technically, the guard is required only for ino-map.h, due to its
39209         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
39210         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
39211         * lib/ino-map.h: Likewise.
39213 2011-02-06  Bruno Haible  <bruno@clisp.org>
39215         iswblank: Ensure declaration on glibc systems.
39216         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
39217         * modules/iswblank (Dependencies): Add 'extensions'.
39218         * doc/posix-functions/iswblank.texi: Document the glibc problem.
39220 2011-02-06  Bruno Haible  <bruno@clisp.org>
39222         New module 'iswblank'.
39223         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
39224         * modules/iswblank: New file.
39225         * modules/wctype-h (Files): Remove lib/iswblank.c.
39226         (Makefile.am): Substitute GNULIB_ISWBLANK.
39227         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
39228         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
39229         (gl_WCTYPE_H_DEFAULTS): New macro.
39230         (gl_WCTYPE_H): Require it. Remove iswblank related code.
39231         * modules/iswblank-tests: New file.
39232         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
39233         * tests/test-wctype-h.c (main): Remove iswblank tests.
39234         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
39235         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
39236         of 'wctype-h'.
39237         * NEWS: Mention the change.
39238         * modules/mbchar (Depends-on): Add iswblank.
39240 2011-02-08  Bruno Haible  <bruno@clisp.org>
39242         di-set tests: Refactor.
39243         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
39244         unnecessary includes.
39245         (ASSERT): Remove macro.
39246         (main): Make C90 compliant by avoiding variable declaration after
39247         statement.
39248         * modules/di-set-tests (Files): Add tests/macros.h.
39250 2011-02-08  Bruno Haible  <bruno@clisp.org>
39252         ino-map tests: Refactor.
39253         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
39254         unnecessary includes.
39255         (ASSERT): Remove macro.
39256         (main): Make C90 compliant by avoiding variable declaration after
39257         statement.
39258         * modules/ino-map-tests (Files): Add tests/macros.h.
39260 2011-02-08  Jim Meyering  <meyering@redhat.com>
39262         di-set: add "const" to a cast
39263         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
39264         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
39266 2011-02-06  Bruno Haible  <bruno@clisp.org>
39268         Rename module 'wctype' to 'wctype-h'.
39269         * modules/wctype-h: Renamed from modules/wctype.
39270         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
39271         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
39272         (Files, Depends-on, Makefile.am): Update.
39273         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
39274         (Files, Makefile.am): Update.
39275         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
39276         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
39277         * doc/posix-headers/wctype.texi: Update.
39278         * doc/posix-functions/iswalnum.texi: Update.
39279         * doc/posix-functions/iswalpha.texi: Update.
39280         * doc/posix-functions/iswblank.texi: Update.
39281         * doc/posix-functions/iswcntrl.texi: Update.
39282         * doc/posix-functions/iswdigit.texi: Update.
39283         * doc/posix-functions/iswgraph.texi: Update.
39284         * doc/posix-functions/iswlower.texi: Update.
39285         * doc/posix-functions/iswprint.texi: Update.
39286         * doc/posix-functions/iswpunct.texi: Update.
39287         * doc/posix-functions/iswspace.texi: Update.
39288         * doc/posix-functions/iswupper.texi: Update.
39289         * doc/posix-functions/iswxdigit.texi: Update.
39290         * doc/posix-functions/towlower.texi: Update.
39291         * doc/posix-functions/towupper.texi: Update.
39292         * NEWS: Mention the change.
39293         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
39294         * modules/mbchar (Dependencies): Likewise.
39295         * modules/mbswidth (Dependencies): Likewise.
39296         * modules/quotearg (Dependencies): Likewise.
39297         * modules/regex (Dependencies): Likewise.
39298         * modules/wcscasecmp (Dependencies): Likewise.
39299         * modules/wcsncasecmp (Dependencies): Likewise.
39300         * modules/wcwidth (Dependencies): Likewise.
39302 2011-02-06  Bruno Haible  <bruno@clisp.org>
39304         New module 'wcswidth'.
39305         * modules/wcswidth: New file.
39306         * lib/wchar.in.h (wcswidth): New declaration.
39307         * lib/wcswidth.c: New file.
39308         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
39309         * m4/wcswidth.m4: New file.
39310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
39311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
39312         REPLACE_WCSWIDTH.
39313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
39314         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
39315         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
39316         * doc/posix-functions/wcswidth.texi: Mention the new module.
39318 2011-02-06  Bruno Haible  <bruno@clisp.org>
39320         New module 'wcstok'.
39321         * modules/wcstok: New file.
39322         * lib/wchar.in.h (wcstok): New declaration.
39323         * lib/wcstok.c: New file.
39324         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
39325         * m4/wcstok.m4: New file.
39326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
39327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
39328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
39329         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
39330         * doc/posix-functions/wcstok.texi: Mention the new module.
39332 2011-02-06  Bruno Haible  <bruno@clisp.org>
39334         New module 'wcsstr'.
39335         * modules/wcsstr: New file.
39336         * lib/wchar.in.h (wcsstr): New declaration.
39337         * lib/wcsstr.c: New file.
39338         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
39339         * m4/wcsstr.m4: New file.
39340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
39341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
39342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
39343         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
39344         * doc/posix-functions/wcsstr.texi: Mention the new module.
39346 2011-02-06  Bruno Haible  <bruno@clisp.org>
39348         New module 'wcspbrk'.
39349         * modules/wcspbrk: New file.
39350         * lib/wchar.in.h (wcspbrk): New declaration.
39351         * lib/wcspbrk.c: New file.
39352         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
39353         * m4/wcspbrk.m4: New file.
39354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
39355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
39356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
39357         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
39358         * doc/posix-functions/wcspbrk.texi: Mention the new module.
39360 2011-02-06  Bruno Haible  <bruno@clisp.org>
39362         New module 'wcsspn'.
39363         * modules/wcsspn: New file.
39364         * lib/wchar.in.h (wcsspn): New declaration.
39365         * lib/wcsspn.c: New file.
39366         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
39367         * m4/wcsspn.m4: New file.
39368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
39369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
39370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
39371         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
39372         * doc/posix-functions/wcsspn.texi: Mention the new module.
39374 2011-02-06  Bruno Haible  <bruno@clisp.org>
39376         New module 'wcscspn'.
39377         * modules/wcscspn: New file.
39378         * lib/wchar.in.h (wcscspn): New declaration.
39379         * lib/wcscspn.c: New file.
39380         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
39381         * m4/wcscspn.m4: New file.
39382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
39383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
39384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
39385         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
39386         * doc/posix-functions/wcscspn.texi: Mention the new module.
39388 2011-02-06  Bruno Haible  <bruno@clisp.org>
39390         New module 'wcsrchr'.
39391         * modules/wcsrchr: New file.
39392         * lib/wchar.in.h (wcsrchr): New declaration.
39393         * lib/wcsrchr.c: New file.
39394         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
39395         * m4/wcsrchr.m4: New file.
39396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
39397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
39398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
39399         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
39400         * doc/posix-functions/wcsrchr.texi: Mention the new module.
39402 2011-02-06  Bruno Haible  <bruno@clisp.org>
39404         New module 'wcschr'.
39405         * modules/wcschr: New file.
39406         * lib/wchar.in.h (wcschr): New declaration.
39407         * lib/wcschr.c: New file.
39408         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
39409         * m4/wcschr.m4: New file.
39410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
39411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
39412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
39413         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
39414         * doc/posix-functions/wcschr.texi: Mention the new module.
39416 2011-02-06  Bruno Haible  <bruno@clisp.org>
39418         New module 'wcsdup'.
39419         * modules/wcsdup: New file.
39420         * lib/wchar.in.h (wcsdup): New declaration.
39421         * lib/wcsdup.c: New file.
39422         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
39423         * m4/wcsdup.m4: New file.
39424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
39425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
39426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
39427         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
39428         * doc/posix-functions/wcsdup.texi: Mention the new module.
39430 2011-02-06  Bruno Haible  <bruno@clisp.org>
39432         New module 'wcsxfrm'.
39433         * modules/wcsxfrm: New file.
39434         * lib/wchar.in.h (wcsxfrm): New declaration.
39435         * lib/wcsxfrm.c: New file.
39436         * lib/wcsxfrm-impl.h: New file.
39437         * m4/wcsxfrm.m4: New file.
39438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
39439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
39440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
39441         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
39442         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
39444 2011-02-06  Bruno Haible  <bruno@clisp.org>
39446         New module 'wcscoll'.
39447         * modules/wcscoll: New file.
39448         * lib/wchar.in.h (wcscoll): New declaration.
39449         * lib/wcscoll.c: New file.
39450         * lib/wcscoll-impl.h: New file.
39451         * m4/wcscoll.m4: New file.
39452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
39453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
39454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
39455         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
39456         * doc/posix-functions/wcscoll.texi: Mention the new module.
39458 2011-02-06  Bruno Haible  <bruno@clisp.org>
39460         New module 'wcsncasecmp'.
39461         * modules/wcsncasecmp: New file.
39462         * lib/wchar.in.h (wcsncasecmp): New declaration.
39463         * lib/wcsncasecmp.c: New file.
39464         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
39465         * m4/wcsncasecmp.m4: New file.
39466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
39467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
39468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
39469         HAVE_WCSNCASECMP.
39470         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
39471         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
39473 2011-02-06  Bruno Haible  <bruno@clisp.org>
39475         New module 'wcscasecmp'.
39476         * modules/wcscasecmp: New file.
39477         * lib/wchar.in.h (wcscasecmp): New declaration.
39478         * lib/wcscasecmp.c: New file.
39479         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
39480         * m4/wcscasecmp.m4: New file.
39481         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
39482         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
39483         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
39484         HAVE_WCSCASECMP.
39485         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
39486         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
39488 2011-02-05  Bruno Haible  <bruno@clisp.org>
39490         New module 'wcsncmp'.
39491         * modules/wcsncmp: New file.
39492         * lib/wchar.in.h (wcsncmp): New declaration.
39493         * lib/wcsncmp.c: New file.
39494         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
39495         * m4/wcsncmp.m4: New file.
39496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
39497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
39498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
39499         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
39500         * doc/posix-functions/wcsncmp.texi: Mention the new module.
39502 2011-02-05  Bruno Haible  <bruno@clisp.org>
39504         New module 'wcscmp'.
39505         * modules/wcscmp: New file.
39506         * lib/wchar.in.h (wcscmp): New declaration.
39507         * lib/wcscmp.c: New file.
39508         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
39509         * m4/wcscmp.m4: New file.
39510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
39511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
39512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
39513         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
39514         * doc/posix-functions/wcscmp.texi: Mention the new module.
39516 2011-02-05  Bruno Haible  <bruno@clisp.org>
39518         New module 'wcsncat'.
39519         * modules/wcsncat: New file.
39520         * lib/wchar.in.h (wcsncat): New declaration.
39521         * lib/wcsncat.c: New file.
39522         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
39523         * m4/wcsncat.m4: New file.
39524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
39525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
39526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
39527         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
39528         * doc/posix-functions/wcsncat.texi: Mention the new module.
39530 2011-02-05  Bruno Haible  <bruno@clisp.org>
39532         New module 'wcscat'.
39533         * modules/wcscat: New file.
39534         * lib/wchar.in.h (wcscat): New declaration.
39535         * lib/wcscat.c: New file.
39536         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
39537         * m4/wcscat.m4: New file.
39538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
39539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
39540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
39541         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
39542         * doc/posix-functions/wcscat.texi: Mention the new module.
39544 2011-02-05  Bruno Haible  <bruno@clisp.org>
39546         New module 'wcpncpy'.
39547         * modules/wcpncpy: New file.
39548         * lib/wchar.in.h (wcpncpy): New declaration.
39549         * lib/wcpncpy.c: New file.
39550         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
39551         * m4/wcpncpy.m4: New file.
39552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
39553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
39554         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
39555         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
39556         * doc/posix-functions/wcpncpy.texi: Mention the new module.
39558 2011-02-05  Bruno Haible  <bruno@clisp.org>
39560         New module 'wcsncpy'.
39561         * modules/wcsncpy: New file.
39562         * lib/wchar.in.h (wcsncpy): New declaration.
39563         * lib/wcsncpy.c: New file.
39564         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
39565         * m4/wcsncpy.m4: New file.
39566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
39567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
39568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
39569         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
39570         * doc/posix-functions/wcsncpy.texi: Mention the new module.
39572 2011-02-05  Bruno Haible  <bruno@clisp.org>
39574         New module 'wcpcpy'.
39575         * modules/wcpcpy: New file.
39576         * lib/wchar.in.h (wcpcpy): New declaration.
39577         * lib/wcpcpy.c: New file.
39578         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
39579         * m4/wcpcpy.m4: New file.
39580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
39581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
39582         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
39583         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
39584         * doc/posix-functions/wcpcpy.texi: Mention the new module.
39586 2011-02-05  Bruno Haible  <bruno@clisp.org>
39588         New module 'wcscpy'.
39589         * modules/wcscpy: New file.
39590         * lib/wchar.in.h (wcscpy): New declaration.
39591         * lib/wcscpy.c: New file.
39592         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
39593         * m4/wcscpy.m4: New file.
39594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
39595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
39596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
39597         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
39598         * doc/posix-functions/wcscpy.texi: Mention the new module.
39600 2011-02-05  Bruno Haible  <bruno@clisp.org>
39602         New module 'wcsnlen'.
39603         * modules/wcsnlen: New file.
39604         * lib/wchar.in.h (wcsnlen): New declaration.
39605         * lib/wcsnlen.c: New file.
39606         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
39607         * m4/wcsnlen.m4: New file.
39608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
39609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
39610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
39611         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
39612         * doc/posix-functions/wcsnlen.texi: Mention the new module.
39614 2011-02-05  Bruno Haible  <bruno@clisp.org>
39616         New module 'wcslen'.
39617         * modules/wcslen: New file.
39618         * lib/wchar.in.h (wcslen): New declaration.
39619         * lib/wcslen.c: New file.
39620         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
39621         * m4/wcslen.m4: New file.
39622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
39623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
39624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
39625         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
39626         * doc/posix-functions/wcslen.texi: Mention the new module.
39628 2011-02-05  Bruno Haible  <bruno@clisp.org>
39630         New module 'wmemset'.
39631         * modules/wmemset: New file.
39632         * lib/wchar.in.h (wmemset): New declaration.
39633         * lib/wmemset.c: New file.
39634         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
39635         * m4/wmemset.m4: New file.
39636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
39637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
39638         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
39639         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
39640         * doc/posix-functions/wmemset.texi: Mention the new module.
39642 2011-02-05  Bruno Haible  <bruno@clisp.org>
39644         New module 'wmemmove'.
39645         * modules/wmemmove: New file.
39646         * lib/wchar.in.h (wmemmove): New declaration.
39647         * lib/wmemmove.c: New file.
39648         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
39649         * m4/wmemmove.m4: New file.
39650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
39651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
39652         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
39653         HAVE_WMEMMOVE.
39654         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
39655         * doc/posix-functions/wmemmove.texi: Mention the new module.
39657 2011-02-05  Bruno Haible  <bruno@clisp.org>
39659         New module 'wmemcpy'.
39660         * modules/wmemcpy: New file.
39661         * lib/wchar.in.h (wmemcpy): New declaration.
39662         * lib/wmemcpy.c: New file.
39663         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
39664         * m4/wmemcpy.m4: New file.
39665         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
39666         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
39667         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
39668         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
39669         * doc/posix-functions/wmemcpy.texi: Mention the new module.
39671 2011-02-05  Bruno Haible  <bruno@clisp.org>
39673         New module 'wmemcmp'.
39674         * modules/wmemcmp: New file.
39675         * lib/wchar.in.h (wmemcmp): New declaration.
39676         * lib/wmemcmp.c: New file.
39677         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
39678         * m4/wmemcmp.m4: New file.
39679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
39680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
39681         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
39682         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
39683         * doc/posix-functions/wmemcmp.texi: Mention the new module.
39685 2011-02-07  Jim Meyering  <meyering@redhat.com>
39687         di-set, ino-map: new modules, from coreutils
39688         * lib/di-set.c: New file.
39689         * lib/di-set.h: Likewise.
39690         * lib/ino-map.c: Likewise.
39691         * lib/ino-map.h: Likewise.
39692         * modules/di-set: Likewise.
39693         * modules/di-set-tests: Likewise.
39694         * modules/ino-map: Likewise.
39695         * modules/ino-map-tests: Likewise.
39696         * tests/test-di-set.c: Likewise.
39697         * tests/test-ino-map.c: Likewise.
39699 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
39701         getloadavg: merge minor changes from Emacs
39703         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
39704         (getloadavg): Use memset, not bzero.
39706         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
39707         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
39708         clash (bug#86).
39710 2010-11-14  Bruno Haible  <bruno@clisp.org>
39712         Allow multiple gnulib generated replacements to coexist.
39713         * lib/getopt.in.h (struct option): Avoid identical redefinition.
39714         * lib/inttypes.in.h (imaxdiv_t): Likewise.
39715         * lib/langinfo.in.h (nl_item): Likewise.
39716         * lib/math.in.h (_NaN, NAN): Likewise.
39717         * lib/netdb.in.h (struct addrinfo): Likewise.
39718         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
39719         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
39720         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
39721         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
39722         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
39723         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
39724         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
39725         pthread_mutexattr_init, pthread_mutexattr_settype,
39726         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
39727         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
39728         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
39729         pthread_spin_trylock, pthread_spin_unlock): Likewise.
39730         * lib/sched.in.h (struct sched_param): Likewise.
39731         * lib/se-selinux.in.h (security_class_t, security_context_t,
39732         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
39733         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
39734         lsetfilecon, fsetfilecon, security_check_context,
39735         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
39736         Likewise.
39737         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
39738         Likewise.
39739         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
39740         _gl_function_taking_int_returning_void_t, union sigval,
39741         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
39742         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
39743         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
39744         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
39745         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
39746         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
39747         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
39748         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
39749         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
39750         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
39751         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
39752         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
39753         socklen_t, rpl_fd_isset): Likewise.
39754         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
39755         * lib/sys_time.in.h (struct timeval): Likewise.
39756         * lib/sys_times.in.h (struct tms): Likewise.
39757         * lib/sys_utsname.in.h (struct utsname):
39758         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
39759         * lib/unistd.in.h (getpagesize): Likewise.
39760         * lib/wchar.in.h (mbstate_t): Likewise.
39761         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39762         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
39763         towlower, towupper): Likewise.
39764         Reported by Sam Steingold <sds@gnu.org>.
39766 2011-02-05  Eric Blake  <eblake@redhat.com>
39768         unsetenv: work around Haiku issues
39769         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
39770         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
39772 2010-12-30  Bruce Korb  <bkorb@gnu.org>
39774         libposix: avoid calling error() within libposix
39775         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
39776         is defined.
39778 2011-02-05  Eric Blake  <eblake@redhat.com>
39780         strerror_r-posix: port to cygwin
39781         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
39782         implementation.
39783         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
39784         * tests/test-strerror_r.c (main): Fix test.
39785         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
39786         issue.
39788 2011-02-05  Bruno Haible  <bruno@clisp.org>
39790         New module 'wmemchr'.
39791         * modules/wmemchr: New file.
39792         * lib/wchar.in.h (wmemchr): New declaration.
39793         * lib/wmemchr.c: New file.
39794         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
39795         * m4/wmemchr.m4: New file.
39796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
39797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
39798         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
39799         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
39800         * doc/posix-functions/wmemchr.texi: Mention the new module.
39802 2011-02-04  Eric Blake  <eblake@redhat.com>
39804         fdopendir: detect FreeBSD bug
39805         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
39806         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
39808 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39810         stdbool: do not define HAVE_STDBOOL_H
39811         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
39812         AC_HEADER_STDBOOL.  All uses changed.  Do not define
39813         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
39814         imported from the latest Autoconf git.  It was motivated by Emacs,
39815         which uses gnulib but does not need HAVE_STDBOOL_H.
39817 2011-02-04  Bruno Haible  <bruno@clisp.org>
39819         wcsnrtombs: Prepare for new module wwcsnrtombs.
39820         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
39821         * lib/wcsnrtombs.c: Include it.
39822         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
39824         wcsrtombs: Prepare for new module wwcsrtombs.
39825         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
39826         * lib/wcsrtombs.c: Include it.
39827         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
39829         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
39830         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
39831         * lib/mbsnrtowcs.c: Include it.
39832         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
39834         mbsrtowcs: Prepare for new module mbsrtowwcs.
39835         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
39836         * lib/mbsrtowcs.c: Include it.
39837         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
39839 2011-02-04  Bruno Haible  <bruno@clisp.org>
39841         vasnprintf: Reduce use of malloc for small format strings.
39842         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
39843         (arguments): Add room for the first 7 arguments.
39844         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
39845         (char_directives, u8_directives, u16_directives, u32_directives): Add
39846         room for the first 7 directives.
39847         * lib/printf-parse.c: Include <string.h>.
39848         (PRINTF_PARSE): Change memory handling code so that it uses the first
39849         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
39850         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
39851         Reported by Pádraig Brady <P@draigbrady.com>.
39853 2011-01-31  Eric Blake  <eblake@redhat.com>
39855         dup2: work around Haiku bug
39856         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
39857         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
39858         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39859         * tests/test-dup2.c (main): Enhance test.
39861 2011-01-31  Simon Josefsson  <simon@josefsson.org>
39863         doc: off_t is not available in eglibc 2.11.2 stdio.h.
39864         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
39865         declared by eglibc 2.11.2.
39866         * lib/stdio.in.h: Likewise.
39868 2011-01-31  Eric Blake  <eblake@redhat.com>
39870         ignore-value: add missing test dependency
39871         * tests/test-ignore-value.c: Revert previous change; stdio.h
39872         provides off_t.
39873         * modules/ignore-value-tests (Depends-on): Add missing dependency.
39875 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
39877         mktime: clarify long_int width checking
39878         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
39879         the top level, to make it clearer that the assumption about
39880         long_int width is being checked.  See
39881         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
39883 2011-01-30  Simon Josefsson  <simon@josefsson.org>
39885         ignore-value: Fix self-test.
39886         * tests/test-ignore-value.c: Include sys/types.h for off_t.
39888 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39890         TYPE_MAXIMUM: avoid theoretically undefined behavior
39891         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
39892         negative number, which the C Standard says has undefined behavior.
39893         In practice this is not a problem, but might as well do it by the book.
39894         Reported by Rich Felker and Eric Blake; see
39895         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
39896         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
39897         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39899         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
39900         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39901         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
39903         mktime: #undef mktime before #defining it
39904         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
39906         mktime: systematically normalize tm_isdst comparisons
39907         * lib/mktime.c (isdst_differ): New function.
39908         (__mktime_internal): Use it systematically for all isdst comparisons.
39909         This completes the fix for libc BZ #6723, and removes the need for
39910         normalizing tm_isdst.  See
39911         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
39912         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
39914         mktime: fix some integer overflow issues and sidestep the rest
39916         This was prompted by a bug report by Benjamin Lindner for MinGW
39917         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
39918         His bug is due to signed integer overflow (0 - INT_MIN), and I
39919         I scanned through mktime.c looking for other integer overflow
39920         problems, fixing all the bugs I found.
39922         Although the C Standard says the resulting code is still not safe
39923         in the presence of integer overflow, in practice it should be good
39924         enough for all real-world two's-complement implementations, except
39925         for debugging environments that deliberately trap on integer
39926         overflow (e.g., gcc -ftrapv).
39928         * lib/mktime.c (WRAPV): New macro.
39929         (SHR): Also check that long_int and time_t shift right in the
39930         usual way, before using the fast-but-unportable method.
39931         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
39932         used.  The code already assumed two's complement, so there's
39933         no need to test for alternatives.  All uses removed.
39934         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
39935         the C standard.  Problem reported by Rich Felker in
39936         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
39937         (twos_complement_arithmetic): Also check long_int and time_t.
39938         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
39939         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
39940         (__mktime_internal): Avoid integer overflow with unary subtraction
39941         in two instances where -1 - X is an adequate replacement for -X,
39942         since the calculations are approximate.
39944 2011-01-29  Eric Blake  <eblake@redhat.com>
39946         mktime: avoid infinite loop
39947         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
39948         type; behavior is still undefined but portable to all known targets.
39949         Reported by Rich Felker.
39951 2011-01-29  Simon Josefsson  <simon@josefsson.org>
39953         rename, unlink, same-inode: Relicense.
39954         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
39955         * modules/unlink (License): Likewise.
39956         * modules/same-inode (License): Likewise.
39958 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39960         mktime: avoid problems on NetBSD 5 / i386
39961         * lib/mktime.c (long_int): New type.  This works around a problem
39962         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
39963         but time_t is 64 bits, and where I expect the existing code is
39964         wrong in some cases.
39965         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
39966         (ydhms_diff): Bring back the compile-time check for wide-enough
39967         year and yday.
39969         mktime: fix misspelling in comment
39970         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
39971         This merges all recent glibc changes of importance.
39973 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39975         move-if-change: cope with concurrent mv of identical file.
39976         * build-aux/move-if-change (CMPPROG): Accept environment
39977         variable as an override for `cmp'.
39978         (usage): Document CMPPROG.
39979         Adjust comparison to drop stdout.  Cope with failure of mv if
39980         the target file exists and is identical to the source, for
39981         parallel builds.
39982         Report from H.J. Lu against binutils in PR binutils/12283.
39984 2011-01-28  Bruce Korb  <bkorb@gnu.org>
39986         * users.txt: Mention sharutils.
39988 2011-01-28  Simon Josefsson  <simon@josefsson.org>
39990         * users.txt: Mention OATH Toolkit.
39992 2011-01-27  Bruno Haible  <bruno@clisp.org>
39994         Prepare for supporting FreeBSD 10.
39995         * build-aux/config.libpath: Remove handling of freebsd1*.
39997 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
39999         Prepare for supporting FreeBSD 10.
40000         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
40001         match FreeBSD 10.0.
40003 2011-01-27  Bruno Haible  <bruno@clisp.org>
40005         vma-iter, get-rusage-as: Add OpenBSD support.
40006         * modules/vma-iter (configure.ac): Test for mquery.
40007         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
40008         * lib/vma-iter.c: Include <sys/mman.h>.
40009         (vma_iterate): Add an implementation based on mquery().
40010         * lib/resource-ext.h (get_rusage_as): Update comments.
40011         * lib/get-rusage-as.c: Likewise.
40012         * lib/get-rusage-data.c: Likewise.
40014 2011-01-26  Karl Berry  <karl@gnu.org>
40016         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
40017         variables to make it easier to override the makeinfo program used.
40019 2011-01-26  Eric Blake  <eblake@redhat.com>
40021         fcntl: work around Haiku F_DUPFD bugs
40022         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
40023         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
40024         cloexec bit on duplication.
40025         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
40027 2011-01-26  Bruno Haible  <bruno@clisp.org>
40029         Enable memory leak tests on AIX.
40030         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
40031         * tests/test-fprintf-posix3.c (main): Likewise.
40033 2011-01-26  Bruno Haible  <bruno@clisp.org>
40035         Tests for module 'get-rusage-data'.
40036         * modules/get-rusage-data-tests: New file.
40037         * tests/test-get-rusage-data.c: New file.
40039         New module 'get-rusage-data'.
40040         * lib/resource-ext.h (get_rusage_data): New declaration.
40041         * lib/get-rusage-data.c: New file.
40042         * modules/get-rusage-data: New file.
40044 2011-01-25  Bruno Haible  <bruno@clisp.org>
40046         get-rusage-as: Allow for easier testing.
40047         * lib/resource-ext.h (get_rusage_as): Add comment.
40048         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
40049         (main): New function for interactive testing.
40051 2011-01-25  Bruno Haible  <bruno@clisp.org>
40053         vma-iter: Treat Haiku like BeOS.
40054         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
40055         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
40057 2011-01-25  Eric Blake  <eblake@redhat.com>
40059         c-stack: fix regression on cygwin when libsigsegv is present
40060         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
40062 2011-01-24  Bruno Haible  <bruno@clisp.org>
40064         vma-iter: Avoid empty intervals.
40065         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
40066         on an empty interval.
40068 2011-01-24  Jim Meyering  <meyering@redhat.com>
40070         u64: remove unnecessary #include
40071         * lib/u64.h: Don't include <stddef.h>.  It was not used.
40073 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40075         Allow the user to avoid the HAVE_RAW_DECL_* macros.
40076         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
40078 2011-01-23  Bruno Haible  <bruno@clisp.org>
40080         New module 'vma-iter'.
40081         * lib/vma-iter.h: New file.
40082         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
40083         * modules/vma-iter: New file.
40084         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
40085         for get_rusage_as_via_iterator.
40086         (vma_iterate_callback): New function.
40087         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
40088         * modules/get-rusage-as (Depends-on): Add vma-iter.
40090 2011-01-23  Bruno Haible  <bruno@clisp.org>
40092         uninorm: Tweak includes.
40093         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
40094         Reported by Jim Meyering.
40096 2011-01-23  Bruno Haible  <bruno@clisp.org>
40098         get-rusage-as: Improve on NetBSD.
40099         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
40100         /proc, like on FreeBSD.
40102 2011-01-23  Jim Meyering  <meyering@redhat.com>
40104         xreadlink.h: remove unnecessary #include
40105         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
40107         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
40108         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
40110 2011-01-23  Bruno Haible  <bruno@clisp.org>
40112         get-rusage-as: Fix bug.
40113         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
40114         original limit when aborting the first loop.
40116 2011-01-23  Bruno Haible  <bruno@clisp.org>
40118         wctype: Ensure valid C syntax.
40119         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
40120         unconditionally, instead of gl_NEXT_HEADERS conditionally.
40122 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
40124         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
40125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
40126         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
40127         as they are needed only for configure's test case.
40128         This removes two unnecessary symbols from config.h.
40130         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
40131         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
40132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
40133         AC_CHECK_HEADERS_ONCE on a header that we also invoke
40134         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
40135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
40136         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
40137         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
40138         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40139         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40140         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40142         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40143         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
40144         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
40145         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40146         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
40147         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40149 2011-01-21  Eric Blake  <eblake@redhat.com>
40151         maintainer-makefile: work with older git for submodule check
40152         * top/maint.mk (public-submodule-commit): Rewrite to avoid
40153         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
40154         Reported by Matthias Bolte.
40156         bootstrap: minor portability fixes
40157         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
40158         (usage): Omit leading capital and trailing . on help phrases, per
40159         GNU Coding Standards.
40160         (check_versions, top level): Prefix messages with script name.
40162 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
40164         bootstrap: support --no-git option
40165         * build-aux/bootstrap: Add --no-git option, to be used when
40166         --gnulib-srcdir points to the exact desired checkout.
40168 2011-01-21  Eric Blake  <eblake@redhat.com>
40170         strerror_r-posix: work with glibc 2.13
40171         * lib/strerror_r.c (strerror_r): Fix return type.
40173 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40174             Bruno Haible  <bruno@clisp.org>
40176         uN_strstr: New unit tests.
40177         * modules/unistr/u8-strstr-tests: New file.
40178         * modules/unistr/u16-strstr-tests: New file.
40179         * modules/unistr/u32-strstr-tests: New file.
40180         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
40181         * tests/unistr/test-u8-strstr.c: New file.
40182         * tests/unistr/test-u16-strstr.c: New file.
40183         * tests/unistr/test-u32-strstr.c: New file.
40185 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40186             Bruno Haible  <bruno@clisp.org>
40188         Make uN_strstr functions O(n) worst-case.
40189         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
40190         16-bit and 32-bit unit cases, use the unibyte algorithm from
40191         lib/mbsstr.c.
40192         * lib/unistr/u8-strstr.c: Include <string.h>.
40193         (UNIT_IS_UINT8_T): New macro.
40194         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
40195         (U_STRLEN, U_STRNLEN): New macros.
40196         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
40197         (U_STRLEN, U_STRNLEN): New macros.
40198         * modules/unistr/u8-strstr (Depends-on): Add strstr.
40199         (configure.ac): Update required libunistring version.
40200         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
40201         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
40202         malloca.
40203         (configure.ac): Update required libunistring version.
40204         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
40205         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
40206         malloca.
40207         (configure.ac): Update required libunistring version.
40209 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40210             Bruno Haible  <bruno@clisp.org>
40212         Prepare for faster uN_strstr functions.
40213         * lib/str-kmp.h: Support definable UNITs.
40214         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
40215         needle_len argument.
40216         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
40217         * lib/mbscasestr.c (mbscasestr): Likewise.
40219 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40221         malloca-tests: make faster by unsetting MALLOC_PERTURB_
40222         * tests/test-malloca.c (main): Unset the environment variable
40223         to greatly speed up the test.
40224         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
40225         * modules/malloca-tests: Depend on unsetenv.
40227 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40229         ignore-value: remove stdint dependency
40230         * lib/ignore-value.h: Remove <stdint.h>
40231         * modules/ignore-value: Remove stdint dependency.
40233 2011-01-21  Jim Meyering  <meyering@redhat.com>
40235         maint.mk: adjust variable name to be consistent with other gl_ vars
40236         * top/maint.mk (gl_public_submodule_commit): Rename the variable
40237         to be lower case.
40239 2011-01-20  Jim Meyering  <meyering@redhat.com>
40241         maint.mk: make "check" depend on public-submodule-commit by default
40242         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
40244 2011-01-20  Bruno Haible  <bruno@clisp.org>
40246         mbfile, mbiter: Complete change from 2008-12-21.
40247         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
40248         * m4/mbiter.m4 (gl_MBITER): Likewise.
40250 2011-01-20  Jim Meyering  <meyering@redhat.com>
40252         init.sh: insert space between each function name and "()"
40253         * tests/init.sh: Make it a little easier to see that a function's
40254         name is "warn_", and not "warn" when looking at the first part of
40255         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
40257 2011-01-20  Jim Meyering  <meyering@redhat.com>
40259         mountlist: clean up code formatting
40260         * lib/mountlist.c (read_file_system_list): Split a long line,
40261         correct bracing style, use NULL in place of "(struct statfs *)0",
40262         don't parenthesize return value, add spaces around "=" and after
40263         ";-in-for-stmt".
40265 2011-01-14  Markus Duft  <mduft@gentoo.org>
40267         mountlist: add support for Interix
40268         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
40269         Apply statvfs to all entries of /dev/fs.
40270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
40271         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
40273 2011-01-20  Jim Meyering  <meyering@redhat.com>
40275         maint.mk: improve the public-submodule-commit rule
40276         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
40277         to suppress printing of its commands... unless V=1.
40278         Add git submodule's --quiet option to suppress printing of e.g.,
40279         "Entering gnulib" output.
40280         "cd" into $(srcdir) before running git submodule.
40282 2011-01-20  Bruno Haible  <bruno@clisp.org>
40284         include_next: Fix bug introduced on 2011-01-18.
40285         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
40286         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
40287         ac_cv_header_... variable if the second argument is not 'check'.
40288         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
40289         gl_NEXT_HEADERS_INTERNAL.
40291 2011-01-20  Bruno Haible  <bruno@clisp.org>
40293         Allow the user to avoid the GNULIB_TEST_* macros.
40294         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
40295         Suggested by Paul Eggert.
40297 2011-01-14  Jim Meyering  <meyering@redhat.com>
40299         bootstrap: avoid failure when there is no .gitmodules file
40300         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
40301         has been assigned to, even when its value is the empty string.
40302         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
40303         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
40304         Reported by John W. Eaton <jwe@gnu.org>.
40306 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40308         assume <ctype.h>, ..., <time.h> exist
40309         For years gnulib has been assuming the existence of the headers
40310         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
40311         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
40312         them, since they don't appear to be needed.
40313         * README (Portability guidelines): Document this.
40314         * lib/flock.c: Assume <fcntl.h> exists.
40315         * lib/regex_internal.h: Assume <locale.h> exists.
40316         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
40317         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
40318         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
40319         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
40320         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
40321         * m4/regex.m4 (gl_REGEX): Likewise.
40322         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
40323         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
40324         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
40325         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
40326         * tests/test-argp.c: Likewise.
40327         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
40329         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
40330         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
40331         AA_APPLE_UNIVERSAL_BUILD.  See
40332         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
40333         * NEWS: Document this.
40335 2011-01-19  Eric Blake  <eblake@redhat.com>
40337         c-stack: assume stack overflow if SA_SIGINFO unsupported
40338         * lib/c-stack.c (SIGACTION_WORKS): Rename...
40339         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
40340         sigaction will work.
40341         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
40342         behavior match Linux.
40343         * tests/test-c-stack.c (main): Prefer NULL for pointers.
40345         stdbool-tests: accommodate Haiku
40346         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
40348         binary-io: fix O_TEXT on Haiku
40349         * modules/binary-io (Depends-on): Add fcntl-h.
40350         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
40351         than blindly undefining O_TEXT.
40352         Reported by Scott McCreary.
40354 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40356         include_next: do not check for standard headers like stddef.h
40358         I found this problem when modifying Emacs to use gnulib.
40359         I noticed that it added HAVE_STDDEF_H to config.h, even though
40360         gnulib always assumes <stddef.h> exists as per README and this
40361         symbol is unnecessary.
40362         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
40363         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
40364         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
40365         faster for headers like stddef.h that are known to exist.
40366         (gl_CHECK_NEXT_HEADERS): Use it.
40367         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
40368         rather than gl_CHECK_NEXT_HEADERS.
40369         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
40370         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
40372 2011-01-18  Eric Blake  <eblake@redhat.com>
40374         ansi-c++-opt: skip C++ dependency style if C++ is unused
40375         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
40376         tests when we know C++ compilation is not desired.
40377         Reported by Scott McCreary.
40379 2011-01-18  Bruno Haible  <bruno@clisp.org>
40381         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
40382         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
40383         (main): Perform test also when getrlimit and setrlimit don't exist or
40384         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
40385         limiting the address space size using setrlimit, compare the address
40386         space size before and after the test.
40387         * tests/test-dprintf-posix2.c: Likewise.
40388         * tests/test-fprintf-posix3.sh: Update skip messages.
40389         * tests/test-dprintf-posix2.sh: Likewise.
40390         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
40391         * modules/dprintf-posix-tests (Depends-on): Likewise.
40392         Reported by Bruce Korb <bkorb@gnu.org> and
40393         Gary V. Vaughan <gary@gnu.org>.
40395 2011-01-18  Bruno Haible  <bruno@clisp.org>
40397         get-rusage-as: Improvement for Cygwin.
40398         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
40399         areas that are merely reserved.
40401 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40403         strftime: remove dependencies on multibyte modules
40405         strftime depended on mbrlen, mbsinit, and wchar, but these modules
40406         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
40407         only if __osf__ is defined, and I suspect OSF doesn't need these
40408         other modules.  If my guess is wrong, we'll need to come up with a
40409         variant of strftime that doesn't need the multibyte modules.
40411         I discovered this problem when attempting modify Emacs to use the
40412         strftime module.  With the previous gnulib, this caused Emacs to
40413         need 31 new files, ranging from lib/config.charset to
40414         m4/wint_t.m4.  This was overkill and I expect would be offputting
40415         to the Emacs maintainers.  After this change, only 6 new files are
40416         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
40417         stdbool.m4, and tm_gmtoff.m4.
40419         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
40420         Suggested by Bruno Haible in
40421         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
40422         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
40423         and do not check for wchar.h.
40424         * modules/strftime (Files): Remove m4/mbstate_t.m4.
40425         (Depends-on): Remove mbrlen, mbsinit, wchar.
40427 2011-01-18  Bruno Haible  <bruno@clisp.org>
40429         Tests for module 'get-rusage-as'.
40430         * modules/get-rusage-as-tests: New file.
40431         * tests/test-get-rusage-as.c: New file.
40433         New module 'get-rusage-as'.
40434         * modules/get-rusage-as: New file.
40435         * lib/resource-ext.h: New file.
40436         * lib/get-rusage-as.c: New file.
40438 2011-01-17  Eric Blake  <eblake@redhat.com>
40440         sigaction: relax license from LGPLv3+ to LGPLv2+
40441         * modules/sigaction (License): Relax to LGPLv2+.
40443 2011-01-14  Bruno Haible  <bruno@clisp.org>
40445         filemode: Make function declarations usable in C++ mode.
40446         * lib/filemode.h: Enclose function declarations in extern "C" block.
40447         Reported by John W. Eaton <jwe@gnu.org>.
40449 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
40451         save-cwd: no longer include "xgetcwd.h"
40452         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
40453         This avoids a compilation failure in projects that use save-cwd
40454         without also using the xgetcwd module.
40456 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40458         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
40459         This is so that a program like Emacs, which needs only dtoastr,
40460         does not have to bother with distributing and compiling ftoastr
40461         and ldtoastr.
40462         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
40463         * modules/dtoastr, modules/ldtoastr: New files.
40464         * modules/ftoastr: Now works just for 'float'.
40465         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
40466         (Makefile.am): Remove ftoastr.h (not needed and no effect),
40467         dtoastr.c, ldtoastr.c.
40469 2011-01-11  Jim Meyering  <meyering@redhat.com>
40471         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
40472         There is no need to work around the lack of the fchdir function,
40473         since gnulib can now provide a replacement when required.
40474         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
40475         * modules/save-cwd (Depends-on): Add fchdir.
40477 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40479         openat, save-cwd: avoid xmalloc
40481         This removes a direct (but undocumented) dependency of openat on
40482         xalloc, along with an indirect dependency via save-cwd.  It also
40483         removes a dependency of save-cwd on xgetcwd, and thereby
40484         indirectly on xalloc.  This change causes the openat substitute
40485         to fall back on save_cwd when memory is tight, and for save_cwd to
40486         fail instead of dying when memory is tight, but that's good enough.
40487         Problem and initial idea for fix reported by Bastien Roucaries in
40488         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
40490         * lib/openat-proc.c: Include stdlib.h (for malloc), not
40491         xalloc.h (for xmalloc).
40492         (openat_proc_name): Use malloc, not xmalloc.
40493         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
40494         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
40496         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
40497         This avoids heap allocation for file names whose lengths are in
40498         the range 512..1023, with the upper bound increasing to at most
40499         4031 depending on the platform's PATH_MAX.  (We do not want
40500         pathmax.h here as it might supply a non-constant PATH_MAX.)
40501         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
40502         Perhaps they should be moved to malloca.h?
40503         (OPENAT_BUFFER_SIZE): Use them.
40505 2011-01-10  Bruno Haible  <bruno@clisp.org>
40507         doc: Update users.txt.
40508         * users.txt: Add recutils.
40510 2011-01-09  Karl Berry  <karl@gnu.org>
40512         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
40514         * doc/configmake.texi: New file.
40515         * doc/gnulib.texi: Include it.
40516         * modules/configmake: Move documentation from here.
40518 2011-01-09  Bruno Haible  <bruno@clisp.org>
40520         Update to Unicode 6.0.0.
40521         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
40522         (get_lbp): Update for Unicode 6.0.0.
40523         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
40524         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
40525         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
40526         U+11001, U+11038..U+11046. Remove U+06DE.
40527         (uc_width): Fix bounds of planes.
40528         * tests/uniwidth/test-uc_width2.sh: Same updates as in
40529         lib/uniwidth/width.c.
40530         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
40531         trailing whitespace removed.
40532         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
40533         without comments, but with the original copyright notice.
40534         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
40535         * lib/unicase/ignorable.h: Likewise.
40536         * lib/unicase/tocasefold.h: Likewise.
40537         * lib/unicase/tolower.h: Likewise.
40538         * lib/unicase/totitle.h: Likewise.
40539         * lib/unicase/toupper.h: Likewise.
40540         * lib/unictype/bidi_of.h: Likewise.
40541         * lib/unictype/blocks.h: Likewise.
40542         * lib/unictype/categ_C.h: Likewise.
40543         * lib/unictype/categ_Cn.h: Likewise.
40544         * lib/unictype/categ_L.h: Likewise.
40545         * lib/unictype/categ_Ll.h: Likewise.
40546         * lib/unictype/categ_Lm.h: Likewise.
40547         * lib/unictype/categ_Lo.h: Likewise.
40548         * lib/unictype/categ_Lu.h: Likewise.
40549         * lib/unictype/categ_M.h: Likewise.
40550         * lib/unictype/categ_Mc.h: Likewise.
40551         * lib/unictype/categ_Me.h: Likewise.
40552         * lib/unictype/categ_Mn.h: Likewise.
40553         * lib/unictype/categ_N.h: Likewise.
40554         * lib/unictype/categ_Nd.h: Likewise.
40555         * lib/unictype/categ_No.h: Likewise.
40556         * lib/unictype/categ_P.h: Likewise.
40557         * lib/unictype/categ_Po.h: Likewise.
40558         * lib/unictype/categ_S.h: Likewise.
40559         * lib/unictype/categ_Sc.h: Likewise.
40560         * lib/unictype/categ_Sk.h: Likewise.
40561         * lib/unictype/categ_Sm.h: Likewise.
40562         * lib/unictype/categ_So.h: Likewise.
40563         * lib/unictype/categ_of.h: Likewise.
40564         * lib/unictype/combining.h: Likewise.
40565         * lib/unictype/ctype_alnum.h: Likewise.
40566         * lib/unictype/ctype_alpha.h: Likewise.
40567         * lib/unictype/ctype_graph.h: Likewise.
40568         * lib/unictype/ctype_lower.h: Likewise.
40569         * lib/unictype/ctype_print.h: Likewise.
40570         * lib/unictype/ctype_punct.h: Likewise.
40571         * lib/unictype/ctype_upper.h: Likewise.
40572         * lib/unictype/decdigit.h: Likewise.
40573         * lib/unictype/digit.h: Likewise.
40574         * lib/unictype/numeric.h: Likewise.
40575         * lib/unictype/pr_alphabetic.h: Likewise.
40576         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40577         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40578         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40579         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40580         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40581         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40582         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40583         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40584         * lib/unictype/pr_case_ignorable.h: Likewise.
40585         * lib/unictype/pr_cased.h: Likewise.
40586         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
40587         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
40588         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
40589         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
40590         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
40591         * lib/unictype/pr_combining.h: Likewise.
40592         * lib/unictype/pr_composite.h: Likewise.
40593         * lib/unictype/pr_currency_symbol.h: Likewise.
40594         * lib/unictype/pr_decimal_digit.h: Likewise.
40595         * lib/unictype/pr_deprecated.h: Likewise.
40596         * lib/unictype/pr_format_control.h: Likewise.
40597         * lib/unictype/pr_grapheme_base.h: Likewise.
40598         * lib/unictype/pr_grapheme_extend.h: Likewise.
40599         * lib/unictype/pr_grapheme_link.h: Likewise.
40600         * lib/unictype/pr_id_continue.h: Likewise.
40601         * lib/unictype/pr_id_start.h: Likewise.
40602         * lib/unictype/pr_ideographic.h: Likewise.
40603         * lib/unictype/pr_lowercase.h: Likewise.
40604         * lib/unictype/pr_math.h: Likewise.
40605         * lib/unictype/pr_numeric.h: Likewise.
40606         * lib/unictype/pr_other_alphabetic.h: Likewise.
40607         * lib/unictype/pr_other_id_continue.h: Likewise.
40608         * lib/unictype/pr_other_math.h: Likewise.
40609         * lib/unictype/pr_punctuation.h: Likewise.
40610         * lib/unictype/pr_sentence_terminal.h: Likewise.
40611         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40612         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40613         * lib/unictype/pr_unified_ideograph.h: Likewise.
40614         * lib/unictype/pr_uppercase.h: Likewise.
40615         * lib/unictype/pr_xid_continue.h: Likewise.
40616         * lib/unictype/pr_xid_start.h: Likewise.
40617         * lib/unictype/scripts.h: Likewise.
40618         * lib/unictype/scripts_byname.gperf: Likewise.
40619         * lib/unictype/sy_java_ident.h: Likewise.
40620         * lib/unigbrk/gbrkprop.h: Likewise.
40621         * lib/unilbrk/lbrkprop1.h: Likewise.
40622         * lib/unilbrk/lbrkprop2.h: Likewise.
40623         * lib/uninorm/decomposition-table2.h: Likewise.
40624         * lib/uniwbrk/wbrkprop.h: Likewise.
40625         * tests/unicase/test-cased.c: Likewise.
40626         * tests/unicase/test-ignorable.c: Likewise.
40627         * tests/unicase/test-uc_tolower.c: Likewise.
40628         * tests/unicase/test-uc_totitle.c: Likewise.
40629         * tests/unicase/test-uc_toupper.c: Likewise.
40630         * tests/unictype/test-categ_C.c: Likewise.
40631         * tests/unictype/test-categ_Cn.c: Likewise.
40632         * tests/unictype/test-categ_L.c: Likewise.
40633         * tests/unictype/test-categ_Ll.c: Likewise.
40634         * tests/unictype/test-categ_Lm.c: Likewise.
40635         * tests/unictype/test-categ_Lo.c: Likewise.
40636         * tests/unictype/test-categ_Lu.c: Likewise.
40637         * tests/unictype/test-categ_M.c: Likewise.
40638         * tests/unictype/test-categ_Mc.c: Likewise.
40639         * tests/unictype/test-categ_Me.c: Likewise.
40640         * tests/unictype/test-categ_Mn.c: Likewise.
40641         * tests/unictype/test-categ_N.c: Likewise.
40642         * tests/unictype/test-categ_Nd.c: Likewise.
40643         * tests/unictype/test-categ_No.c: Likewise.
40644         * tests/unictype/test-categ_P.c: Likewise.
40645         * tests/unictype/test-categ_Po.c: Likewise.
40646         * tests/unictype/test-categ_S.c: Likewise.
40647         * tests/unictype/test-categ_Sc.c: Likewise.
40648         * tests/unictype/test-categ_Sk.c: Likewise.
40649         * tests/unictype/test-categ_Sm.c: Likewise.
40650         * tests/unictype/test-categ_So.c: Likewise.
40651         * tests/unictype/test-ctype_alnum.c: Likewise.
40652         * tests/unictype/test-ctype_alpha.c: Likewise.
40653         * tests/unictype/test-ctype_graph.c: Likewise.
40654         * tests/unictype/test-ctype_lower.c: Likewise.
40655         * tests/unictype/test-ctype_print.c: Likewise.
40656         * tests/unictype/test-ctype_punct.c: Likewise.
40657         * tests/unictype/test-ctype_upper.c: Likewise.
40658         * tests/unictype/test-decdigit.h: Likewise.
40659         * tests/unictype/test-digit.h: Likewise.
40660         * tests/unictype/test-numeric.h: Likewise.
40661         * tests/unictype/test-pr_alphabetic.c: Likewise.
40662         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40663         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40664         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40665         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40666         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40667         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40668         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40669         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40670         * tests/unictype/test-pr_case_ignorable.c: Likewise.
40671         * tests/unictype/test-pr_cased.c: Likewise.
40672         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
40673         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
40674         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
40675         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
40676         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
40677         * tests/unictype/test-pr_combining.c: Likewise.
40678         * tests/unictype/test-pr_composite.c: Likewise.
40679         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40680         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40681         * tests/unictype/test-pr_deprecated.c: Likewise.
40682         * tests/unictype/test-pr_format_control.c: Likewise.
40683         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40684         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40685         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40686         * tests/unictype/test-pr_id_continue.c: Likewise.
40687         * tests/unictype/test-pr_id_start.c: Likewise.
40688         * tests/unictype/test-pr_ideographic.c: Likewise.
40689         * tests/unictype/test-pr_lowercase.c: Likewise.
40690         * tests/unictype/test-pr_math.c: Likewise.
40691         * tests/unictype/test-pr_numeric.c: Likewise.
40692         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40693         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40694         * tests/unictype/test-pr_other_math.c: Likewise.
40695         * tests/unictype/test-pr_punctuation.c: Likewise.
40696         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40697         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40698         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40699         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40700         * tests/unictype/test-pr_uppercase.c: Likewise.
40701         * tests/unictype/test-pr_xid_continue.c: Likewise.
40702         * tests/unictype/test-pr_xid_start.c: Likewise.
40703         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
40704         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
40705         changes.
40706         * lib/unictype/categ_Cc.h: Likewise.
40707         * lib/unictype/categ_Cf.h: Likewise.
40708         * lib/unictype/categ_Co.h: Likewise.
40709         * lib/unictype/categ_Cs.h: Likewise.
40710         * lib/unictype/categ_Lt.h: Likewise.
40711         * lib/unictype/categ_Nl.h: Likewise.
40712         * lib/unictype/categ_Pc.h: Likewise.
40713         * lib/unictype/categ_Pd.h: Likewise.
40714         * lib/unictype/categ_Pe.h: Likewise.
40715         * lib/unictype/categ_Pf.h: Likewise.
40716         * lib/unictype/categ_Pi.h: Likewise.
40717         * lib/unictype/categ_Ps.h: Likewise.
40718         * lib/unictype/categ_Z.h: Likewise.
40719         * lib/unictype/categ_Zl.h: Likewise.
40720         * lib/unictype/categ_Zp.h: Likewise.
40721         * lib/unictype/categ_Zs.h: Likewise.
40722         * lib/unictype/ctype_blank.h: Likewise.
40723         * lib/unictype/ctype_cntrl.h: Likewise.
40724         * lib/unictype/ctype_digit.h: Likewise.
40725         * lib/unictype/ctype_space.h: Likewise.
40726         * lib/unictype/ctype_xdigit.h: Likewise.
40727         * lib/unictype/mirror.h: Likewise.
40728         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40729         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40730         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40731         * lib/unictype/pr_bidi_control.h: Likewise.
40732         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40733         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40734         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40735         * lib/unictype/pr_bidi_pdf.h: Likewise.
40736         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40737         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40738         * lib/unictype/pr_dash.h: Likewise.
40739         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40740         * lib/unictype/pr_diacritic.h: Likewise.
40741         * lib/unictype/pr_extender.h: Likewise.
40742         * lib/unictype/pr_hex_digit.h: Likewise.
40743         * lib/unictype/pr_hyphen.h: Likewise.
40744         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40745         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40746         * lib/unictype/pr_ignorable_control.h: Likewise.
40747         * lib/unictype/pr_iso_control.h: Likewise.
40748         * lib/unictype/pr_join_control.h: Likewise.
40749         * lib/unictype/pr_left_of_pair.h: Likewise.
40750         * lib/unictype/pr_line_separator.h: Likewise.
40751         * lib/unictype/pr_logical_order_exception.h: Likewise.
40752         * lib/unictype/pr_non_break.h: Likewise.
40753         * lib/unictype/pr_not_a_character.h: Likewise.
40754         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40755         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40756         * lib/unictype/pr_other_id_start.h: Likewise.
40757         * lib/unictype/pr_other_lowercase.h: Likewise.
40758         * lib/unictype/pr_other_uppercase.h: Likewise.
40759         * lib/unictype/pr_paired_punctuation.h: Likewise.
40760         * lib/unictype/pr_paragraph_separator.h: Likewise.
40761         * lib/unictype/pr_pattern_syntax.h: Likewise.
40762         * lib/unictype/pr_pattern_white_space.h: Likewise.
40763         * lib/unictype/pr_private_use.h: Likewise.
40764         * lib/unictype/pr_quotation_mark.h: Likewise.
40765         * lib/unictype/pr_radical.h: Likewise.
40766         * lib/unictype/pr_soft_dotted.h: Likewise.
40767         * lib/unictype/pr_space.h: Likewise.
40768         * lib/unictype/pr_titlecase.h: Likewise.
40769         * lib/unictype/pr_variation_selector.h: Likewise.
40770         * lib/unictype/pr_white_space.h: Likewise.
40771         * lib/unictype/pr_zero_width.h: Likewise.
40772         * lib/unictype/sy_c_ident.h: Likewise.
40773         * lib/unictype/sy_c_whitespace.h: Likewise.
40774         * lib/unictype/sy_java_whitespace.h: Likewise.
40775         * lib/uninorm/composition-table.gperf: Likewise.
40776         * lib/uninorm/decomposition-table1.h: Likewise.
40777         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
40778         LB8.
40779         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40780         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40781         * modules/unictype/*: Bump version number of expected libunistring
40782         version.
40784 2011-01-09  Bruno Haible  <bruno@clisp.org>
40786         Update to Unicode 5.2.0.
40787         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
40788         trailing whitespace removed.
40790 2011-01-09  Bruno Haible  <bruno@clisp.org>
40792         New Unicode character properties, from Unicode 5.2.0.
40793         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
40794         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
40795         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
40796         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
40797         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
40798         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
40799         uc_is_property_cased, uc_is_property_case_ignorable,
40800         uc_is_property_changes_when_lowercased,
40801         uc_is_property_changes_when_uppercased,
40802         uc_is_property_changes_when_titlecased,
40803         uc_is_property_changes_when_casefolded,
40804         uc_is_property_changes_when_casemapped): New declarations.
40805         * lib/unictype/pr_byname.gperf: Add the new properties.
40806         * modules/unictype/property-byname (Depends-on): Depend on the new
40807         properties modules.
40808         * modules/unictype/property-all (Depends-on): Likewise.
40809         * MODULES.html.sh (Unicode string functions): Add
40810         unictype/property-case-ignorable, unictype/property-cased,
40811         unictype/property-changes-when-casefolded,
40812         unictype/property-changes-when-casemapped,
40813         unictype/property-changes-when-lowercased,
40814         unictype/property-changes-when-titlecased,
40815         unictype/property-changes-when-uppercased.
40817         New module 'unictype/property-changes-when-casemapped'.
40818         * modules/unictype/property-changes-when-casemapped: New file.
40819         * lib/unictype/pr_changes_when_casemapped.c: New file.
40820         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
40821         generated by gen-uni-tables.
40822         * modules/unictype/property-changes-when-casemapped-tests: New file.
40823         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
40824         automatically generated by gen-uni-tables.
40826         New module 'unictype/property-changes-when-casefolded'.
40827         * modules/unictype/property-changes-when-casefolded: New file.
40828         * lib/unictype/pr_changes_when_casefolded.c: New file.
40829         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
40830         generated by gen-uni-tables.
40831         * modules/unictype/property-changes-when-casefolded-tests: New file.
40832         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
40833         automatically generated by gen-uni-tables.
40835         New module 'unictype/property-changes-when-titlecased'.
40836         * modules/unictype/property-changes-when-titlecased: New file.
40837         * lib/unictype/pr_changes_when_titlecased.c: New file.
40838         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
40839         generated by gen-uni-tables.
40840         * modules/unictype/property-changes-when-titlecased-tests: New file.
40841         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
40842         automatically generated by gen-uni-tables.
40844         New module 'unictype/property-changes-when-uppercased'.
40845         * modules/unictype/property-changes-when-uppercased: New file.
40846         * lib/unictype/pr_changes_when_uppercased.c: New file.
40847         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
40848         generated by gen-uni-tables.
40849         * modules/unictype/property-changes-when-uppercased-tests: New file.
40850         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
40851         automatically generated by gen-uni-tables.
40853         New module 'unictype/property-changes-when-lowercased'.
40854         * modules/unictype/property-changes-when-lowercased: New file.
40855         * lib/unictype/pr_changes_when_lowercased.c: New file.
40856         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
40857         generated by gen-uni-tables.
40858         * modules/unictype/property-changes-when-lowercased-tests: New file.
40859         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
40860         automatically generated by gen-uni-tables.
40862         New module 'unictype/property-case-ignorable'.
40863         * modules/unictype/property-case-ignorable: New file.
40864         * lib/unictype/pr_case_ignorable.c: New file.
40865         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
40866         by gen-uni-tables.
40867         * modules/unictype/property-case-ignorable-tests: New file.
40868         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
40869         generated by gen-uni-tables.
40871         New module 'unictype/property-cased'.
40872         * modules/unictype/property-cased: New file.
40873         * lib/unictype/pr_cased.c: New file.
40874         * lib/unictype/pr_cased.h: New file, automatically generated by
40875         gen-uni-tables.
40876         * modules/unictype/property-cased-tests: New file.
40877         * tests/unictype/test-pr_cased.c: New file, automatically generated by
40878         gen-uni-tables.
40880 2011-01-09  Bruno Haible  <bruno@clisp.org>
40882         Update to Unicode 5.2.0.
40883         * lib/gen-uni-tables.c (output_predicate, output_category,
40884         output_combclass, output_bidi_category, output_decimal_digit_test,
40885         output_decimal_digit, output_digit_test, output_digit,
40886         output_numeric_test, output_numeric, output_mirror, output_scripts,
40887         output_scripts_byname, output_blocks, output_ident_category): Fix
40888         comment header.
40889         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
40890         get_wbp.
40891         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
40892         items.
40893         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
40894         Changes_When_Lowercased, Changes_When_Uppercased,
40895         Changes_When_Titlecased, Changes_When_Casefolded,
40896         Changes_When_Casemapped.
40897         (is_property_alphabetic, is_property_default_ignorable_code_point):
40898         Update for Unicode 5.2.0.
40899         (is_property_cased, is_property_case_ignorable,
40900         is_property_changes_when_lowercased,
40901         is_property_changes_when_uppercased,
40902         is_property_changes_when_titlecased,
40903         is_property_changes_when_casefolded,
40904         is_property_changes_when_casemapped): New functions.
40905         (output_properties): Output also the properties cased, case_ignorable,
40906         changes_when_lowercased, changes_when_uppercased,
40907         changes_when_titlecased, changes_when_casefolded,
40908         changes_when_casemapped.
40909         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
40910         Unicode TR#11 revision 17 -> 19.
40911         (LBP_CP): New enumeration value.
40912         (LBP_*): Adjust values accordingly.
40913         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
40914         TR#14 revision 22 -> 24.
40915         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
40916         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
40917         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
40918         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
40919         is_WBP_MIDLETTER.
40920         (output_composition_tables): Allow for 24 bits instead of 16 bits in
40921         the code1 and code2 of each composition rule.
40922         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
40923         * lib/unicase/ignorable.h: Likewise.
40924         * lib/unicase/tocasefold.h: Likewise.
40925         * lib/unicase/tolower.h: Likewise.
40926         * lib/unicase/totitle.h: Likewise.
40927         * lib/unicase/toupper.h: Likewise.
40928         * lib/unictype/bidi_of.h: Likewise.
40929         * lib/unictype/blocks.h: Likewise.
40930         * lib/unictype/categ_C.h: Likewise.
40931         * lib/unictype/categ_Cf.h: Likewise.
40932         * lib/unictype/categ_Cn.h: Likewise.
40933         * lib/unictype/categ_L.h: Likewise.
40934         * lib/unictype/categ_Ll.h: Likewise.
40935         * lib/unictype/categ_Lm.h: Likewise.
40936         * lib/unictype/categ_Lo.h: Likewise.
40937         * lib/unictype/categ_Lu.h: Likewise.
40938         * lib/unictype/categ_M.h: Likewise.
40939         * lib/unictype/categ_Mc.h: Likewise.
40940         * lib/unictype/categ_Mn.h: Likewise.
40941         * lib/unictype/categ_N.h: Likewise.
40942         * lib/unictype/categ_Nd.h: Likewise.
40943         * lib/unictype/categ_Nl.h: Likewise.
40944         * lib/unictype/categ_No.h: Likewise.
40945         * lib/unictype/categ_P.h: Likewise.
40946         * lib/unictype/categ_Pd.h: Likewise.
40947         * lib/unictype/categ_Po.h: Likewise.
40948         * lib/unictype/categ_S.h: Likewise.
40949         * lib/unictype/categ_Sc.h: Likewise.
40950         * lib/unictype/categ_So.h: Likewise.
40951         * lib/unictype/categ_of.h: Likewise.
40952         * lib/unictype/combining.h: Likewise.
40953         * lib/unictype/ctype_alnum.h: Likewise.
40954         * lib/unictype/ctype_alpha.h: Likewise.
40955         * lib/unictype/ctype_graph.h: Likewise.
40956         * lib/unictype/ctype_lower.h: Likewise.
40957         * lib/unictype/ctype_print.h: Likewise.
40958         * lib/unictype/ctype_punct.h: Likewise.
40959         * lib/unictype/ctype_upper.h: Likewise.
40960         * lib/unictype/decdigit.h: Likewise.
40961         * lib/unictype/digit.h: Likewise.
40962         * lib/unictype/numeric.h: Likewise.
40963         * lib/unictype/pr_alphabetic.h: Likewise.
40964         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40965         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40966         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40967         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40968         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40969         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40970         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40971         * lib/unictype/pr_combining.h: Likewise.
40972         * lib/unictype/pr_composite.h: Likewise.
40973         * lib/unictype/pr_currency_symbol.h: Likewise.
40974         * lib/unictype/pr_dash.h: Likewise.
40975         * lib/unictype/pr_decimal_digit.h: Likewise.
40976         * lib/unictype/pr_deprecated.h: Likewise.
40977         * lib/unictype/pr_diacritic.h: Likewise.
40978         * lib/unictype/pr_extender.h: Likewise.
40979         * lib/unictype/pr_grapheme_base.h: Likewise.
40980         * lib/unictype/pr_grapheme_extend.h: Likewise.
40981         * lib/unictype/pr_grapheme_link.h: Likewise.
40982         * lib/unictype/pr_id_continue.h: Likewise.
40983         * lib/unictype/pr_id_start.h: Likewise.
40984         * lib/unictype/pr_ideographic.h: Likewise.
40985         * lib/unictype/pr_ignorable_control.h: Likewise.
40986         * lib/unictype/pr_logical_order_exception.h: Likewise.
40987         * lib/unictype/pr_lowercase.h: Likewise.
40988         * lib/unictype/pr_numeric.h: Likewise.
40989         * lib/unictype/pr_other_alphabetic.h: Likewise.
40990         * lib/unictype/pr_punctuation.h: Likewise.
40991         * lib/unictype/pr_sentence_terminal.h: Likewise.
40992         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40993         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40994         * lib/unictype/pr_unified_ideograph.h: Likewise.
40995         * lib/unictype/pr_uppercase.h: Likewise.
40996         * lib/unictype/pr_xid_continue.h: Likewise.
40997         * lib/unictype/pr_xid_start.h: Likewise.
40998         * lib/unictype/pr_zero_width.h: Likewise.
40999         * lib/unictype/scripts.h: Likewise.
41000         * lib/unictype/scripts_byname.gperf: Likewise.
41001         * lib/unictype/sy_java_ident.h: Likewise.
41002         * lib/unigbrk/gbrkprop.h: Likewise.
41003         * lib/unilbrk/lbrkprop1.h: Likewise.
41004         * lib/unilbrk/lbrkprop2.h: Likewise.
41005         * lib/unilbrk/lbrktables.h: Likewise.
41006         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
41007         LBP_CP. Implement rule LB30.
41008         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
41009         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
41010         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
41011         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
41012         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
41013         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
41014         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
41015         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
41016         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
41017         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
41018         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
41019         bits instead of 16 bits in the code1 and code2 of each composition
41020         rule.
41021         (uc_composition): Update for Unicode 5.2.0.
41022         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
41023         * lib/uninorm/decomposition-table2.h: Likewise.
41024         * lib/uniwbrk/wbrkprop.h: Likewise.
41025         * tests/unicase/test-cased.c: Likewise.
41026         * tests/unicase/test-ignorable.c: Likewise.
41027         * tests/unicase/test-uc_tolower.c: Likewise.
41028         * tests/unicase/test-uc_totitle.c: Likewise.
41029         * tests/unicase/test-uc_toupper.c: Likewise.
41030         * tests/unictype/test-categ_C.c: Likewise.
41031         * tests/unictype/test-categ_Cf.c: Likewise.
41032         * tests/unictype/test-categ_Cn.c: Likewise.
41033         * tests/unictype/test-categ_L.c: Likewise.
41034         * tests/unictype/test-categ_Ll.c: Likewise.
41035         * tests/unictype/test-categ_Lm.c: Likewise.
41036         * tests/unictype/test-categ_Lo.c: Likewise.
41037         * tests/unictype/test-categ_Lu.c: Likewise.
41038         * tests/unictype/test-categ_M.c: Likewise.
41039         * tests/unictype/test-categ_Mc.c: Likewise.
41040         * tests/unictype/test-categ_Mn.c: Likewise.
41041         * tests/unictype/test-categ_N.c: Likewise.
41042         * tests/unictype/test-categ_Nd.c: Likewise.
41043         * tests/unictype/test-categ_Nl.c: Likewise.
41044         * tests/unictype/test-categ_No.c: Likewise.
41045         * tests/unictype/test-categ_P.c: Likewise.
41046         * tests/unictype/test-categ_Pd.c: Likewise.
41047         * tests/unictype/test-categ_Po.c: Likewise.
41048         * tests/unictype/test-categ_S.c: Likewise.
41049         * tests/unictype/test-categ_Sc.c: Likewise.
41050         * tests/unictype/test-categ_So.c: Likewise.
41051         * tests/unictype/test-ctype_alnum.c: Likewise.
41052         * tests/unictype/test-ctype_alpha.c: Likewise.
41053         * tests/unictype/test-ctype_graph.c: Likewise.
41054         * tests/unictype/test-ctype_lower.c: Likewise.
41055         * tests/unictype/test-ctype_print.c: Likewise.
41056         * tests/unictype/test-ctype_punct.c: Likewise.
41057         * tests/unictype/test-ctype_upper.c: Likewise.
41058         * tests/unictype/test-decdigit.h: Likewise.
41059         * tests/unictype/test-digit.h: Likewise.
41060         * tests/unictype/test-numeric.h: Likewise.
41061         * tests/unictype/test-pr_alphabetic.c: Likewise.
41062         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41063         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41064         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41065         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41066         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41067         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41068         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41069         * tests/unictype/test-pr_combining.c: Likewise.
41070         * tests/unictype/test-pr_composite.c: Likewise.
41071         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41072         * tests/unictype/test-pr_dash.c: Likewise.
41073         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41074         * tests/unictype/test-pr_deprecated.c: Likewise.
41075         * tests/unictype/test-pr_diacritic.c: Likewise.
41076         * tests/unictype/test-pr_extender.c: Likewise.
41077         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41078         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41079         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41080         * tests/unictype/test-pr_id_continue.c: Likewise.
41081         * tests/unictype/test-pr_id_start.c: Likewise.
41082         * tests/unictype/test-pr_ideographic.c: Likewise.
41083         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41084         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41085         * tests/unictype/test-pr_lowercase.c: Likewise.
41086         * tests/unictype/test-pr_numeric.c: Likewise.
41087         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41088         * tests/unictype/test-pr_punctuation.c: Likewise.
41089         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41090         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41091         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41092         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41093         * tests/unictype/test-pr_uppercase.c: Likewise.
41094         * tests/unictype/test-pr_xid_continue.c: Likewise.
41095         * tests/unictype/test-pr_xid_start.c: Likewise.
41096         * tests/unictype/test-pr_zero_width.c: Likewise.
41097         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41098         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
41099         changed behaviour: line breaking is now disallowed between a letter
41100         or '=' and '('.
41101         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41102         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41103         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41104         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
41105         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41106         lib/uniwidth/width.c.
41107         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
41108         without comments, but with the original copyright notice.
41109         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41110         changes.
41111         * lib/unictype/categ_Cc.h: Likewise.
41112         * lib/unictype/categ_Co.h: Likewise.
41113         * lib/unictype/categ_Cs.h: Likewise.
41114         * lib/unictype/categ_Lt.h: Likewise.
41115         * lib/unictype/categ_Me.h: Likewise.
41116         * lib/unictype/categ_Pc.h: Likewise.
41117         * lib/unictype/categ_Pe.h: Likewise.
41118         * lib/unictype/categ_Pf.h: Likewise.
41119         * lib/unictype/categ_Pi.h: Likewise.
41120         * lib/unictype/categ_Ps.h: Likewise.
41121         * lib/unictype/categ_Sk.h: Likewise.
41122         * lib/unictype/categ_Sm.h: Likewise.
41123         * lib/unictype/categ_Z.h: Likewise.
41124         * lib/unictype/categ_Zl.h: Likewise.
41125         * lib/unictype/categ_Zp.h: Likewise.
41126         * lib/unictype/categ_Zs.h: Likewise.
41127         * lib/unictype/ctype_blank.h: Likewise.
41128         * lib/unictype/ctype_cntrl.h: Likewise.
41129         * lib/unictype/ctype_digit.h: Likewise.
41130         * lib/unictype/ctype_space.h: Likewise.
41131         * lib/unictype/ctype_xdigit.h: Likewise.
41132         * lib/unictype/mirror.h: Likewise.
41133         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41134         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41135         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41136         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41137         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41138         * lib/unictype/pr_bidi_control.h: Likewise.
41139         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41140         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41141         * lib/unictype/pr_bidi_pdf.h: Likewise.
41142         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41143         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41144         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41145         * lib/unictype/pr_format_control.h: Likewise.
41146         * lib/unictype/pr_hex_digit.h: Likewise.
41147         * lib/unictype/pr_hyphen.h: Likewise.
41148         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41149         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41150         * lib/unictype/pr_iso_control.h: Likewise.
41151         * lib/unictype/pr_join_control.h: Likewise.
41152         * lib/unictype/pr_left_of_pair.h: Likewise.
41153         * lib/unictype/pr_line_separator.h: Likewise.
41154         * lib/unictype/pr_math.h: Likewise.
41155         * lib/unictype/pr_non_break.h: Likewise.
41156         * lib/unictype/pr_not_a_character.h: Likewise.
41157         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41158         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41159         * lib/unictype/pr_other_id_continue.h: Likewise.
41160         * lib/unictype/pr_other_id_start.h: Likewise.
41161         * lib/unictype/pr_other_lowercase.h: Likewise.
41162         * lib/unictype/pr_other_math.h: Likewise.
41163         * lib/unictype/pr_other_uppercase.h: Likewise.
41164         * lib/unictype/pr_paired_punctuation.h: Likewise.
41165         * lib/unictype/pr_paragraph_separator.h: Likewise.
41166         * lib/unictype/pr_pattern_syntax.h: Likewise.
41167         * lib/unictype/pr_pattern_white_space.h: Likewise.
41168         * lib/unictype/pr_private_use.h: Likewise.
41169         * lib/unictype/pr_quotation_mark.h: Likewise.
41170         * lib/unictype/pr_radical.h: Likewise.
41171         * lib/unictype/pr_soft_dotted.h: Likewise.
41172         * lib/unictype/pr_space.h: Likewise.
41173         * lib/unictype/pr_titlecase.h: Likewise.
41174         * lib/unictype/pr_variation_selector.h: Likewise.
41175         * lib/unictype/pr_white_space.h: Likewise.
41176         * lib/unictype/sy_c_ident.h: Likewise.
41177         * lib/unictype/sy_c_whitespace.h: Likewise.
41178         * lib/unictype/sy_java_whitespace.h: Likewise.
41179         * modules/uni*/*: Bump version number of expected libunistring version.
41180         Reported by Simon Josefsson.
41182 2011-01-09  Karl Heuer  <kwzh@gnu.org>
41184         useless-if-before-free: fix typo in --help and make the internal,
41185         automatic version date update process work once again.
41186         --help output contained a NUL character instead of the
41187         backslash-zero that was intended.  Also, the "must lie within
41188         the first 8 lines" line is on line 9, and hence not getting
41189         automatically updated.
41190         * build-aux/useless-if-before-free: Fix the former by adding a
41191         backslash, and the latter by condensing the three lines of what-it-does
41192         to a single line, leaving one line of slack for the future.
41194 2011-01-09  Bruno Haible  <bruno@clisp.org>
41196         uniwidth/width: Fix width of U+1D173..U+1D17A.
41197         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
41198         symbolic_width, output_width_property_test): New functions.
41199         (main): Invoke output_nonspacing_property, output_width_property_test.
41200         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
41201         U+1D173..U+1D17A.
41202         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
41203         1.
41204         * modules/uniwidth/*: Bump version number of expected libunistring
41205         version.
41206         * modules/unilbrk/*: Likewise.
41208 2011-01-08  Bruno Haible  <bruno@clisp.org>
41210         uninorm tests: Preserve copyright of Unicode data file.
41211         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
41212         Mention modifications.
41214 2011-01-08  Bruno Haible  <bruno@clisp.org>
41216         gen-uni-tables: Prepare for Unicode 5.2.0.
41217         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
41218         (debug_output_lbp, output_lbp): Update.
41220 2011-01-08  Bruno Haible  <bruno@clisp.org>
41222         unilbrk: Clarify gen-uni-tables.c code.
41223         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
41224         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
41225         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
41227 2011-01-07  Bruno Haible  <bruno@clisp.org>
41229         strtod: Restore errno when successfully parsing Infinity or NaN.
41230         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
41231         restore the original errno.
41233 2011-01-07  Bruno Haible  <bruno@clisp.org>
41235         remove test: Avoid failure on HP-UX 11.
41236         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
41238 2011-01-07  Bruno Haible  <bruno@clisp.org>
41240         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
41241         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
41242         error code.
41244 2011-01-07  Pádraig Brady  <P@draigBrady.com>
41246         ignore-value: fixup comments, and add Eric Blake
41247         as an author since he rewrote the macros.
41248         * lib/ignore-value.h (ignore_value):  State that
41249         we now support aggregates.  Also specify exactly
41250         when the GCC warn_unused_result feature was added.
41252 2011-01-06  Eric Blake  <eblake@redhat.com>
41254         ignore-value: support aggregate types
41255         * lib/ignore-value.h (ignore_value): Provide separate gcc
41256         definition.
41257         * modules/ignore-value-tests: New test module.
41258         * tests/test-ignore-value.c: New test.
41260         maint.mk: improve sc_prohibit_strcmp regex
41261         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
41262         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
41263         definition of STRNEQ.
41265         signal: work around Haiku issue with SIGBUS
41266         * lib/siglist.h: Add comment.
41267         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
41268         strsignal's favoring of SIGSEGV.
41269         * tests/test-signal.c (main): Avoid test failure.
41270         * doc/posix-headers/signal.texi (signal.h): Document the issue.
41271         Reported by Scott McCreary.
41273         maint.mk: add pre-release check to ensure submodule commits are public
41274         * top/maint.mk (public-submodule-commit): New rule.
41275         (submodule-checks): New variable.
41276         (alpha beta stable): Depend on the variable.
41278 2011-01-05  Pádraig Brady  <P@draigBrady.com>
41279         and Jim Meyering  <meyering@redhat.com>
41281         ignore-value: make ignore_value more generic; deprecate ignore_ptr
41282         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
41283         (ATTRIBUTE_DEPRECATED): Define.
41284         (_ignore_case): New function.
41285         (ignore_value): New macro, to replace the old function.
41286         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
41287         * modules/ignore-value (Depends-on): Add stdint.
41289 2011-01-04  Eric Blake  <eblake@redhat.com>
41291         doc: regenerate INSTALL
41292         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
41293         @firstparagraphindent support, now that autoconf dropped it.
41294         (INSTALL_PRELUDE): Reinstate old macro.
41295         * doc/install.texi: Resync from autoconf.
41296         * doc/INSTALL: Reflect recent autoconf update.
41297         * doc/INSTALL.ISO: Likewise.
41298         * doc/INSTALL.UTF-8: Likewise.
41299         Reported by Karl Berry.
41301 2011-01-04  Bruce Korb  <address@hidden>
41303         git-version-gen: avoid a sub-shell
41304         * build-aux/git-version-gen: Redirect stderr in `...` via
41305         "exec 2>...", rather than via an added sub-shell.
41307 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
41309         git-version-gen: use (...) rather than sh -c '...'
41310         * build-aux/git-version-gen: Rather than hard-coding a shell's name
41311         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
41313 2011-01-03  Jim Meyering  <meyering@redhat.com>
41315         git-version-gen: convert leading TABs to spaces
41316         * build-aux/git-version-gen: Expand leading TABs.
41318         git-version-gen: handle failed "git rev-list"
41319         * build-aux/git-version-gen: Rather than leaking a "fatal" error
41320         from git and proceeding as if it had succeeded but printed no SHA1
41321         checksums, suppress the diagnostic and handle the failure.
41322         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
41324         git-version-gen: include command name in one more diagnostic
41325         * build-aux/git-version-gen: When the required .tarball-version file
41326         was missing or unreadable, you might see the diagnostic from "cat",
41327         but no trace of the name of the invoking script.  Now, you still see
41328         the diagnostic from cat, but also get one from "git-version-gen: ".
41329         Inspired by a patch from Bruce Korb.
41331         update-copyright: adjust test to match changed code
41332         * tests/test-update-copyright.sh: Change test's expected output
41333         to match new actual output.
41335 2011-01-02  Bruno Haible  <bruno@clisp.org>
41337         getlogin_r: Avoid test failure on HP-UX 11.
41338         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
41339         ERANGE when the second argument is zero.
41340         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
41341         portability problem.
41343 2011-01-02  Bruce Korb  <bkorb@gnu.org>
41345         * build-aux/update-copyright: doc Simon's changes
41347 2011-01-02  Simon Josefsson  <simon@josefsson.org>
41349         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
41350         environment variable.
41352 2011-01-02  Bruno Haible  <bruno@clisp.org>
41354         unigbrk: Avoid gcc warnings.
41355         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
41356         unused variable.
41357         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
41358         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
41359         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
41360         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
41361         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
41362         Change type of first argument to 'const char *'.
41363         (main): Remove unused variable.
41364         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
41365         type of first argument to 'const char *'.
41366         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
41367         Likewise.
41368         (main): Change type of variable 's'.
41369         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
41370         to 'int'.
41372 2011-01-02  Bruno Haible  <bruno@clisp.org>
41374         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
41375         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
41376         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
41377         bug.
41378         * lib/pwrite.c: Undo 2010-12-31 patch.
41379         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
41381 2011-01-02  Bruno Haible  <bruno@clisp.org>
41383         pread: Fix test whether it works.
41384         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
41386 2011-01-02  Bruno Haible  <bruno@clisp.org>
41388         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
41389         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
41390         ends in "6". Don't require a specific month name. Try also the locale
41391         names found on HP-UX 11 and Solaris 7.
41393 2011-01-02  Bruno Haible  <bruno@clisp.org>
41395         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
41396         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
41397         C linkage.
41398         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
41400 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41402         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
41403         for consistency, since the "cluster" term is not used elsewhere.
41404         * lib/unigbrk.in.h: Update name.
41405         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
41406         * lib/unigbrk/u16-grapheme-next.c: Update name.
41407         * lib/unigbrk/u16-grapheme-prev.c: Update name.
41408         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
41409         * lib/unigbrk/u32-grapheme-next.c: Update name.
41410         * lib/unigbrk/u32-grapheme-prev.c: Update name.
41411         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
41412         * lib/unigbrk/u8-grapheme-next.c: Update name.
41413         * lib/unigbrk/u8-grapheme-prev.c: Update name.
41414         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
41415         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
41416         Suggested by Bruno Haible.
41418 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41420         Remove module 'u8-grapheme-len' as too redundant with
41421         'u8-grapheme-next'.
41422         * modules/unigbrk/u8-grapheme-len: Delete file.
41423         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
41424         * lib/unigbrk.in.h: Remove prototype for deleted function.
41425         * lib/unigbrk/u8-grapheme-len.c: Delete file.
41426         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
41428         Remove module 'u16-grapheme-len' as too redundant with
41429         'u16-grapheme-next'.
41430         * modules/unigbrk/u16-grapheme-len: Delete file.
41431         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
41432         * lib/unigbrk.in.h: Remove prototype for deleted function.
41433         * lib/unigbrk/u16-grapheme-len.c: Delete file.
41434         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
41436         Remove module 'u32-grapheme-len' as too redundant with
41437         'u32-grapheme-next'.
41438         * modules/unigbrk/u32-grapheme-len: Delete file.
41439         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
41440         * lib/unigbrk.in.h: Remove prototype for deleted function.
41441         * lib/unigbrk/u32-grapheme-len.c: Delete file.
41442         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
41444         Suggested by Bruno Haible.
41446 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41448         * unigbrk.in.h: Fix typo: "ben" => "been".
41449         Reported by Bruno Haible.
41451 2011-01-01  Jim Meyering  <meyering@redhat.com>
41453         maint: update almost all copyright ranges to include 2011
41454         Run the new "make update-copyright" rule.
41456 2011-01-01  Jim Meyering  <meyering@redhat.com>
41458         maint: update-copyright: exempt doc/INSTALL*
41459         * Makefile (update-copyright): Also exclude doc/INSTALL*,
41460         since they are generated.  Suggested by Bruno Haible.
41462 2011-01-01  Jim Meyering  <meyering@redhat.com>
41464         maint: refine the update-copyright rule
41465         * Makefile (update-copyright): Also exclude any file that includes
41466         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
41467         code that merely generates the comment.
41469 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41471         New module 'u8-grapheme-len'.
41472         * modules/unigbrk/u8-grapheme-len: New file.
41473         * modules/unigbrk/u8-grapheme-len-tests: New file.
41474         * lib/unigbrk.in.h: Add prototype for new function.
41475         * lib/unigbrk/u8-grapheme-len.c: New file.
41476         * tests/unigbrk/test-u8-grapheme-len.c: New file.
41478         New module 'u16-grapheme-len'.
41479         * modules/unigbrk/u16-grapheme-len: New file.
41480         * modules/unigbrk/u16-grapheme-len-tests: New file.
41481         * lib/unigbrk.in.h: Add prototype for new function.
41482         * lib/unigbrk/u16-grapheme-len.c: New file.
41483         * tests/unigbrk/test-u16-grapheme-len.c: New file.
41485         New module 'u32-grapheme-len'.
41486         * modules/unigbrk/u32-grapheme-len: New file.
41487         * modules/unigbrk/u32-grapheme-len-tests: New file.
41488         * lib/unigbrk.in.h: Add prototype for new function.
41489         * lib/unigbrk/u32-grapheme-len.c: New file.
41490         * tests/unigbrk/test-u32-grapheme-len.c: New file.
41492         New module 'u8-grapheme-next'.
41493         * modules/unigbrk/u8-grapheme-next: New file.
41494         * modules/unigbrk/u8-grapheme-next-tests: New file.
41495         * lib/unigbrk.in.h: Add prototype for new function.
41496         * lib/unigbrk/u8-grapheme-next.c: New file.
41497         * tests/unigbrk/test-u8-grapheme-next.c: New file.
41499         New module 'u16-grapheme-next'.
41500         * modules/unigbrk/u16-grapheme-next: New file.
41501         * modules/unigbrk/u16-grapheme-next-tests: New file.
41502         * lib/unigbrk.in.h: Add prototype for new function.
41503         * lib/unigbrk/u16-grapheme-next.c: New file.
41504         * tests/unigbrk/test-u16-grapheme-next.c: New file.
41506         New module 'u32-grapheme-next'.
41507         * modules/unigbrk/u32-grapheme-next: New file.
41508         * modules/unigbrk/u32-grapheme-next-tests: New file.
41509         * lib/unigbrk.in.h: Add prototype for new function.
41510         * lib/unigbrk/u32-grapheme-next.c: New file.
41511         * tests/unigbrk/test-u32-grapheme-next.c: New file.
41513         New module 'u8-grapheme-prev'.
41514         * modules/unigbrk/u8-grapheme-prev: New file.
41515         * modules/unigbrk/u8-grapheme-prev-tests: New file.
41516         * lib/unigbrk.in.h: Add prototype for new function.
41517         * lib/unigbrk/u8-grapheme-prev.c: New file.
41518         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
41520         New module 'u16-grapheme-prev'.
41521         * modules/unigbrk/u16-grapheme-prev: New file.
41522         * modules/unigbrk/u16-grapheme-prev-tests: New file.
41523         * lib/unigbrk.in.h: Add prototype for new function.
41524         * lib/unigbrk/u16-grapheme-prev.c: New file.
41525         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
41527         New module 'u32-grapheme-prev'.
41528         * modules/unigbrk/u32-grapheme-prev: New file.
41529         * modules/unigbrk/u32-grapheme-prev-tests: New file.
41530         * lib/unigbrk.in.h: Add prototype for new function.
41531         * lib/unigbrk/u32-grapheme-prev.c: New file.
41532         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
41534         New module 'u8-grapheme-breaks'.
41535         * modules/unigbrk/u8-grapheme-breaks: New file.
41536         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
41537         * lib/unigbrk.in.h: Add prototype for new function.
41538         * lib/unigbrk/u8-grapheme-breaks.c: New file.
41539         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
41541         New module 'u16-grapheme-breaks'.
41542         * modules/unigbrk/u16-grapheme-breaks: New file.
41543         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
41544         * lib/unigbrk.in.h: Add prototype for new function.
41545         * lib/unigbrk/u16-grapheme-breaks.c: New file.
41546         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
41548         New module 'u32-grapheme-breaks'.
41549         * modules/unigbrk/u32-grapheme-breaks: New file.
41550         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
41551         * lib/unigbrk.in.h: Add prototype for new function.
41552         * lib/unigbrk/u32-grapheme-breaks.c: New file.
41553         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
41555         New module 'ulc-grapheme-breaks'.
41556         * modules/unigbrk/ulc-grapheme-breaks: New file.
41557         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
41558         * m4/locale-ar.m4: New file.
41559         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
41560         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
41561         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
41563 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41565         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
41566         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
41567         modified how this file was generated before I initially submitted
41568         the module, but failed to regenerate it.  This meant that several
41569         of the level2 entries were wrong.
41570         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
41571         Remove the division-by-2 that is folded into the table now that
41572         gbrkprop.h has been regenerated properly.  Now -1 entries are
41573         handled correctly.
41575         New module 'unigbrk/uc-gbrk-prop-tests'.
41576         * modules/unigbrk/uc-gbrk-prop-tests: New file.
41577         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
41578         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
41579         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
41581 2011-01-01  Bruno Haible  <bruno@clisp.org>
41583         Avoid use of hexadecimal escapes.
41584         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
41585         instead of hexadecimal escapes.
41587 2011-01-01  Jim Meyering  <meyering@redhat.com>
41589         maint: new rule to update copyright year ranges
41590         * Makefile (update-copyright): New rule.
41592         maint: indent with TABs in Makefile
41593         * Makefile: Expand leading sequences of spaces to TABs
41595         version-etc: update the copyright year it reports
41596         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
41598 2010-12-31  Bruno Haible  <bruno@clisp.org>
41600         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
41601         * lib/isfinite.c (zerof, zerod, zerol): New variables.
41602         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
41603         zero.
41605 2010-12-31  Bruno Haible  <bruno@clisp.org>
41607         pwrite: Work around HP-UX 11.11 bug.
41608         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
41609         works and set REPLACE_PWRITE if not.
41610         * lib/pwrite.c (pwrite): Add an implementation that uses the system
41611         function.
41612         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
41614 2010-12-31  Bruno Haible  <bruno@clisp.org>
41616         pread: Work around HP-UX 11 bugs.
41617         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
41618         and set REPLACE_PREAD if not.
41619         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
41621 2010-12-31  Eric Blake  <eblake@redhat.com>
41623         nl_langinfo: fix YESEXPR on Irix 6.5
41624         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
41625         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
41626         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
41627         it.
41629 2010-12-31  Bruno Haible  <bruno@clisp.org>
41631         iconv: Document HP-UX 11 bug.
41632         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
41634 2010-12-31  Bruno Haible  <bruno@clisp.org>
41636         ldexpl: Fix link error on HP-UX 11.
41637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
41638         LDEXPL_LIBM, using $ISNANL_LIBM.
41640 2010-12-31  Eric Blake  <eblake@redhat.com>
41642         ftello: avoid compilation failure with SunStudio c89
41643         * lib/ftello.c (ftello): Use lseek, not llseek.
41645         tests: avoid failing coreutils tests on cygwin
41646         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
41647         (create_exe_shims_): Return 0 when skipping.
41649 2010-12-31  Bruno Haible  <bruno@clisp.org>
41651         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
41652         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
41654 2010-12-31  Bruno Haible  <bruno@clisp.org>
41656         waitpid: Fix link error in C++ mode.
41657         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
41659 2010-12-31  Bruno Haible  <bruno@clisp.org>
41661         isnan: Use GCC built-ins when possible.
41662         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
41663         __builtin_isnan.
41664         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
41665         (isnan): Define using GCC built-ins for GCC >= 4.0.
41667 2010-12-31  Bruno Haible  <bruno@clisp.org>
41669         isnand: Fix mistake.
41670         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
41671         __builtin_isnand.
41673 2010-12-31  Bruno Haible  <bruno@clisp.org>
41675         open: Avoid C++ error on HP-UX 11.
41676         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
41678 2010-12-31  Bruno Haible  <bruno@clisp.org>
41680         time_r: Add missing declarations on HP-UX 11.
41681         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
41682         instead of HAVE_LOCALTIME_R.
41683         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
41684         HAVE_LOCALTIME_R always.
41685         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
41686         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
41687         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
41688         HAVE_LOCALTIME_R.
41689         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
41690         * doc/posix-functions/localtime_r.texi: Likewise.
41692 2010-12-29  Eric Blake  <eblake@redhat.com>
41694         mountlist: tweak previous commit
41695         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
41696         Reported by Paul Eggert.
41698         mountlist: fix local drive detection on cygwin
41699         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
41700         that works for cygwin.
41702 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41704         ftoastr, snprintf: ftoastr + snprintf module
41705         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
41706         since the snprintf module now should be good enough here.
41707         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
41708         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
41709         and gl_MODULE_INDICATOR([snprintf]), but the former enables
41710         GNULIB_SNPRINTF only for the test directory, and the latter
41711         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
41712         seems to suffice by itself.
41714 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41716         alloca: one step towards thread-safety
41717         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
41718         need for a static variable.  All callers changed.  This does not
41719         make the alloca replacement thread-safe, but it's one step.
41721         tests: minor indenting change
41722         * tests/init.sh: Sync from coreutils housekeeping patch
41723         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
41724         to keep lines within 80 columns.
41726 2010-12-28  Jim Meyering  <meyering@redhat.com>
41728         regex: don't infloop on persistent failing calloc
41729         * lib/regexec.c (build_trtable): Return failure indication upon
41730         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
41731         In glibc, this was fixed for version 2.13:
41732         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
41734 2010-12-28  Bruno Haible  <bruno@clisp.org>
41735             Paul Eggert <eggert@cs.ucla.edu>
41737         linkat: Make implementation robust against system behaviour variations.
41738         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
41739         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
41740         way, and to -2 if it needs a generic runtime test.
41741         * lib/linkat.c (solaris_optimized_link_immediate,
41742         solaris_optimized_link_follow): New functions.
41743         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
41744         (check_same_link): Use it.
41746 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
41748         New module 'unigbrk/base'.
41749         * modules/unigbrk/base: New file.
41750         * lib/unigbrk.in.h: New file.
41752         New module 'unigbrk/uc-gbrk-prop'.
41753         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
41754         * modules/unigbrk/uc-gbrk-prop: New file.
41755         * lib/unigbrk/gbrkprop.h: New file.
41756         * lib/unigbrk/uc-gbrk-prop.c: New file.
41758         New module 'unigbrk/uc-is-grapheme-break'.
41759         * modules/unigbrk/uc-is-grapheme-break: New file.
41760         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
41761         * lib/unigbrk/uc-is-grapheme-break.c: New file.
41762         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
41763         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
41764         * tests/unigbrk/GraphemeBreakTest.txt: New file.
41766         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
41768 2010-12-27  Bruno Haible  <bruno@clisp.org>
41770         linkat test: Avoid failure on Solaris 11 2010-11.
41771         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
41773 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41775         utimens: work around glibc rounding bug on more platforms
41776         * lib/utimens.c (fdutimens): Work around rounding bug even if
41777         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
41778         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
41780 2010-12-27  Bruno Haible  <bruno@clisp.org>
41782         select tests: Improve comments.
41783         * tests/test-select.c (do_select): Add comments.
41785 2010-12-27  Bruno Haible  <bruno@clisp.org>
41787         select tests: Safer way of handling timeout.
41788         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
41789         at every invocation.
41791 2010-12-27  Bruno Haible  <bruno@clisp.org>
41793         select tests: Use 'bool' where appropriate.
41794         * tests/test-select.c (connect_to_socket): Change argument type to
41795         'bool'.
41797 2010-12-27  Bruno Haible  <bruno@clisp.org>
41799         select tests: Use existing modules.
41800         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
41801         (configure.ac): Don't test for unistd.h.
41802         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
41803         declared in <unistd.h>.
41805 2010-12-27  Bruno Haible  <bruno@clisp.org>
41807         mbrtowc: Work around a Solaris 7 bug.
41808         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
41809         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
41810         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
41811         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
41812         MBRTOWC_NULL_ARG1_BUG.
41813         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
41814         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
41815         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
41816         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
41818 2010-12-27  Jim Meyering  <meyering@redhat.com>
41820         read-file.c: tweak syntax
41821         * lib/read-file.c (fread_file): Remove space after "*" in function
41822         definitions.
41824 2010-12-27  Bruno Haible  <bruno@clisp.org>
41826         times test: Avoid gcc warnings on OSF/1.
41827         * tests/test-times.c (main): Cast printf arguments from clock_t to
41828         'long int'.
41830 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41832         utimens: work around glibc rounding bug on older Linux kernels
41833         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
41834         on Linux with a glibc whose utimes might not work, then work
41835         around a longstanding glibc bug involving rounding rather than
41836         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
41837         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
41839 2010-12-26  Bruno Haible  <bruno@clisp.org>
41841         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
41842         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
41843         _GL_CXXALIAS_SYS.
41844         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41846 2010-12-26  Bruno Haible  <bruno@clisp.org>
41848         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
41849         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
41850         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
41851         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
41852         looking for the declaration.
41853         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41854         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
41855         problem.
41856         * doc/posix-functions/inet_pton.texi: Likewise.
41858 2010-12-26  Bruno Haible  <bruno@clisp.org>
41860         arpa_inet: Use the common idioms with C++ support.
41861         * lib/arpa_inet.in.h: Include c++defs.h.
41862         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
41863         support.
41864         * modules/arpa_inet (Depends-on): Add c++defs.
41865         (Makefile.am): Substitute the contents of c++defs.h.
41866         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
41867         * modules/arpa_inet-c++-tests: New file.
41868         * tests/test-arpa_inet-c++.cc: New file.
41870 2010-12-25  Bruno Haible  <bruno@clisp.org>
41872         Fix more C++ link errors on Solaris 8.
41873         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
41874         $(LIB_EACCESS).
41875         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
41876         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
41877         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
41878         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
41879         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
41881 2010-12-25  Bruno Haible  <bruno@clisp.org>
41883         printf-posix: Fix link error when a non-GCC compiler is used.
41884         * lib/stdio.in.h (printf): When not using GCC, override printf
41885         correctly.
41886         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41888 2010-12-25  Bruno Haible  <bruno@clisp.org>
41890         strerror_r-posix: Update doc.
41891         * doc/posix-functions/strerror_r.texi: Update doc about the return
41892         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
41894 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41896         utimens: simplify the logic of the previous change
41897         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
41898         This should not affect whether the test succeeds or fails.
41900         utimens: configure better on hosts with NFS clock skew
41901         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
41902         uses the clock of the local host.  It might use the clock of the
41903         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
41904         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
41906 2010-12-25  Bruno Haible  <bruno@clisp.org>
41908         ptsname test: Avoid failure on Solaris.
41909         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
41910         open a pseudo-terminal; don't use BSD-style ptys.
41911         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
41913 2010-12-25  Bruno Haible  <bruno@clisp.org>
41915         ptsname: Avoid ERANGE failure on some systems.
41916         * lib/ptsname.c (buffer): Increase size.
41918 2010-12-25  Bruno Haible  <bruno@clisp.org>
41920         rename, renameat: Avoid test failures at NFS mounted locations.
41921         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
41922         so that subsequent mkdir calls succeed.
41924 2010-12-25  Bruno Haible  <bruno@clisp.org>
41926         iswblank: Fix C++ link error on Solaris 8.
41927         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
41928         _GL_FUNCDECL_SYS.
41930 2010-12-25  Bruno Haible  <bruno@clisp.org>
41932         unistd: Fix C++ link error on Solaris 8.
41933         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
41935 2010-12-25  Bruno Haible  <bruno@clisp.org>
41937         readlink doc: Mention an old glibc bug.
41938         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
41940 2010-12-25  Bruno Haible  <bruno@clisp.org>
41942         fcntl-h: Fix for use of C++ on glibc systems.
41943         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41944         also on glibc systems in C++ mode.
41945         Reported by Gary V. Vaughan <gary@gnu.org>.
41947 2010-12-25  Bruno Haible  <bruno@clisp.org>
41949         roundl-ieee: Make it work on OSF/1 5.1 with cc.
41950         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
41952 2010-12-25  Bruno Haible  <bruno@clisp.org>
41954         truncl-ieee: Make it work on OSF/1 5.1 with cc.
41955         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
41956         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
41957         test whether truncl works according to ISO C 99 with IEC 60559.
41958         * m4/truncl-ieee.m4: New file.
41959         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
41960         m4/signbit.m4.
41961         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
41963 2010-12-25  Bruno Haible  <bruno@clisp.org>
41965         ceill-ieee: Make it work on OSF/1 5.1 with cc.
41966         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
41967         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
41968         test whether ceill works according to ISO C 99 with IEC 60559.
41969         * m4/ceill-ieee.m4: New file.
41970         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
41971         m4/signbit.m4.
41972         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
41974 2010-12-25  Bruno Haible  <bruno@clisp.org>
41976         Ensure all prerequisites of <wchar.h> are included.
41977         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
41978         before <wchar.h>.
41979         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
41980         gl_MBRLEN_NUL_RETVAL): Likewise.
41981         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41982         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
41983         AC_FUNC_MBRTOWC): Likewise.
41984         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41985         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41987         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41988         Likewise.
41989         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41990         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
41991         (gl_WCHAR_H): Improve comments.
41992         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41994 2010-12-25  Bruno Haible  <bruno@clisp.org>
41996         strtok_r: Fix C syntax error in autoconf macro.
41997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
41998         characters in test program.
42000 2010-12-24  Bruno Haible  <bruno@clisp.org>
42002         ceil, trunc, round: Fix gcc warnings.
42003         * lib/ceil.c (MIN): Undefine before redefining.
42004         * lib/trunc.c (MIN): Likewise.
42005         * lib/round.c (MIN): Likewise.
42006         Include <math.h> first.
42008 2010-12-24  Bruno Haible  <bruno@clisp.org>
42010         select tests: Avoid failures on OSF/1 5.1.
42011         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
42012         failure of closing the last socket; it may fail with ECONNRESET.
42014 2010-12-24  Eric Blake  <eblake@redhat.com>
42016         stdint: avoid HP-UX 10.20 preprocessor bug
42017         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
42018         than #if.
42019         * tests/test-floor2.c (main): Likewise.
42020         Reported by Peter O'Gorman.
42022         pipe: make obsoletion transition easier
42023         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
42024         * modules/pipe (Files): Include revived file.
42025         (Include): Drop reference, to mirror getdate's behavior.
42027 2010-12-24  Bruno Haible  <bruno@clisp.org>
42029         sys_socket: Hide mismatch of declarations on NonStop Kernel.
42030         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
42031         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
42032         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42034 2010-12-24  Bruno Haible  <bruno@clisp.org>
42036         gethostname: Ensure declaration on NonStop Kernel.
42037         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
42038         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42040 2010-12-24  Bruno Haible  <bruno@clisp.org>
42042         sys_select: Ensure all necessary types on NonStop Kernel.
42043         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
42044         include <sys/time.h>.
42045         * doc/posix-headers/sys_select.texi: Mention that it's missing on
42046         NonStop Kernel.
42047         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42049 2010-12-24  Bruno Haible  <bruno@clisp.org>
42051         sys_select: Remove unneeded include.
42052         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
42053         have <sys/select.h>.
42055 2010-12-24  Bruno Haible  <bruno@clisp.org>
42057         gethostname: Provide a fallback for HOST_NAME_MAX.
42058         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
42059         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
42060         instead.
42061         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42063 2010-12-24  Bruno Haible  <bruno@clisp.org>
42065         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
42066         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
42067         (SA_RESTART): Likewise.
42068         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42070 2010-12-24  Bruno Haible  <bruno@clisp.org>
42072         signal: Define NSIG.
42073         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
42074         * tests/test-signal.c (nsig): New variable.
42075         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42077 2010-12-24  Bruno Haible  <bruno@clisp.org>
42079         rename, renameat: Avoid test failures on OSF/1 5.1.
42080         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
42081         alternative error codes.
42082         * tests/test-renameat.c (main): Likewise.
42084 2010-12-24  Bruno Haible  <bruno@clisp.org>
42086         *printf: Detect large precisions bug on Solaris 10/SPARC.
42087         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
42088         by Paul Eggert.
42089         * tests/test-snprintf-posix.h (test_function): Add this test code here
42090         too.
42091         * tests/test-sprintf-posix.h (test_function): Likewise.
42092         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42093         * tests/test-vasprintf-posix.c (test_function): Likewise.
42094         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
42095         around by gnulib.
42096         * doc/posix-functions/printf.texi: Likewise.
42097         * doc/posix-functions/snprintf.texi: Likewise.
42098         * doc/posix-functions/sprintf.texi: Likewise.
42099         * doc/posix-functions/vfprintf.texi: Likewise.
42100         * doc/posix-functions/vprintf.texi: Likewise.
42101         * doc/posix-functions/vsnprintf.texi: Likewise.
42102         * doc/posix-functions/vsprintf.texi: Likewise.
42103         * doc/posix-functions/dprintf.texi: Undo last commit.
42104         * doc/posix-functions/vdprintf.texi: Likewise.
42106 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42108         tests: port test-fdutimensat.c to Solaris 8
42109         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
42110         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
42111         On Solaris 8, it fails with errno == ENOSYS, because there is no
42112         futimens (so it can't use the fd), and there is no lutimens (so it
42113         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
42115         vsnprintf: make more consistent with snprintf; doc fixes
42117         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
42118         the byte count return problem was promoted from the snprintf-posix
42119         to the snprintf module.
42120         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42121         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
42122         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
42123         * tests/test-snprintf.c (main): Check the byte count returned.
42124         * tests/test-vsnprintf.c (main): Likewise.
42126 2010-12-23  Eric Blake  <eblake@redhat.com>
42128         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
42129         * modules/sigpipe (License): Relax license.
42131 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42133         doc: document Solaris printf bug with large float precisions
42134         * doc/posix-functions/dprintf.texi (dprintf):
42135         * doc/posix-functions/fprintf.texi (fprintf):
42136         * doc/posix-functions/printf.texi (printf):
42137         * doc/posix-functions/snprintf.texi (snprintf):
42138         * doc/posix-functions/sprintf.texi (sprintf):
42139         * doc/posix-functions/vdprintf.texi (vdprintf):
42140         * doc/posix-functions/vfprintf.texi (vfprintf):
42141         * doc/posix-functions/vprintf.texi (vprintf):
42142         * doc/posix-functions/vsnprintf.texi (vsnprintf):
42143         * doc/posix-functions/vsprintf.texi (vsprintf):
42144         Mention that these functions mishandle large floating point
42145         precisions on Solaris 10.  The same bug is also present in Solaris
42146         8, and I assume earlier.  This causes "cd gnulib-tests; make
42147         check" to fail on Solaris 8 (and I assume, later) when building
42148         the latest coreutils, in test-vasprintf-posix's call to
42149         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
42150         the wide flavors (e.g., wprintf) so this patch just updates the
42151         documentation for the narrow ones.
42153         test-posixtm.c: add two tests
42154         * tests/test-posixtm.c: Add two tests, to highlight the
42155         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
42156         around this bug; this is merely to document it.
42158 2010-12-22  Bruno Haible  <bruno@clisp.org>
42160         getlogin_r: Work around portability problem on OSF/1.
42161         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
42162         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
42163         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
42164         test for a truncated result.
42165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
42166         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
42167         * modules/getlogin_r (Depends-on): Add memchr.
42168         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
42170 2010-12-22  Bruno Haible  <bruno@clisp.org>
42172         ptsname: Avoid test failure on OSF/1 5.1.
42173         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
42174         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
42175         (same_slave): New function.
42176         (main): Use it to compare ptsname's result with the expected file name.
42178 2010-12-22  Bruno Haible  <bruno@clisp.org>
42180         Port extended stdio modules to HP NonStop Kernel.
42181         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
42182         macros.
42183         * lib/fbufmode.c: Update comments.
42184         * lib/fflush.c: Likewise.
42185         * lib/fpurge.c: Likewise.
42186         * lib/freadable.c: Likewise.
42187         * lib/freadahead.c: Likewise.
42188         * lib/freading.c: Likewise.
42189         * lib/freadptr.c: Likewise.
42190         * lib/freadseek.c: Likewise.
42191         * lib/fseeko.c: Likewise.
42192         * lib/fseterr.c: Likewise.
42193         * lib/fwritable.c: Likewise.
42194         * lib/fwriting.c: Likewise.
42195         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42197 2010-12-22  Bruno Haible  <bruno@clisp.org>
42199         ttyname_r: Work around bug on OSF/1 5.1.
42200         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
42201         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
42202         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
42203         present.
42204         * lib/ttyname_r.c (ttyname_r): Update comments.
42206 2010-12-22  Bruno Haible  <bruno@clisp.org>
42208         round: Implement result sign according to IEEE 754.
42209         * lib/round.c (MIN, MINUS_ZERO): New macros.
42210         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
42211         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
42212         * tests/test-round-ieee.c (main): Likewise.
42213         * tests/test-roundl-ieee.c (main): Likewise.
42215         trunc: Implement result sign according to IEEE 754.
42216         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
42217         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
42218         * tests/test-trunc2.c: Include minus-zero.h.
42219         (MINUS_ZERO): New macro.
42220         (trunc_reference): Keep in sync with lib/trunc.c.
42221         * tests/test-truncf2.c: Include minus-zero.h.
42222         (MINUS_ZERO): New macro.
42223         (truncf_reference): Keep in sync with lib/trunc.c.
42224         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
42225         * tests/test-trunc-ieee.c (main): Likewise.
42226         * tests/test-truncl-ieee.c (main): Likewise.
42228         ceil: Implement result sign according to IEEE 754.
42229         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
42230         (FUNC): Return -0.0 for -1 < x < 0.
42231         * tests/test-ceil2.c: Include minus-zero.h.
42232         (MINUS_ZERO): New macro.
42233         (ceil_reference): Keep in sync with lib/ceil.c.
42234         * tests/test-ceilf2.c: Include minus-zero.h.
42235         (MINUS_ZERO): New macro.
42236         (ceilf_reference): Keep in sync with lib/ceil.c.
42237         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
42238         * tests/test-ceil-ieee.c (main): Likewise.
42239         * tests/test-ceill-ieee.c (main): Likewise.
42241         floor: Implement result sign according to IEEE 754.
42242         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
42243         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
42244         * tests/test-floorf2.c (floorf_reference): Likewise.
42245         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
42246         * tests/test-floor-ieee.c (main): Likewise.
42247         * tests/test-floorl-ieee.c (main): Likewise.
42249 2010-12-22  Bruno Haible  <bruno@clisp.org>
42251         getaddrinfo: Update doc.
42252         * doc/posix-functions/gai_strerror.texi: Return type is also different
42253         on AIX and HP-UX.
42255 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42257         getaddrinfo, inet_ntop: Update doc for Solaris.
42258         * doc/posix-functions/gai_strerror.texi: Return type is also an
42259         issue on Solaris 9 and earlier.
42260         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
42261         on Solaris 10 and earlier.
42263 2010-12-21  Bruno Haible  <bruno@clisp.org>
42265         New module 'roundl-ieee'.
42266         * modules/roundl-ieee: New file.
42267         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
42268         test whether roundl works according to ISO C 99 with IEC 60559.
42269         * m4/roundl-ieee.m4: New file.
42270         * modules/roundl-ieee-tests: New file.
42271         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
42272         * tests/test-roundl.c (main): Remove signbit tests.
42273         * modules/roundl-tests (Depends-on): Remove signbit.
42274         * doc/posix-functions/roundl.texi: Mention the new module.
42276 2010-12-21  Bruno Haible  <bruno@clisp.org>
42278         New module 'truncl-ieee'.
42279         * modules/truncl-ieee: New file.
42280         * modules/truncl-ieee-tests: New file.
42281         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
42282         * tests/test-truncl.c (main): Remove signbit tests.
42283         * modules/truncl-tests (Depends-on): Remove signbit.
42284         * doc/posix-functions/truncl.texi: Mention the new module.
42286 2010-12-21  Bruno Haible  <bruno@clisp.org>
42288         New module 'ceill-ieee'.
42289         * modules/ceill-ieee: New file.
42290         * modules/ceill-ieee-tests: New file.
42291         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
42292         * tests/test-ceill.c (main): Remove signbit tests.
42293         * modules/ceill-tests (Depends-on): Remove signbit.
42294         * doc/posix-functions/ceill.texi: Mention the new module.
42296 2010-12-21  Bruno Haible  <bruno@clisp.org>
42298         New module 'floorl-ieee'.
42299         * modules/floorl-ieee: New file.
42300         * modules/floorl-ieee-tests: New file.
42301         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
42302         * tests/test-floorl.c (main): Remove signbit tests.
42303         * modules/floorl-tests (Depends-on): Remove signbit.
42304         * doc/posix-functions/floorl.texi: Mention the new module.
42306 2010-12-21  Bruno Haible  <bruno@clisp.org>
42308         New module 'round-ieee'.
42309         * modules/round-ieee: New file.
42310         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
42311         whether round works according to ISO C 99 with IEC 60559.
42312         * m4/round-ieee.m4: New file.
42313         * modules/round-ieee-tests: New file.
42314         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
42315         * tests/test-round1.c (main): Remove signbit tests.
42316         * modules/round-tests (Depends-on): Remove 'signbit'.
42317         * doc/posix-functions/round.texi: Mention the new module.
42319 2010-12-21  Bruno Haible  <bruno@clisp.org>
42321         New module 'trunc-ieee'.
42322         * modules/trunc-ieee: New file.
42323         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
42324         whether trunc works according to ISO C 99 with IEC 60559.
42325         * m4/trunc-ieee.m4: New file.
42326         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
42327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
42328         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
42329         * modules/trunc-ieee-tests: New file.
42330         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
42331         * tests/test-trunc1.c (main): Remove signbit tests.
42332         * modules/trunc-tests (Depends-on): Remove 'signbit'.
42333         * doc/posix-functions/trunc.texi: Mention the new module.
42335 2010-12-21  Bruno Haible  <bruno@clisp.org>
42337         New module 'ceil-ieee'.
42338         * modules/ceil-ieee: New file.
42339         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
42340         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
42341         ISO C 99 with IEC 60559.
42342         * m4/ceil-ieee.m4: New file.
42343         * modules/ceil (Files): Add lib/ceil.c.
42344         (Depends-on): Add 'float'.
42345         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42346         * lib/math.in.h (ceil): New declaration.
42347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
42348         REPLACE_CEIL.
42349         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
42350         * modules/ceil-ieee-tests: New file.
42351         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
42352         * tests/test-math-c++.cc: Check the signature of 'ceil'.
42353         * doc/posix-functions/ceil.texi: Mention the new module.
42355 2010-12-21  Bruno Haible  <bruno@clisp.org>
42357         New module 'floor-ieee'.
42358         * modules/floor-ieee: New file.
42359         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
42360         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
42361         ISO C 99 with IEC 60559.
42362         * m4/floor-ieee.m4: New file.
42363         * modules/floor (Files): Add lib/floor.c.
42364         (Depends-on): Add 'float'.
42365         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42366         * lib/math.in.h (floor): New declaration.
42367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
42368         REPLACE_FLOOR.
42369         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
42370         * modules/floor-ieee-tests: New file.
42371         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
42372         * tests/test-math-c++.cc: Check the signature of 'floor'.
42373         * doc/posix-functions/floor.texi: Mention the new module.
42375 2010-12-21  Bruno Haible  <bruno@clisp.org>
42377         New module 'roundf-ieee'.
42378         * modules/roundf-ieee: New file.
42379         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
42380         test whether roundf works according to ISO C 99 with IEC 60559.
42381         * m4/roundf-ieee.m4: New file.
42382         * modules/roundf-ieee-tests: New file.
42383         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
42384         * tests/test-roundf1.c (main): Remove signbit tests.
42385         * modules/roundf-tests (Depends-on): Remove 'signbit'.
42386         * doc/posix-functions/roundf.texi: Mention the new module.
42388 2010-12-21  Bruno Haible  <bruno@clisp.org>
42390         New module 'truncf-ieee'.
42391         * modules/truncf-ieee: New file.
42392         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
42393         test whether truncf works according to ISO C 99 with IEC 60559.
42394         * m4/truncf-ieee.m4: New file.
42395         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
42396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
42397         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
42398         * modules/truncf-ieee-tests: New file.
42399         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
42400         * tests/test-truncf1.c (main): Remove signbit tests.
42401         * modules/truncf-tests (Depends-on): Remove 'signbit'.
42402         * doc/posix-functions/truncf.texi: Mention the new module.
42404 2010-12-21  Bruno Haible  <bruno@clisp.org>
42406         New module 'ceilf-ieee'.
42407         * modules/ceilf-ieee: New file.
42408         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
42409         test whether ceilf works according to ISO C 99 with IEC 60559.
42410         * m4/ceilf-ieee.m4: New file.
42411         * modules/ceilf-ieee-tests: New file.
42412         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
42413         * tests/test-ceilf1.c (main): Remove signbit tests.
42414         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
42415         * doc/posix-functions/ceilf.texi: Mention the new module.
42417 2010-12-21  Bruno Haible  <bruno@clisp.org>
42419         New module 'floorf-ieee'.
42420         * modules/floorf-ieee: New file.
42421         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
42422         test whether floorf works according to ISO C 99 with IEC 60559.
42423         * m4/floorf-ieee.m4: New file.
42424         * modules/floorf-ieee-tests: New file.
42425         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
42426         * tests/test-floorf1.c (main): Remove signbit tests.
42427         * modules/floorf-tests (Depends-on): Remove 'signbit'.
42428         * doc/posix-functions/floorf.texi: Mention the new module.
42430 2010-12-21  Bruno Haible  <bruno@clisp.org>
42432         Support for minus zero in autoconf macros.
42433         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
42434         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
42435         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
42436         * tests/minus-zero.h: Update comments.
42438 2010-12-21  Bruno Haible  <bruno@clisp.org>
42440         Tests for module 'ceil'.
42441         * modules/ceil-tests: New file.
42442         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
42443         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
42445 2010-12-21  Bruno Haible  <bruno@clisp.org>
42447         Tests for module 'floor'.
42448         * modules/floor-tests: New file.
42449         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
42450         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
42452 2010-12-21  Bruno Haible  <bruno@clisp.org>
42454         math: Fix indentation.
42455         * lib/math.in.h (floorf): Fix indentation.
42457 2010-12-21  Bruno Haible  <bruno@clisp.org>
42459         Fix cross-compilation guesses on Solaris.
42460         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
42461         not match "solaris2.10".
42462         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42463         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
42464         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
42466 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
42468         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
42469         This fixes a problem observed with the latest coreutils snapshot
42470         that caused a test to fail on Solaris 8.  src/csplit.c's call
42471         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
42472         earlier, instead of returning the number of bytes that would have
42473         been generated; this causes csplit to incorrectly report memory
42474         exhaustion.
42475         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
42476         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
42477         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
42478         comments to match.
42479         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
42480         Fix typo in matching older versions of Solaris: "solaris2.10"
42481         is matched by the shell pattern "solaris2.[0-9]*".  This matters
42482         only for guessing while cross-compiling.
42483         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
42485 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
42487         ftoastr: fix comment again
42488         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
42489         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
42490         Also, simplify example a bit by using flags = 0.
42492 2010-12-20  Bruno Haible  <bruno@clisp.org>
42494         round*, trunc*: Update documentation regarding glibc.
42495         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
42496         * doc/posix-functions/round.texi: Likewise.
42497         * doc/posix-functions/roundl.texi: Likewise.
42498         * doc/posix-functions/truncf.texi: Likewise.
42499         * doc/posix-functions/trunc.texi: Likewise.
42500         * doc/posix-functions/truncl.texi: Likewise.
42502 2010-12-20  Bruno Haible  <bruno@clisp.org>
42504         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
42505         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
42506         * doc/posix-functions/round.texi: Likewise.
42507         * doc/posix-functions/roundl.texi: Likewise.
42509 2010-12-20  Bruno Haible  <bruno@clisp.org>
42511         ttyname_r: Add missing declaration on HP-UX 11.
42512         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
42513         HAVE_TTYNAME_R.
42514         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
42515         declared. Set HAVE_TTYNAME_R always.
42516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42517         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
42518         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
42519         HAVE_TTYNAME_R.
42520         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
42522 2010-12-20  Bruno Haible  <bruno@clisp.org>
42524         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
42525         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
42526         * doc/posix-functions/getlogin_r.texi: Likewise.
42527         * tests/test-getlogin.c: Include <errno.h>.
42528         (main): Avoid test failure on HP-UX 11.11.
42529         * tests/test-getlogin_r.c (main): Likewise.
42531 2010-12-20  Bruno Haible  <bruno@clisp.org>
42533         getlogin_r: Add missing declaration on HP-UX 11.
42534         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
42535         declared also when it exists as a function.
42536         * doc/posix-functions/getlogin_r.texi: Document this workaround.
42538 2010-12-20  Bruno Haible  <bruno@clisp.org>
42540         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
42541         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
42542         through wcrtomb.
42544 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42546         ftoastr: fix comment
42547         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
42548         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
42550 2010-12-19  Bruno Haible  <bruno@clisp.org>
42552         isnan: Ensure it is a macro.
42553         * lib/math.in.h (isnan): Define as a macro if not already a macro.
42554         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
42555         Solaris.
42557 2010-12-19  Bruno Haible  <bruno@clisp.org>
42559         ldexpl test: Fix link error on OSF/1 5.1.
42560         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
42562 2010-12-19  Bruno Haible  <bruno@clisp.org>
42564         wctype: Make it work in C++ mode on OSF/1 5.1.
42565         * lib/wctype.in.h (iswblank): Declare but not define here.
42566         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
42567         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
42568         * modules/wctype (Files): Add lib/iswblank.c.
42570 2010-12-19  Bruno Haible  <bruno@clisp.org>
42572         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
42573         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
42574         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
42576 2010-12-19  Bruno Haible  <bruno@clisp.org>
42578         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
42579         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
42580         _POSIX_PII_SOCKET.
42581         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
42582         * doc/posix-functions/recvfrom.texi: Likewise.
42583         * doc/posix-functions/send.texi: Likewise.
42584         * doc/posix-functions/sendto.texi: Likewise.
42586 2010-12-19  Bruno Haible  <bruno@clisp.org>
42588         tcgetsid: Add missing declaration on OSF/1 5.1.
42589         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
42590         HAVE_TCGETSID.
42591         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
42592         Don't set HAVE_TCGETSID.
42593         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
42594         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
42595         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
42596         HAVE_TCGETSID.
42597         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
42599 2010-12-19  Bruno Haible  <bruno@clisp.org>
42601         stdio: Fix problem with popen() declaration on OSF/1 5.1.
42602         * lib/stdio.in.h: During the include_next statement, let recursive
42603         includes of this file include only the system header file.
42605 2010-12-19  Bruno Haible  <bruno@clisp.org>
42607         iconv_open: Fix regression from 2010-12-04.
42608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
42609         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
42611 2010-12-19  Bruno Haible  <bruno@clisp.org>
42613         stdbool test: Avoid a gcc warning.
42614         * tests/test-stdbool.c (main): Fail if e1 is false.
42615         Reported by Jim Meyering.
42617 2010-12-19  Jim Meyering  <meyering@redhat.com>
42619         setenv: restore to working order
42620         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
42621         mistakenly removed.
42622         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
42623         HAVE_SETENV.
42624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
42625         HAVE_SETENV.
42627 2010-12-19  Bruno Haible  <bruno@clisp.org>
42629         Document some different function declarations on OSF/1 5.1.
42630         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
42631         * doc/posix-functions/inet_ntop.texi: Likewise.
42632         * doc/posix-functions/gethostname.texi: Likewise.
42633         * lib/unistd.in.h (gethostname): Update comment.
42635 2010-12-19  Bruno Haible  <bruno@clisp.org>
42637         doc: Mention vasprintf-posix module.
42638         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
42639         the 'vasprintf-posix' module.
42640         * doc/glibc-functions/vasprintf.texi: Likewise.
42642 2010-12-19  Bruno Haible  <bruno@clisp.org>
42644         unsetenv: Add missing declaration on OSF/1 5.1.
42645         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
42646         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
42647         Don't set HAVE_UNSETENV. In the test program, set _BSD.
42648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
42649         not HAVE_UNSETENV.
42650         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
42651         HAVE_UNSETENV.
42652         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
42654 2010-12-19  Bruno Haible  <bruno@clisp.org>
42656         setenv: Add missing declaration on OSF/1 5.1.
42657         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
42658         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
42659         declared. Don't set HAVE_SETENV.
42660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
42661         not HAVE_SETENV.
42662         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
42663         HAVE_SETENV.
42664         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
42666 2010-12-19  Bruno Haible  <bruno@clisp.org>
42668         nl_langinfo tests: Avoid gcc warning.
42669         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
42671 2010-12-19  Bruno Haible  <bruno@clisp.org>
42673         mknod: Avoid error in C++ mode on OSF/1 with GCC.
42674         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
42675         _GL_CXXALIAS_SYS.
42677 2010-12-19  Bruno Haible  <bruno@clisp.org>
42679         stdbool: Relax test.
42680         * tests/test-stdbool.c (e): Don't require that casts from a variable's
42681         address to 'bool' work in static initializer, for compilers other than
42682         GCC.
42684 2010-12-19  Bruno Haible  <bruno@clisp.org>
42686         ftello: Add missing declaration on OSF/1 5.1.
42687         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
42688         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
42689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
42690         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
42691         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
42693 2010-12-19  Bruno Haible  <bruno@clisp.org>
42695         fseeko: Add missing declaration on OSF/1 5.1.
42696         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
42697         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
42698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
42699         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
42700         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
42702 2010-12-19  Bruno Haible  <bruno@clisp.org>
42704         fchdir: Add missing declaration on OSF/1 5.1.
42705         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
42706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
42707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
42708         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
42709         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
42711 2010-12-19  Bruno Haible  <bruno@clisp.org>
42713         relocatable-prog-wrapper: Separate from relocatable-prog.
42714         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
42715         uninstall-relocwrapper rule here.
42716         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
42717         Reported by Ian Beckwith <ianb@erislabs.net>.
42719 2010-12-19  Bruno Haible  <bruno@clisp.org>
42721         unistr/u8-mbsnlen: Add missing dependency.
42722         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
42723         Reported by Ian Beckwith <ianb@erislabs.net>.
42725 2010-12-19  Bruno Haible  <bruno@clisp.org>
42727         iconv: Make it possible again to use this module without 'iconv-h'.
42728         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
42729         if it is not defined.
42730         Reported by Ian Beckwith <ianb@erislabs.net>.
42732 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42734         acl: port to Solaris 8 when copying from tmpfs to ufs
42735         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
42736         error number.  Problem observed on Solaris 8 with latest
42737         coreutils, with "mv A B", where A is on a tmpfs file system and B
42738         is on a ufs file system.  This caused coreutils' mv/part-symlink
42739         test to fail.
42741         tests: set fail=0 at start
42742         * tests/init.sh (setup_): Move fail=0 initialization here ...
42743         (mktempd_): ... from here, so that tests can rely on fail being
42744         set to 0 initially.  This fixes a problem in coreutils; see:
42745         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
42747 2010-12-18  Bruno Haible  <bruno@clisp.org>
42749         memmem-simple: Stylistic changes.
42750         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
42751         Fix preprocessor directive indentation.
42753 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42755         memmem, memmem-simple: reorganize and expand empty needle check
42756         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
42757         functional checks to memmem-simple so that one has a fully functional
42758         memmem by using just this module.
42759         Restrict the performance only check to the memmem module.
42760         Also expand the empty needle check to ensure the correct
42761         pointer is returned, not just a non NULL pointer.
42762         * doc/glibc-functions/memmem.texi: Rearrange the portability
42763         documentation to correlate with the rearranged checks.
42764         Clarify exactly how the memmem and memmem-simple modules
42765         relate to each other.
42767 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42768             Bruno Haible  <bruno@clisp.org>
42770         Improve cross-compilation guesses for uClibc.
42771         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
42772         that uClibc does not have the glibc bug.
42773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
42774         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
42776 2010-12-14  Eric Blake  <eblake@redhat.com>
42778         configmake: provide fallbacks for oldest supported autotools
42779         * m4/configmake.m4: New file.
42780         * modules/configmake (Files): Ship it.
42781         (configure.ac): Use it to guarantee fallbacks.
42783 2010-12-13  Pádraig Brady  <P@draigBrady.com>
42785         read-file: Improve handling of large files
42786         * lib/read-file.c (fread_file): Minimize realloc()s
42787         for regular files, and better manage sizes around SIZE_MAX.
42789 2010-12-13  Eric Blake  <eblake@redhat.com>
42791         cloexec, fcntl: relax license
42792         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
42793         consent from all contributors.
42794         * modules/fcntl (License): Likewise.
42796 2010-12-10  Bruno Haible  <bruno@clisp.org>
42798         Tests for module 'pipe-posix'.
42799         * modules/pipe-posix-tests: New file.
42800         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
42802 2010-12-10  Bruno Haible  <bruno@clisp.org>
42804         pipe-posix: Make it work in C++ mode.
42805         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
42806         (pipe): Use common idiom, not a macro definition.
42807         * lib/pipe.c: New file.
42808         * m4/pipe.m4: New file.
42809         * modules/pipe-posix (Description): Enhance.
42810         (Files): Add lib/pipe.c, m4/pipe.m4.
42811         (configure.ac): Invoke gl_FUNC_PIPE.
42812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
42813         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
42814         * tests/test-unistd-c++.cc: Check the signature of pipe.
42816 2010-12-10  Bruno Haible  <bruno@clisp.org>
42818         Rename module 'pipe' to 'spawn-pipe'.
42819         * modules/spawn-pipe: New file, renamed from modules/pipe.
42820         (Files, configure.ac, Makefile.am): Update.
42821         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
42822         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
42823         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
42824         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
42825         "spawn-pipe.h" instead of "pipe.h".
42826         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
42827         to gl_SPAWN_PIPE.
42828         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
42829         (Files, Makefile.am): Update.
42830         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
42831         Update.
42832         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
42833         Include "spawn-pipe.h" instead of "pipe.h".
42834         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
42835         * lib/javacomp.c: Likewise.
42836         * lib/javaversion.c: Likewise.
42837         * lib/pipe-filter-gi.c: Likewise.
42838         * lib/pipe-filter-ii.c: Likewise.
42839         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
42840         * modules/javacomp (Depends-on): Likewise.
42841         * modules/javaversion (Depends-on): Likewise.
42842         * modules/pipe-filter-gi (Depends-on): Likewise.
42843         * modules/pipe-filter-ii (Depends-on): Likewise.
42844         * MODULES.html.sh (Executing programs): Update.
42845         * NEWS: Mention the change.
42847 2010-12-10  Eric Blake  <eblake@redhat.com>
42849         pipe-posix: new module
42850         * modules/pipe-posix: New file.
42851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
42852         (gl_UNISTD_H): Check for declaration.
42853         * modules/unistd (Makefile.am): Substitute it.
42854         * lib/unistd.in.h (pipe): Provide it for mingw.
42855         * doc/posix-functions/pipe.texi (pipe): Update documentation.
42856         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
42858 2010-12-07  Bruno Haible  <bruno@clisp.org>
42860         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
42861         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
42862         u8_strcmp_gnu.
42863         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
42865 2010-12-06  Bruno Haible  <bruno@clisp.org>
42867         Update internal documentation.
42868         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
42870 2010-12-04  Bruno Haible  <bruno@clisp.org>
42872         Put more information about failed tests into the test return codes.
42873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
42874         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
42875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42876         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42877         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
42878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42879         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42880         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42881         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
42882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42883         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
42884         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42885         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
42886         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42887         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
42888         returns a bit mask.
42889         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
42890         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
42891         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
42892         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
42893         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42894         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
42895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42897         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42898         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
42899         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42900         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
42901         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42902         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
42903         * m4/link.m4 (gl_FUNC_LINK): Likewise.
42904         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42905         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
42906         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
42907         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42908         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
42909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42910         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42911         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
42912         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42913         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42914         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42915         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
42916         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
42917         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
42918         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
42919         gl_PRINTF_PRECISION): Likewise.
42920         * m4/regex.m4 (gl_REGEX): Likewise.
42921         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42922         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42923         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
42924         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42927         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
42928         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
42929         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42930         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42931         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42932         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42933         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
42934         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42935         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42936         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42937         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
42938         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42940         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
42941         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
42942         enumerated value.
42943         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
42945 2010-12-04  Bruno Haible  <bruno@clisp.org>
42947         Update for Solaris 11 2010-11.
42948         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
42949         Express, released in November 2010.
42951 2010-12-04  Bruno Haible  <bruno@clisp.org>
42953         nproc: Relax license.
42954         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
42955         and Paul Eggert.
42956         Requested by Ludovic Courtès <ludo@gnu.org>.
42958 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
42960         utimecmp: fine-grained src to nearby coarse-grained dest
42962         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
42963         and the source is on a file system with higher-resolution time
42964         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
42965         not work, and the time stamps are close together, the algorithm to
42966         determine the exact resolution from the read-back mtime was buggy:
42967         it had a "!=" where it should have had an "==".  This bug has been
42968         in the code ever since it was introduced to gnulib.
42969         Problem reported by Dan Jacobson in
42970         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
42972 2010-11-30  Bruno Haible  <bruno@clisp.org>
42974         strerror_r-posix: Fix autoconf test.
42975         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
42977 2010-11-28  Bruno Haible  <bruno@clisp.org>
42978             Paul Eggert  <eggert@cs.ucla.edu>
42980         Tests for module 'getdomainname'.
42981         * modules/getdomainname-tests: New file.
42982         * tests/test-getdomainname.c: New file, based on
42983         tests/test-gethostname.c.
42985 2010-11-28  Bruno Haible  <bruno@clisp.org>
42986             Paul Eggert  <eggert@cs.ucla.edu>
42988         getdomainname: Use the system function when possible.
42989         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
42990         (getdomainname): Replace if needed. Provide the declaration if it is
42991         missing. Don't use _GL_CXXALIAS_SYS_CAST.
42992         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
42993         (getdomainname): When the system has getdomainname, call the system
42994         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
42995         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42996         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
42997         found in libnsl. Look for the declaration also in <netdb.h>. Replace
42998         the function if its second argument is of type 'int' or if it is found
42999         in libnsl.
43000         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
43001         <sys/systeminfo.h> and sysinfo().
43002         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
43003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43004         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
43005         HAVE_GETDOMAINNAME.
43006         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
43007         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
43008         * doc/glibc-functions/getdomainname.texi: Document the problems with
43009         the getdomainname declaration.
43011 2010-11-28  Bruno Haible  <bruno@clisp.org>
43013         sys_socket: Ensure ss_family field on AIX.
43014         * lib/sys_socket.in.h (ss_family): New macro definition.
43015         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
43016         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
43017         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43018         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43019         * modules/sys_socket (Makefile.am): Substitute
43020         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43021         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
43023 2010-11-27  Bruno Haible  <bruno@clisp.org>
43025         readline: Improve configure output.
43026         * m4/readline.m4 (gl_FUNC_READLINE): Make the
43027         "checking for readline..." result understandable.
43029 2010-11-27  Bruno Haible  <bruno@clisp.org>
43031         *printf-posix: Detect a bug on Solaris 10/x86.
43032         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
43033         for floating-point output.
43034         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
43035         directive.
43036         * tests/test-snprintf-posix.h (test_function): Likewise.
43037         * tests/test-sprintf-posix.h (test_function): Likewise.
43038         * tests/test-vasprintf-posix.c (test_function): Likewise.
43039         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
43040         * doc/posix-functions/printf.texi: Likewise.
43041         * doc/posix-functions/snprintf.texi: Likewise.
43042         * doc/posix-functions/sprintf.texi: Likewise.
43043         * doc/posix-functions/vfprintf.texi: Likewise.
43044         * doc/posix-functions/vprintf.texi: Likewise.
43045         * doc/posix-functions/vsnprintf.texi: Likewise.
43046         * doc/posix-functions/vsprintf.texi: Likewise.
43047         * doc/glibc-functions/obstack_printf.texi: Likewise.
43048         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43050 2010-11-27  Bruno Haible  <bruno@clisp.org>
43052         Fix link error when module libunistring-optional is in use.
43053         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
43054         * modules/striconveha-tests (Makefile.am): Likewise.
43056 2010-11-27  Bruno Haible  <bruno@clisp.org>
43058         regex: Mention link dependencies.
43059         * modules/regex (Link): New section.
43060         * modules/rpmatch (Link): Likewise.
43061         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
43063 2010-11-27  Bruno Haible  <bruno@clisp.org>
43065         ftoastr: Fix compilation error on Solaris.
43066         * lib/ftoastr.c: Include <config.h>.
43068 2010-11-27  Bruno Haible  <bruno@clisp.org>
43070         getloadavg: Update documentation.
43071         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
43073 2010-11-27  Bruno Haible  <bruno@clisp.org>
43075         sys_socket: Fix test whether the functions are declared.
43076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
43077         not <sys/select.h>.
43079 2010-11-27  Bruno Haible  <bruno@clisp.org>
43081         getpass: Make sure to get system declaration on some platforms.
43082         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
43083         gl_USE_SYSTEM_EXTENSIONS.
43084         * modules/getpass (Depends-on): Add extensions.
43086 2010-11-26  Bruno Haible  <bruno@clisp.org>
43088         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
43089         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
43090         'iconv' module is present.
43091         (ICONV_CONST): New macro.
43092         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
43093         ICONV_CONST.
43094         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
43095         set ICONV_CONST.
43096         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
43097         here.
43098         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
43099         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
43100         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
43101         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
43102         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
43103         present.
43105 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43107         ftoastr: comment fix
43108         * lib/ftoastr.c: "little" -> "little or no" in comment
43110 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
43112         stdint: port to GCC 4.3 + OSX + Octave
43113         On this platform, stdint.h is buggy and defines int64_t to long
43114         long int.  The replacement defined it to long int, causing
43115         problems with C++ style name mangling.  Instead, trust the system
43116         definition if INT64_MAX is defined, and likewise for the unsigned
43117         variant.   Problem reported by Jarno Rajahalme in
43118         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
43119         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
43120         and don't mess with int64_t and INT64_MAX in this case.
43121         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
43123 2010-11-24  Bruno Haible  <bruno@clisp.org>
43125         doc: Corrections regarding MacOS X 10.4 and 10.5.
43126         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
43127         MacOS X.
43128         Reported by Simon Josefsson.
43130 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
43132         Uninstall ".bin" files installed by relocwrapper.
43133         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
43134         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
43135         unless it is already there.
43137 2010-11-21  Bruno Haible  <bruno@clisp.org>
43139         Update for NetBSD 5.0.
43140         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43141         NetBSD; the test fails on NetBSD 5.0.
43142         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43143         about NetBSD.
43145 2010-11-21  Bruno Haible  <bruno@clisp.org>
43147         Update for HP-UX 11.23 and HP-UX 11.31.
43148         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
43149         HP-UX.
43151 2010-11-21  Bruno Haible  <bruno@clisp.org>
43153         Update for MacOS X 10.5.
43154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43155         MacOS X; the test fails on MacOS X 10.5.8.
43156         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43157         about MacOS X.
43159 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
43161         bootstrap: add bootstrap_sync option.
43162         See discussion at
43163         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
43164         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
43165         * build-aux/bootstrap: Accept --bootstrap-sync to update
43166         bootstrap if it is not identical to the local gnulib's
43167         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
43168         enable this by default.  Accept --no-bootstrap-sync to disable
43169         it.
43171 2010-11-20  Bruno Haible  <bruno@clisp.org>
43173         Ensure that <features.h> is included before __GLIBC__ is tested.
43174         * lib/printf-parse.h: Include <features.h>.
43175         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
43176         Reported by Mike Frysinger <vapier@gentoo.org>.
43178         Ensure that <features.h> is included before __GLIBC__ is tested.
43179         * lib/wchar.in.h: Include <features.h>.
43180         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
43181         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
43182         Reported by Mike Frysinger <vapier@gentoo.org>.
43184         Ensure that <features.h> is included before __GLIBC__ is tested.
43185         * lib/arpa_inet.in.h: Include <features.h>.
43186         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
43187         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
43188         Reported by Mike Frysinger <vapier@gentoo.org>.
43190         Ensure that <features.h> is included before __GLIBC__ is tested.
43191         * build-aux/link-warning.h: Include <features.h>.
43192         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
43193         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
43194         Reported by Mike Frysinger <vapier@gentoo.org>.
43196         Ensure that <features.h> is included before __GLIBC__ is tested.
43197         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
43198         Reported by Mike Frysinger <vapier@gentoo.org>.
43200 2010-11-20  Bruno Haible  <bruno@clisp.org>
43202         memmem: Fix autoconf test.
43203         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
43205 2010-11-20  Bruno Haible  <bruno@clisp.org>
43207         Port to uClibc.
43208         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
43209         * lib/fcntl.in.h: Likewise.
43210         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
43211         * lib/mbrtowc.c (mbrtowc): Likewise.
43212         * lib/relocatable.c (find_shared_library_fullname): Likewise.
43213         * lib/strerror_r.c: Likewise.
43214         * lib/unistr/u8-strnlen.c: Likewise.
43215         * lib/vasnprintf.c (decimal_point_char): Likewise.
43216         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43217         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
43218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43219         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43220         * tests/test-sigaction.c (handler, main): Likewise.
43221         * lib/freading.h: Treat uClibc like a non-glibc platform.
43222         * lib/freading.c: Likewise.
43223         * lib/gettext.h: Likewise.
43224         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
43225         Likewise.
43226         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
43227         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43228         * lib/propername.c (proper_name_utf8): Likewise.
43229         * lib/spawn.in.h: Likewise.
43230         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
43231         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
43232         mem_cd_iconveh_internal): Likewise.
43233         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
43234         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
43235         strstr, strcasestr): Likewise.
43236         * lib/unicodeio.c (unicode_to_mb): Likewise.
43237         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
43238         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
43239         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
43240         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
43241         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
43242         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
43243         * lib/unistr/u8-stpncpy.c: Likewise.
43244         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43245         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
43246         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43247         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43248         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43249         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
43250         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
43251         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
43252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
43253         Likewise.
43254         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43255         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
43257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43259         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43260         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43261         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43262         * tests/test-getopt.h (OPTIND_MIN): Likewise.
43263         * tests/test-striconveha.c (main): Likewise.
43264         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43265         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
43266         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
43267         * doc/posix-functions/getline.texi: Likewise.
43268         Reported by Mike Frysinger <vapier@gentoo.org>.
43270 2010-11-20  Bruno Haible  <bruno@clisp.org>
43272         nproc: Fix condition.
43273         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
43274         HAVE_PTHREAD_AFFINITY_NP.
43276 2010-11-20  Bruno Haible  <bruno@clisp.org>
43278         Fix a comment.
43279         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
43281 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
43283         ftoastr: don't assume snprintf
43284         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
43285         Implement a subset of snprintf here, by using sprintf safely.
43286         * modules/ftoastr (Depends-on): Remove snprintf.
43288 2010-11-19  Jim Meyering  <meyering@redhat.com>
43290         test-rename.h: fix compilation failure
43291         * tests/test-rename.h (test_rename): Add omitted "}".
43293 2010-11-17  Jim Meyering  <meyering@redhat.com>
43295         maint.mk: add a URL discussing the no-@acronym policy
43296         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
43298 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
43300         ftoastr: depend on snprintf, improve comments
43301         * lib/ftoastr.c: Also mention Loitsch's draft.
43302         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
43303         needed in the current implementation, but it might simplify
43304         speeding up the code later.
43305         * modules/ftoastr: Depend on snprintf; this improves portability.
43306         Suggested by Bruno Haible in the same email.
43308         ftoastr: port to hosts lacking strtof and strtold
43309         Problem reported by Bruno Haible in
43310         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
43311         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
43312         environment and strtold (and presumably strtof) are not available.
43313         * modules/ftoastr (Files): Add m4/c-strtod.m4.
43314         (configure.ac): Require gl_C99_STRTOLD.
43316 2010-11-18  Bruno Haible  <bruno@clisp.org>
43318         c-strtold: Avoid link error on AIX 7.
43319         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
43320         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
43321         (gl_C_STRTOLD): Test whether strtold_l exists.
43322         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43324 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43326         intprops: new macro INT_BITS_STRLEN_BOUND
43327         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
43328         ftoastr.h.  This exposes an internal of intprops.h that was formerly
43329         not exposed.  Also, it uses a slightly tighter bound than before;
43330         though this makes no practical difference, we might as well be as
43331         tight as we easily can.
43333         ftoastr: new module, for lossless conversion of floats to short strings
43334         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
43335         * modules/ftoastr: New files.
43337 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43339         bootstrap: port to Solaris sed
43340         * build-aux/bootstrap (get_version): Port to Solaris sed.
43341         See Ralf Wildenhues's note in
43342         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
43344 2010-11-14  Jim Meyering  <meyering@redhat.com>
43346         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
43347         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
43348         and move definition closer to sole use.
43350 2010-11-13  Jim Meyering  <meyering@redhat.com>
43352         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
43353         Now we require at least autoconf-2.59, which means the work-around
43354         is no longer needed.
43355         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
43356         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43357         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43358         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
43359         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
43361 2010-11-13  Bruno Haible  <bruno@clisp.org>
43363         rename, renameat: Avoid test failures at NFS mounted locations.
43364         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
43365         functions.
43366         (test_rename): Use assert_nonexistent.
43367         * tests/test-rename.c: Include <dirent.h>.
43368         * tests/test-renameat.c: Likewise.
43369         Reported by Gary V. Vaughan <gary@gnu.org>.
43371         rename, renameat: Document Linux bug with NFS
43372         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
43373         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
43374         * doc/posix-functions/renameat.texi: Likewise.
43375         Suggested by Eric Blake.
43377 2010-11-13  Bruno Haible  <bruno@clisp.org>
43379         rename test: Add comments.
43380         * tests/test-rename.h (test_rename): Add structure and comments.
43382 2010-11-13  Eric Blake  <eblake@redhat.com>
43384         maintainer-makefile: cover a few more files
43385         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
43386         scripts generated within C files, for libvirt.
43388 2010-11-13  Bruno Haible  <bruno@clisp.org>
43390         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
43391         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
43392         character, return the number of bytes that belong together, not always
43393         1.
43394         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
43395         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
43396         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
43397         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
43398         number of bytes of an invalid character.
43399         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
43400         (main): Invoke it.
43401         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
43402         results.
43403         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
43404         malformed byte sequences.
43405         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
43406         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
43407         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
43408         Reported by Ben Pfaff and Paolo Bonzini.
43410 2010-11-13  Bruno Haible  <bruno@clisp.org>
43412         openat: Work around glibc bug with fchownat() and empty file names.
43413         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
43414         (gl_FUNC_FCHOWNAT): Invoke it.
43415         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
43416         * doc/posix-functions/fchownat.texi: Document the glibc bug.
43417         Reported by Gary V. Vaughan <gary@gnu.org>.
43419 2010-11-13  Bruno Haible  <bruno@clisp.org>
43421         openat: Ensure autoconf macro ordering.
43422         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
43423         gl_USE_SYSTEM_EXTENSIONS.
43424         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
43426 2010-11-13  Bruno Haible  <bruno@clisp.org>
43428         Update comments.
43429         * lib/unistr/u8-check.c: Update file name in comments.
43430         * lib/unistr/u8-mblen.c: Likewise.
43431         * lib/unistr/u8-prev.c: Likewise.
43432         * lib/unistr/u8-strmblen.c: Likewise.
43433         * lib/unistr/u8-strmbtouc.c: Likewise.
43435 2010-11-13  Jim Meyering  <meyering@redhat.com>
43437         tests: avoid test failure on Solaris 10 due to lack of PATH export
43438         * tests/test-update-copyright.sh: Don't forget to export PATH.
43440         init.sh: ensure that IFS is defined, just in case...
43441         * tests/init.sh (setup_): Ensure that IFS is defined,
43442         so that saving and restoring it works as expected.  This
43443         appears to be useful at least for an old version of dash
43444         from a long time ago (RH 6).  See here for details:
43445         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
43447         maint.mk: tighten "test a == b" check
43448         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
43449         test to files that contain something like #!/bin/sh.
43450         Without this, coreutils would get two false positives in
43451         the comments of C source files.
43453 2010-11-12  Eric Blake  <eblake@redhat.com>
43455         bootstrap: fix typo in previous attempt
43456         * build-aux/bootstrap (buildreq): Correct the grouping.
43457         Reported by Paul Eggert.
43459         maintainer-makefile: prohibit test x == x
43460         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
43461         Based on a report by Matthias Bolte.
43463         bootstrap: allow FreeBSD gzip
43464         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
43465         which has no '.' and goes to stderr.
43466         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
43467         Reported by Matthias Bolte.
43469         maintainer-makefile: check for i18n setup
43470         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
43471         will likely work.
43473 2010-11-12  Bruno Haible  <bruno@clisp.org>
43475         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
43476         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
43477         * lib/nanosleep.c (nanosleep): Likewise.
43479 2010-11-11  Bruno Haible  <bruno@clisp.org>
43481         fcntl-h: Fix for use of C++ on glibc systems.
43482         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43483         also on glibc systems in C++ mode.
43484         Reported by Gary V. Vaughan <gary@gnu.org>.
43486 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43488         mknod: avoid false failure with dash
43489         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
43491 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43493         unlink: Fix "is it should" typo in diagnostic.
43494         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
43495         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
43497 2010-11-11  Bruno Haible  <bruno@clisp.org>
43499         Tests for module 'strerror_r-posix'.
43500         * modules/strerror_r-posix-tests: New file.
43501         * tests/test-strerror_r.c: New file.
43502         * tests/test-string-c++.cc: Check the signature of strerror_r.
43504         New module 'strerror_r-posix'.
43505         * lib/string.in.h (strerror_r): New declaration.
43506         * lib/strerror_r.c: New file.
43507         * m4/strerror_r.m4: New file.
43508         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
43509         of strerror_r.
43510         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
43511         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
43512         * modules/strerror_r-posix: New file.
43513         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
43514         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
43515         * doc/posix-functions/strerror_r.texi: Mention the new module and the
43516         portability problems.
43518 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
43520         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
43521         line is also considered for output. Quoted function name in shell
43522         command, so temporary files for functions like MyClass::operator()
43523         are removed correctly without errors.
43525 2010-11-09  Bruno Haible  <bruno@clisp.org>
43527         * doc/posix-functions/strerror.texi: List more failing platforms.
43529         * doc/posix-functions/strerror.texi: Add a comment.
43531 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
43533         fdopendir: fix bug on MacOS X when low on file descriptors
43535         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
43536         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
43537         All callers changed.
43538         (fdopendir): Invoke save_cwd at the top level, not after using
43539         multiple dup() calls to use up file descriptors.  Then retry
43540         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
43541         less than the maximum number of open file descriptors, because
43542         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
43543         on Mac OS X 10.6.4 for tar 1.24
43544         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
43545         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
43546         and for tar 1.25
43547         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
43549 2010-11-07  Bruno Haible  <bruno@clisp.org>
43551         vasnprintf: Support I flag on glibc systems.
43552         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
43553         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
43554         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
43555         snprintf function.
43556         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
43557         glibc systems.
43558         * tests/test-vasnprintf-posix3.c: New file.
43559         * modules/vasnprintf-posix-tests (Files): Add it.
43560         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
43562 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43564         [html] Fix copy/paste bug: Use unique name for compiler warnings.
43565         * MODULES.html.sh: For compiler warnings, use name
43566         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
43568 2010-11-05  Eric Blake  <eblake@redhat.com>
43570         ceil, floor: avoid spurious failure with icc
43571         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
43572         [denormals-as-zero] when optimizing without -mieee-fp option.
43573         * tests/test-floorf2.c (floorf_reference): Likewise.
43574         * tests/test-ceilf1.c (dummy): New function.
43575         (main): Use it to outsmart icc's optimization.
43576         * tests/test-floorf1.c (dummy, main): Likewise.
43578         tests: require working signbit
43579         * modules/ceilf-tests (Depends-on): Add signbit.
43580         * modules/ceill-tests (Depends-on): Likewise.
43581         * modules/floorf-tests (Depends-on): Likewise.
43582         * modules/floorl-tests (Depends-on): Likewise.
43583         * modules/round-tests (Depends-on): Likewise.
43584         * modules/roundf-tests (Depends-on): Likewise.
43585         * modules/roundl-tests (Depends-on): Likewise.
43586         * modules/trunc-tests (Depends-on): Likewise.
43587         * modules/truncf-tests (Depends-on): Likewise.
43588         * modules/truncl-tests (Depends-on): Likewise.
43590         strtod: work around icc bug
43591         * lib/strtod.c (minus_zero): Define to working value.
43592         (strtod): Use it to avoid icc bug.
43594         copysign: enhance tests
43595         * modules/copysign-tests (Files): Add minus-zero.h.
43596         * tests/test-copysign.c (main): Also test zeros.
43598 2010-11-04  Eric Blake  <eblake@redhat.com>
43600         ceil, floor, round, trunc: enhance tests of -0
43601         * tests/test-ceilf1.c (main): Ensure correct sign of result.
43602         * tests/test-ceill.c (main): Likewise.
43603         * tests/test-floorf1.c (main): Likewise.
43604         * tests/test-floorl.c (main): Likewise.
43605         * tests/test-round1.c (main): Likewise.
43606         * tests/test-roundf1.c (main): Likewise.
43607         * tests/test-roundl.c (main): Likewise.
43608         * tests/test-trunc1.c (main): Likewise.
43609         * tests/test-truncf1.c (main): Likewise.
43610         * tests/test-truncl.c (main): Likewise.
43612 2010-11-04  Eric Blake  <eblake@redhat.com>
43614         frexp, tests: work around ICC bug with -zero
43615         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
43616         works with more compilers.
43617         * tests/minus-zero.h: New file.
43618         * modules/ceilf-tests (Files): Include it.
43619         * modules/ceill-tests (Files): Likewise.
43620         * modules/floorf-tests (Files): Likewise.
43621         * modules/floorl-tests (Files): Likewise.
43622         * modules/frexp-nolibm-tests (Files): Likewise.
43623         * modules/frexp-tests (Files): Likewise.
43624         * modules/frexpl-nolibm-tests (Files): Likewise.
43625         * modules/frexpl-tests (Files): Likewise.
43626         * modules/isnan-tests (Files): Likewise.
43627         * modules/isnand-nolibm-tests (Files): Likewise.
43628         * modules/isnand-tests (Files): Likewise.
43629         * modules/isnanf-nolibm-tests (Files): Likewise.
43630         * modules/isnanf-tests (Files): Likewise.
43631         * modules/isnanl-nolibm-tests (Files): Likewise.
43632         * modules/isnanl-tests (Files): Likewise.
43633         * modules/round-tests (Files): Likewise.
43634         * modules/roundf-tests (Files): Likewise.
43635         * modules/roundl-tests (Files): Likewise.
43636         * modules/ldexpl-tests (Files): Likewise.
43637         * modules/signbit-tests (Files): Likewise.
43638         * modules/snprintf-posix-tests (Files): Likewise.
43639         * modules/sprintf-posix-tests (Files): Likewise.
43640         * modules/strtod-tests (Files): Likewise.
43641         * modules/trunc-tests (Files): Likewise.
43642         * modules/truncf-tests (Files): Likewise.
43643         * modules/truncl-tests (Files): Likewise.
43644         * modules/vsnprintf-posix-tests (Files): Likewise.
43645         * modules/vsprintf-posix-tests (Files): Likewise.
43646         * modules/vasnprintf-posix-tests (Files): Likewise.
43647         * modules/vasprintf-posix-tests (Files): Likewise.
43648         * tests/test-ceilf1.c (main): Use it.
43649         * tests/test-ceill.c (main): Likewise.
43650         * tests/test-floorf1.c (main): Likewise.
43651         * tests/test-floorl.c (main): Likewise.
43652         * tests/test-frexp.c (main): Likewise.
43653         * tests/test-frexpl.c (main): Likewise.
43654         * tests/test-isnan.c (main): Likewise.
43655         * tests/test-isnand.h (main): Likewise.
43656         * tests/test-isnanf.h (main): Likewise.
43657         * tests/test-isnanl.h (main): Likewise.
43658         * tests/test-ldexpl.c (main): Likewise.
43659         * tests/test-round.c (main): Likewise.
43660         * tests/test-roundf.c (main): Likewise.
43661         * tests/test-roundl.c (main): Likewise.
43662         * tests/test-signbit.c (test_signbitf, test_signbitd)
43663         (test_signbitl): Likewise.
43664         * tests/test-snprintf-posix.h (test_function): Likewise.
43665         * tests/test-sprintf-posix.h (test_function): Likewise.
43666         * tests/test-strtod.c (main): Likewise.
43667         * tests/test-trunc1.c (main): Likewise.
43668         * tests/test-truncf1.c (main): Likewise.
43669         * tests/test-truncl.c (main): Likewise.
43671         isnanl: work around icc bug
43672         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
43674 2010-11-03  Eric Blake  <eblake@redhat.com>
43676         tests: fix compiler warnings
43677         * tests/test-getopt.h (test_getopt): Fix condition.
43678         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43679         * tests/test-pipe2.c (main): Likewise.
43680         * tests/test-quotearg-simple.c (main): Avoid icc warning.
43682         utimens: fix broken m4 test
43683         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
43685 2010-10-28  Bruno Haible  <bruno@clisp.org>
43687         posix_spawn*, getdtablesize: Relax license.
43688         * modules/posix_spawn (License): Change to LGPLv2+.
43689         * modules/posix_spawnp (License): Likewise.
43690         * modules/posix_spawn-internal (License): Likewise.
43691         * modules/posix_spawnattr_init (License): Likewise.
43692         * modules/posix_spawnattr_getflags (License): Likewise.
43693         * modules/posix_spawnattr_setflags (License): Likewise.
43694         * modules/posix_spawnattr_getpgroup (License): Likewise.
43695         * modules/posix_spawnattr_setpgroup (License): Likewise.
43696         * modules/posix_spawnattr_getschedparam (License): Likewise.
43697         * modules/posix_spawnattr_setschedparam (License): Likewise.
43698         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
43699         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
43700         * modules/posix_spawnattr_getsigdefault (License): Likewise.
43701         * modules/posix_spawnattr_setsigdefault (License): Likewise.
43702         * modules/posix_spawnattr_getsigmask (License): Likewise.
43703         * modules/posix_spawnattr_setsigmask (License): Likewise.
43704         * modules/posix_spawnattr_destroy (License): Likewise.
43705         * modules/posix_spawn_file_actions_init (License): Likewise.
43706         * modules/posix_spawn_file_actions_addclose (License): Likewise.
43707         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
43708         * modules/posix_spawn_file_actions_addopen (License): Likewise.
43709         * modules/posix_spawn_file_actions_destroy (License): Likewise.
43710         * modules/getdtablesize (License): Likewise.
43711         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
43713 2010-10-26  Bruno Haible  <bruno@clisp.org>
43715         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
43716         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
43717         Cygwin and mingw.
43718         Suggested by Eric Blake.
43720 2010-10-26  Bruno Haible  <bruno@clisp.org>
43722         stdio: Work around compilation error due to renameat() on Solaris 10.
43723         * lib/stdio.in.h: Include <unistd.h> on Solaris.
43724         * lib/renameat.c: Don't include <unistd.h> here.
43725         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
43726         Reported by Paul Eggert and Eric Blake.
43728 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
43730         renameat: port to Solaris 10, which declares renameat in unistd.h
43732         * lib/renameat.c: Include unistd.h before stdio.h, because
43733         Solaris 10 declares renameat in unistd.h.  Problem encountered
43734         when building GNU tar 1.24 on Solaris 10.
43736 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43738         fdopendir: fix C89 compilation
43739         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
43740         compilers.
43742 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
43744         inttostr: simplify by removing unnecessary redundancy
43745         * lib/anytostr.c: Don't include verify.h.
43746         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
43747         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
43748         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
43749         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
43750         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
43751         Likewise.
43752         * modules/inttostr (Depends-on): Remove 'verify'.
43754 2010-10-23  Bruno Haible  <bruno@clisp.org>
43756         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
43757         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
43758         Reported by Eric Blake.
43760 2010-10-23  Bruno Haible  <bruno@clisp.org>
43762         Tests: Fix LOCALE_JA on MirBSD 10.
43763         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
43764         to an UTF-8 locale.
43765         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
43766         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43767         Reported by Eric Blake.
43769 2010-10-21  Bruno Haible  <bruno@clisp.org>
43771         nl_langinfo test: Avoid test failure on NetBSD 5.
43772         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
43773         Reported by Eric Blake.
43775 2010-10-21  Eric Blake  <eblake@redhat.com>
43777         c-stack: work around libsigsegv 2.8 bug
43778         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
43779         overflow on at least PowerPC64.
43781 2010-10-17  Bruno Haible  <bruno@clisp.org>
43783         userspec: Drop redundant file.
43784         * modules/userspec (Files): Remove lib/inttostr.h.
43786 2010-10-17  Bruno Haible  <bruno@clisp.org>
43788         nl_langinfo tests: Silence some warnings.
43789         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
43790         Reported by Jim Meyering.
43792 2010-10-17  Bruno Haible  <bruno@clisp.org>
43794         Make use of GCC's attribute __alloc_size__.
43795         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
43796         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
43797         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
43798         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
43799         __alloc_size__.
43800         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43801         Suggested by Jim Meyering.
43803 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
43805         bootstrap: anchor .gitignore entries.
43806         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
43807         with...
43808         (insert_vc_ignore): ... this new function, which prepends `/' to
43809         all .gitignore entries before passing them to
43810         insert_sorted_if_absent.
43812 2010-10-16  Bruno Haible  <bruno@clisp.org>
43814         nextafter: Fix configure check.
43815         * modules/nextafter (configure.ac): Correct expected prototype.
43817 2010-10-16  Bruno Haible  <bruno@clisp.org>
43819         termios: Update documentation.
43820         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
43822 2010-10-16  Bruno Haible  <bruno@clisp.org>
43824         tests: Make them compile with TinyCC.
43825         * tests/test-strstr.c (main): Remove parentheses around array
43826         initializer.
43828 2010-10-15  Eric Blake  <eblake@redhat.com>
43830         ignore-value: make header idempotent
43831         * lib/ignore-value.h: Add double-inclusion guards.
43832         Reported by Stefan Berger.
43834 2010-10-15  Jim Meyering  <meyering@redhat.com>
43836         GNUmakefile: handle "stable" target, not "major"
43837         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
43838         lists in maint.mk and announce-gen.  Without this, "make stable"
43839         would fail to ensure that $(VERSION) is up to date.
43841 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
43843         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
43844         & co.
43846 2010-10-14  Bruno Haible  <bruno@clisp.org>
43848         vasnprintf: Don't set errno to 0.
43849         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
43850         block that sets it to 0.
43851         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
43853 2010-10-14  Bruno Haible  <bruno@clisp.org>
43855         socketlib: Fix.
43856         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
43857         gl_PREREQ_SYS_H_WINSOCK2.
43858         Reported by Ian Beckwith <ianb@erislabs.net>.
43860 2010-10-13  Jim Meyering  <meyering@redhat.com>
43862         test-select-stdin.c: avoid warn_unused_result warnings
43863         * tests/test-select-stdin.c: Include "macros.h".
43864         ASSERT that read and fflush succeed.
43866 2010-10-13  Jim Meyering  <meyering@redhat.com>
43868         git-version-gen: do require git-VC'd files in cwd
43869         * build-aux/git-version-gen: Reject a git version string
43870         if there are no commits associated with the current directory.
43871         This avoids an unlikely false-positive (unrelated dir whose parent
43872         repository also contains a tag matching v*), as pointed out
43873         by Giuseppe Scrivano in
43874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
43876 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
43878         argv-iter: omit nonconforming declaration
43879         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
43880         enum arg_iter_err declaration, which doesn't conform to C99.
43881         Solaris 10 cc warns about this.
43883 2010-10-13  Eric Blake  <eblake@redhat.com>
43885         termios: fix compilation on mingw
43886         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
43887         (gl_TERMIOS_H): Adjust it on mingw.
43888         * modules/termios (Makefile.am): Substitute new key.
43889         * lib/termios.in.h (includes): Make include_next conditional.
43890         * doc/posix-headers/termios.texi (termios.h): Update
43891         documentation.
43892         Reported by Daniel P. Berrange.
43894 2010-10-13  Jim Meyering  <meyering@redhat.com>
43896         git-version-gen: don't require that .git/ be in the current dir
43897         * build-aux/git-version-gen: Adjust this script so that it works
43898         when run from any working directory beneath the top-level .git/-
43899         containing directory.  Inspired by a patch from Giuseppe Scrivano,
43900         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
43902         test-select: avoid warn_unused_result warnings
43903         * tests/test-select.c: Include "macros.h".
43904         ASSERT that each call to read, write, and pipe succeeds.
43905         While not technically required, also check each "close".
43906         * modules/select-tests (Files): Add tests/macros.h.
43908         test-symlinkat: remove declaration of unused local
43909         * tests/test-symlinkat.c (main): Remove unused local, "buf".
43911         test-inttostr: avoid shadowing warnings
43912         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
43913         and use malloc rather than the stack for the same reason as
43914         mentioned in the comment justifying the other allocation.
43916 2010-10-11  Bruno Haible  <bruno@clisp.org>
43918         stdlib: Allow multiple gnulib generated replacements to coexist.
43919         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
43920         Reported by Sam Steingold <sds@gnu.org>.
43922 2010-10-11  Jim Meyering  <meyering@redhat.com>
43924         fix a documentation typo
43925         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
43927 2010-10-11  Eric Blake  <eblake@redhat.com>
43929         futimens: work around Solaris 11 bug
43930         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
43931         * tests/test-futimens.h (test_futimens): Enhance, rather than
43932         weaken test.
43933         * doc/posix-functions/futimens.texi (futimens): Document the bug.
43935 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43937         Indentation.
43938         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
43939         higher-level operators more to the left.
43941 2010-10-11  Jim Meyering  <meyering@redhat.com>
43943         test-futimens: avoid unwarranted test failure on Solaris 5.11
43944         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
43945         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
43946         because it tries to dereference the NULL name argument.
43948 2010-10-11  Bruno Haible  <bruno@clisp.org>
43950         Indentation.
43951         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
43952         indentation.
43954 2010-10-11  Jim Meyering  <meyering@redhat.com>
43956         spawn.in.h: make indentation consistent with parentheses
43957         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
43958         Make indentation consistent with parentheses.
43960 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
43962         Fix mismatched parens in previous commit
43963         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
43964         parens.
43966 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43968         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
43970         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
43971         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
43972         * lib/malloca.c: Include "verify.h".
43973         (verify1): Remove, replacing with a verify call.
43974         * lib/relocwrapper.c (verify1): Likewise.
43975         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
43976         Likewise.
43977         * modules/malloca (Depends-on): Add 'verify'.
43978         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
43979         * modules/vasnprintf (Depends-on): Add 'verify'.
43980         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43981         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43982         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43983         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43984         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43985         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43986         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43988         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
43990         Formerly the style was sometimes 2*X - 1, because the C standard
43991         was wrongly thought to disallow ?: in integral constant expressions.
43992         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
43993         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
43994         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43995         * lib/stdint.in.h (_verify_intmax_size): Likewise.
43996         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
43997         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
43998         verify that time_t cannot be floating.
44000 2010-10-08  Eric Blake  <eblake@redhat.com>
44002         time: enforce recent POSIX ruling that time_t is integral
44003         * lib/time.in.h (__time_t_must_be_integral): Detect any
44004         problematic systems, allowing the rest of gnulib to assume POSIX.
44006 2010-10-08  Jim Meyering  <meyering@redhat.com>
44008         fdopendir: fix a bug on systems lacking openat and /proc support
44009         OpenBSD 4.7 is one such system.  The most noticeable effect was
44010         failure of any application making nontrivial use of fts: rm, du,
44011         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
44012           ./rm: traversal failed: `a': Bad file descriptor
44013         Debugging that, you see that even though FD 6 was closed just
44014         prior to the opendir call in fd_clone_opendir, its resulting
44015         dir->dd_fd was 8, rather than the expected value of 6:
44017         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
44018         93                close (fd);
44019         (gdb) n
44020         94                dir = fd_clone_opendir (dupfd);
44021         (gdb) n
44022         95                saved_errno = errno;
44023         (gdb) p dir->dd_fd
44024         $11 = 8
44026         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
44027         The problem is that on OpenBSD, fd_clone_opendir has to resort
44028         to using the old-style save/restore CWD mechanism, due to its
44029         lack of openat/proc support, and *that* would steal the FD (6)
44030         that opendir was supposed to use.
44032         The fix is to squirrel away the desired FD so that save_cwd uses a
44033         different one, and then free the dest FD right before calling opendir.
44034         That guarantees opendir will use the required file descriptor.
44036         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
44038 2010-10-08  Bruno Haible  <bruno@clisp.org>
44040         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
44041         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
44043 2010-10-08  Bruno Haible  <bruno@clisp.org>
44045         nanosleep: Make replacement POSIX compliant.
44046         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
44047         is out of range.
44048         Reported by Jim Meyering.
44050 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44052         bootstrap: add hook for altering gnulib.mk, for Bison
44053         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
44054         the Bison bootstrapping process can rewrite file names and variables
44055         in this file before later parts of 'bootstrap' use the file.
44056         Bison wants to include lib/gnulib.mk from the top-level makefile,
44057         so it needs the file names in this file to be relative to the top
44058         level, not relative to lib; plus it needs variable names to be
44059         rewritten.
44060         (slurp): Use the new function.
44062         bootstrap: reformat for readability
44063         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
44065 2010-10-08  Eric Blake  <eblake@redhat.com>
44067         docs: update cygwin progress
44068         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
44069         1.7.7.
44070         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
44071         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
44072         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
44073         * doc/posix-functions/carg.texi (carg): Likewise.
44074         * doc/posix-functions/cargf.texi (cargf): Likewise.
44075         * doc/posix-functions/casin.texi (casin): Likewise.
44076         * doc/posix-functions/casinf.texi (casinf): Likewise.
44077         * doc/posix-functions/casinh.texi (casinh): Likewise.
44078         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
44079         * doc/posix-functions/catan.texi (catan): Likewise.
44080         * doc/posix-functions/catanf.texi (catanf): Likewise.
44081         * doc/posix-functions/catanh.texi (catanh): Likewise.
44082         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
44083         * doc/posix-functions/ccos.texi (ccos): Likewise.
44084         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
44085         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
44086         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
44087         * doc/posix-functions/cexp.texi (cexp): Likewise.
44088         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
44089         * doc/posix-functions/cimag.texi (cimag): Likewise.
44090         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
44091         * doc/posix-functions/clog.texi (clog): Likewise.
44092         * doc/posix-functions/clogf.texi (clogf): Likewise.
44093         * doc/posix-functions/conj.texi (conj): Likewise.
44094         * doc/posix-functions/conjf.texi (conjf): Likewise.
44095         * doc/posix-functions/cpow.texi (cpow): Likewise.
44096         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
44097         * doc/posix-functions/cproj.texi (cproj): Likewise.
44098         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
44099         * doc/posix-functions/creal.texi (creal): Likewise.
44100         * doc/posix-functions/crealf.texi (crealf): Likewise.
44101         * doc/posix-functions/csin.texi (csin): Likewise.
44102         * doc/posix-functions/csinf.texi (csinf): Likewise.
44103         * doc/posix-functions/csinh.texi (csinh): Likewise.
44104         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
44105         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
44106         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
44107         * doc/posix-functions/ctan.texi (ctan): Likewise.
44108         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
44109         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
44110         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
44111         * doc/posix-headers/complex.texi (complex.h): Likewise.
44113 2010-10-07  Jim Meyering  <meyering@redhat.com>
44115         parse-datetime: avoid compilation failure on OpenBSD 4.7
44116         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
44117         This works around a compilation failure on OpenBSD 4.7:
44118         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
44120 2010-10-07  Eric Blake  <eblake@redhat.com>
44122         docs: update cygwin progress
44123         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
44124         1.7.6.
44125         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44126         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
44127         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
44128         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
44129         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
44130         Likewise.
44131         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
44132         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
44133         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
44134         Likewise.
44135         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
44136         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
44137         Likewise.
44138         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
44139         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
44140         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
44141         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
44142         Likewise.
44143         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
44144         Likewise.
44145         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
44147         docs: update parse-datetime history
44148         * doc/parse-datetime.texi (Authors of parse_datetime): Better
44149         documentation of this function's history and alternatives.
44151         cygwin: use more robust version check
44152         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
44153         exclude an eventual cygwin 1.9.1.
44154         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44156         (gl_FUNC_STRCASESTR): Likewise.
44157         Reported by Bruno Haible.
44159 2010-10-06  Bruno Haible  <bruno@clisp.org>
44161         string, sys_select: Avoid #including large headers unless necessary.
44162         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
44163         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
44164         OSF/1, BeOS, Haiku.
44165         Reported by Jim Meyering.
44167 2010-10-05  Eric Blake  <eblake@redhat.com>
44169         memmem, strstr, strcasestr: fix bug with long periodic needle
44170         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
44171         periodic needle having false positive.
44172         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
44173         and cygwin 1.7.7.
44174         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
44175         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44176         (gl_FUNC_STRCASESTR): Likewise.
44177         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44178         * tests/test-memmem.c (main): Expose the bug.
44179         * tests/test-strcasestr.c (main): Likewise.
44180         * tests/test-strstr.c (main): Likewise.
44181         * tests/test-c-strcasestr.c (main): Likewise.
44182         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
44183         * doc/posix-functions/strstr.texi (strstr): Likewise.
44184         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44185         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
44187 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44189         parse-datetime: do some more renaming
44190         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
44191         parse_datetime, not get_date.  Mention the renaming.
44192         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
44193         in comments.
44194         * m4/bison.m4: Likewise.
44196 2010-10-05  Eric Blake  <eblake@redhat.com>
44198         parse-datetime: better name than get_date
44199         * NEWS: Reword the deprecation notice.
44200         * modules/get_date: Rename to modules/parse-datetime.
44201         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
44202         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
44203         * lib/get_date.y: Rename to lib/parse-datetime.y.
44204         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
44205         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
44206         * doc/getdate.texi: Provide fallback wrapper.
44207         * lib/getdate.h: Move guts, and wrap...
44208         * lib/parse-datetime.h: ...new file.
44209         * lib/parse-datetime.y (get_date): Rename...
44210         (parse_datetime): ...to this.
44211         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
44212         (gl_PARSE_DATETIME): ...to this.
44213         * doc/posix-functions/getdate.texi (get_date): Provide fallback
44214         documentation.
44215         * modules/getdate (Files): Provide fallback docs and header.
44216         (Notice, Depends-on): Update references.
44217         * tests/test-parse-datetime.c: Likewise.
44218         * DEPENDENCIES: Likewise.
44219         * MODULES.html.sh (Date and time <time.h>): Likewise.
44220         * doc/parse-datetime.texi (Date input formats)
44221         (Authors of parse_datetime): Likewise.
44222         * modules/parse-datetime (Files, configure.ac, Makefile.am)
44223         (Include): Likewise.
44224         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
44225         * gnulib-tool: Likewise.
44226         * m4/bison.m4 (gl_BISON): Likewise.
44227         Suggested by Bruno Haible.
44229 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44231         more ports to Solaris tr, which needs [] around ranges
44232         * gnulib-tool: Solaris tr needs [] around ranges.
44233         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44234         * tests/test-pipe-filter-gi1.c (main): Likewise.
44235         * tests/test-pipe-filter-ii1.c (main): Likewise.
44237 2010-10-05  Eric Blake  <eblake@redhat.com>
44239         bootstrap: fix Solaris regression
44240         * build-aux/bootstrap (check_versions): Solaris tr still needs []
44241         around ranges.
44242         Reported by Pádraig Brady.
44244         bootstrap: work with pkg-config
44245         * build-aux/bootstrap (check_versions): Also transliterate - in
44246         prerequisite name.
44247         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
44248         prerequisites that were already found, to avoid confusion.
44249         Reported by Justin Clift.
44251         faccessat: remove unused wrappers
44252         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
44253         presence of these wrappers dragged in -lgen on Solaris.
44254         Reported by Clemens Brogi; fix suggested by Paul Eggert.
44256 2010-10-05  Jim Meyering  <meyering@redhat.com>
44258         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
44259         * Makefile (sc_pragma_columns): New syntax-check rule.
44261 2010-10-04  Bruno Haible  <bruno@clisp.org>
44263         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
44264         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
44265         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
44266         Reported by Bruce Korb and Eric Blake.
44268 2010-10-04  Bruno Haible  <bruno@clisp.org>
44270         threadlib: Make option --with-libpth-prefix work.
44271         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
44272         use $LIBPTH, not just -lpth.
44274 2010-10-04  Bruno Haible  <bruno@clisp.org>
44276         Avoid line length limitation from HP NonStop system header files.
44277         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
44278         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
44279         * lib/ctype.in.h: Likewise.
44280         * lib/dirent.in.h: Likewise.
44281         * lib/errno.in.h: Likewise.
44282         * lib/fcntl.in.h: Likewise.
44283         * lib/float.in.h: Likewise.
44284         * lib/getopt.in.h: Likewise.
44285         * lib/iconv.in.h: Likewise.
44286         * lib/inttypes.in.h: Likewise.
44287         * lib/langinfo.in.h: Likewise.
44288         * lib/locale.in.h: Likewise.
44289         * lib/math.in.h: Likewise.
44290         * lib/netdb.in.h: Likewise.
44291         * lib/netinet_in.in.h: Likewise.
44292         * lib/poll.in.h: Likewise.
44293         * lib/pthread.in.h: Likewise.
44294         * lib/pty.in.h: Likewise.
44295         * lib/sched.in.h: Likewise.
44296         * lib/se-selinux.in.h: Likewise.
44297         * lib/search.in.h: Likewise.
44298         * lib/signal.in.h: Likewise.
44299         * lib/spawn.in.h: Likewise.
44300         * lib/stdarg.in.h: Likewise.
44301         * lib/stddef.in.h: Likewise.
44302         * lib/stdint.in.h: Likewise.
44303         * lib/stdio.in.h: Likewise.
44304         * lib/stdlib.in.h: Likewise.
44305         * lib/string.in.h: Likewise.
44306         * lib/strings.in.h: Likewise.
44307         * lib/sys_file.in.h: Likewise.
44308         * lib/sys_ioctl.in.h: Likewise.
44309         * lib/sys_select.in.h: Likewise.
44310         * lib/sys_socket.in.h: Likewise.
44311         * lib/sys_stat.in.h: Likewise.
44312         * lib/sys_time.in.h: Likewise.
44313         * lib/sys_times.in.h: Likewise.
44314         * lib/sys_utsname.in.h: Likewise.
44315         * lib/sys_wait.in.h: Likewise.
44316         * lib/sysexits.in.h: Likewise.
44317         * lib/termios.in.h: Likewise.
44318         * lib/time.in.h: Likewise.
44319         * lib/unistd.in.h: Likewise.
44320         * lib/wchar.in.h: Likewise.
44321         * lib/wctype.in.h: Likewise.
44322         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
44323         * modules/ctype (Makefile.am): Likewise.
44324         * modules/dirent (Makefile.am): Likewise.
44325         * modules/errno (Makefile.am): Likewise.
44326         * modules/fcntl-h (Makefile.am): Likewise.
44327         * modules/float (Makefile.am): Likewise.
44328         * modules/getopt-posix (Makefile.am): Likewise.
44329         * modules/iconv-h (Makefile.am): Likewise.
44330         * modules/inttypes (Makefile.am): Likewise.
44331         * modules/langinfo (Makefile.am): Likewise.
44332         * modules/locale (Makefile.am): Likewise.
44333         * modules/math (Makefile.am): Likewise.
44334         * modules/netdb (Makefile.am): Likewise.
44335         * modules/netinet_in (Makefile.am): Likewise.
44336         * modules/poll-h (Makefile.am): Likewise.
44337         * modules/pthread (Makefile.am): Likewise.
44338         * modules/pty (Makefile.am): Likewise.
44339         * modules/sched (Makefile.am): Likewise.
44340         * modules/search (Makefile.am): Likewise.
44341         * modules/selinux-h (Makefile.am): Likewise.
44342         * modules/signal (Makefile.am): Likewise.
44343         * modules/spawn (Makefile.am): Likewise.
44344         * modules/stdarg (Makefile.am): Likewise.
44345         * modules/stddef (Makefile.am): Likewise.
44346         * modules/stdint (Makefile.am): Likewise.
44347         * modules/stdio (Makefile.am): Likewise.
44348         * modules/stdlib (Makefile.am): Likewise.
44349         * modules/string (Makefile.am): Likewise.
44350         * modules/strings (Makefile.am): Likewise.
44351         * modules/sys_file (Makefile.am): Likewise.
44352         * modules/sys_ioctl (Makefile.am): Likewise.
44353         * modules/sys_select (Makefile.am): Likewise.
44354         * modules/sys_socket (Makefile.am): Likewise.
44355         * modules/sys_stat (Makefile.am): Likewise.
44356         * modules/sys_time (Makefile.am): Likewise.
44357         * modules/sys_times (Makefile.am): Likewise.
44358         * modules/sys_utsname (Makefile.am): Likewise.
44359         * modules/sys_wait (Makefile.am): Likewise.
44360         * modules/sysexits (Makefile.am): Likewise.
44361         * modules/termios (Makefile.am): Likewise.
44362         * modules/time (Makefile.am): Likewise.
44363         * modules/unistd (Makefile.am): Likewise.
44364         * modules/wchar (Makefile.am): Likewise.
44365         * modules/wctype (Makefile.am): Likewise.
44367 2010-10-04  Bruno Haible  <bruno@clisp.org>
44369         read-file tests: Avoid a test failure on NonStop Kernel.
44370         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
44371         a regular file.
44372         Reported by Joachim Schmitz <schmitz@hp.com>.
44374 2010-10-03  Bruno Haible  <bruno@clisp.org>
44376         gnulib-tool: Fixes for --create-testdir with --libtool.
44377         * gnulib-tool (func_get_automake_snippet): Don't augment
44378         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
44379         an executable.
44380         (func_create_testdir): Handle module 'alloca' like func_import.
44381         Reported by Bruce Korb <bruce.korb@gmail.com>.
44383 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
44385         Avoid some lines longer than 80 characters.
44386         * lib/stdint.in.h: Break long comment lines.
44387         * lib/math.in.h: Likewise.
44388         (_GL_NUM_UINT_WORDS): New macro, for readability.
44389         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
44390         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
44391         * lib/stdlib.in.h: Likewise.
44392         * lib/spawn.in.h: Likewise.
44393         * lib/sys_socket.in.h: Update an URL.
44394         * lib/sys_stat.in.h: Break long line.
44396 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
44398         Improve pmccabe2html.
44399         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
44400         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
44401         when the sources change. Remove the line in the HTML about "Used
44402         ranges" (which implied that there might be other unused ranges),
44403         rename "Resume" to "Summary" (easier to understand for more users).
44404         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
44405         styles, and some unnecessary blank lines.
44407 2010-10-03  Bruno Haible  <bruno@clisp.org>
44408             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
44410         acl: Add support for ACLs on NonStop Kernel.
44411         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
44412         Check whether the function aclsort() exists.
44413         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
44414         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
44415         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44416         (acl_nontrivial [HAVE_ACLSORT]: New function.
44417         (file_has_acl): Implement for NonStop Kernel.
44418         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44419         (qset_acl): Implement for NonStop Kernel.
44420         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
44421         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44422         (main): Implement for NonStop Kernel.
44423         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
44424         Kernel. Handle this flavor.
44425         * tests/test-set-mode-acl.sh: Likewise.
44426         * tests/test-copy-acl.sh: Likewise.
44427         * tests/test-copy-file.sh: Likewise.
44429 2010-10-03  Bruno Haible  <bruno@clisp.org>
44431         Info about ACLs on NonStop Kernel.
44432         * doc/acl-resources.txt: Add info about NonStop Kernel.
44433         References by Joachim Schmitz <schmitz@hp.com>.
44435 2010-10-02  Bruno Haible  <bruno@clisp.org>
44437         Define missing EDQUOT on NonStop Kernel.
44438         * lib/errno.in.h (EDQUOT): Assign a value if missing.
44439         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
44440         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
44441         missing.
44442         * doc/posix-headers/errno.texi: Mention the NSK bug.
44443         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
44444         Reported by Joachim Schmitz <schmitz@hp.com>.
44446 2010-10-02  Bruno Haible  <bruno@clisp.org>
44448         Update doc for POSIX:2008.
44449         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
44450         Update URL of POSIX specification.
44452 2010-10-02  Bruno Haible  <bruno@clisp.org>
44454         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
44455         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
44456         from gnulib, not from Automake.
44458 2010-10-02  Bruno Haible  <bruno@clisp.org>
44460         New module 'system-posix'.
44461         * modules/system-posix: New file.
44462         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
44463         module is present.
44464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44465         GNULIB_SYSTEM_POSIX.
44466         * modules/stdlib (Depends-on): Remove sys_wait.
44467         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
44468         * doc/posix-functions/system.texi: Mention the new module.
44469         * doc/posix-headers/stdlib.texi: Likewise.
44470         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
44471         define test_sys_wait_macros to a no-op.
44472         Reported by Sam Steingold <sds@gnu.org>.
44474 2010-09-30  Bruno Haible  <bruno@clisp.org>
44476         More renaming from 'getdate' to 'get_date'.
44477         * doc/get_date.texi: Renamed from doc/getdate.texi.
44478         * modules/get_date (Files): Update.
44479         * MODULES.html.sh (Date and time <time.h>): Update.
44480         * DEPENDENCIES: Update.
44481         * gnulib-tool: Update comment.
44482         * m4/bison.m4 (gl_BISON): Likewise.
44483         * m4/get_date.m4 (gl_GET_DATE): Likewise.
44485 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
44487         bootstrap: support ACLOCAL_FLAGS during aclocal
44488         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
44489         can add additional -I dir for third-party .m4 files.
44491 2010-09-30  Eric Blake  <eblake@redhat.com>
44493         bootstrap: use glibtoolize on MacOS
44494         * build-aux/bootstrap (check_versions): Convert libtool into
44495         libtoolize.
44496         (tool search): Move libtool check earlier, and look for
44497         glibtoolize for MacOS.
44498         (gnulib_tool_options): Auto-add --libtool when appropriate.
44499         Reported by Justin Clift.
44501         poll: fix typo that broke test on MacOS
44502         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
44503         Reported by Justin Clift.
44505         getdate: rename to get_date
44506         Note: getdate.h is not renamed, to minimize client impact.
44507         * modules/getdate: Mark obsolete.  Move old contents...
44508         * modules/get_date: ...to new module name.
44509         * modules/getdate-tests: Move...
44510         * modules/get_date-tests: ...here.
44511         * m4/getdate.m4: Move...
44512         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
44513         * lib/getdate.y: Move...
44514         * lib/get_date.y: ...here.
44515         * tests/test-getdate.c: Move...
44516         * tests/test-get_date.c: ...here.
44517         * doc/posix-functions/getdate.texi (getdate): Update name.
44518         * NEWS: Mention the change.
44520 2010-09-29  Bruno Haible  <bruno@clisp.org>
44522         Separate the module 'waitpid' from the module 'sys_wait'.
44523         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
44524         present.
44525         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
44526         gl_MODULE_INDICATOR_FOR_TESTS.
44527         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
44528         * modules/sys_wait (Depends-on): Remove waitpid.
44529         (Makefile.am): Substitute GNULIB_WAITPID.
44530         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
44531         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
44532         signature only if the 'waitpid' module is present.
44533         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
44534         * NEWS: Mention the change.
44535         * modules/grantpt (Depends-on): Add waitpid.
44536         * modules/wait-process (Depends-on): Likewise.
44538 2010-09-29  Bruno Haible  <bruno@clisp.org>
44540         More tests for module 'sys_wait'.
44541         * modules/sys_wait-c++-tests: New file.
44542         * tests/test-sys_wait-c++.cc: New file.
44543         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
44544         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44546 2010-09-29  Bruno Haible  <bruno@clisp.org>
44548         New module 'waitpid'.
44549         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
44550         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
44551         Don't include <process.h>.
44552         (waitpid): Declare only, using modern idiom.
44553         * m4/waitpid.m4: New file.
44554         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
44555         * modules/waitpid: New file.
44556         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
44557         (Makefile.am): Update.
44558         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44560 2010-09-28  Bruno Haible  <bruno@clisp.org>
44562         poll: Assume ANSI C.
44563         * lib/poll.c (poll): Use an ANSI C declaration.
44565 2010-09-28  Bruno Haible  <bruno@clisp.org>
44567         poll-h: Create poll.h on all platforms.
44568         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
44569         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
44570         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
44571         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
44572         (gl_REPLACE_POLL_H): Don't set POLL_H.
44573         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
44574         * modules/poll-h (Depends-on): Add include_next.
44575         (Makefile.am): Create poll.h unconditionally. Substitute also
44576         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
44578 2010-09-28  Bruno Haible  <bruno@clisp.org>
44580         Tests for module 'poll-h'.
44581         * modules/poll-h-c++-tests: New file.
44582         * tests/test-poll-h-c++.cc: New file.
44584         Tests for module 'poll-h'.
44585         * modules/poll-h-tests: New file.
44586         * tests/test-poll-h.c: New file.
44588 2010-09-28  Bruno Haible  <bruno@clisp.org>
44590         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
44591         * modules/poll-h (Depends-on): Add 'extensions'.
44593 2010-09-28  Bruno Haible  <bruno@clisp.org>
44595         New module 'poll-h'.
44596         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
44597         (poll): Use modern idiom.
44598         * modules/poll-h: New file.
44599         * modules/poll (Files): Remove lib/poll.in.h.
44600         (Depends-on): Add poll-h.
44601         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
44602         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
44603         * m4/poll_h.m4: New file.
44604         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
44605         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
44606         and invoke gl_REPLACE_POLL_H.
44607         * lib/poll.c: Use common idiom.
44608         * tests/test-poll.c: Likewise.
44609         * doc/posix-headers/poll.texi: Mention the poll-h module.
44610         Suggested by Eric Blake.
44612 2010-09-26  Bruno Haible  <bruno@clisp.org>
44614         sys_wait: Implement WSTOPSIG.
44615         * lib/sys_wait.in.h (WSTOPSIG): New macro.
44616         Reported by Simon Josefsson.
44618 2010-09-26  Simon Josefsson  <simon@josefsson.org>
44620         stdlib, sys_wait: Avoid compilation error on mingw.
44621         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
44623 2010-09-26  Bruno Haible  <bruno@clisp.org>
44625         stdlib tests: Avoid code duplication.
44626         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
44627         * modules/sys_wait-tests (Files): Likewise.
44628         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
44629         * tests/test-stdlib.c: Include test-sys_wait.h.
44630         (main): Invoke test_sys_wait_macros.
44631         * tests/test-sys_wait.c: Include test-sys_wait.h.
44632         (main): Invoke test_sys_wait_macros.
44634 2010-09-25  Simon Josefsson  <simon@josefsson.org>
44636         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
44637         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
44638         sure Windows sockets are working before calling getaddrinfo.
44639         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
44640         * doc/gnulib.texi (Windows sockets): Fix typo.
44642 2010-09-25  Bruno Haible  <bruno@clisp.org>
44644         Tests for module 'regex-quote'.
44645         * modules/regex-quote-tests: New file.
44646         * tests/test-regex-quote.c: New file.
44648         New module 'regex-quote'.
44649         * lib/regex-quote.h: New file.
44650         * lib/regex-quote.c: New file.
44651         * modules/regex-quote: New file.
44652         Suggested by Reuben Thomas <rrt@sc3d.org>.
44654 2010-09-24  Bruno Haible  <bruno@clisp.org>
44656         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
44657         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
44659 2010-09-23  Bruno Haible  <bruno@clisp.org>
44661         setenv: Relax license.
44662         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
44663         Blake.
44664         Requested by Eric Blake.
44666 2010-09-22  Bruno Haible  <bruno@clisp.org>
44668         termios: Relax license.
44669         * modules/termios (License): Change to LGPLv2+.
44670         Requested by Eric Blake.
44672 2010-09-22  Bruno Haible  <bruno@clisp.org>
44674         threadlib: Allow the package to change the default to 'no'.
44675         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
44676         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
44677         Reported by Paul Eggert.
44679 2010-09-22  Pádraig Brady  <P@draigbrady.com>
44680             Bruno Haible  <bruno@clisp.org>
44682         Fix endless loop in mbmemcasecoll.
44683         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
44684         byte.
44685         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
44687 2010-09-22  Bruno Haible  <bruno@clisp.org>
44689         Tests for module 'memcoll'.
44690         * modules/memcoll-tests: New file.
44691         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
44693         memcoll, xmemcoll: Clarify size vs. length.
44694         * modules/memcoll.c (memcoll0): Clarify specification.
44695         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
44696         passed to collate_error.
44698 2010-09-22  Bruno Haible  <bruno@clisp.org>
44700         Tests for module 'memcasecmp'.
44701         * modules/memcasecmp-tests: New file.
44702         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
44704 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
44706         * lib/pthread.in.h: Add split double-inclusion guard, and include
44707         system <pthread.h> if there is one.  Use @@-style as in other
44708         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
44709         pthread.h doesn't.
44710         (pthread_mutexattr_destroy, pthread_mutexattr_init):
44711         (pthread_mutexattr_settype, pthread_mutex_trylock):
44712         New static inline functions, if there's no system <pthread.h>.
44713         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
44714         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
44715         Approximate with mutexes if the system lacks spinlocks, as in
44716         MacOS.
44717         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
44718         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
44719         @@-style.  Check for spinlocks separately.
44720         (gl_PTHREAD_DEFAULTS): New macro.
44721         * modules/pthread: Redo to use a more typical style for in.h files.
44723 2010-09-21  Eric Blake  <eblake@redhat.com>
44725         net_if: enhance tests
44726         * tests/test-net_if.c (main): Move signature checks earlier.
44727         Print failures to stderr.
44728         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
44729         Document the bug that we do not yet fix.
44731 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44733         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
44734         about gnulib, not GSS.
44736 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44738         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
44739         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
44740         for Emacs.
44741         * build-aux/pmccabe2html: Make Makefile.am example code more
44742         cut-and-paste friendly.
44744 2010-09-21  Simon Josefsson  <simon@josefsson.org>
44746         * tests/test-net_if.c: New file.
44747         * modules/net_if-tests: New file.
44749 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44751         pthread: add pthread_spin_destroy
44752         * lib/pthread.in.h (pthread_spin_destroy): New function.
44754 2010-09-19  Bruno Haible  <bruno@clisp.org>
44756         gnulib-tool: Fix --help output.
44757         * gnulib-tool (func_usage): Fix help message.
44758         Reported by Reuben Thomas <rrt@sc3d.org>.
44760 2010-09-18  Jim Meyering  <meyering@redhat.com>
44762         maint.mk: avoid unexpanded \n in two diagnostics
44763         * top/maint.mk (sc_prohibit_always_true_header_tests):
44764         Don't use a literal \n in a halt=... assignment.  It would not be
44765         expanded, and the two \n bytes would appear in the diagnostic output
44766         rather than the desired newline.  Use halt=$$(printf ... instead.
44767         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
44769 2010-09-18  Bruno Haible  <bruno@clisp.org>
44771         netinet_in: Doc tweak.
44772         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
44773         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44775 2010-09-18  Jim Meyering  <meyering@redhat.com>
44777         init.sh: correct an outdated comment
44778         * tests/init.sh (create_exe_shims_):  s/function/alias/
44780         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
44781         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
44782         a file named "*.exe" is removed between the glob expansion and the
44783         processing of that oddly named file.
44785 2010-09-17  Eric Blake  <eblake@redhat.com>
44787         mirbsd: add some more support
44788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
44789         in BSD family.
44790         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
44791         devices as OpenBSD.
44792         * m4/host-os.m4 (mirbsd): Add MirBSD.
44794         tests: fix unportable assumption on sys/wait.h
44795         * tests/test-sys_wait.c (main): Relax test.
44796         * tests/test-stdlib.c (main): Likewise.
44798         init.sh: accommodate directory with no .exes
44799         * tests/init.sh: Accomodate directory containing only scripts.
44801         tests: avoid compiler warning
44802         * tests/test-stdlib.c (main): Use the variable.
44804         fdutimens, fdutimensat: update signature, again
44805         * lib/utimens.h (gl_futimens): Delete, and move signature...
44806         (fdutimens): ...here.
44807         (fdutimensat): Rearrange signature.
44808         (lutimensat): Rename variable for clarity.
44809         * lib/fdutimensat.c (fdutimensat): Update signature.
44810         * lib/utimens.c (fdutimens): Likewise.
44811         (gl_futimens): Delete.
44812         (utimens, lutimens): Update callers.
44813         * lib/futimens.c (futimens): Likewise.
44814         * tests/test-fdutimensat.c: Likewise.
44815         * tests/test-utimens.c: Likewise.
44816         * tests/test-futimens.h: Update comment.
44817         * NEWS: Mention this.
44818         Suggested by Paul Eggert.
44820 2010-09-17  Bruno Haible  <bruno@clisp.org>
44822         Take over the maintenance of some older macros from Autoconf.
44823         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
44824         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
44825         GNU Autoconf.
44826         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
44827         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
44829 2010-09-17  Eric Blake  <eblake@redhat.com>
44831         fdutimensat: drop atflag validation
44832         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
44833         with valid fd, to close a race scenario where futimens is
44834         unsupported and FILE was replaced by a symlink.
44835         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
44836         accordingly.
44837         Suggested by Paul Eggert.
44839 2010-09-16  Bruno Haible  <bruno@clisp.org>
44841         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
44842         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
44844 2010-09-16  Bruno Haible  <bruno@clisp.org>
44846         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
44847         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
44848         login_tty exists.
44849         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44851 2010-09-16  Bruno Haible  <bruno@clisp.org>
44853         login_tty: Make the replacement code work on BSD systems.
44854         * lib/login_tty.c: Include <sys/ioctl.h>.
44855         (login_tty): Use ioctl TIOCSCTTY when available.
44856         * modules/login_tty (Depends-on): Add sys_ioctl.
44857         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44859 2010-09-16  Bruno Haible  <bruno@clisp.org>
44861         login_tty: Stricter unit test.
44862         * modules/login_tty-tests (Depends-on): Add tcgetsid.
44863         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
44864         and tcgetsid() after login_tty.
44865         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44867 2010-09-16  Bruno Haible  <bruno@clisp.org>
44869         New module 'tcgetsid'.
44870         * lib/tcgetsid.c: New file.
44871         * m4/tcgetsid.m4: New file.
44872         * modules/tcgetsid: New file.
44873         * modules/termios (Depends-on): Add c++defs, warn-on-use.
44874         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
44875         GNULIB_TCGETSID, HAVE_TCGETSID.
44876         * lib/termios.in.h: Include <sys/types.h>.
44877         (tcgetsid): New declaration.
44878         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
44879         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
44880         * doc/posix-functions/tcgetsid.texi: Mention the new module.
44881         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
44883 2010-09-16  Bruno Haible  <bruno@clisp.org>
44885         Tests for module 'termios'.
44886         * modules/termios-c++-tests: New file.
44887         * modules/termios-tests: New file.
44888         * tests/test-termios-c++.cc: New file.
44889         * tests/test-termios.c: New file.
44891         New module 'termios'.
44892         * modules/termios: New file.
44893         * lib/termios.in.h: New file.
44894         * m4/termios_h.m4: New file.
44895         * doc/posix-headers/termios.texi: Mention the new module.
44897 2010-09-16  Eric Blake  <eblake@redhat.com>
44899         fdutimensat: add an atflag parameter
44900         * lib/fdutimensat.c (fdutimensat): Add new parameter.
44901         * lib/utimens.h (fdutimensat): Update prototype.
44902         * tests/test-fdutimensat.c: Adjust test to match.
44903         * NEWS: Document the change.
44904         Suggested by Paul Eggert.
44906 2010-09-16  Bruno Haible  <bruno@clisp.org>
44908         Fix typos in comments.
44909         * lib/striconveh.h: Fix typo in comment.
44910         * lib/login_tty.c (login_tty): Likewise.
44912 2010-09-15  Bruno Haible  <bruno@clisp.org>
44914         stdlib: clarify MirBSD WEXITSTATUS bug
44915         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
44916         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44918 2010-09-15  Eric Blake  <eblake@redhat.com>
44920         stdlib: work around MirBSD WEXITSTATUS bug
44921         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
44922         * modules/stdlib (Depends-on): Add sys_wait.
44923         * tests/test-sys_wait.c (main): Enhance test.
44924         * tests/test-stdlib.c (main): Likewise.
44925         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
44927         docs: mention MacOS issue with WEXITSTATUS(constant)
44928         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
44929         issue.
44930         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44932         strnlen: add tests
44933         * modules/strnlen-tests: New file.
44934         * tests/test-strnlen.c: Likewise.
44936 2010-09-14  Bruno Haible  <bruno@clisp.org>
44938         unistr/base: Avoid link errors when module 'libunistring' is also used.
44939         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
44940         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
44941         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
44942         Declare also when HAVE_LIBUNISTRING is set.
44943         Reported by Pádraig Brady <P@draigbrady.com>.
44945 2010-09-14  Eric Blake  <eblake@redhat.com>
44947         test-rawmemchr: make more robust
44948         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
44949         (Depends-on, configure.ac): Add needed prerequisites to use it.
44950         * modules/memchr-tests (Files, Depends-on, configure.ac):
44951         Likewise, to avoid implicit reliance on memchr module prereqs.
44952         * tests/test-memchr.c (main): Ensure proper masking.
44953         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
44954         reads.
44956         memchr: detect glibc Alpha bug
44957         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
44958         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
44959         Alpha.
44960         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
44961         * tests/test-memchr.c (main): Enhance test.
44962         Reported by Nelson H. F. Beebe.
44964 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44966         fts, getcwd, glob: audit for dirfd returning -1
44967         * lib/fts.c (opendir): Remove #define; no longer used.
44968         (opendirat): New arg PDIR_FD.  All callers changed.
44969         (fts_build, _opendir2): Use new opendirat to avoid the need for
44970         dirfd, or for checking whether dirfd returns a negative value.
44971         Don't use opendir; always use openat followed by fdopendir.
44972         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
44973         it.
44974         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
44975         returns -1 here.
44976         * modules/fts (Depends-on): Remove dirfd.
44977         * modules/getcwd (Depends-on): Likewise.
44979 2010-09-13  Eric Blake  <eblake@redhat.com>
44981         float: fix broken MirBSD header
44982         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
44983         * doc/posix-headers/float.texi (float.h): Document it.
44985 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44987         fts: use O_NOFOLLOW to avoid race condition when opening a directory
44988         * lib/fts.c (opendirat): New arg extra_flags.
44989         (__opendir2): Use it to avoid following symlinks when opening
44990         a directory, if symlinks are not supposed to be followed.  See
44991         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
44993         fdopendir: preserve argument fd before returning
44994         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
44995         (fdopendir_with_dup, fd_clone_opendir): New static functions.
44996         (fdopendir): Use them, arranging for FD to be open to the same
44997         directory that it was when it started.  (It might be temporarily
44998         closed while fdopendir is running, so this not thread- or
44999         signal-safe.)  Be careful to do the right thing even when file
45000         descriptors are scarce and dup fails with errno == EMFILE.  See
45001         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
45003 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
45005         regex: Pass the system regex if its only problem is 32-bit regoff_t.
45006         * NEWS: Document change.
45007         * m4/regex.m4: Disable test for regoff_t size.
45009 2010-09-13  Jim Meyering  <meyering@redhat.com>
45011         fts: don't operate on an invalid file descriptor after failed dup
45012         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
45013         negative file descriptor.
45015 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
45017         savedir: add streamsavedir, deprecate fdsavedir
45018         * NEWS: Mention deprecation of fdsavedir.
45019         * lib/savedir.c (streamsavedir): New extern function, whose name
45020         ends in "savedir" to be consistent with the others.  This differs
45021         from savedirstream in that it doesn't close its argument.  The
45022         next version of GNU tar will use this instead of fdsavedir, to
45023         avoid some race conditions and conserve file descriptors.
45024         (savedirstream): Reimplement as a wrapper around streamsavedir.
45025         (fdsavedir): Add a comment deprecating this function.  As far as
45026         I know, only GNU tar used it, and GNU tar doesn't need it any more.
45027         * lib/savedir.h (streamsavedir): New decl.
45028         (fdsavedir): Add a comment deprecating this.
45030 2010-09-10  Bruno Haible  <bruno@clisp.org>
45032         langinfo: Fix last commit.
45033         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
45034         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
45035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45037 2010-09-10  Bruno Haible  <bruno@clisp.org>
45039         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
45040         * lib/progreloc.c (O_EXEC): Define fallback.
45042 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
45044         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
45045         * NEWS: Document recent changes to fcntl-h.
45046         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
45047         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
45048         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
45049         Similarly for O_SEARCH; this last was already true, but not documented.
45050         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
45051         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
45052         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
45053         Likewise.
45054         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
45055         is zero, not whether it is defined.
45056         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
45057         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
45058         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
45060 2010-09-10  Bruno Haible  <bruno@clisp.org>
45062         langinfo, nl_langinfo: Fix for IRIX 5.3.
45063         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
45064         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
45065         HAVE_LANGINFO_YESEXPR.
45066         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
45067         HAVE_LANGINFO_YESEXPR.
45068         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
45069         HAVE_LANGINFO_T_FMT_AMPM is 0.
45070         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
45071         HAVE_LANGINFO_YESEXPR is 0.
45072         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
45073         NOEXPR.
45074         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
45075         * doc/posix-functions/nl_langinfo.texi: Likewise.
45076         Reported by Eric Blake.
45078 2010-09-10  Bruno Haible  <bruno@clisp.org>
45080         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
45081         * doc/glibc-functions/login_tty.texi: Mention the include file problem
45082         on FreeBSD 8.0 and OpenBSD 4.6.
45083         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
45084         * m4/pty_h.m4 (gl_PTY_H): Likewise.
45085         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
45086         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
45087         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
45088         ac_includes_default.
45089         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45091 2010-09-09  Eric Blake  <eblake@redhat.com>
45093         strsignal: work around NetBSD bug
45094         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
45095         * lib/string.in.h (includes): Likewise.
45096         * doc/posix-functions/strsignal.texi (strsignal): Document the
45097         bug.
45098         Reported by Nelson H. F. Beebe.
45100         gnulib-tool: work with NetBSD /bin/sh
45101         * gnulib-tool (func_cache_var, func_cache_lookup_module)
45102         (func_get_description, func_get_comment, func_get_status)
45103         (func_get_notice, func_get_applicability, func_get_filelist)
45104         (func_get_dependencies, func_get_autoconf_early_snippet)
45105         (func_get_autoconf_snippet, func_get_automake_snippet)
45106         (func_get_include_directive, func_get_link_directive)
45107         (func_get_license, func_get_maintainer, func_import): Avoid
45108         shell syntax errors from parsing syntax extensions.
45110 2010-09-09  Bruno Haible  <bruno@clisp.org>
45112         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45113         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
45114         a reliable way to determine whether the 'alias' command works.
45116 2010-09-08  Jim Meyering  <meyering@redhat.com>
45118         init.sh: penalize a set-x-impaired shell; don't disqualify it
45119         * tests/init.sh: Too many shells corrupt application stderr when
45120         you set -x, so we can't afford to disqualify them, since at least
45121         on Irix-6.5, that would disqualify all bourne shells.
45122         Instead, use a two-pass approach.
45123         On the first pass, try to find a shell that meets the stricter
45124         condition that set -x does not corrupt stderr.
45125         If no shell meets the stricter condition, retest each candidate
45126         shell, but without that extra condition.  Finally, when
45127         VERBOSE=yes is requested and set -x might cause trouble, simply
45128         issue a warning and refrain from enabling debug output.
45130 2010-09-08  Eric Blake  <eblake@redhat.com>
45132         unsetenv: fix OpenBSD bug
45133         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
45134         * doc/posix-functions/unsetenv.texi (unsetenv): Update
45135         documentation.
45136         Reported by Jim Meyering.
45138         strtod: work around IRIX 6.5 bug
45139         * lib/strtod.c (strtod): Reparse number on shorter string if
45140         exponent parse was invalid.
45141         * tests/test-strtod.c (main): Add check for "0x1p 2".
45142         Reported by Tom G. Christensen.
45144         getopt: optimize previous patch
45145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
45146         empty variable.  Speed up awk script.
45147         Reported by Paolo Bonzini.
45149 2010-09-08  Jim Meyering  <meyering@redhat.com>
45151         test.sh: disqualify shells for which set -x corrupts stderr
45152         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
45153         and OpenBSD 4.7.  They make it so with "set -x", environment settings
45154         appear in stderr output.  For example, this command:
45155             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
45156         prints "P=1" on those two systems:
45158 2010-09-08  Bruno Haible  <bruno@clisp.org>
45160         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45161         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
45162         commands, because some shells ignore redirections when there is an
45163         error in the command lookup.
45164         Reported by Eric Blake.
45166 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
45168         * lib/regex.h: Fix a mention of `regex_compile' (should be
45169         `re_compile_pattern').
45170         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
45171         (re_set_registers): Correct name of parameter in comment.
45173         * doc/regex.texi: Add documentation for missing syntax flags.
45174         Remove commented-out documentation of defunct syntax option
45175         RE_NO_EMPTY_ALTS.
45176         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
45177         Add documentation of re_set_registers.
45178         Document trick to re-use a pattern buffer by setting fastmap manually.
45179         Update documentation of struct re_pattern_buffer per public members.
45180         Uncomment documentation of equivalence class operators and
45181         collating symbol operators, since they are now implemented,
45182         Explain leftmost-longest matching in relation to alternatives.
45183         Tidy documentation of substring matching.
45184         Remove POSIX documentation, which is done better in
45185         glibc, and refer the reader there. Keep BSD API documentation, as
45186         that is not readily available elsewhere.
45188 2010-09-07  Eric Blake  <eblake@redhat.com>
45190         getopt: handle POSIXLY_CORRECT set but not exported
45191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
45192         export state of POSIXLY_CORRECT, due to bash set -o posix.
45193         Reported by Dustin J. Mitchell.
45195 2010-09-05  Bruno Haible  <bruno@clisp.org>
45197         gnulib-tool: Highlight the changed options.
45198         * gnulib-tool (func_usage): Display the --import, --add-import,
45199         --remove-import explanations in bold font.
45201 2010-09-06  Karl Berry  <karl@gnu.org>
45203         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
45205 2010-09-05  Bruno Haible  <bruno@clisp.org>
45207         uniwidth/width: Update comment.
45208         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
45209         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
45211 2010-09-05  Bruno Haible  <bruno@clisp.org>
45213         isinf, isnan: Relax license.
45214         * modules/isinf (License): Change from GPL to LGPL, with consent from
45215         Ben Pfaff.
45216         * modules/isnan (License): Likewise.
45217         Requested by Ludovic Courtès.
45219 2010-09-04  Bruno Haible  <bruno@clisp.org>
45221         gnulib-tool: Help migration from --import to --add-import or --update.
45222         * gnulib-tool: Emit a verbose error message when --import is used
45223         without any module name.
45225 2010-09-04  Bruno Haible  <bruno@clisp.org>
45227         Update doc about gnulib-tool.
45228         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
45229         'gnulib-tool --update' in more detail.
45230         Reported by Eric Blake.
45232 2010-09-04  Bruno Haible  <bruno@clisp.org>
45234         gnulib-tool: Change --import. New options --add/remove-import.
45235         * gnulib-tool: New options --add-import, --remove-import.
45236         (func_usage): Document them.
45237         (have_associative): Define always.
45238         (func_import): In import mode, don't merge the specified settings with
45239         the cached settings. Implement remove-import mode.
45240         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
45241         Explain when to use them versus --import.
45242         (Simple update): Use --add-import instead of --import.
45243         * NEWS: Mention the change.
45245 2010-09-04  Bruno Haible  <bruno@clisp.org>
45247         * doc/gnulib-tool.texi (Initial import): Update paragraph about
45248         separate gnulib.mk.
45250 2010-09-04  Bruno Haible  <bruno@clisp.org>
45252         gnulib-tool: Don't talk about CVS any more.
45253         * gnulib-tool (func_usage, func_import): Write "version control"
45254         instead of CVS.
45256 2010-09-04  Jim Meyering  <meyering@redhat.com>
45258         maint.mk: avoid obscure sc_copyright_check failure in coreutils
45259         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
45260         false positives (whose names may be ill-chosen) when searching
45261         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
45262         would cause a false-positive.
45264         avoid coreutils "make distcheck" failure
45265         Coreutils tests with an absolute build directory name that contains
45266         a space.  Not quoting this directory name caused a failure.
45267         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
45268         * tests/test-vc-list-files-cvs.sh: Likewise.
45270 2010-09-04  Bruno Haible  <bruno@clisp.org>
45272         gnulib-tool: Avoid error when run in a package without Makefile.am.
45273         * gnulib-tool: When collecting the m4dirs in a package that does not
45274         have a Makefile.am, eliminate those directories that contain no
45275         gnulib-cache.m4. Fix expression that counts these directories.
45277 2010-09-04  Bruno Haible  <bruno@clisp.org>
45279         update-copyright test: Improve output when perl is missing or too old.
45280         * tests/test-update-copyright.sh: Move test of Perl version down after
45281         the test whether Perl exists. Provide an explanation relating Perl's
45282         error message to Automake's SKIP: message.
45284 2010-09-04  Bruno Haible  <bruno@clisp.org>
45286         Don't augment PATH in TESTS_ENVIRONMENT.
45287         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
45288         set abs_aux_dir instead of augmenting PATH.
45289         * modules/vc-list-files-tests (Makefile.am): Likewise.
45290         * tests/test-update-copyright.sh: Augment PATH here.
45291         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
45292         path_prepend_.
45293         * tests/test-vc-list-files-git.sh: Likewise.
45295 2010-09-04  Jim Meyering  <meyering@redhat.com>
45297         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
45298         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
45300 2010-09-04  Bruno Haible  <bruno@clisp.org>
45302         strdup: Fix compilation error in C++ mode.
45303         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
45304         the macro.
45306 2010-09-04  Bruno Haible  <bruno@clisp.org>
45308         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
45309         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
45310         macro into a function.
45311         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45313 2010-09-04  Bruno Haible  <bruno@clisp.org>
45315         Set PATH_SEPARATOR the same way autoconf does.
45316         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
45317         the value of PATH_SEPARATOR the same way autoconf-generated configure
45318         scripts do.
45319         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
45320         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45322 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45324         Set PATH_SEPARATOR the same way autoconf does.
45325         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
45326         the same way autoconf-generated configure scripts do.
45327         * posix-modules: Likewise.
45329 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
45331         hash: fix safe_hasher const typo
45332         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
45333         const; otherwise, there is a type error later.
45335 2010-09-02  Jim Meyering  <meyering@redhat.com>
45337         test-update-copyright.sh: require perl 5.8.0
45338         * tests/test-update-copyright.sh: Require 5.8.0,
45339         which Tom G. Christensen has confirmed is adequate,
45340         while 5.6.1 is not.
45342 2010-09-02  Eric Blake  <eblake@redhat.com>
45344         tests: init.sh improvements for re-exec'ing with zsh
45345         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
45346         -vx through shell re-exec.
45347         Reported by Tom G. Christensen.
45349         wctype: fix typo in previous commit
45350         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
45351         Reported by Ludovic Courtès.
45353 2010-09-02  Jim Meyering  <meyering@redhat.com>
45355         test-update-copyright.sh: skip test if Perl is too old
45356         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
45357         Reported by Tom G. Christensen.
45359 2010-09-02  Bruno Haible  <bruno@clisp.org>
45361         wctype: Avoid compilation error on IRIX 6.5.30.
45362         * lib/wctype.in.h (iswblank): Declare with a replacement if
45363         REPLACE_ISWBLANK is set.
45364         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
45365         declared. Set REPLACE_ISWBLANK.
45366         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
45367         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
45368         * doc/posix-headers/wctype.texi: Likewise.
45369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45371 2010-09-01  Bruno Haible  <bruno@clisp.org>
45373         New module 'socketlib'.
45374         * modules/socketlib: New file.
45375         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
45376         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
45377         * modules/sockets (Depends-on): Add socketlib.
45378         Suggested by Sam Steingold <sds@gnu.org>.
45380 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45382         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
45384         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
45385         when one needs search access to a directory but not read access.
45386         On systems where it is available, it works in some cases where
45387         O_RDONLY does not, namely on directories that are searchable but
45388         not readable, and which need only to be searchable.  If O_SEARCH
45389         is not available, fall back to the traditional method of using
45390         O_RDONLY.
45392         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
45393         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
45394         when opening a directory that needs only to be searchable.
45395         * lib/chdir-safer.c (chdir_no_follow): Likewise.
45396         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
45397         * lib/openat-proc.c (openat_proc_name): Likewise.
45398         * lib/openat.c (openat_needs_fchdir): Likewise.
45399         * lib/save-cwd.c (save_cwd): Likewise.
45400         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
45402 2010-08-28  Bruno Haible  <bruno@clisp.org>
45404         New module 'host-cpu-c-abi'.
45405         * modules/host-cpu-c-abi: New file.
45406         * m4/host-cpu-c-abi.m4: New file, based on part of
45407         clisp/src/m4/general.m4.
45408         Requested by Sam Steingold <sds@gnu.org>.
45410 2010-08-31  Eric Blake  <eblake@redhat.com>
45411         and Jim Meyering  <meyering@redhat.com>
45413         hash: factor, and guard against misbehaving hasher function
45414         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
45415         of table->hasher's return value.  Also protect against a hash value
45416         so large that adding it to table->bucket results in a NULL pointer.
45417         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
45418         Use it in place of open-coded check-and-abort.
45420 2010-08-30  Bruno Haible  <bruno@clisp.org>
45422         hash: silence spurious clang warning
45423         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
45424         Reported by Eric Blake.
45426 2010-08-30  Eric Blake  <eblake@redhat.com>
45428         strstr, memmem, strcasestr: avoid leaked shell message
45429         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
45430         FreeBSD.
45431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45434         tests: silence clang warning
45435         * tests/test-malloca.c (do_allocation): Avoid dead store.
45437 2010-08-29  Bruno Haible  <bruno@clisp.org>
45439         gettext: Fix recent mistake.
45440         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
45442 2010-08-29  Bruno Haible  <bruno@clisp.org>
45444         selinux-h: Offer a --without-selinux option.
45445         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
45446         --without-selinux was specified, skip all tests and define
45447         HAVE_SELINUX_SELINUX_H to 0.
45448         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
45449         set LIB_SELINUX to empty.
45450         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
45451         gl_LIBSELINUX. If --without-selinux was specified, replace
45452         selinux/context.h.
45453         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
45455 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45456             Bruno Haible  <bruno@clisp.org>
45458         Make the module 'realloc-gnu' work again on AIX and OSF/1.
45459         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
45460         of HAVE_REALLOC.
45461         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
45462         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
45463         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
45464         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
45466 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45467             Bruno Haible  <bruno@clisp.org>
45469         Make the module 'calloc-gnu' work again on AIX and OSF/1.
45470         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
45471         HAVE_CALLOC.
45472         * lib/xmalloc.c: Update accordingly.
45473         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
45474         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
45475         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
45477 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45478             Bruno Haible  <bruno@clisp.org>
45480         Make the module 'malloc-gnu' work again on AIX and OSF/1.
45481         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
45482         HAVE_MALLOC.
45483         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
45484         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
45485         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
45487 2010-08-29  Bruno Haible  <bruno@clisp.org>
45489         Update modules list.
45490         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45491         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
45492         (String handling <string.h>): Add astrxfrm.
45493         (File system functions): Add readlinkat.
45495 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45497         Tests for module 'realloc-gnu'.
45498         * modules/realloc-gnu-tests: New file.
45499         * tests/test-realloc-gnu.c: New file.
45501         Tests for module 'calloc-gnu'.
45502         * modules/calloc-gnu-tests: New file.
45503         * tests/test-calloc-gnu.c: New file.
45505         Tests for module 'malloc-gnu'.
45506         * modules/malloc-gnu-tests: New file.
45507         * tests/test-malloc-gnu.c: New file.
45509 2010-08-28  Bruno Haible  <bruno@clisp.org>
45511         Rename module 'realloc' -> 'realloc-gnu'.
45512         * modules/realloc-gnu: New file, copied from modules/realloc.
45513         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
45514         obsolete.
45515         * modules/mgetgroups (Depends-on): Update.
45516         * doc/posix-functions/realloc.texi: Update.
45517         * NEWS: Mention the change.
45519         Rename module 'calloc' -> 'calloc-gnu'.
45520         * modules/calloc-gnu: New file, copied from modules/calloc.
45521         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
45522         obsolete.
45523         * doc/posix-functions/calloc.texi: Update.
45524         * NEWS: Mention the change.
45526         Rename module 'malloc' -> 'malloc-gnu'.
45527         * modules/malloc-gnu: New file, copied from modules/malloc.
45528         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
45529         obsolete.
45530         * modules/argp (Depends-on): Update.
45531         * modules/regex (Depends-on): Update.
45532         * doc/posix-functions/malloc.texi: Update.
45533         * NEWS: Mention the change.
45535 2010-08-28  Eric Blake  <eblake@redhat.com>
45537         pread, pwrite: add missing dependency
45538         * modules/pread (Depends-on): Add extensions.
45539         * modules/pwrite (Depends-on): Likewise.
45541 2010-08-28  Bruno Haible  <bruno@clisp.org>
45543         unistr/u*-strchr: Fix tests dependencies.
45544         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
45545         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
45546         Reported by Ian Beckwith <ianb@erislabs.net>.
45548 2010-08-28  Bruno Haible  <bruno@clisp.org>
45550         read-file: Don't occupy too much unused memory.
45551         * lib/read-file.c (fread_file): Shrink the buffer at the end.
45553 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
45554             Eric Blake  <eblake@redhat.com>
45555             Bruno Haible  <bruno@clisp.org>
45557         read-file: Avoid memory reallocations with regular files.
45558         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
45559         (fread_file): With regular files, use the remaining length as the
45560         initial buffer size.  Check against overflow.
45561         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
45562         sys_stat.
45564 2010-08-28  Bruno Haible  <bruno@clisp.org>
45566         ftello: Relax license.
45567         * modules/ftello (License): Relax to LGPLv2+.
45568         Reported by Eric Blake.
45570 2010-08-28  Bruno Haible  <bruno@clisp.org>
45572         Avoid relocwrapper link errors due to gnulib replacement functions.
45573         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
45574         function.
45575         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45577 2010-08-28  Bruno Haible  <bruno@clisp.org>
45579         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
45580         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
45581         defined.
45582         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
45583         Suggested by Eric Blake.
45585 2010-08-28  Bruno Haible  <bruno@clisp.org>
45587         sys_socket, netdb: Ensure socklen_t gets defined.
45588         * modules/sys_socket (Depends-on): Add socklen.
45589         * modules/netdb (Depends-on): Likewise.
45590         * modules/getaddrinfo (Depends-on): Remove socklen.
45591         * modules/getsockopt (Depends-on): Likewise.
45592         * modules/setsockopt (Depends-on): Likewise.
45593         * tests/test-sys_socket.c: Check that socklen_t is defined.
45594         * tests/test-netdb.c: Likewise.
45595         * m4/socklen.m4: Update comments.
45596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45598 2010-08-27  Eric Blake  <eblake@redhat.com>
45600         login_tty: add missing dependency
45601         * modules/login_tty (Depends-on): Add pty.
45603 2010-08-26  Eric Blake  <eblake@redhat.com>
45605         lib-symbol-versions: fix m4 quoting
45606         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
45607         format for AC_LINK_IFELSE.
45609         glob: fix compile test
45610         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
45612         btowc: fix missing file
45613         * modules/btowc (Files): Also ship locale-fr.m4.
45615         lseek: fix link test
45616         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
45617         AC_LINK_IFELSE.
45619         include_next: silence autoconf 2.68 warning
45620         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
45621         AC_COMPILE_IFELSE as special.
45622         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
45623         autoconf < 2.68.
45625         acl: fix compilation test
45626         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
45627         AC_COMPILE_IFELSE.
45629 2010-08-26  Bruno Haible  <bruno@clisp.org>
45631         Modernize AC_TRY_RUN invocations.
45632         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
45633         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45634         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
45635         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
45636         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
45637         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
45638         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
45639         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45640         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45641         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45642         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
45643         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45644         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
45645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
45647         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45648         gl_MBRLEN_NUL_RETVAL): Likewise.
45649         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45650         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45651         Likewise.
45652         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45653         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45654         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
45655         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
45656         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
45657         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
45658         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
45659         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45660         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
45661         Likewise.
45662         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45663         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
45664         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45665         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45666         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45667         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
45668         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45669         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
45670         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45673 2010-08-26  Bruno Haible  <bruno@clisp.org>
45675         Modernize AC_TRY_LINK invocations.
45676         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
45677         AC_TRY_LINK.
45678         * m4/argp.m4 (gl_ARGP): Likewise.
45679         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45680         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45681         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45682         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45683         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45684         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
45685         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45686         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45687         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45688         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45689         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45690         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
45691         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
45692         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45693         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45694         * m4/hostent.m4 (gl_HOSTENT): Likewise.
45695         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45696         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
45697         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45698         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
45699         Likewise.
45700         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
45701         Likewise.
45702         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
45703         Likewise.
45704         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
45706         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
45707         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45708         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45709         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
45710         * m4/servent.m4 (gl_SERVENT): Likewise.
45711         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45712         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45713         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45714         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45715         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45716         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45717         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45718         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45719         * modules/tsearch-tests (configure.ac): Likewise.
45721 2010-08-26  Bruno Haible  <bruno@clisp.org>
45723         Modernize AC_TRY_COMPILE invocations.
45724         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
45725         AC_TRY_COMPILE.
45726         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
45727         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
45728         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45729         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45730         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45731         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45732         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45733         * m4/lock.m4 (gl_LOCK): Likewise.
45734         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
45735         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45736         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
45737         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
45738         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45739         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
45740         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45741         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
45742         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45743         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45744         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45745         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45746         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
45747         extraneous semicolon.
45749 2010-08-26  Jim Meyering  <meyering@redhat.com>
45751         stat-time: relax license LGPL
45752         * modules/stat-time (License): Change from GPL to LGPL,
45753         with consent from all contributors, for use in libguile.
45754         Requested by Ludovic Courtès.
45756 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
45758         poll: return immediately on POLLHUP.
45759         * lib/poll.c (poll): Always set timeout before wait_timeout is
45760         computed.
45762 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45764         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
45765         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
45766         rmdir ("dir/.//"), unlinkat.
45768 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45770         stdbool: avoid spurious failure with modern xlc
45771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45773 2010-08-24  Bruno Haible  <bruno@clisp.org>
45775         getloadavg: simplify code
45776         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
45777         gl_have_func. Update comments.
45779 2010-08-24  Eric Blake  <eblake@redhat.com>
45781         getloadavg: don't define SVR4 on cygwin
45782         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
45783         only define SVR4 when -lkvm is required.
45784         Reported by Yaakov Selkowitz.
45786 2010-08-24  Bruno Haible  <bruno@clisp.org>
45788         priv-set: fix comment
45789         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
45791 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45793         priv-set: fix comments
45794         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
45795         to match code, as suggested by David Bartley in:
45796         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
45798 2010-08-23  Eric Blake  <eblake@redhat.com>
45800         stdbool: avoid rejecting clang
45801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45802         * tests/test-stdbool.c: Enable more tests if using the system
45803         <stdbool.h> instead of the gnulib replacement.
45804         (main): Move xlc bug test to a runtime test for all compilers.
45805         Reported by Anders Kaseorg.
45807         argz: fix shell quoting issue
45808         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
45809         Reported by Charles Wilson.
45811 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
45812             Erik Faye-Lund <kusmabite@gmail.com>
45814         poll, select: handle ERROR_BROKEN_PIPE.
45815         * lib/poll.c (win32_compute_revents): Return POLLHUP when
45816         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
45817         * lib/select.c (win32_compute_revents): Do not mark a pipe
45818         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
45820 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
45822         fts: allow compilation with C++
45823         * lib/fts_.h: Specify extern "C" linkage with C++.
45825 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45827         Fix gnulib-tool sed script de-commentation for AIX sed.
45828         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
45829         sed.
45831 2010-08-17  Eric Blake  <eblake@redhat.com>
45833         test-stddef: test for (some) offsetof bugs
45834         * tests/test-stddef.c: Enhance test to ensure correct type of
45835         offsetof.
45836         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
45837         that we are not fixing at this time.
45839 2010-08-15  Bruno Haible  <bruno@clisp.org>
45841         stpncpy: Allow stpncpy to be defined as a macro.
45842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
45843         if it's already correctly declared.
45844         * lib/string.in.h (stpncpy): Undefine before redefining.
45845         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
45847 2010-08-14  Bruno Haible  <bruno@clisp.org>
45849         Rename module 'memxfrm' to 'amemxfrm'.
45850         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
45851         (amemxfrm): Renamed from memxfrm.
45852         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
45853         (amemxfrm): Renamed from memxfrm.
45854         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
45855         * NEWS: Mention the change.
45856         * MODULES.html.sh (String handling <string.h>): Update.
45857         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
45858         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
45859         * lib/unicase/u16-casexfrm.c: Likewise.
45860         * lib/unicase/u32-casexfrm.c: Likewise.
45861         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
45862         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
45863         * lib/uninorm/u16-normxfrm.c: Likewise.
45864         * lib/uninorm/u32-normxfrm.c: Likewise.
45865         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
45866         memxfrm.
45867         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
45868         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
45869         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
45870         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
45871         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
45872         Suggested by Paul Eggert.
45874 2010-08-14  Bruno Haible  <bruno@clisp.org>
45876         Tests for module 'astrxfrm'.
45877         * modules/astrxfrm-tests: New file.
45878         * tests/test-astrxfrm.c: New file.
45880         New module 'astrxfrm'.
45881         * lib/astrxfrm.h: New file.
45882         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
45883         * modules/astrxfrm: New file.
45885 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
45887         regex: Tweak doc.
45888         * doc/regex.texi (Overview): Don't mention regex.c.
45889         (GNU Regular Expression Compiling): Likewise.
45890         (Match-end-of-line Operator): Mention 'not_eol'.
45892 2010-08-14  Brian Gough  <bjg@gnu.org>
45893             Bruno Haible  <bruno@clisp.org>
45895         git-merge-changelog: add doc relating to use with bzr and hg.
45896         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
45898 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
45900         pthread: fix pthread.h creation for srcdir != builddir
45901         * modules/pthread (Makefile.am): Fix the rule to work also in a
45902         non-srcdir build.
45904 2010-08-13  Karl Berry  <karl@gnu.org>
45906         * doc/regex.texi (Predefined Syntaxes): @smallexample.
45907         * doc/posix-*/*: force line break before @url of POSIX
45908         specifications.
45909         Suggested by Werner Lemberg.
45911 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45913         strtod: fix const diagnostic
45914         * lib/strtod.c (strtod): Don't assign const char * to char *,
45915         as this elicits a warning from GCC when warnings are enabled.
45917 2010-08-10  Pádraig Brady  <P@draigbrady.com>
45918         and Eric Blake  <eblake@redhat.com>
45920         copy-acl: ignore ENOTSUP on HP-UX
45921         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
45922         so that it is available for HP-UX.
45923         * lib/copy-acl.c (qcopy_acl): Use it.
45924         Reported by Patrick M. Callahan.
45926 2010-08-10  Eric Blake  <eblake@redhat.com>
45928         open, chown: relax license
45929         * modules/open (License): Change to LGPLv2+, with consent by all
45930         authors, for use in augeas.
45931         * modules/chown (License): Likewise.
45932         * modules/lchown (Likewise): Likewise.
45933         Requested by Adam Stokes.
45935 2010-08-09  Karl Berry  <karl@gnu.org>
45937         * build-aux/ar-lib: new file, import from Automake.
45938         * config/srclist.txt: autocheck for updates.
45940 2010-08-09  Eric Blake  <eblake@redhat.com>
45942         readlinkat: adjust client modules
45943         * modules/areadlinkat (Depends-on): Use readlinkat, not
45944         symlinkat.
45945         * modules/areadlinkat-with-size (Depends-on): Likewise.
45947         mknod: be more vocal about danger of running tests as root
45948         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
45949         root, since that is just asking for problems.
45950         Suggested by Bruno Haible, based on a report by Rainer Tammer.
45952         readlinkat: split into its own module
45953         * modules/symlinkat: Split readlinkat...
45954         * modules/readlinkat: ...into separate module.
45955         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
45956         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
45957         * lib/symlinkat.c (readlinkat): Move...
45958         * lib/readlinkat.c: ...into new file.
45959         * modules/symlinkat-tests: Split readlinkat test...
45960         * modules/readlinkat-tests: ...into separate module.
45961         * tests/test-symlinkat.c: Split...
45962         * tests/test-readlinkat.c: ...into new file.
45963         * NEWS: Document the split.
45964         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45965         * lib/unistd.in.h (readlinkat): Likewise.
45966         Suggested by Bruno Haible.
45968 2010-08-08  Bruno Haible  <bruno@clisp.org>
45970         memxfrm: Speed up.
45971         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
45972         that usually only one call to strxfrm is necessary for each string
45973         part.
45974         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45976 2010-08-07  Karl Berry  <karl@gnu.org>
45978         * doc/posix-headers/limits.texi,
45979         * doc/posix-functions/malloc.texi,
45980         * doc/posix-functions/strsignal.texi: missing @item.
45981         * doc/ld-version-script.texi: spurious leading i.
45982         * doc/regex.texi (Interval Operators): no commas inside @var.
45984 2010-08-01  Bruno Haible  <bruno@clisp.org>
45986         Integrate the regex documentation.
45987         * doc/gnulib.texi: Define 'cn' index.
45988         (Regular expressions): New a chapter that includes regex.texi and
45989         regexprops-generic.texi.
45990         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
45991         syntax.
45993         Whitespace cleanup.
45994         * doc/regex.texi: Remove trailing spaces.
45996         Add regex documentation.
45997         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
45998         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
45999         Written by Kathy A. Hargreaves and Karl Berry.
46001 2010-08-01  Bruno Haible  <bruno@clisp.org>
46003         link: Update documentation.
46004         * doc/posix-functions/link.texi: Update regarding Solaris.
46006 2010-07-31  Bruno Haible  <bruno@clisp.org>
46008         Update modules list.
46009         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
46010         (String handling <string.h>): Add memcmp2, memxfrm.
46011         (Container data structures): Add xlist, xsublist, xoset.
46012         (Core language properties): Add alignof, unused-parameter.
46013         (Process control, Numeric conversion functions <stdlib.h>): Renamed
46014         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
46015         (Unibyte characters <ctype.h>): New section.
46016         (String handling <string.h>): New section.
46017         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
46018         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
46019         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
46020         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
46021         tan, tanh, tanl, y0, y1, yn.
46022         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
46023         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
46024         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
46025         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
46026         unlockpt, vdprintf, vdprintf-posix.
46027         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
46028         (File system functions): Add concat-filename, sys_file, sys_ioctl,
46029         xconcat-filename.
46030         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
46031         getdtablesize, pipe2, pipe2-safer.
46032         (Security): New section.
46033         (Networking functions): Add accept4.
46034         (Signal handling): Add sigpipe.
46035         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
46036         mbmemcasecoll.
46037         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
46038         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
46039         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
46040         pipe-filter-ii.
46041         (Misc): Add argp-version-etc, login_tty, parse-duration.
46043 2010-07-31  Bruno Haible  <bruno@clisp.org>
46045         Improve doc in MODULES.html.
46046         * modules/linkat (Description): Add the word "function".
46047         * modules/mkfifo (Description): Likewise.
46048         * modules/mknod (Description): Likewise.
46049         * modules/remove (Description): Likewise.
46050         * modules/renameat (Description): Likewise.
46051         * modules/stat (Description): Likewise.
46052         * modules/symlink (Description): Likewise.
46053         * modules/unlink (Description): Likewise.
46055 2010-07-31  Bruno Haible  <bruno@clisp.org>
46057         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
46058         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
46059         option --enable/disable-c++ instead of --enable/disable-cxx.
46060         * NEWS: Mention the change.
46062 2010-07-31  Bruno Haible  <bruno@clisp.org>
46064         readlink, areadlink: Relax test a bit.
46065         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
46066         alternative to ENOTDIR.
46067         * tests/test-areadlink.h (test_areadlink): Likewise.
46068         Reported by Rainer Tammer.
46070 2010-07-31  Bruno Haible  <bruno@clisp.org>
46072         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
46073         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
46074         character, perform the search using U_STRCHR.
46075         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
46076         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
46077         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
46078         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
46079         Suggested by Paolo Bonzini.
46081 2010-07-31  Bruno Haible  <bruno@clisp.org>
46083         unistr/u*-strstr: Fix dependencies.
46084         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
46085         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
46086         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
46088 2010-07-31  Bruno Haible  <bruno@clisp.org>
46090         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
46091         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
46092         the beginning of the loop.
46093         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
46094         cases in 'switch' statement.
46096         unistr/u8-strchr: Fix several bugs.
46097         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
46098         the string. When not found, return NULL, not a pointer near the end.
46100         More tests for unistr/u8-strchr.
46101         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
46102         that the function does not read past the first occurrence of the byte
46103         being searched.
46104         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
46105         * tests/unistr/test-u16-strchr.c (main): New function.
46106         * tests/unistr/test-u32-strchr.c (main): New function.
46108 2010-07-31  Bruno Haible  <bruno@clisp.org>
46110         posix-modules: Ignore backup files of documentation files.
46111         * posix-modules: grep only through files named *.texi.
46113 2010-07-31  Bruno Haible  <bruno@clisp.org>
46115         symlinkat: Fix documentation.
46116         * doc/posix-functions/readlinkat.texi: Fix module name.
46118 2010-07-31  Bruno Haible  <bruno@clisp.org>
46120         fchownat: Replace also when chown has the trailing slash bug.
46121         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
46122         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
46123         introduced on 2010-04-10.
46124         Reported by Rainer Tammer.
46126 2010-07-31  Bruno Haible  <bruno@clisp.org>
46128         linkat: Work around AIX 7.1 bug.
46129         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
46130         whether linkat handles trailing slash correctly. If not, replace linkat
46131         and define LINKAT_TRAILING_SLASH_BUG.
46132         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
46133         check whether (fd1,file1) points to a directory if file1 or file2 ends
46134         in a slash. Code taken from lib/link.c.
46135         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
46136         Reported by Rainer Tammer.
46138 2010-07-31  Bruno Haible  <bruno@clisp.org>
46140         Correctly determine whether pow is available in libc on AIX 7 with xlc.
46141         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
46142         This disables an xlc optimization that was causing wrong test results.
46143         Reported by Rainer Tammer.
46145 2010-07-31  Bruno Haible  <bruno@clisp.org>
46147         iconv: Work around AIX 6.1..7.1 bug.
46148         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
46149         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
46150         cross-compiling, guess no on all versions of AIX.
46151         Reported by Rainer Tammer.
46153 2010-07-31  Bruno Haible  <bruno@clisp.org>
46155         readlink: Relax test a bit.
46156         * tests/test-readlink.h (test_readlink): Allow different errno value
46157         when readlink is called with a file name that ends in / and refers to
46158         a file.
46159         Suggested by Eric Blake.
46160         Reported by Rainer Tammer.
46162 2010-07-31  Bruno Haible  <bruno@clisp.org>
46164         copysign: Does not require -lm on glibc systems.
46165         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
46166         gl_COMMON_DOUBLE_MATHFUNC.
46167         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
46169 2010-07-31  Bruno Haible  <bruno@clisp.org>
46171         duplocale: Work around AIX 7.1 bug.
46172         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
46173         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
46174         * lib/duplocale.c (rpl_duplocale): Update comment.
46175         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
46176         Reported by Rainer Tammer.
46178 2010-07-30  Bruno Haible  <bruno@clisp.org>
46180         dirfd: Avoid link error on AIX 7.1.
46181         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
46182         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
46183         exist, set REPLACE_DIRFD.
46184         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
46185         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
46186         * doc/posix-functions/dirfd.texi: Update.
46187         Reported by Rainer Tammer.
46189 2010-07-30  Eric Blake  <eblake@redhat.com>
46191         strtod: next round of AIX fixes
46192         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
46193         exponent.
46194         * tests/test-strtod.c (main): Enhance tests.
46195         * doc/posix-functions/strtod.texi (strtod): Document next bug.
46196         Reported by Rainer Tammer.
46198         futimens: fix configure check
46199         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
46200         Reported by Bruno Haible.
46202 2010-07-30  Bruno Haible  <bruno@clisp.org>
46204         getline: Update regarding AIX.
46205         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
46206         Reported by Rainer Tammer.
46208 2010-07-30  Bruno Haible  <bruno@clisp.org>
46210         wcwidth: Drop replacement on AIX 7.
46211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
46212         AIX 7.
46213         Reported by Rainer Tammer.
46215 2010-07-30  Bruno Haible  <bruno@clisp.org>
46217         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
46218         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
46219         a 'char *'.
46220         Reported by Rainer Tammer.
46222 2010-07-30  Bruno Haible  <bruno@clisp.org>
46224         unlink: Update regarding AIX.
46225         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
46226         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
46227         Reported by Rainer Tammer.
46229 2010-07-30  Bruno Haible  <bruno@clisp.org>
46231         symlink: Update regarding AIX.
46232         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
46233         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
46234         Reported by Rainer Tammer.
46236 2010-07-30  Bruno Haible  <bruno@clisp.org>
46238         strndup: Update regarding AIX.
46239         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
46240         AIX 7.
46241         Reported by Rainer Tammer.
46243 2010-07-30  Bruno Haible  <bruno@clisp.org>
46245         stat: Update regarding AIX.
46246         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
46247         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
46248         Reported by Rainer Tammer.
46250 2010-07-30  Bruno Haible  <bruno@clisp.org>
46252         truncl: Fix autoconf test.
46253         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
46254         whether truncl works.
46255         Reported by Rainer Tammer.
46257 2010-07-30  Bruno Haible  <bruno@clisp.org>
46259         round: Update regarding AIX.
46260         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
46261         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
46262         Reported by Rainer Tammer.
46264 2010-07-30  Bruno Haible  <bruno@clisp.org>
46266         rename: Update regarding AIX.
46267         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
46268         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
46269         Reported by Rainer Tammer.
46271 2010-07-30  Bruno Haible  <bruno@clisp.org>
46273         printf.m4: Update regarding AIX.
46274         * m4/printf.m4: Update comments regarding AIX.
46275         Reported by Rainer Tammer.
46277 2010-07-30  Bruno Haible  <bruno@clisp.org>
46279         iconv: Update regarding AIX.
46280         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
46281         AIX 7.
46282         Reported by Rainer Tammer.
46284 2010-07-30  Bruno Haible  <bruno@clisp.org>
46286         getopt: Update regarding AIX.
46287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
46288         no on AIX.
46289         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
46290         Reported by Rainer Tammer.
46292 2010-07-30  Bruno Haible  <bruno@clisp.org>
46294         ldexpl; Update regarding AIX.
46295         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
46296         on AIX 7.
46297         Reported by Rainer Tammer.
46299 2010-07-30  Bruno Haible  <bruno@clisp.org>
46301         frexpl: Update regarding AIX.
46302         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
46303         on AIX 7.
46304         Reported by Rainer Tammer.
46306 2010-07-30  Bruno Haible  <bruno@clisp.org>
46308         open, fopen: Update regarding AIX.
46309         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
46310         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
46311         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
46312         * doc/posix-functions/fopen.texi: Likewise.
46313         Reported by Rainer Tammer.
46315 2010-07-30  Bruno Haible  <bruno@clisp.org>
46317         chown: Update doc regarding AIX.
46318         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
46319         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
46320         Reported by Rainer Tammer.
46322 2010-07-30  Eric Blake  <eblake@redhat.com>
46324         strtod: fix bug in replacement function on AIX
46325         * lib/strtod.c (strtod): Special case broken "0x" parse in
46326         underlying strtod.
46327         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
46328         * doc/posix-functions/strtod.texi (strtod): Likewise.
46329         Reported by Rainer Tammer.
46331 2010-07-30  Bruno Haible  <bruno@clisp.org>
46333         mbrlen: Fix cross-compilation guess for AIX.
46334         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
46335         guess. Leftover from 2008-12-22.
46337 2010-07-30  Bruno Haible  <bruno@clisp.org>
46339         mbrtowc: Fix cross-compilation guess for AIX.
46340         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
46341         guess. Leftover from 2008-12-21.
46343 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
46345         init.sh: work around trap limitation of some shells
46346         * tests/init.sh (setup_): Move exit trap outside of shell function.
46348 2010-07-29  Eric Blake  <eblake@redhat.com>
46350         strtod: aid debugging
46351         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
46352         understanding why strtod is rejected.
46354 2010-07-28  Bruno Haible  <bruno@clisp.org>
46356         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
46357         * lib/unistr/u8-chr.c: Include <string.h>.
46358         * tests/unistr/test-u8-chr.c: Likewise.
46359         * tests/unistr/test-u16-chr.c: Likewise.
46360         * tests/unistr/test-u32-chr.c: Likewise.
46361         * tests/unistr/test-u8-strchr.c: Likewise.
46362         * tests/unistr/test-u16-strchr.c: Likewise.
46363         * tests/unistr/test-u32-strchr.c: Likewise.
46364         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
46365         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
46366         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
46367         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
46369 2010-07-28  Bruno Haible  <bruno@clisp.org>
46371         Use spaces for indentation, not tabs.
46372         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
46374 2010-07-27  Bruno Haible  <bruno@clisp.org>
46376         mbspcasecmp: Fix function specification.
46377         * lib/string.in.h (mbspcasecmp): Fix specification comment.
46378         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
46379         Reported by Eric Blake <eblake@redhat.com>.
46381 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
46383         timespec: use cast and not conditional, as truncation isn't possible
46384         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
46385         instead of a conditional.  Comment about the situation in more detail.
46386         This undoes most of the 2009-10-29 patch.
46388 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
46390         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
46391         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
46392         * lib/unistr/u8-strchr.c: Likewise.
46393         * modules/unistr/u8-chr: Depend on memchr.
46395         unistr/u*-strchr: add tests
46396         * modules/unistr/u8-strchr-tests: New file.
46397         * modules/unistr/u16-strchr-tests: New file.
46398         * modules/unistr/u32-strchr-tests: New file.
46399         * tests/unistr/test-strchr.h: New file.
46400         * tests/unistr/test-u8-strchr.c: New file.
46401         * tests/unistr/test-u16-strchr.c: New file.
46402         * tests/unistr/test-u32-strchr.c: New file.
46404         unistr/u*-chr: test multibyte sequences more
46405         * tests/unistr/test-chr.h: Do complete testing of the characters in the
46406         test vector.
46407         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
46408         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
46409         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
46411         unistr/u*-chr: test multibyte sequences
46412         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
46414         unistr/u*-chr: prepare for multibyte tests
46415         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
46416         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
46417         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
46418         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
46419         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
46420         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
46422 2010-07-18  Bruno Haible  <bruno@clisp.org>
46424         unistr/u8-strchr: Optimize non-ASCII argument case.
46425         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
46426         because the first byte often matches anyway.
46427         Reported by Pádraig Brady <P@draigbrady.com>.
46429 2010-07-15  Karl Berry  <karl@gnu.org>
46431         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
46433 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
46435         getcwd: on Solaris, work better if ancestors are inaccessible
46436         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
46437         buffer and size, try again with a large buffer.  This works better
46438         on Solaris, since its getcwd succeeds even if the path to the root
46439         is inaccessible, and this is helpful in common cases such as .zfs
46440         hidden directories.  Problem reported by J Chapman Flack in
46441         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
46442         Use system getcwd if it's declared, not merely if it's partly
46443         working; use the partly-working test only to avoid needless effort
46444         if the system getcwd fails.
46445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
46446         comment that was already obsolete and is now even more obsolete.
46447         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
46448         now might call strdup.
46450 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
46452         pthread: Add enough so that coreutils/src/sort.c compiles.
46453         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
46454         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
46455         gnulib. Include <sched.h> and <time.h>, as per POSIX.
46456         Include <sys/types.h>, in case it defines pthread_t.
46457         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
46458         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
46459         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
46460         (pthread_rwlockattr_t, pthread_spinlock_t):
46461         New typedefs, if HAVE_PTHREAD_T is not defined.
46462         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
46463         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
46464         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
46465         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
46466         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
46467         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
46468         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
46469         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
46470         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
46471         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
46472         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
46473         New macros.
46474         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
46475         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
46476         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
46477         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
46478         (pthread_spin_unlock): New dummy functions.
46479         (pthread_create): Return EAGAIN; don't set errno.
46480         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
46481         require AC_C_INLINE.
46482         * modules/pthread (Depends-on): Add sched, time.
46483         (pthread.h): Use AM_V_GEN.
46485 2010-07-13  Bruno Haible  <bruno@clisp.org>
46487         striconveh: Don't malloc memory if the result buffer is sufficient.
46488         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
46489         buffer if its size is sufficient.
46490         Reported by Ludovic Courtès <ludo@gnu.org>.
46492 2010-07-13  Bruno Haible  <bruno@clisp.org>
46494         strtod: Add safety check.
46495         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
46497 2010-07-12  Bruno Haible  <bruno@clisp.org>
46499         Unify tests that set gl_cv_func_ldexpl_no_libm.
46500         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
46501         gl_FUNC_LDEXPL.
46502         (gl_FUNC_LDEXPL): Invoke it.
46503         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46505 2010-07-12  Bruno Haible  <bruno@clisp.org>
46507         Unify tests that set gl_cv_func_ldexp_no_libm.
46508         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
46509         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
46510         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
46511         (configure.ac): Simply invoke gl_FUNC_LDEXP.
46512         * modules/strtod (Files): Add m4/ldexp.m4.
46514 2010-07-12  Bruno Haible  <bruno@clisp.org>
46516         Unify tests that set gl_cv_func_frexpl_no_libm.
46517         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
46518         gl_FUNC_FREXPL_NO_LIBM.
46519         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
46520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46522 2010-07-12  Bruno Haible  <bruno@clisp.org>
46524         Unify tests that set gl_cv_func_frexp_no_libm.
46525         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
46526         gl_FUNC_FREXP_NO_LIBM.
46527         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
46528         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
46530 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46532         memcoll: clarify sizes versus lengths, document better, and tweak perf
46533         * lib/memcoll.c (strcoll_loop, memcoll0):
46534         Improve quality of descriptive comments.  Name variables
46535         consistently as to whether they are lengths (which do not include
46536         terminating null) versus sizes (which do).
46537         * lib/xmemcoll.c (xmemcoll0): Likewise.
46538         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
46539         returned when s1size == 0; this is easier to compile and saves
46540         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
46542 2010-07-12  Bruno Haible  <bruno@clisp.org>
46544         Tests for module '_Exit'.
46545         * modules/_Exit-tests: New file.
46546         * tests/test-_Exit.sh: New file.
46547         * tests/test-_Exit.c: New file.
46549         New module '_Exit'.
46550         * lib/stdlib.in.h (__attribute__): New macro.
46551         (_Exit): New declaration.
46552         * lib/_Exit.c: New file.
46553         * m4/_Exit.m4: New file.
46554         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
46555         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
46556         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
46557         * modules/_Exit: New file.
46558         * tests/test-stdlib-c++.cc (_Exit): Check signature.
46559         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
46561 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46563         strtod: make it more-accurate typically, and don't require libm
46564         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
46565         Include limits.h.  Don't include string.h.
46566         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
46567         (locale_isspace): New function, so that no casts are needed to
46568         check whether *s is a space.
46569         (ldexp): Provide an unused dummy if not available.
46570         (scale_radix_exp, parse_number, underlying_strtod): New functions.
46571         (strtod): Use them.  This implementation prefers to use the
46572         underlying strtod if available, falling back on our own code
46573         only to fix known bugs.  This is more likely to produce an
46574         accurate result.  Also, it avoids the use of libm functions.
46575         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
46576         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
46577         was absent, but it caused a test failure with coreutils.
46578         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
46579         with libm.
46580         * modules/strtod (Makefile.am, Link): libm is no longer needed.
46581         * modules/strtod-tests (Makefile.am): Likewise.
46583 2010-07-11  Pádraig Brady  <P@draigBrady.com>
46584             Bruno Haible  <bruno@clisp.org>
46586         unistr/u8-strchr: Optimize ASCII argument case.
46587         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
46589 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46591         (x)memcoll: minor tweaks
46592         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
46593         is after the type that it qualifies.
46594         (memcoll0): Likewise.
46595         * lib/memcoll.h (memcoll0): Likewise.
46596         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
46597         * lib/xmemcoll.h (xmemcoll0): Likewise.
46598         * lib/memcoll.c (memcoll0): Correct the comment.  This function
46599         differs from memcoll in that the NUL byte is part of the argument.
46600         Omit the abort-checks, as performance is a real issue here.  Plus,
46601         the checks were wrong anyway (an off-by-one error).  Omit local
46602         variable 'diff', as it's a bit clearer that way.
46603         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
46604         no longer needed.
46606 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
46608         (x)memcoll: speedup when input is known to be NUL delimited
46609         * lib/memcoll.c: Include stdlib.
46610         (memcoll0): New function.
46611         (strcoll_loop): New function, refactored for use in both memcoll
46612         and memcoll0.
46613         * lib/memcoll.h (memcoll0): Add prototype.
46614         * lib/xmemcoll.c (xmemcoll0): New function.
46615         (collate_error): New function, refactored for use in both xmemcoll
46616         and xmemcoll0.
46617         * lib/xmemcoll.h (xmemcoll0): Add prototype.
46618         * m4/memcoll.m4: add inline invocation.
46620 2010-07-06  Pádraig Brady  <P@draigBrady.com>
46622         * build-aux/bootstrap: Remove any local translations
46623         from the translation project synchronization directory,
46624         so that local only translations are not distributed.
46626 2010-07-04  Bruno Haible  <bruno@clisp.org>
46628         fsusage: Clarify which code applies to which platforms.
46629         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
46630         platform.
46631         * lib/fsusage.c (get_fs_usage): Likewise.
46633 2010-07-04  Bruno Haible  <bruno@clisp.org>
46635         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
46636         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
46637         Reported by Martin Lambers <marlam@marlam.de>.
46639 2010-07-04  Jim Meyering  <meyering@redhat.com>
46641         hash: once again explicitly disallow insertion of NULL
46642         * lib/hash.c (hash_insert0): Reinstate just-removed test:
46643         inserting a NULL pointer cannot work with these functions.
46644         Add a comment with details.
46645         This reverts part of the 2010-07-01 commit, 5bef1a35
46646         "hash: extend module to deal with non-pointer keys".
46648 2010-07-01  Bruno Haible  <bruno@clisp.org>
46650         stdbool: Update doc.
46651         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
46652         Info from Christian Weisgerber <naddy@mips.inka.de>.
46654 2010-07-01  Jim Meyering  <meyering@redhat.com>
46656         hash: extend module to deal with non-pointer keys
46657         * lib/hash.c (hash_insert0): New interface, much like hash_insert
46658         but that allows insertion of non-pointer entries.
46659         Do not disallow an ENTRY value of NULL.
46660         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
46661         * lib/hash.h (hash_insert0): Declare.
46663 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
46665         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
46666         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
46667         not present (i.e. with autoconf 2.59 and when using gettextize, not
46668         gnulib), require AC_GNU_SOURCE instead.
46670 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
46672         idpriv-drop: Fix tests.
46673         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
46674         not to the test-idpriv-droptemp program.
46676 2010-06-29  Bruno Haible  <bruno@clisp.org>
46678         string: Fix syntax error with g++ 2.96.
46679         * lib/string.in.h (__pure__): Remove definition.
46680         (_GL_ATTRIBUTE_PURE): New macro.
46681         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
46682         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
46683         Reported by Christian Weisgerber <naddy@mips.inka.de>.
46685 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
46687         unitypes: Fix bug introduced on 2010-05-18.
46688         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
46690 2010-06-22  Eric Blake  <eblake@redhat.com>
46692         memmem: slight optimization
46693         * lib/str-two-way.h (critical_factorization): Update comments.
46694         Reduce work during factorization phase.
46695         Reported by Carlos Bueno <carlos@bueno.org>.
46697 2010-06-21  Bruno Haible  <bruno@clisp.org>
46699         Fix HAVE_CALLOC_POSIX misnomer.
46700         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
46701         !HAVE_CALLOC_POSIX.
46702         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
46703         HAVE_CALLOC_POSIX.
46704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
46705         instead of HAVE_CALLOC_POSIX.
46706         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
46707         HAVE_CALLOC_POSIX.
46709         Use modern idiom for calloc() replacement.
46710         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
46711         AC_FUNC_CALLOC.
46712         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
46713         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
46714         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46715         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
46716         (gl_REPLACE_CALLOC): New macro.
46718 2010-06-21  Bruno Haible  <bruno@clisp.org>
46720         Fix HAVE_REALLOC_POSIX misnomer.
46721         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
46722         !HAVE_REALLOC_POSIX.
46723         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
46724         HAVE_REALLOC_POSIX.
46725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
46726         instead of HAVE_REALLOC_POSIX.
46727         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
46728         HAVE_REALLOC_POSIX.
46730         Use modern idiom for realloc() replacement.
46731         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
46732         AC_FUNC_REALLOC.
46733         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
46734         Autoconf's AC_FUNC_REALLOC.
46735         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46736         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
46737         (gl_REPLACE_REALLOC): New macro.
46738         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46740 2010-06-21  Bruno Haible  <bruno@clisp.org>
46742         Fix HAVE_MALLOC_POSIX misnomer.
46743         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
46744         !HAVE_MALLOC_POSIX.
46745         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
46746         HAVE_MALLOC_POSIX.
46747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
46748         instead of HAVE_MALLOC_POSIX.
46749         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
46750         HAVE_MALLOC_POSIX.
46752         Use modern idiom for malloc() replacement.
46753         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
46754         AC_FUNC_MALLOC.
46755         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
46756         Autoconf's AC_FUNC_MALLOC.
46757         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46758         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
46759         (gl_REPLACE_MALLOC): New macro.
46760         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46762 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
46764         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
46765         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
46766         This macro takes 3 arguments, not 4.
46768 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
46770         ipv6: fix detection under mingw
46771         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
46772         in6_addr.
46774 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
46776         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
46777         that strtod() works when cross-compiling to a glibc version known
46778         to work.
46780 2010-06-15  Bruno Haible  <bruno@clisp.org>
46782         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
46784 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
46786         select: Correct timeout.
46787         * lib/select.c (rpl_select): Compute wait_timeout correctly.
46789 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46791         git-version-gen: init shell var to avoid env var influence
46792         * build-aux/git-version-gen (v): Init shell var to empty.
46794 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
46796         priv-set: Don't assume that priv.h exists merely because getppriv does.
46797         See Jan Andersen's bug report about AIX 5L in
46798         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
46799         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
46800         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
46801         * lib/priv-set.h: Likewise.
46802         * tests/test-priv-set.c: Likewise.
46804 2010-06-13  Bruno Haible  <bruno@clisp.org>
46806         relocatable: Make it easier to test whether to install wrappers.
46807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
46808         RELOCATABLE_VIA_WRAPPER.
46810 2010-06-13  Bruno Haible  <bruno@clisp.org>
46812         gnulib-tool: Display specified modules and dependencies differently.
46813         * gnulib-tool (func_show_module_list): New function.
46814         (func_import, func_create_testdir): Invoke it.
46815         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46817 2010-06-13  Bruno Haible  <bruno@clisp.org>
46819         gnulib-tool: Align code of func_import and func_create_testdir.
46820         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
46821         specified_modules.
46823 2010-06-12  Jim Meyering  <meyering@redhat.com>
46825         test-inttostr: avoid spurious failure on Solaris 9
46826         * tests/test-inttostr.c (main): Skip the test when snprintf fails
46827         to accept "%ju".  Reported by Bruno Haible.
46829 2010-06-11  Jim Meyering  <meyering@redhat.com>
46831         test-sys_socket: mark variables as used more readably
46832         * tests/test-sys_socket.c (main): Mark otherwise unused variables
46833         as "used" explicitly via (void) statement casts.  This is more
46834         readable than using them in an artificial return expression.
46835         Suggestion from Bruno Haible.
46837 2010-06-11  Bruno Haible  <bruno@clisp.org>
46839         Avoid some more warnings from "gcc -Wwrite-strings".
46840         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
46841         to 'const char *'.
46842         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
46843         * tests/test-c-strcasestr.c (main): Likewise.
46844         * tests/test-mbscasestr1.c (main): Likewise.
46845         * tests/test-mbscasestr2.c (main): Likewise.
46846         * tests/test-memmem.c (main): Likewise.
46847         * tests/test-strstr.c (main): Likewise.
46848         * tests/test-strcasestr.c (main): Likewise.
46850 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46852         init.sh: change framework_failure_ to fail with status 99, not 1
46853         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
46854         automake's parallel-tests rule that this is an unexpected failure,
46855         even if the test is listed in XFAIL_TESTS.
46857 2010-06-11  Jim Meyering  <meyering@redhat.com>
46859         test-inttostr: avoid warnings about 4-6KB literal strings
46860         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
46861         Include "macros.h", for its definition of ASSERT.
46862         (CK): s/assert/ASSERT/
46863         * modules/inttostr-tests (Files): Add macros.h.
46865         init.sh: don't use $ME_ or skip_ before they are defined
46866         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
46867         their first uses.  Also hoist their companions: warn_, fail_,
46868         framework_failure_, $stderr_fileno.  Prompted by a patch from
46869         Stefano Lattarini.
46871         test-sys_socket: avoid set-but-not-used warnings from gcc
46872         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
46873         avoid warning about set-but-not-used variables.
46875         test-xvasprintf: avoid 'const' discard warnings
46876         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
46877         "const" when assigning from literal strings.
46878         (test_xasprintf): Add "void" in function argument list to placate
46879         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
46881         tests: avoid compilation warnings in argmatch and exclude tests...
46882         in packages that define ARGMATCH_DIE_DECL, like coreutils.
46883         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
46884         Since it always exits, declare with the "noreturn" attribute.
46885         * tests/test-argmatch.c: Likewise.
46887         tests: avoid 'const' discard warnings in mbsstr tests
46888         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
46889         * tests/test-mbsstr2.c (main): Likewise.
46891         test-verify: avoid warning from gcc's -Wmissing-declarations
46892         * tests/test-verify.c (function): Declare to be static.
46894         test-inttostr.c: include <string.h> for use of strcmp
46895         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
46897         test-linkat: avoid failed assertion on "other" architectures
46898         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
46899         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
46900         sparc: https://bugs.launchpad.net/bugs/591968
46902 2010-06-11  Jim Meyering  <meyering@redhat.com>
46904         printf.m4: avoid autoconf's "Expanded Before Required" warning
46905         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
46906         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
46907         autoconf warning.
46909 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
46911         Replacement header templates are now named with ".in", not "_".
46912         * doc/gnulib-intro.texi: Correct.
46914 2010-06-10  Jim Meyering  <meyering@redhat.com>
46916         inttostr-tests: depend on snprintf, not snprintf-posix
46917         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
46918         snprintf-posix, to avoid this aclocal failure:
46919           missing file gnulib-tests/vasnprintf.c
46920           configure.ac:45: error: expected source file, required through \
46921           AC_LIBSOURCES, not found
46923 2010-06-10  Jim Meyering  <meyering@redhat.com>
46925         inttostr: add a new function, inttostr, and tests
46926         The namesake function was not available.  The existence of the
46927         template file, inttostr.c makes its addition nontrivial.
46928         * lib/anytostr.c: Rename from inttostr.c.
46929         (anytostr): Rename from inttostr.
46930         * lib/inttostr.c: New file.
46931         * modules/inttostr (Files): Add anytostr.c.
46932         (Makefile.am): Set lib_SOURCES instead of ...
46933         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
46934         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
46935         * lib/offtostr.c: Likewise.
46936         * lib/uinttostr.c: Likewise.
46937         * lib/umaxtostr.c: Likewise.
46938         * modules/inttostr-tests: New file.
46939         * tests/test-inttostr.c: New file.  Test these functions.
46941 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
46942             Bruno Haible  <bruno@clisp.org>
46944         Add "Extending Gnulib" chapter to manual.
46945         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
46946         chapter.
46947         (Extending Gnulib): New chapter.
46948         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
46949         chapter.
46951 2010-06-09  Bruno Haible  <bruno@clisp.org>
46953         Avoid relocwrapper link errors due to gnulib replacement functions.
46954         * lib/areadlink.c: Use the system's malloc, realloc functions.
46955         (areadlink): Set errno to ENOMEM explicitly.
46956         * modules/areadlink (Depends-on): Remove malloc-posix.
46957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46959 2010-06-09  Bruno Haible  <bruno@clisp.org>
46961         Avoid relocwrapper link errors due to gnulib replacement functions.
46962         * lib/canonicalize-lgpl.c: Use the system's malloc function.
46963         * lib/malloca.c: Likewise.
46964         * lib/relocatable.c: Likewise.
46965         * lib/progreloc.c: Use the system's malloc, sprintf functions.
46966         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
46967         * lib/setenv.c: Use the system's malloc, realloc functions.
46968         * lib/strerror.c: Use the system's sprintf function.
46969         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46971 2010-06-04  Bruno Haible  <bruno@clisp.org>
46973         Prefer documented low-level autoconf macro names.
46974         * m4/lib-link.m4: Use m4_translit instead of translit.
46975         * m4/environ.m4: Likewise.
46976         * m4/mathfunc.m4: Likewise.
46977         * m4/onceonly.m4: Likewise.
46978         * m4/stdint.m4: Likewise.
46979         Suggested by Eric Blake.
46981 2010-06-04  Martin Lambers  <marlam@marlam.de>
46982             Bruno Haible  <bruno@clisp.org>
46984         havelib: Allow library names with '+' characters.
46985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46986         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
46988 2010-06-09  Bruno Haible  <bruno@clisp.org>
46990         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
46991         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
46992         realloc failed.
46994 2010-06-08  Peter Simons  <simons@cryp.to>
46996         maint.mk: make the news-check rule more configurable
46997         * top/maint.mk (news-check-lines-spec): New variable.
46998         (news-check): Use "sed -n 1,10p" in place of "head".
47000 2010-06-07  Jim Meyering  <meyering@redhat.com>
47002         do-release-commit-and-tag: fix typo in --help
47003         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
47005         regex: avoid new dead-code warning with gcc-4.6.0
47006         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
47007         if-block containing a while-loop.  It's been unused for at least
47008         5 years.
47010 2010-06-05  Bruno Haible  <bruno@clisp.org>
47012         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
47013         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
47015 2010-06-04  Bruno Haible  <bruno@clisp.org>
47017         Update to GNU gettext 0.18.1.
47018         * modules/gettext (configure.ac): Require gettext infrastructure from
47019         version 0.18.1.
47021 2010-06-03  Bruno Haible  <bruno@clisp.org>
47023         Don't use AC_LIBOBJ with file names in subdirectories.
47024         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
47025         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
47026         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
47027         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
47028         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
47029         gl_LIBUNISTRING_LIBSOURCE.
47030         (Makefile.am): Augment lib_SOURCES here, conditionally.
47031         * NEWS: Drop requirement for Automake option 'subdir-objects'.
47033 2010-06-03  Bruno Haible  <bruno@clisp.org>
47035         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
47036         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
47037         expansion does not end with a newline.
47038         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
47039         unnecessary newline.
47041 2010-06-03  Bruno Haible  <bruno@clisp.org>
47043         Reduce dependencies.
47044         * tests/test-quotearg.h: New file, extracted from
47045         tests/test-quotearg.c.
47046         * tests/test-quotearg-simple.c: New file, extracted from
47047         tests/test-quotearg.c.
47048         * tests/test-quotearg.c: Don't include <ctype.h>.
47049         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
47050         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
47051         use_quote_double_quotes, use_quotearg_colon): Moved to
47052         tests/test-quotearg.h.
47053         (results_g, flag_results, custom_quotes, custom_results): Moved
47054         to tests/test-quotearg-simple.c.
47055         (main): Moved the part that does not depend on gettext to
47056         tests/test-quotearg-simple.c. Return 77 if the test cannot be
47057         performed.
47058         * modules/quotearg-simple: New file.
47059         * modules/quotearg-simple-tests: New file.
47060         * modules/quotearg (Depends-on): Add quotearg-simple.
47061         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
47062         (Files): Add tests/test-quotearg.h.
47063         Reported by Paolo Bonzini.
47065 2010-06-03  Bruno Haible  <bruno@clisp.org>
47067         Reduce dependencies.
47068         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
47070 2010-06-03  Bruno Haible  <bruno@clisp.org>
47072         time: Undefine more broken macros.
47073         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
47074         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
47075         Reported by Eric Blake.
47077 2010-06-03  Bruno Haible  <bruno@clisp.org>
47079         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
47080         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
47081         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
47082         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
47083         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
47084         Reported by Ludovic Courtès <ludo@gnu.org>.
47086 2010-06-02  Eric Blake  <eblake@redhat.com>
47088         time: work with mingw + pthreads-win32 library
47089         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
47090         if timespec is defined only in pthread.h.
47091         * modules/time (Makefile.am): Substitute it.
47092         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
47093         <pthread.h>, when needed.
47094         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
47095         from the library.
47097 2010-05-31  Bruno Haible  <bruno@clisp.org>
47099         Avoid expanding two macros in the wrong order.
47100         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
47101         gl_LIBUNISTRING if it is defined.
47102         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
47103         autoconf >= 2.64.
47104         Reported by Ludovic Courtès <ludo@gnu.org>.
47106 2010-05-27  Jim Meyering  <meyering@redhat.com>
47108         maint.mk: also prohibit "#undef" of always-defined symbols
47109         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
47110         Allow more than one space before the symbol name.
47111         (sc_prohibit_always-defined_macros): Use grep's -E, now that
47112         the regexp uses alternation.
47114 2010-05-26  Eric Blake  <eblake@redhat.com>
47116         maint.mk: avoid echo -e
47117         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
47118         Convert all uses of echo -* to printf.
47119         Reported by Matthias Bolte.
47121 2010-05-25  Bruno Haible  <bruno@clisp.org>
47123         Update to GNU gettext 0.18, part 2.
47124         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
47125         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
47127 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47129         Add missing include in test-pwrite.c.
47130         * tests/test-pwrite.c: Include string.h, for strcmp.
47132 2010-05-24  Bruno Haible  <bruno@clisp.org>
47134         * NEWS: Mention requirement for Automake option 'subdir-objects'.
47136 2010-05-24  Bruno Haible  <bruno@clisp.org>
47138         Don't use conversion with transliteration in u{8,16,32}_strcoll.
47139         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
47140         iconveh_error argument.
47141         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
47142         U_STRCONV_TO_LOCALE.
47143         * lib/unistr/u16-strcoll.c: Likewise.
47144         * lib/unistr/u32-strcoll.c: Likewise.
47145         * modules/unistr/u8-strcoll (Depends-on): Add
47146         uniconv/u8-strconv-to-enc, localcharset. Remove
47147         uniconv/u8-strconv-to-locale.
47148         (configure.ac): Bump version number.
47149         * modules/unistr/u16-strcoll (Depends-on): Add
47150         uniconv/u16-strconv-to-enc, localcharset. Remove
47151         uniconv/u16-strconv-to-locale.
47152         (configure.ac): Bump version number.
47153         * modules/unistr/u32-strcoll (Depends-on): Add
47154         uniconv/u32-strconv-to-enc, localcharset. Remove
47155         uniconv/u32-strconv-to-locale.
47156         (configure.ac): Bump version number.
47158 2010-05-24  Bruno Haible  <bruno@clisp.org>
47160         Avoid a test failure on NetBSD 5.0.
47161         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
47162         an iconv() bug.
47164 2010-05-24  Bruno Haible  <bruno@clisp.org>
47166         Adjust #include directive style.
47167         * modules/regex (Includes): Recommend to write <regex.h>.
47169 2010-05-24  Bruno Haible  <bruno@clisp.org>
47171         regex: Don't require alloca.
47172         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
47173         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
47174         only inside if (0).
47176 2010-05-23  Jim Meyering  <meyering@redhat.com>
47178         test-renameat.c: include <sys/stat.h>
47179         * tests/test-renameat.c: Include <sys/stat.h>; required for
47180         definition of S_IS* macros.
47182 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
47184         Update maintainer documentation for 'relocatable-prog' module.
47185         * doc/relocatable-maint.texi: Update.
47186         Comments by Bruno Haible.
47188 2010-05-23  Bruno Haible  <bruno@clisp.org>
47190         git-merge-changelog: Enable --split-merged-entry by default.
47191         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
47192         (usage): Don't mention this option any more.
47193         Reported by Ralf Wildenhues.
47195 2010-05-23  Jim Meyering  <meyering@redhat.com>
47197         test-pwrite: do not leave behind a test file named "out"
47198         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
47199         The trivial-looking use of init.sh is really necessary.
47200         It ensures that the temporary file, "out", is created in
47201         a temporary directory, and removed upon termination.
47202         * tests/test-pwrite.sh: Re-add file.
47203         * modules/pwrite-tests: Reference it.
47205 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47207         Fix output redirection buglet in init.sh.
47208         * tests/init.sh: Fix redirection of stderr.
47210 2010-05-20  Simon Josefsson  <simon@josefsson.org>
47212         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
47214 2010-05-17  Simon Josefsson  <simon@josefsson.org>
47216         * modules/valgrind-tests: New file.
47217         * m4/valgrind-tests.m4: New file.
47218         * doc/valgrind-tests.texi: New file.
47219         * doc/gnulib.texi (Running self-tests under valgrind): New
47220         section.
47222 2010-05-19  Bruno Haible  <bruno@clisp.org>
47224         Clean up dead code in recent commit.
47225         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
47226         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
47227         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
47228         Suggested by Paolo Bonzini.
47230 2010-05-19  Bruno Haible  <bruno@clisp.org>
47232         Avoid valgrind error reports from libunistring.
47233         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
47234         * modules/libunistring (Files): Add it.
47235         * modules/libunistring-optional (Files): Likewise.
47237 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
47238             Bruno Haible  <bruno@clisp.org>
47240         New module 'libunistring-optional'.
47241         * modules/libunistring-optional: New file.
47242         * m4/libunistring-base.m4: New file.
47243         * m4/libunistring-optional.m4: New file.
47244         * lib/unicase.in.h: Renamed from lib/unicase.h.
47245         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
47246         * lib/unictype.in.h: Renamed from lib/unictype.h.
47247         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
47248         * lib/uniname.in.h: Renamed from lib/uniname.h.
47249         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
47250         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
47251         * lib/unistr.in.h: Renamed from lib/unistr.h.
47252         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
47253         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
47254         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
47255         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
47256         gl_LIBUNISTRING. If the library was found, determine the installed
47257         version and set LIBUNISTRING_VERSION.
47258         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
47259         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
47260         handle a configuration option --with-included-libunistring.
47261         * modules/libunistring (Files): Add m4/absolute-header.m4.
47262         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
47263         Add m4/libunistring-base.m4.
47264         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47265         (Makefile.am): Build unicase.h from unicase.in.h.
47266         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
47267         Add m4/libunistring-base.m4.
47268         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47269         (Makefile.am): Build uniconv.h from uniconv.in.h.
47270         * modules/unictype/base (Files): Use unictype.in.h instead of
47271         unictype.h. Add m4/libunistring-base.m4.
47272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47273         (Makefile.am): Build unictype.h from unictype.in.h.
47274         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
47275         Add m4/libunistring-base.m4.
47276         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47277         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
47278         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
47279         Add m4/libunistring-base.m4.
47280         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47281         (Makefile.am): Build uniname.h from uniname.in.h.
47282         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
47283         Add m4/libunistring-base.m4.
47284         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47285         (Makefile.am): Build uninorm.h from uninorm.in.h.
47286         * modules/unistdio/base (Files): Use unistdio.in.h instead of
47287         unistdio.h. Add m4/libunistring-base.m4.
47288         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47289         (Makefile.am): Build unistdio.h from unistdio.in.h.
47290         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
47291         Add m4/libunistring-base.m4.
47292         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47293         (Makefile.am): Build unistr.h from unistr.in.h.
47294         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
47295         Add m4/libunistring-base.m4.
47296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47297         (Makefile.am): Build unitypes.h from unitypes.in.h.
47298         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
47299         Add m4/libunistring-base.m4.
47300         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47301         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
47302         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
47303         uniwidth.h. Add m4/libunistring-base.m4.
47304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47305         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
47306         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
47307         instead of augmenting lib_SOURCES.
47308         * modules/unicase/empty-suffix-context: Likewise.
47309         * modules/unicase/locale-language: Likewise.
47310         * modules/unicase/tolower: Likewise.
47311         * modules/unicase/totitle: Likewise.
47312         * modules/unicase/toupper: Likewise.
47313         * modules/unicase/u8-casecmp: Likewise.
47314         * modules/unicase/u8-casecoll: Likewise.
47315         * modules/unicase/u8-casefold: Likewise.
47316         * modules/unicase/u8-casexfrm: Likewise.
47317         * modules/unicase/u8-ct-casefold: Likewise.
47318         * modules/unicase/u8-ct-tolower: Likewise.
47319         * modules/unicase/u8-ct-totitle: Likewise.
47320         * modules/unicase/u8-ct-toupper: Likewise.
47321         * modules/unicase/u8-is-cased: Likewise.
47322         * modules/unicase/u8-is-casefolded: Likewise.
47323         * modules/unicase/u8-is-lowercase: Likewise.
47324         * modules/unicase/u8-is-titlecase: Likewise.
47325         * modules/unicase/u8-is-uppercase: Likewise.
47326         * modules/unicase/u8-prefix-context: Likewise.
47327         * modules/unicase/u8-suffix-context: Likewise.
47328         * modules/unicase/u8-tolower: Likewise.
47329         * modules/unicase/u8-totitle: Likewise.
47330         * modules/unicase/u8-toupper: Likewise.
47331         * modules/unicase/u16-casecmp: Likewise.
47332         * modules/unicase/u16-casecoll: Likewise.
47333         * modules/unicase/u16-casefold: Likewise.
47334         * modules/unicase/u16-casexfrm: Likewise.
47335         * modules/unicase/u16-ct-casefold: Likewise.
47336         * modules/unicase/u16-ct-tolower: Likewise.
47337         * modules/unicase/u16-ct-totitle: Likewise.
47338         * modules/unicase/u16-ct-toupper: Likewise.
47339         * modules/unicase/u16-is-cased: Likewise.
47340         * modules/unicase/u16-is-casefolded: Likewise.
47341         * modules/unicase/u16-is-lowercase: Likewise.
47342         * modules/unicase/u16-is-titlecase: Likewise.
47343         * modules/unicase/u16-is-uppercase: Likewise.
47344         * modules/unicase/u16-prefix-context: Likewise.
47345         * modules/unicase/u16-suffix-context: Likewise.
47346         * modules/unicase/u16-tolower: Likewise.
47347         * modules/unicase/u16-totitle: Likewise.
47348         * modules/unicase/u16-toupper: Likewise.
47349         * modules/unicase/u32-casecmp: Likewise.
47350         * modules/unicase/u32-casecoll: Likewise.
47351         * modules/unicase/u32-casefold: Likewise.
47352         * modules/unicase/u32-casexfrm: Likewise.
47353         * modules/unicase/u32-ct-casefold: Likewise.
47354         * modules/unicase/u32-ct-tolower: Likewise.
47355         * modules/unicase/u32-ct-totitle: Likewise.
47356         * modules/unicase/u32-ct-toupper: Likewise.
47357         * modules/unicase/u32-is-cased: Likewise.
47358         * modules/unicase/u32-is-casefolded: Likewise.
47359         * modules/unicase/u32-is-lowercase: Likewise.
47360         * modules/unicase/u32-is-titlecase: Likewise.
47361         * modules/unicase/u32-is-uppercase: Likewise.
47362         * modules/unicase/u32-prefix-context: Likewise.
47363         * modules/unicase/u32-suffix-context: Likewise.
47364         * modules/unicase/u32-tolower: Likewise.
47365         * modules/unicase/u32-totitle: Likewise.
47366         * modules/unicase/u32-toupper: Likewise.
47367         * modules/unicase/ulc-casecmp: Likewise.
47368         * modules/unicase/ulc-casecoll: Likewise.
47369         * modules/unicase/ulc-casexfrm: Likewise.
47370         * modules/uniconv/u8-conv-from-enc: Likewise.
47371         * modules/uniconv/u8-conv-to-enc: Likewise.
47372         * modules/uniconv/u8-strconv-from-enc: Likewise.
47373         * modules/uniconv/u8-strconv-from-locale: Likewise.
47374         * modules/uniconv/u8-strconv-to-enc: Likewise.
47375         * modules/uniconv/u8-strconv-to-locale: Likewise.
47376         * modules/uniconv/u16-conv-from-enc: Likewise.
47377         * modules/uniconv/u16-conv-to-enc: Likewise.
47378         * modules/uniconv/u16-strconv-from-enc: Likewise.
47379         * modules/uniconv/u16-strconv-from-locale: Likewise.
47380         * modules/uniconv/u16-strconv-to-enc: Likewise.
47381         * modules/uniconv/u16-strconv-to-locale: Likewise.
47382         * modules/uniconv/u32-conv-from-enc: Likewise.
47383         * modules/uniconv/u32-conv-to-enc: Likewise.
47384         * modules/uniconv/u32-strconv-from-enc: Likewise.
47385         * modules/uniconv/u32-strconv-from-locale: Likewise.
47386         * modules/uniconv/u32-strconv-to-enc: Likewise.
47387         * modules/uniconv/u32-strconv-to-locale: Likewise.
47388         * modules/unictype/bidicategory-byname: Likewise.
47389         * modules/unictype/bidicategory-name: Likewise.
47390         * modules/unictype/bidicategory-of: Likewise.
47391         * modules/unictype/bidicategory-test: Likewise.
47392         * modules/unictype/block-list: Likewise.
47393         * modules/unictype/block-test: Likewise.
47394         * modules/unictype/category-C: Likewise.
47395         * modules/unictype/category-Cc: Likewise.
47396         * modules/unictype/category-Cf: Likewise.
47397         * modules/unictype/category-Cn: Likewise.
47398         * modules/unictype/category-Co: Likewise.
47399         * modules/unictype/category-Cs: Likewise.
47400         * modules/unictype/category-L: Likewise.
47401         * modules/unictype/category-Ll: Likewise.
47402         * modules/unictype/category-Lm: Likewise.
47403         * modules/unictype/category-Lo: Likewise.
47404         * modules/unictype/category-Lt: Likewise.
47405         * modules/unictype/category-Lu: Likewise.
47406         * modules/unictype/category-M: Likewise.
47407         * modules/unictype/category-Mc: Likewise.
47408         * modules/unictype/category-Me: Likewise.
47409         * modules/unictype/category-Mn: Likewise.
47410         * modules/unictype/category-N: Likewise.
47411         * modules/unictype/category-Nd: Likewise.
47412         * modules/unictype/category-Nl: Likewise.
47413         * modules/unictype/category-No: Likewise.
47414         * modules/unictype/category-P: Likewise.
47415         * modules/unictype/category-Pc: Likewise.
47416         * modules/unictype/category-Pd: Likewise.
47417         * modules/unictype/category-Pe: Likewise.
47418         * modules/unictype/category-Pf: Likewise.
47419         * modules/unictype/category-Pi: Likewise.
47420         * modules/unictype/category-Po: Likewise.
47421         * modules/unictype/category-Ps: Likewise.
47422         * modules/unictype/category-S: Likewise.
47423         * modules/unictype/category-Sc: Likewise.
47424         * modules/unictype/category-Sk: Likewise.
47425         * modules/unictype/category-Sm: Likewise.
47426         * modules/unictype/category-So: Likewise.
47427         * modules/unictype/category-Z: Likewise.
47428         * modules/unictype/category-Zl: Likewise.
47429         * modules/unictype/category-Zp: Likewise.
47430         * modules/unictype/category-Zs: Likewise.
47431         * modules/unictype/category-and: Likewise.
47432         * modules/unictype/category-and-not: Likewise.
47433         * modules/unictype/category-byname: Likewise.
47434         * modules/unictype/category-name: Likewise.
47435         * modules/unictype/category-none: Likewise.
47436         * modules/unictype/category-of: Likewise.
47437         * modules/unictype/category-or: Likewise.
47438         * modules/unictype/category-test: Likewise.
47439         * modules/unictype/combining-class: Likewise.
47440         * modules/unictype/ctype-alnum: Likewise.
47441         * modules/unictype/ctype-alpha: Likewise.
47442         * modules/unictype/ctype-blank: Likewise.
47443         * modules/unictype/ctype-cntrl: Likewise.
47444         * modules/unictype/ctype-digit: Likewise.
47445         * modules/unictype/ctype-graph: Likewise.
47446         * modules/unictype/ctype-lower: Likewise.
47447         * modules/unictype/ctype-print: Likewise.
47448         * modules/unictype/ctype-punct: Likewise.
47449         * modules/unictype/ctype-space: Likewise.
47450         * modules/unictype/ctype-upper: Likewise.
47451         * modules/unictype/ctype-xdigit: Likewise.
47452         * modules/unictype/decimal-digit: Likewise.
47453         * modules/unictype/digit: Likewise.
47454         * modules/unictype/mirror: Likewise.
47455         * modules/unictype/numeric: Likewise.
47456         * modules/unictype/property-alphabetic: Likewise.
47457         * modules/unictype/property-ascii-hex-digit: Likewise.
47458         * modules/unictype/property-bidi-arabic-digit: Likewise.
47459         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
47460         * modules/unictype/property-bidi-block-separator: Likewise.
47461         * modules/unictype/property-bidi-boundary-neutral: Likewise.
47462         * modules/unictype/property-bidi-common-separator: Likewise.
47463         * modules/unictype/property-bidi-control: Likewise.
47464         * modules/unictype/property-bidi-embedding-or-override: Likewise.
47465         * modules/unictype/property-bidi-eur-num-separator: Likewise.
47466         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
47467         * modules/unictype/property-bidi-european-digit: Likewise.
47468         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
47469         * modules/unictype/property-bidi-left-to-right: Likewise.
47470         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
47471         * modules/unictype/property-bidi-other-neutral: Likewise.
47472         * modules/unictype/property-bidi-pdf: Likewise.
47473         * modules/unictype/property-bidi-segment-separator: Likewise.
47474         * modules/unictype/property-bidi-whitespace: Likewise.
47475         * modules/unictype/property-byname: Likewise.
47476         * modules/unictype/property-combining: Likewise.
47477         * modules/unictype/property-composite: Likewise.
47478         * modules/unictype/property-currency-symbol: Likewise.
47479         * modules/unictype/property-dash: Likewise.
47480         * modules/unictype/property-decimal-digit: Likewise.
47481         * modules/unictype/property-default-ignorable-code-point: Likewise.
47482         * modules/unictype/property-deprecated: Likewise.
47483         * modules/unictype/property-diacritic: Likewise.
47484         * modules/unictype/property-extender: Likewise.
47485         * modules/unictype/property-format-control: Likewise.
47486         * modules/unictype/property-grapheme-base: Likewise.
47487         * modules/unictype/property-grapheme-extend: Likewise.
47488         * modules/unictype/property-grapheme-link: Likewise.
47489         * modules/unictype/property-hex-digit: Likewise.
47490         * modules/unictype/property-hyphen: Likewise.
47491         * modules/unictype/property-id-continue: Likewise.
47492         * modules/unictype/property-id-start: Likewise.
47493         * modules/unictype/property-ideographic: Likewise.
47494         * modules/unictype/property-ids-binary-operator: Likewise.
47495         * modules/unictype/property-ids-trinary-operator: Likewise.
47496         * modules/unictype/property-ignorable-control: Likewise.
47497         * modules/unictype/property-iso-control: Likewise.
47498         * modules/unictype/property-join-control: Likewise.
47499         * modules/unictype/property-left-of-pair: Likewise.
47500         * modules/unictype/property-line-separator: Likewise.
47501         * modules/unictype/property-logical-order-exception: Likewise.
47502         * modules/unictype/property-lowercase: Likewise.
47503         * modules/unictype/property-math: Likewise.
47504         * modules/unictype/property-non-break: Likewise.
47505         * modules/unictype/property-not-a-character: Likewise.
47506         * modules/unictype/property-numeric: Likewise.
47507         * modules/unictype/property-other-alphabetic: Likewise.
47508         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
47509         * modules/unictype/property-other-grapheme-extend: Likewise.
47510         * modules/unictype/property-other-id-continue: Likewise.
47511         * modules/unictype/property-other-id-start: Likewise.
47512         * modules/unictype/property-other-lowercase: Likewise.
47513         * modules/unictype/property-other-math: Likewise.
47514         * modules/unictype/property-other-uppercase: Likewise.
47515         * modules/unictype/property-paired-punctuation: Likewise.
47516         * modules/unictype/property-paragraph-separator: Likewise.
47517         * modules/unictype/property-pattern-syntax: Likewise.
47518         * modules/unictype/property-pattern-white-space: Likewise.
47519         * modules/unictype/property-private-use: Likewise.
47520         * modules/unictype/property-punctuation: Likewise.
47521         * modules/unictype/property-quotation-mark: Likewise.
47522         * modules/unictype/property-radical: Likewise.
47523         * modules/unictype/property-sentence-terminal: Likewise.
47524         * modules/unictype/property-soft-dotted: Likewise.
47525         * modules/unictype/property-space: Likewise.
47526         * modules/unictype/property-terminal-punctuation: Likewise.
47527         * modules/unictype/property-test: Likewise.
47528         * modules/unictype/property-titlecase: Likewise.
47529         * modules/unictype/property-unassigned-code-value: Likewise.
47530         * modules/unictype/property-unified-ideograph: Likewise.
47531         * modules/unictype/property-uppercase: Likewise.
47532         * modules/unictype/property-variation-selector: Likewise.
47533         * modules/unictype/property-white-space: Likewise.
47534         * modules/unictype/property-xid-continue: Likewise.
47535         * modules/unictype/property-xid-start: Likewise.
47536         * modules/unictype/property-zero-width: Likewise.
47537         * modules/unictype/scripts: Likewise.
47538         * modules/unictype/syntax-c-ident: Likewise.
47539         * modules/unictype/syntax-c-whitespace: Likewise.
47540         * modules/unictype/syntax-java-ident: Likewise.
47541         * modules/unictype/syntax-java-whitespace: Likewise.
47542         * modules/unilbrk/u8-possible-linebreaks: Likewise.
47543         * modules/unilbrk/u8-width-linebreaks: Likewise.
47544         * modules/unilbrk/u16-possible-linebreaks: Likewise.
47545         * modules/unilbrk/u16-width-linebreaks: Likewise.
47546         * modules/unilbrk/u32-possible-linebreaks: Likewise.
47547         * modules/unilbrk/u32-width-linebreaks: Likewise.
47548         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
47549         * modules/unilbrk/ulc-width-linebreaks: Likewise.
47550         * modules/uniname/uniname: Likewise.
47551         * modules/uninorm/canonical-decomposition: Likewise.
47552         * modules/uninorm/composition: Likewise.
47553         * modules/uninorm/decomposing-form: Likewise.
47554         * modules/uninorm/decomposition: Likewise.
47555         * modules/uninorm/filter: Likewise.
47556         * modules/uninorm/nfc: Likewise.
47557         * modules/uninorm/nfd: Likewise.
47558         * modules/uninorm/nfkc: Likewise.
47559         * modules/uninorm/nfkd: Likewise.
47560         * modules/uninorm/u8-normalize: Likewise.
47561         * modules/uninorm/u8-normcmp: Likewise.
47562         * modules/uninorm/u8-normcoll: Likewise.
47563         * modules/uninorm/u8-normxfrm: Likewise.
47564         * modules/uninorm/u16-normalize: Likewise.
47565         * modules/uninorm/u16-normcmp: Likewise.
47566         * modules/uninorm/u16-normcoll: Likewise.
47567         * modules/uninorm/u16-normxfrm: Likewise.
47568         * modules/uninorm/u32-normalize: Likewise.
47569         * modules/uninorm/u32-normcmp: Likewise.
47570         * modules/uninorm/u32-normcoll: Likewise.
47571         * modules/uninorm/u32-normxfrm: Likewise.
47572         * modules/unistdio/u8-asnprintf: Likewise.
47573         * modules/unistdio/u8-asprintf: Likewise.
47574         * modules/unistdio/u8-snprintf: Likewise.
47575         * modules/unistdio/u8-sprintf: Likewise.
47576         * modules/unistdio/u8-u8-asnprintf: Likewise.
47577         * modules/unistdio/u8-u8-asprintf: Likewise.
47578         * modules/unistdio/u8-u8-snprintf: Likewise.
47579         * modules/unistdio/u8-u8-sprintf: Likewise.
47580         * modules/unistdio/u8-u8-vasnprintf: Likewise.
47581         * modules/unistdio/u8-u8-vasprintf: Likewise.
47582         * modules/unistdio/u8-u8-vsnprintf: Likewise.
47583         * modules/unistdio/u8-u8-vsprintf: Likewise.
47584         * modules/unistdio/u8-vasnprintf: Likewise.
47585         * modules/unistdio/u8-vasprintf: Likewise.
47586         * modules/unistdio/u8-vsnprintf: Likewise.
47587         * modules/unistdio/u8-vsprintf: Likewise.
47588         * modules/unistdio/u16-asnprintf: Likewise.
47589         * modules/unistdio/u16-asprintf: Likewise.
47590         * modules/unistdio/u16-snprintf: Likewise.
47591         * modules/unistdio/u16-sprintf: Likewise.
47592         * modules/unistdio/u16-u16-asnprintf: Likewise.
47593         * modules/unistdio/u16-u16-asprintf: Likewise.
47594         * modules/unistdio/u16-u16-snprintf: Likewise.
47595         * modules/unistdio/u16-u16-sprintf: Likewise.
47596         * modules/unistdio/u16-u16-vasnprintf: Likewise.
47597         * modules/unistdio/u16-u16-vasprintf: Likewise.
47598         * modules/unistdio/u16-u16-vsnprintf: Likewise.
47599         * modules/unistdio/u16-u16-vsprintf: Likewise.
47600         * modules/unistdio/u16-vasnprintf: Likewise.
47601         * modules/unistdio/u16-vasprintf: Likewise.
47602         * modules/unistdio/u16-vsnprintf: Likewise.
47603         * modules/unistdio/u16-vsprintf: Likewise.
47604         * modules/unistdio/u32-asnprintf: Likewise.
47605         * modules/unistdio/u32-asprintf: Likewise.
47606         * modules/unistdio/u32-snprintf: Likewise.
47607         * modules/unistdio/u32-sprintf: Likewise.
47608         * modules/unistdio/u32-u32-asnprintf: Likewise.
47609         * modules/unistdio/u32-u32-asprintf: Likewise.
47610         * modules/unistdio/u32-u32-snprintf: Likewise.
47611         * modules/unistdio/u32-u32-sprintf: Likewise.
47612         * modules/unistdio/u32-u32-vasnprintf: Likewise.
47613         * modules/unistdio/u32-u32-vasprintf: Likewise.
47614         * modules/unistdio/u32-u32-vsnprintf: Likewise.
47615         * modules/unistdio/u32-u32-vsprintf: Likewise.
47616         * modules/unistdio/u32-vasnprintf: Likewise.
47617         * modules/unistdio/u32-vasprintf: Likewise.
47618         * modules/unistdio/u32-vsnprintf: Likewise.
47619         * modules/unistdio/u32-vsprintf: Likewise.
47620         * modules/unistdio/ulc-asnprintf: Likewise.
47621         * modules/unistdio/ulc-asprintf: Likewise.
47622         * modules/unistdio/ulc-fprintf: Likewise.
47623         * modules/unistdio/ulc-snprintf: Likewise.
47624         * modules/unistdio/ulc-sprintf: Likewise.
47625         * modules/unistdio/ulc-vasnprintf: Likewise.
47626         * modules/unistdio/ulc-vasprintf: Likewise.
47627         * modules/unistdio/ulc-vfprintf: Likewise.
47628         * modules/unistdio/ulc-vsnprintf: Likewise.
47629         * modules/unistdio/ulc-vsprintf: Likewise.
47630         * modules/unistr/u8-check: Likewise.
47631         * modules/unistr/u8-chr: Likewise.
47632         * modules/unistr/u8-cmp: Likewise.
47633         * modules/unistr/u8-cmp2: Likewise.
47634         * modules/unistr/u8-cpy: Likewise.
47635         * modules/unistr/u8-cpy-alloc: Likewise.
47636         * modules/unistr/u8-endswith: Likewise.
47637         * modules/unistr/u8-mblen: Likewise.
47638         * modules/unistr/u8-mbsnlen: Likewise.
47639         * modules/unistr/u8-mbtouc: Likewise.
47640         * modules/unistr/u8-mbtouc-unsafe: Likewise.
47641         * modules/unistr/u8-mbtoucr: Likewise.
47642         * modules/unistr/u8-move: Likewise.
47643         * modules/unistr/u8-next: Likewise.
47644         * modules/unistr/u8-prev: Likewise.
47645         * modules/unistr/u8-set: Likewise.
47646         * modules/unistr/u8-startswith: Likewise.
47647         * modules/unistr/u8-stpcpy: Likewise.
47648         * modules/unistr/u8-stpncpy: Likewise.
47649         * modules/unistr/u8-strcat: Likewise.
47650         * modules/unistr/u8-strchr: Likewise.
47651         * modules/unistr/u8-strcmp: Likewise.
47652         * modules/unistr/u8-strcoll: Likewise.
47653         * modules/unistr/u8-strcpy: Likewise.
47654         * modules/unistr/u8-strcspn: Likewise.
47655         * modules/unistr/u8-strdup: Likewise.
47656         * modules/unistr/u8-strlen: Likewise.
47657         * modules/unistr/u8-strmblen: Likewise.
47658         * modules/unistr/u8-strmbtouc: Likewise.
47659         * modules/unistr/u8-strncat: Likewise.
47660         * modules/unistr/u8-strncmp: Likewise.
47661         * modules/unistr/u8-strncpy: Likewise.
47662         * modules/unistr/u8-strnlen: Likewise.
47663         * modules/unistr/u8-strpbrk: Likewise.
47664         * modules/unistr/u8-strrchr: Likewise.
47665         * modules/unistr/u8-strspn: Likewise.
47666         * modules/unistr/u8-strstr: Likewise.
47667         * modules/unistr/u8-strtok: Likewise.
47668         * modules/unistr/u8-to-u16: Likewise.
47669         * modules/unistr/u8-to-u32: Likewise.
47670         * modules/unistr/u8-uctomb: Likewise.
47671         * modules/unistr/u16-check: Likewise.
47672         * modules/unistr/u16-chr: Likewise.
47673         * modules/unistr/u16-cmp: Likewise.
47674         * modules/unistr/u16-cmp2: Likewise.
47675         * modules/unistr/u16-cpy: Likewise.
47676         * modules/unistr/u16-cpy-alloc: Likewise.
47677         * modules/unistr/u16-endswith: Likewise.
47678         * modules/unistr/u16-mblen: Likewise.
47679         * modules/unistr/u16-mbsnlen: Likewise.
47680         * modules/unistr/u16-mbtouc: Likewise.
47681         * modules/unistr/u16-mbtouc-unsafe: Likewise.
47682         * modules/unistr/u16-mbtoucr: Likewise.
47683         * modules/unistr/u16-move: Likewise.
47684         * modules/unistr/u16-next: Likewise.
47685         * modules/unistr/u16-prev: Likewise.
47686         * modules/unistr/u16-set: Likewise.
47687         * modules/unistr/u16-startswith: Likewise.
47688         * modules/unistr/u16-stpcpy: Likewise.
47689         * modules/unistr/u16-stpncpy: Likewise.
47690         * modules/unistr/u16-strcat: Likewise.
47691         * modules/unistr/u16-strchr: Likewise.
47692         * modules/unistr/u16-strcmp: Likewise.
47693         * modules/unistr/u16-strcoll: Likewise.
47694         * modules/unistr/u16-strcpy: Likewise.
47695         * modules/unistr/u16-strcspn: Likewise.
47696         * modules/unistr/u16-strdup: Likewise.
47697         * modules/unistr/u16-strlen: Likewise.
47698         * modules/unistr/u16-strmblen: Likewise.
47699         * modules/unistr/u16-strmbtouc: Likewise.
47700         * modules/unistr/u16-strncat: Likewise.
47701         * modules/unistr/u16-strncmp: Likewise.
47702         * modules/unistr/u16-strncpy: Likewise.
47703         * modules/unistr/u16-strnlen: Likewise.
47704         * modules/unistr/u16-strpbrk: Likewise.
47705         * modules/unistr/u16-strrchr: Likewise.
47706         * modules/unistr/u16-strspn: Likewise.
47707         * modules/unistr/u16-strstr: Likewise.
47708         * modules/unistr/u16-strtok: Likewise.
47709         * modules/unistr/u16-to-u32: Likewise.
47710         * modules/unistr/u16-to-u8: Likewise.
47711         * modules/unistr/u16-uctomb: Likewise.
47712         * modules/unistr/u32-check: Likewise.
47713         * modules/unistr/u32-chr: Likewise.
47714         * modules/unistr/u32-cmp: Likewise.
47715         * modules/unistr/u32-cmp2: Likewise.
47716         * modules/unistr/u32-cpy: Likewise.
47717         * modules/unistr/u32-cpy-alloc: Likewise.
47718         * modules/unistr/u32-endswith: Likewise.
47719         * modules/unistr/u32-mblen: Likewise.
47720         * modules/unistr/u32-mbsnlen: Likewise.
47721         * modules/unistr/u32-mbtouc: Likewise.
47722         * modules/unistr/u32-mbtouc-unsafe: Likewise.
47723         * modules/unistr/u32-mbtoucr: Likewise.
47724         * modules/unistr/u32-move: Likewise.
47725         * modules/unistr/u32-next: Likewise.
47726         * modules/unistr/u32-prev: Likewise.
47727         * modules/unistr/u32-set: Likewise.
47728         * modules/unistr/u32-startswith: Likewise.
47729         * modules/unistr/u32-stpcpy: Likewise.
47730         * modules/unistr/u32-stpncpy: Likewise.
47731         * modules/unistr/u32-strcat: Likewise.
47732         * modules/unistr/u32-strchr: Likewise.
47733         * modules/unistr/u32-strcmp: Likewise.
47734         * modules/unistr/u32-strcoll: Likewise.
47735         * modules/unistr/u32-strcpy: Likewise.
47736         * modules/unistr/u32-strcspn: Likewise.
47737         * modules/unistr/u32-strdup: Likewise.
47738         * modules/unistr/u32-strlen: Likewise.
47739         * modules/unistr/u32-strmblen: Likewise.
47740         * modules/unistr/u32-strmbtouc: Likewise.
47741         * modules/unistr/u32-strncat: Likewise.
47742         * modules/unistr/u32-strncmp: Likewise.
47743         * modules/unistr/u32-strncpy: Likewise.
47744         * modules/unistr/u32-strnlen: Likewise.
47745         * modules/unistr/u32-strpbrk: Likewise.
47746         * modules/unistr/u32-strrchr: Likewise.
47747         * modules/unistr/u32-strspn: Likewise.
47748         * modules/unistr/u32-strstr: Likewise.
47749         * modules/unistr/u32-strtok: Likewise.
47750         * modules/unistr/u32-to-u16: Likewise.
47751         * modules/unistr/u32-to-u8: Likewise.
47752         * modules/unistr/u32-uctomb: Likewise.
47753         * modules/uniwbrk/u8-wordbreaks: Likewise.
47754         * modules/uniwbrk/u16-wordbreaks: Likewise.
47755         * modules/uniwbrk/u32-wordbreaks: Likewise.
47756         * modules/uniwbrk/ulc-wordbreaks: Likewise.
47757         * modules/uniwbrk/wordbreak-property: Likewise.
47758         * modules/uniwidth/u8-strwidth: Likewise.
47759         * modules/uniwidth/u8-width: Likewise.
47760         * modules/uniwidth/u16-strwidth: Likewise.
47761         * modules/uniwidth/u16-width: Likewise.
47762         * modules/uniwidth/u32-strwidth: Likewise.
47763         * modules/uniwidth/u32-width: Likewise.
47764         * modules/uniwidth/width: Likewise.
47765         * modules/unicase/cased-tests (Makefile.am): Link all test programs
47766         with $(LIBUNISTRING).
47767         * modules/unicase/ignorable-tests: Likewise.
47768         * modules/unicase/locale-language-tests: Likewise.
47769         * modules/unicase/tolower-tests: Likewise.
47770         * modules/unicase/totitle-tests: Likewise.
47771         * modules/unicase/toupper-tests: Likewise.
47772         * modules/unicase/u8-casecmp-tests: Likewise.
47773         * modules/unicase/u8-casecoll-tests: Likewise.
47774         * modules/unicase/u8-casefold-tests: Likewise.
47775         * modules/unicase/u8-is-cased-tests: Likewise.
47776         * modules/unicase/u8-is-casefolded-tests: Likewise.
47777         * modules/unicase/u8-is-lowercase-tests: Likewise.
47778         * modules/unicase/u8-is-titlecase-tests: Likewise.
47779         * modules/unicase/u8-is-uppercase-tests: Likewise.
47780         * modules/unicase/u8-tolower-tests: Likewise.
47781         * modules/unicase/u8-totitle-tests: Likewise.
47782         * modules/unicase/u8-toupper-tests: Likewise.
47783         * modules/unicase/u16-casecmp-tests: Likewise.
47784         * modules/unicase/u16-casecoll-tests: Likewise.
47785         * modules/unicase/u16-casefold-tests: Likewise.
47786         * modules/unicase/u16-is-cased-tests: Likewise.
47787         * modules/unicase/u16-is-casefolded-tests: Likewise.
47788         * modules/unicase/u16-is-lowercase-tests: Likewise.
47789         * modules/unicase/u16-is-titlecase-tests: Likewise.
47790         * modules/unicase/u16-is-uppercase-tests: Likewise.
47791         * modules/unicase/u16-tolower-tests: Likewise.
47792         * modules/unicase/u16-totitle-tests: Likewise.
47793         * modules/unicase/u16-toupper-tests: Likewise.
47794         * modules/unicase/u32-casecmp-tests: Likewise.
47795         * modules/unicase/u32-casecoll-tests: Likewise.
47796         * modules/unicase/u32-casefold-tests: Likewise.
47797         * modules/unicase/u32-is-cased-tests: Likewise.
47798         * modules/unicase/u32-is-casefolded-tests: Likewise.
47799         * modules/unicase/u32-is-lowercase-tests: Likewise.
47800         * modules/unicase/u32-is-titlecase-tests: Likewise.
47801         * modules/unicase/u32-is-uppercase-tests: Likewise.
47802         * modules/unicase/u32-tolower-tests: Likewise.
47803         * modules/unicase/u32-totitle-tests: Likewise.
47804         * modules/unicase/u32-toupper-tests: Likewise.
47805         * modules/unicase/ulc-casecmp-tests: Likewise.
47806         * modules/unicase/ulc-casecoll-tests: Likewise.
47807         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
47808         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
47809         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
47810         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
47811         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
47812         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
47813         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
47814         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
47815         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
47816         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
47817         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
47818         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
47819         * modules/unictype/bidicategory-byname-tests: Likewise.
47820         * modules/unictype/bidicategory-name-tests: Likewise.
47821         * modules/unictype/bidicategory-of-tests: Likewise.
47822         * modules/unictype/bidicategory-test-tests: Likewise.
47823         * modules/unictype/block-list-tests: Likewise.
47824         * modules/unictype/block-of-tests: Likewise.
47825         * modules/unictype/block-test-tests: Likewise.
47826         * modules/unictype/category-C-tests: Likewise.
47827         * modules/unictype/category-Cc-tests: Likewise.
47828         * modules/unictype/category-Cf-tests: Likewise.
47829         * modules/unictype/category-Cn-tests: Likewise.
47830         * modules/unictype/category-Co-tests: Likewise.
47831         * modules/unictype/category-Cs-tests: Likewise.
47832         * modules/unictype/category-L-tests: Likewise.
47833         * modules/unictype/category-Ll-tests: Likewise.
47834         * modules/unictype/category-Lm-tests: Likewise.
47835         * modules/unictype/category-Lo-tests: Likewise.
47836         * modules/unictype/category-Lt-tests: Likewise.
47837         * modules/unictype/category-Lu-tests: Likewise.
47838         * modules/unictype/category-M-tests: Likewise.
47839         * modules/unictype/category-Mc-tests: Likewise.
47840         * modules/unictype/category-Me-tests: Likewise.
47841         * modules/unictype/category-Mn-tests: Likewise.
47842         * modules/unictype/category-N-tests: Likewise.
47843         * modules/unictype/category-Nd-tests: Likewise.
47844         * modules/unictype/category-Nl-tests: Likewise.
47845         * modules/unictype/category-No-tests: Likewise.
47846         * modules/unictype/category-P-tests: Likewise.
47847         * modules/unictype/category-Pc-tests: Likewise.
47848         * modules/unictype/category-Pd-tests: Likewise.
47849         * modules/unictype/category-Pe-tests: Likewise.
47850         * modules/unictype/category-Pf-tests: Likewise.
47851         * modules/unictype/category-Pi-tests: Likewise.
47852         * modules/unictype/category-Po-tests: Likewise.
47853         * modules/unictype/category-Ps-tests: Likewise.
47854         * modules/unictype/category-S-tests: Likewise.
47855         * modules/unictype/category-Sc-tests: Likewise.
47856         * modules/unictype/category-Sk-tests: Likewise.
47857         * modules/unictype/category-Sm-tests: Likewise.
47858         * modules/unictype/category-So-tests: Likewise.
47859         * modules/unictype/category-Z-tests: Likewise.
47860         * modules/unictype/category-Zl-tests: Likewise.
47861         * modules/unictype/category-Zp-tests: Likewise.
47862         * modules/unictype/category-Zs-tests: Likewise.
47863         * modules/unictype/category-and-not-tests: Likewise.
47864         * modules/unictype/category-and-tests: Likewise.
47865         * modules/unictype/category-byname-tests: Likewise.
47866         * modules/unictype/category-name-tests: Likewise.
47867         * modules/unictype/category-none-tests: Likewise.
47868         * modules/unictype/category-of-tests: Likewise.
47869         * modules/unictype/category-or-tests: Likewise.
47870         * modules/unictype/category-test-withtable-tests: Likewise.
47871         * modules/unictype/combining-class-tests: Likewise.
47872         * modules/unictype/ctype-alnum-tests: Likewise.
47873         * modules/unictype/ctype-alpha-tests: Likewise.
47874         * modules/unictype/ctype-blank-tests: Likewise.
47875         * modules/unictype/ctype-cntrl-tests: Likewise.
47876         * modules/unictype/ctype-digit-tests: Likewise.
47877         * modules/unictype/ctype-graph-tests: Likewise.
47878         * modules/unictype/ctype-lower-tests: Likewise.
47879         * modules/unictype/ctype-print-tests: Likewise.
47880         * modules/unictype/ctype-punct-tests: Likewise.
47881         * modules/unictype/ctype-space-tests: Likewise.
47882         * modules/unictype/ctype-upper-tests: Likewise.
47883         * modules/unictype/ctype-xdigit-tests: Likewise.
47884         * modules/unictype/decimal-digit-tests: Likewise.
47885         * modules/unictype/digit-tests: Likewise.
47886         * modules/unictype/mirror-tests: Likewise.
47887         * modules/unictype/numeric-tests: Likewise.
47888         * modules/unictype/property-alphabetic-tests: Likewise.
47889         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
47890         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
47891         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
47892         * modules/unictype/property-bidi-block-separator-tests: Likewise.
47893         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
47894         * modules/unictype/property-bidi-common-separator-tests: Likewise.
47895         * modules/unictype/property-bidi-control-tests: Likewise.
47896         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
47897         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
47898         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
47899         * modules/unictype/property-bidi-european-digit-tests: Likewise.
47900         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
47901         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
47902         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
47903         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
47904         * modules/unictype/property-bidi-pdf-tests: Likewise.
47905         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
47906         * modules/unictype/property-bidi-whitespace-tests: Likewise.
47907         * modules/unictype/property-byname-tests: Likewise.
47908         * modules/unictype/property-combining-tests: Likewise.
47909         * modules/unictype/property-composite-tests: Likewise.
47910         * modules/unictype/property-currency-symbol-tests: Likewise.
47911         * modules/unictype/property-dash-tests: Likewise.
47912         * modules/unictype/property-decimal-digit-tests: Likewise.
47913         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
47914         * modules/unictype/property-deprecated-tests: Likewise.
47915         * modules/unictype/property-diacritic-tests: Likewise.
47916         * modules/unictype/property-extender-tests: Likewise.
47917         * modules/unictype/property-format-control-tests: Likewise.
47918         * modules/unictype/property-grapheme-base-tests: Likewise.
47919         * modules/unictype/property-grapheme-extend-tests: Likewise.
47920         * modules/unictype/property-grapheme-link-tests: Likewise.
47921         * modules/unictype/property-hex-digit-tests: Likewise.
47922         * modules/unictype/property-hyphen-tests: Likewise.
47923         * modules/unictype/property-id-continue-tests: Likewise.
47924         * modules/unictype/property-id-start-tests: Likewise.
47925         * modules/unictype/property-ideographic-tests: Likewise.
47926         * modules/unictype/property-ids-binary-operator-tests: Likewise.
47927         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
47928         * modules/unictype/property-ignorable-control-tests: Likewise.
47929         * modules/unictype/property-iso-control-tests: Likewise.
47930         * modules/unictype/property-join-control-tests: Likewise.
47931         * modules/unictype/property-left-of-pair-tests: Likewise.
47932         * modules/unictype/property-line-separator-tests: Likewise.
47933         * modules/unictype/property-logical-order-exception-tests: Likewise.
47934         * modules/unictype/property-lowercase-tests: Likewise.
47935         * modules/unictype/property-math-tests: Likewise.
47936         * modules/unictype/property-non-break-tests: Likewise.
47937         * modules/unictype/property-not-a-character-tests: Likewise.
47938         * modules/unictype/property-numeric-tests: Likewise.
47939         * modules/unictype/property-other-alphabetic-tests: Likewise.
47940         * modules/unictype/property-other-default-ignorable-code-point-tests:
47941         Likewise.
47942         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
47943         * modules/unictype/property-other-id-continue-tests: Likewise.
47944         * modules/unictype/property-other-id-start-tests: Likewise.
47945         * modules/unictype/property-other-lowercase-tests: Likewise.
47946         * modules/unictype/property-other-math-tests: Likewise.
47947         * modules/unictype/property-other-uppercase-tests: Likewise.
47948         * modules/unictype/property-paired-punctuation-tests: Likewise.
47949         * modules/unictype/property-paragraph-separator-tests: Likewise.
47950         * modules/unictype/property-pattern-syntax-tests: Likewise.
47951         * modules/unictype/property-pattern-white-space-tests: Likewise.
47952         * modules/unictype/property-private-use-tests: Likewise.
47953         * modules/unictype/property-punctuation-tests: Likewise.
47954         * modules/unictype/property-quotation-mark-tests: Likewise.
47955         * modules/unictype/property-radical-tests: Likewise.
47956         * modules/unictype/property-sentence-terminal-tests: Likewise.
47957         * modules/unictype/property-soft-dotted-tests: Likewise.
47958         * modules/unictype/property-space-tests: Likewise.
47959         * modules/unictype/property-terminal-punctuation-tests: Likewise.
47960         * modules/unictype/property-test-tests: Likewise.
47961         * modules/unictype/property-titlecase-tests: Likewise.
47962         * modules/unictype/property-unassigned-code-value-tests: Likewise.
47963         * modules/unictype/property-unified-ideograph-tests: Likewise.
47964         * modules/unictype/property-uppercase-tests: Likewise.
47965         * modules/unictype/property-variation-selector-tests: Likewise.
47966         * modules/unictype/property-white-space-tests: Likewise.
47967         * modules/unictype/property-xid-continue-tests: Likewise.
47968         * modules/unictype/property-xid-start-tests: Likewise.
47969         * modules/unictype/property-zero-width-tests: Likewise.
47970         * modules/unictype/scripts-tests: Likewise.
47971         * modules/unictype/syntax-c-ident-tests: Likewise.
47972         * modules/unictype/syntax-c-whitespace-tests: Likewise.
47973         * modules/unictype/syntax-java-ident-tests: Likewise.
47974         * modules/unictype/syntax-java-whitespace-tests: Likewise.
47975         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
47976         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
47977         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
47978         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
47979         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
47980         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
47981         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
47982         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
47983         * modules/uniname/uniname-tests: Likewise.
47984         * modules/uninorm/canonical-decomposition-tests: Likewise.
47985         * modules/uninorm/compat-decomposition-tests: Likewise.
47986         * modules/uninorm/composition-tests: Likewise.
47987         * modules/uninorm/decomposing-form-tests: Likewise.
47988         * modules/uninorm/decomposition-tests: Likewise.
47989         * modules/uninorm/filter-tests: Likewise.
47990         * modules/uninorm/nfc-tests: Likewise.
47991         * modules/uninorm/nfd-tests: Likewise.
47992         * modules/uninorm/nfkc-tests: Likewise.
47993         * modules/uninorm/nfkd-tests: Likewise.
47994         * modules/uninorm/u8-normcmp-tests: Likewise.
47995         * modules/uninorm/u8-normcoll-tests: Likewise.
47996         * modules/uninorm/u16-normcmp-tests: Likewise.
47997         * modules/uninorm/u16-normcoll-tests: Likewise.
47998         * modules/uninorm/u32-normcmp-tests: Likewise.
47999         * modules/uninorm/u32-normcoll-tests: Likewise.
48000         * modules/unistdio/u8-asnprintf-tests: Likewise.
48001         * modules/unistdio/u8-vasnprintf-tests: Likewise.
48002         * modules/unistdio/u8-vasprintf-tests: Likewise.
48003         * modules/unistdio/u8-vsnprintf-tests: Likewise.
48004         * modules/unistdio/u8-vsprintf-tests: Likewise.
48005         * modules/unistdio/u16-asnprintf-tests: Likewise.
48006         * modules/unistdio/u16-vasnprintf-tests: Likewise.
48007         * modules/unistdio/u16-vasprintf-tests: Likewise.
48008         * modules/unistdio/u16-vsnprintf-tests: Likewise.
48009         * modules/unistdio/u16-vsprintf-tests: Likewise.
48010         * modules/unistdio/u32-asnprintf-tests: Likewise.
48011         * modules/unistdio/u32-vasnprintf-tests: Likewise.
48012         * modules/unistdio/u32-vasprintf-tests: Likewise.
48013         * modules/unistdio/u32-vsnprintf-tests: Likewise.
48014         * modules/unistdio/u32-vsprintf-tests: Likewise.
48015         * modules/unistdio/ulc-asnprintf-tests: Likewise.
48016         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
48017         * modules/unistdio/ulc-vasprintf-tests: Likewise.
48018         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
48019         * modules/unistdio/ulc-vsprintf-tests: Likewise.
48020         * modules/unistr/u8-check-tests: Likewise.
48021         * modules/unistr/u8-chr-tests: Likewise.
48022         * modules/unistr/u8-cmp-tests: Likewise.
48023         * modules/unistr/u8-cmp2-tests: Likewise.
48024         * modules/unistr/u8-cpy-alloc-tests: Likewise.
48025         * modules/unistr/u8-cpy-tests: Likewise.
48026         * modules/unistr/u8-mblen-tests: Likewise.
48027         * modules/unistr/u8-mbsnlen-tests: Likewise.
48028         * modules/unistr/u8-mbtouc-tests: Likewise.
48029         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
48030         * modules/unistr/u8-mbtoucr-tests: Likewise.
48031         * modules/unistr/u8-move-tests: Likewise.
48032         * modules/unistr/u8-next-tests: Likewise.
48033         * modules/unistr/u8-prev-tests: Likewise.
48034         * modules/unistr/u8-set-tests: Likewise.
48035         * modules/unistr/u8-stpcpy-tests: Likewise.
48036         * modules/unistr/u8-stpncpy-tests: Likewise.
48037         * modules/unistr/u8-strcat-tests: Likewise.
48038         * modules/unistr/u8-strcmp-tests: Likewise.
48039         * modules/unistr/u8-strcoll-tests: Likewise.
48040         * modules/unistr/u8-strcpy-tests: Likewise.
48041         * modules/unistr/u8-strdup-tests: Likewise.
48042         * modules/unistr/u8-strlen-tests: Likewise.
48043         * modules/unistr/u8-strmblen-tests: Likewise.
48044         * modules/unistr/u8-strmbtouc-tests: Likewise.
48045         * modules/unistr/u8-strncat-tests: Likewise.
48046         * modules/unistr/u8-strncmp-tests: Likewise.
48047         * modules/unistr/u8-strncpy-tests: Likewise.
48048         * modules/unistr/u8-strnlen-tests: Likewise.
48049         * modules/unistr/u8-to-u16-tests: Likewise.
48050         * modules/unistr/u8-to-u32-tests: Likewise.
48051         * modules/unistr/u8-uctomb-tests: Likewise.
48052         * modules/unistr/u16-check-tests: Likewise.
48053         * modules/unistr/u16-chr-tests: Likewise.
48054         * modules/unistr/u16-cmp-tests: Likewise.
48055         * modules/unistr/u16-cmp2-tests: Likewise.
48056         * modules/unistr/u16-cpy-alloc-tests: Likewise.
48057         * modules/unistr/u16-cpy-tests: Likewise.
48058         * modules/unistr/u16-mblen-tests: Likewise.
48059         * modules/unistr/u16-mbsnlen-tests: Likewise.
48060         * modules/unistr/u16-mbtouc-tests: Likewise.
48061         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
48062         * modules/unistr/u16-mbtoucr-tests: Likewise.
48063         * modules/unistr/u16-move-tests: Likewise.
48064         * modules/unistr/u16-next-tests: Likewise.
48065         * modules/unistr/u16-prev-tests: Likewise.
48066         * modules/unistr/u16-set-tests: Likewise.
48067         * modules/unistr/u16-stpcpy-tests: Likewise.
48068         * modules/unistr/u16-stpncpy-tests: Likewise.
48069         * modules/unistr/u16-strcat-tests: Likewise.
48070         * modules/unistr/u16-strcmp-tests: Likewise.
48071         * modules/unistr/u16-strcoll-tests: Likewise.
48072         * modules/unistr/u16-strcpy-tests: Likewise.
48073         * modules/unistr/u16-strdup-tests: Likewise.
48074         * modules/unistr/u16-strlen-tests: Likewise.
48075         * modules/unistr/u16-strmblen-tests: Likewise.
48076         * modules/unistr/u16-strmbtouc-tests: Likewise.
48077         * modules/unistr/u16-strncat-tests: Likewise.
48078         * modules/unistr/u16-strncmp-tests: Likewise.
48079         * modules/unistr/u16-strncpy-tests: Likewise.
48080         * modules/unistr/u16-strnlen-tests: Likewise.
48081         * modules/unistr/u16-to-u32-tests: Likewise.
48082         * modules/unistr/u16-to-u8-tests: Likewise.
48083         * modules/unistr/u16-uctomb-tests: Likewise.
48084         * modules/unistr/u32-check-tests: Likewise.
48085         * modules/unistr/u32-chr-tests: Likewise.
48086         * modules/unistr/u32-cmp-tests: Likewise.
48087         * modules/unistr/u32-cmp2-tests: Likewise.
48088         * modules/unistr/u32-cpy-alloc-tests: Likewise.
48089         * modules/unistr/u32-cpy-tests: Likewise.
48090         * modules/unistr/u32-mblen-tests: Likewise.
48091         * modules/unistr/u32-mbsnlen-tests: Likewise.
48092         * modules/unistr/u32-mbtouc-tests: Likewise.
48093         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
48094         * modules/unistr/u32-mbtoucr-tests: Likewise.
48095         * modules/unistr/u32-move-tests: Likewise.
48096         * modules/unistr/u32-next-tests: Likewise.
48097         * modules/unistr/u32-prev-tests: Likewise.
48098         * modules/unistr/u32-set-tests: Likewise.
48099         * modules/unistr/u32-stpcpy-tests: Likewise.
48100         * modules/unistr/u32-stpncpy-tests: Likewise.
48101         * modules/unistr/u32-strcat-tests: Likewise.
48102         * modules/unistr/u32-strcmp-tests: Likewise.
48103         * modules/unistr/u32-strcoll-tests: Likewise.
48104         * modules/unistr/u32-strcpy-tests: Likewise.
48105         * modules/unistr/u32-strdup-tests: Likewise.
48106         * modules/unistr/u32-strlen-tests: Likewise.
48107         * modules/unistr/u32-strmblen-tests: Likewise.
48108         * modules/unistr/u32-strmbtouc-tests: Likewise.
48109         * modules/unistr/u32-strncat-tests: Likewise.
48110         * modules/unistr/u32-strncmp-tests: Likewise.
48111         * modules/unistr/u32-strncpy-tests: Likewise.
48112         * modules/unistr/u32-strnlen-tests: Likewise.
48113         * modules/unistr/u32-to-u16-tests: Likewise.
48114         * modules/unistr/u32-to-u8-tests: Likewise.
48115         * modules/unistr/u32-uctomb-tests: Likewise.
48116         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
48117         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
48118         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
48119         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
48120         * modules/uniwidth/u8-strwidth-tests: Likewise.
48121         * modules/uniwidth/u8-width-tests: Likewise.
48122         * modules/uniwidth/u16-strwidth-tests: Likewise.
48123         * modules/uniwidth/u16-width-tests: Likewise.
48124         * modules/uniwidth/u32-strwidth-tests: Likewise.
48125         * modules/uniwidth/u32-width-tests: Likewise.
48126         * modules/uniwidth/width-tests: Likewise.
48128 2010-05-18  Richard Jones  <rjones@redhat.com>
48130         doc: users.txt: list hivex
48131         * users.txt: Add hivex.
48133 2010-05-18  Richard Jones  <rjones@redhat.com>
48135         doc: users.txt: list febootstrap
48136         * users.txt: Add febootstrap.
48138 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
48140         bootstrap: fix an error when gnulib is not used as a git submodule
48141         * build-aux/bootstrap (gnulib_path): If its length is zero then
48142         assign "gnulib" to it.
48143         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
48145 2010-05-16  Bruno Haible  <bruno@clisp.org>
48147         Avoid autoconf warnings about AM_ICONV.
48148         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
48149         2.64.
48151 2010-05-16  Bruno Haible  <bruno@clisp.org>
48153         absolute-header: Make the macro usable in more situations.
48154         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
48155         from gl_ABSOLUTE_HEADER.
48156         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
48158 2010-05-16  James Youngman  <jay@gnu.org>
48160         doc: update users.txt
48161         * users.txt: Add CSSC.
48163 2010-05-16  Jim Meyering  <meyering@redhat.com>
48165         init.sh: fix an error in the previous change; add more comments
48166         * tests/init.sh: Compare exit code in loop against 9, not 2.
48167         Patch by Bruno Haible.
48168         Make the two tests more similar by adding an empty "then" clause.
48169         Add comments.
48171         init.sh: avoid unnecessary shell re-exec
48172         * tests/init.sh: Improve the re-exec-required check to first test the
48173         current shell.  If it passes the test, do not search for a shell that
48174         does pass, and do not re-exec.  This test is particularly contorted to
48175         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
48176         of $(...) evokes a syntax error and causes immediate shell exit with
48177         status 2.  Bruno Haible reported that the re-exec made it impossible
48178         to single-step through any init.sh-using script.
48180 2010-05-16  Bruno Haible  <bruno@clisp.org>
48182         Fix collision between gnulib's and libintl's printf replacements.
48183         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
48184         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
48185         (printf): When using GNU C, map the __printf__ function to rpl_printf
48186         via __asm__. When not using GNU C, define rpl_printf instead of
48187         __printf__.
48188         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
48189         commit.
48190         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
48191         commit.
48192         * m4/asm-underscore.m4: New file.
48193         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
48194         * modules/stdio (Files): Add m4/asm-underscore.m4.
48195         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
48196         Reported by Ben Pfaff.
48198 2010-05-16  Bruno Haible  <bruno@clisp.org>
48200         verify: Avoid skipping the test on openSUSE 11.0.
48201         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
48203 2010-05-13  Bruno Haible  <bruno@clisp.org>
48205         Avoid useless warnings from G++.
48206         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
48207         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
48208         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48210 2010-05-11  Jim Meyering  <meyering@redhat.com>
48212         maint.mk: tweak preceding change
48213         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
48214         regexps tighter by anchoring at EOL, and make the new group "shy"
48215         for slightly decreased overhead.
48217 2010-05-11  Eric Blake  <eblake@redhat.com>
48219         maint.mk: gnulib doesn't guarantee NSIG
48220         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
48222 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48224         test-pwrite.c: Remove unused variable declaration.
48225         * tests/test-pwrite.c (main): Remove read_buf declaration.
48227         Remove useless test-pwrite.sh file.
48228         * tests/test-pwrite.sh: Delete file.
48229         * modules/pwrite-tests: Remove references.
48230         Reported by Bruno Haible.
48232 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48234         init.sh: fix a typo
48235         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
48237 2010-05-10  Jim Meyering  <meyering@redhat.com>
48239         maint.mk: avoid using a temporary file in the always-defined-macros check
48240         * top/maint.mk (.re-defmac): Remove rule.
48241         (gl_trap_): Remove definition.
48242         (sc_prohibit_always-defined_macros): Rewrite not to create and
48243         depend on a temporary file.  Instead, depend on GNU grep's ability
48244         to read a list of regular expressions from stdin when given "-f -".
48246 2010-05-09  Bruno Haible  <bruno@clisp.org>
48248         Update to GNU gettext 0.18, part 1.
48249         * m4/gettext.m4: Update to GNU gettext 0.18.
48250         * m4/intl.m4: Likewise.
48251         * m4/po.m4: Likewise.
48252         * modules/gettext (Files): Add m4/fcntl-o.m4.
48253         (configure.ac): Require gettext infrastructure from version 0.18.
48255 2010-05-09  Jim Meyering  <meyering@redhat.com>
48257         init.sh: enable MALLOC_PERTURB_
48258         * tests/init.sh: Enable glibc's malloc-perturbing option.
48260         maint.mk: improve sc_cross_check_PATH_usage_in_tests
48261         With my recent change in init.sh from the two-line form:
48262             -#   : ${srcdir=.}
48263             -#   . "$srcdir/init.sh"; path_prepend_ .
48264             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
48265         I noticed that using the one-line form would cause this test
48266         to fail with a false-positive, or to stop working altogether,
48267         depending on whether help-version changed or all the tests did.
48268         * top/maint.mk (_hv_regex): Remove this definition.
48269         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
48270         (_hv_regex_strong): Use a stronger regex to check for conformance.
48271         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
48272         Give a separate diagnostic for lack of conforming use.
48274         maint.mk: prohibit definition of symbols defined by gnulib
48275         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
48276         definition of symbols defined by gnulib.
48278 2010-05-09  Bruno Haible  <bruno@clisp.org>
48280         acl: Avoid test failure on Cygwin-hosted mingw.
48281         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
48283 2010-05-09  Bruno Haible  <bruno@clisp.org>
48285         error: Use system's fcntl function.
48286         * lib/error.c (fcntl): Undefine.
48288 2010-05-09  Jim Meyering  <meyering@redhat.com>
48290         verify: adjust formatting to be more consistent
48291         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
48292         argument-list '('s, and after one comma.
48294 2010-05-09  Bruno Haible  <bruno@clisp.org>
48296         error: More reliable output on mingw.
48297         * lib/error.c: Include <windows.h>.
48298         (is_open): New function.
48299         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
48300         defined.
48302 2010-05-09  Bruno Haible  <bruno@clisp.org>
48304         vasnprintf: Fix syntax errors in libintl build on mingw.
48305         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
48306         pad_ourselves and prec_ourselves after use.
48308 2010-05-08  Bruno Haible  <bruno@clisp.org>
48310         * lib/config.charset: Update comments for Cygwin 1.7.
48311         * lib/localcharset.c: Likewise.
48313 2010-05-07  Jim Meyering  <meyering@redhat.com>
48315         init.sh: improve comments
48316         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
48317         . "${srcdir=.}/init.sh"; path_prepend_ .
48318         Add a note about path_prepend_ and the alternative of using
48319         TESTS_ENVIRONMENT.
48321 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
48323         exclude: Unescape hashed patterns in wildcard mode.
48324         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
48325         to the hash list.
48326         * tests/test-exclude8.sh: New test case.
48327         * modules/exclude-tests: Add new test.
48329 2010-05-05  Eric Blake  <eblake@redhat.com>
48331         verify: automate tests
48332         * modules/verify-tests: New module.
48333         * tests/test-verify.sh: New file.
48334         * tests/test-verify.c: Guard each negative test with a unique id.
48335         Also avoid warning about unused left hand of comma expressions.
48337 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48339         Further improvements to verify.h, suggested by Eric Blake.
48340         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
48341         the GL_* versions, to avoid collision with OpenGL.
48342         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
48343         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
48344         than testing merely whether it's defined.
48346         Modify verify.h to pacify gcc -Wredundant_decls.
48347         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
48348         These use the prefix "GL_" since they're likely to be useful elsewhere.
48349         We may need to break them out into a different .h file.
48350         (__COUNTER__): Define to 0 if the compiler doesn't support it.
48351         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
48352         of verify_function__.
48354 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48356         Tests for module pwrite.
48357         * modules/pwrite-tests: New file.
48358         * tests/test-pwrite.sh: New file.
48359         * tests/test-pwrite.c: New file.
48361         New module pwrite.
48362         * lib/unistd.in.h (pwrite): New declaration.
48363         * lib/pwrite.c: New file, from glibc with modifications.
48364         * m4/pwrite.m4: New file.
48365         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
48366         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
48367         REPLACE_PWRITE.
48368         * modules/pwrite: New file.
48369         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
48370         REPLACE_PWRITE.
48371         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
48372         * doc/posix-functions/pwrite.texi: Mention the new module.
48374 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48376         pread: Update documentation.
48377         * doc/posix-functions/pread.texi: Mention the 'pread' module.
48379 2010-05-04  Eric Blake  <eblake@redhat.com>
48381         docs: update cygwin progress
48382         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
48383         this bug.
48384         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
48385         Added in cygwin 1.7.2.
48386         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
48387         Likewise.
48388         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
48389         Likewise.
48390         * doc/glibc-functions/dup3.texi (dup3): Likewise.
48391         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48392         * doc/glibc-functions/accept4.texi (accept4): Likewise.
48393         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
48394         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
48395         Mention nproc module.
48396         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
48397         bug in cygwin 1.7.5 addition.
48398         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
48399         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
48400         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
48401         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
48402         1.7.5.
48403         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
48404         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
48405         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
48406         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
48407         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
48408         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
48409         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
48410         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
48411         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
48412         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
48413         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
48414         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
48415         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
48416         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
48417         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
48418         Likewise.
48419         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
48420         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
48421         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
48422         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
48423         Likewise.
48424         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
48425         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
48426         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
48427         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
48428         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
48429         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
48430         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
48431         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
48432         Likewise.
48433         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
48434         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
48435         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
48436         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
48437         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
48438         Likewise.
48439         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
48440         Likewise.
48441         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
48442         Likewise.
48443         * doc/glibc-functions/xdrrec_endofrecord.texi
48444         (xdrrec_endofrecord): Likewise.
48445         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
48446         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
48447         Likewise.
48448         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
48449         Likewise.
48451 2010-05-04  Jim Meyering  <meyering@redhat.com>
48453         gendocs.sh: make its "-s FILE" option more useful
48454         * build-aux/gendocs.sh: When honoring the -s FILE option, update
48455         $PACKAGE to reflect the probably-different basename of "FILE".
48457 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48459         bootstrap: don't ignore download_po_files failure
48460         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
48461         failure.
48463 2010-05-03  Jim Meyering  <meyering@redhat.com>
48465         maint.mk: allow to pass options to gendocs.sh
48466         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
48467         (gendocs_options_): New overridable variable.
48469         gnu-web-doc-update: don't ignore configure or build failure
48470         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
48472         announce-gen: backslash-escape '@'s in --help output
48473         * build-aux/announce-gen: Fix syntax errors.
48475         maint.mk, announce-gen: allow project-specific announcement mail headers
48476         * top/maint.mk (translation_project_): Define default.
48477         (announcement_Cc_, announcement_mail_headers_): Likewise.
48478         (announcement): Invoke announce-gen with new --mail-headers option.
48479         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
48481         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
48482         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
48483         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
48484         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
48485         line in the "err2" output file when running "make check" in verbose
48486         mode (i.e., with set -x enabled).
48488 2010-05-03  Bruno Haible  <bruno@clisp.org>
48490         wctob: Fix for weird platforms.
48491         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
48492         argument value.
48494 2010-05-03  Jim Meyering  <meyering@redhat.com>
48496         maint.mk: prohibit unwarranted use of <strings.h>
48497         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
48498         strings.h in a file that does not also use strcasecmp, strncasecmp,
48499         ffs or ffsll.
48501         maint.mk: remove obsolete comments
48502         * top/maint.mk: Remove stale, commented-out rules.
48504 2010-05-02  Bruno Haible  <bruno@clisp.org>
48506         wcwidth: Declare also when it's aliased.
48507         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
48508         macro.
48510 2010-05-02  Bruno Haible  <bruno@clisp.org>
48512         Fix regression from 2010-04-25.
48513         * gnulib-tool (func_modules_transitive_closure): Check the status of
48514         all modules, not only of the tests that are of the form foo-tests where
48515         foo is a module.
48517 2010-05-02  Bruno Haible  <bruno@clisp.org>
48519         wctob: Work around nasty Cygwin 1.7.2 bug.
48520         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
48521         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
48523 2010-05-01  Bruno Haible  <bruno@clisp.org>
48525         fpurge: Sharper test.
48526         * tests/test-fpurge.c (main): Add one more ftell check.
48527         * modules/fpurge-tests (Depends-on): Add ftell.
48528         Suggested by Eric Blake.
48530 2010-05-01  Bruno Haible  <bruno@clisp.org>
48532         ftello: Another test.
48533         * tests/test-ftello3.c: New file.
48534         * modules/ftello-tests (Files): Add it.
48535         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
48536         MOSTLYCLEANFILES.
48538         ftell: Another test.
48539         * tests/test-ftell3.c: New file.
48540         * modules/ftell-tests (Files): Add it.
48541         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
48542         MOSTLYCLEANFILES.
48544 2010-05-01  Bruno Haible  <bruno@clisp.org>
48546         ftell, ftello: Work around Solaris bug.
48547         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
48548         * lib/ftello.c: Include stdio-impl.h.
48549         (ftello): On Solaris, when _IOWRT is set, compute the result without
48550         looking at _IOREAD.
48551         * modules/ftello (Files): Add lib/stdio-impl.h.
48552         * doc/posix-functions/ftell.texi: Mention Solaris bug.
48553         * doc/posix-functions/ftello.texi: Likewise.
48554         Reported by Eric Blake.
48556 2010-05-01  Bruno Haible  <bruno@clisp.org>
48558         freading: Adapt to special meaning of _IOREAD flag on Solaris.
48559         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
48560         the _IOWRT flag is also set.
48562 2010-05-01  Bruno Haible  <bruno@clisp.org>
48564         Fix doc about a HP-UX stdio bug.
48565         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
48566         * doc/posix-functions/ftello.texi: Likewise.
48568 2010-05-01  Bruno Haible  <bruno@clisp.org>
48570         lseek test: Fix failure on Solaris.
48571         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
48572         output.
48574 2010-04-30  Jim Meyering  <meyering@redhat.com>
48576         bootstrap: don't ignore failure to generate po*/Makevars
48577         * build-aux/bootstrap (with_gettext): Don't ignore failure
48578         to create po/Makevars or runtime-po/Makevars.
48580 2010-04-29  Eric Blake  <eblake@redhat.com>
48582         headers: relax license to LGPLv2+
48583         * modules/fcntl-h (License): Relax license.
48584         * modules/getopt-posix (License): Likewise.
48585         * modules/locale (License): Likewise.
48586         * modules/math (License): Likewise.
48587         * modules/pty (License): Likewise.
48588         * modules/sched (License): Likewise.
48589         * modules/search (License): Likewise.
48590         * modules/spawn (License): Likewise.
48591         * modules/stdarg (License): Likewise.
48592         * modules/sysexits (License): Likewise.
48594 2010-04-29  Jim Meyering  <meyering@redhat.com>
48596         inttypes: relax license to LGPLv2+
48597         * modules/inttypes (License): Relax license.
48599 2010-04-29  Simon Josefsson  <simon@josefsson.org>
48601         * top/maint.mk (indent): Run twice to produce idempotent results.
48603 2010-04-28  Bruno Haible  <bruno@clisp.org>
48605         getdate: Generate getdate.c in the source directory.
48606         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
48607         MOSTLYCLEANFILES.
48608         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
48610 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
48612         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
48613         is not declared as a const *; avoid warnings in that case.
48615 2010-04-28  Eric Blake  <eblake@redhat.com>
48617         canonicalize-lgpl: avoid compiler warning
48618         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
48619         declaration' / 'extraneous semicolon' warning with some compilers.
48620         Reported by Andreas Gruenbacher.
48622 2010-04-28  Jim Meyering  <meyering@redhat.com>
48624         init.sh: ensure a more reliable exit status when exiting via trap
48625         * tests/init.sh (setup_): Don't rely on $? in signal handler.
48626         Inspired by patches from Dmitry V. Levin.
48627         Also trap on signal 3 (SIGQUIT).
48629 2010-04-27  Bruno Haible  <bruno@clisp.org>
48631         Update doc about utimes().
48632         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
48633         'utimens' module.
48634         Reported by Andreas Gruenbacher <agruen@suse.de>.
48636 2010-04-27  Eric Blake  <eblake@redhat.com>
48638         full-read, full-write: relax license
48639         * modules/full-read (License): Drop to LGPLv2+.
48640         * modules/full-write (License): Likewise.
48641         * modules/safe-read (License): Likewise.
48642         * modules/safe-write (License): Likewise.
48644         pthread: mention library for linking
48645         * modules/pthread (Link): Mention $(LIB_PTHREAD).
48647 2010-04-27  Jim Meyering  <meyering@redhat.com>
48649         maint.mk: fix a bug introduced in last change
48650         * top/maint.mk (gl_assured_headers_): Now that all names are on
48651         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
48652         is not anchored to end of word, it should be adequate.
48654         maint.mk: avoid side-effect in latest syntax-check
48655         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
48656         to run commands via $(shell...), and hence to incur cost only when
48657         the new rule is actually run.
48659         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
48660         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
48661         and use that to create a regexp used to detect all #if HAVE_..._H uses.
48662         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
48663         (gl_assured_headers_, az_, AZ_): Define.
48664         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
48666 2010-04-26  Jim Meyering  <jim@meyering.net>
48667             Bruno Haible  <bruno@clisp.org>
48669         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
48670         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
48671         Prompted by an exchange with Gilles Espinasse.
48673 2010-04-26  Jim Meyering  <meyering@redhat.com>
48675         git-version-gen: aesthetic tweak
48676         * build-aux/git-version-gen: Use "$nl" rather than a literal,
48677         so that the command remains on a single line.
48679 2010-04-26  Eric Blake  <eblake@redhat.com>
48681         git-version-gen: allow use on EBCDIC hosts
48682         * build-aux/git-version-gen (dirty): Use literal rather than tying
48683         ourselves to ascii.
48684         Reported by Steve Goetze.
48686 2010-04-25  Bruno Haible  <bruno@clisp.org>
48688         netdb: Add support for GNULIB_POSIXCHECK.
48689         * lib/netdb.in.h: Include warn-on-use.h.
48690         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
48691         functions are used when GNULIB_POSIXCHECK is defined and the
48692         getaddrinfo module is not in use.
48693         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
48694         freeaddrinfo, gai_strerror, getnameinfo are declared.
48695         * modules/netdb (Depends-on): Add warn-on-use.
48696         (Makefile.am): Include warn-on-use.h in netdb.h.
48698 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
48700         build: avoid "make check" failure without .git/ directory
48701         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
48702         there is no .git/ directory.
48704 2010-04-25  Bruno Haible  <bruno@clisp.org>
48706         ptsname: Fix misuse of ttyname_r.
48707         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
48708         of errno.
48710 2010-04-25  Bruno Haible  <bruno@clisp.org>
48712         ttyname_r: Make it work on Solaris 10.
48713         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
48714         if the system function has the POSIX declaration. Test whether the
48715         function fails if the buffer is less than 128 bytes large.
48716         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
48717         system's ttyname_r function. Provide a reasonably large buffer.
48718         * modules/ttyname_r (Depends-on): Add extensions.
48719         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
48721 2010-04-25  Bruno Haible  <bruno@clisp.org>
48723         Use the 'extensions' module for some more functions on Solaris.
48724         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
48725         module.
48726         * doc/posix-functions/ctime_r.texi: Likewise.
48727         * doc/posix-functions/getgrgid_r.texi: Likewise.
48728         * doc/posix-functions/getgrnam_r.texi: Likewise.
48729         * doc/posix-functions/getpwnam_r.texi: Likewise.
48730         * doc/posix-functions/getpwuid_r.texi: Likewise.
48731         * doc/posix-functions/readdir_r.texi: Likewise.
48732         * doc/posix-functions/sigwait.texi: Likewise.
48733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
48734         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
48736 2010-04-25  Bruno Haible  <bruno@clisp.org>
48738         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
48739         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
48740         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
48741         * lib/ttyname_r.c: Include <limits.h>.
48742         (ttyname_r): Define using the system's ttyname_r function, if it exists
48743         and not on Solaris.
48744         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
48745         set.
48746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
48747         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
48748         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
48749         Reported by Simon Josefsson.
48751 2010-04-25  Bruno Haible  <bruno@clisp.org>
48753         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
48754         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
48755         * doc/posix-functions/ctime_r.texi: Likewise.
48756         * doc/posix-functions/getgrgid_r.texi: Likewise.
48757         * doc/posix-functions/getgrnam_r.texi: Likewise.
48758         * doc/posix-functions/getlogin_r.texi: Likewise.
48759         * doc/posix-functions/getpwnam_r.texi: Likewise.
48760         * doc/posix-functions/getpwuid_r.texi: Likewise.
48761         * doc/posix-functions/readdir_r.texi: Likewise.
48762         * doc/posix-functions/sigwait.texi: Likewise.
48763         * doc/posix-functions/ttyname_r.texi: Likewise.
48764         Reported by Simon Josefsson.
48766 2010-04-25  Bruno Haible  <bruno@clisp.org>
48768         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
48769         * gnulib-tool (func_usage): Document that --with-*-tests options apply
48770         also to --create-testdir.
48771         (func_acceptable): Don't consider the status of *-tests modules here.
48772         (func_modules_transitive_closure): Consider it here, before including a
48773         test module.
48774         (func_import, func_create_testdir): Set inc_all_direct_tests,
48775         inc_all_indirect_tests.
48776         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
48777         --create-testdir and --create-megatestdir.
48779 2010-04-25  Bruno Haible  <bruno@clisp.org>
48781         gnulib-tool: Add --without-*-tests options.
48782         * gnulib-tool (func_usage): Document the --without-*-tests options.
48783         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
48784         excl_unportable_tests): New variables.
48785         Fail if they are specified with --import or --update.
48786         (func_acceptable): Respect the excl_*_tests variables.
48787         (func_import): Set the excl_*_tests variables to empty.
48789 2010-04-25  Simon Josefsson  <simon@josefsson.org>
48790             Bruno Haible  <bruno@clisp.org>
48792         Work around a MacOS X 10.4 bug with openpty.
48793         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
48794         * tests/test-openpty.c (main): Close the master side explicitly.
48796 2010-04-25  Bruno Haible  <bruno@clisp.org>
48798         strnlen: Fix a C++ test error on MacOS X and Solaris.
48799         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
48800         the function is not declared.
48801         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
48802         Simon Josefsson.
48804 2010-04-24  Bruno Haible  <bruno@clisp.org>
48806         Avoid a gcc warning.
48807         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
48808         of correct type for %08lx directive.
48809         Reported by Eric Blake.
48811 2010-04-24  Bruno Haible  <bruno@clisp.org>
48813         vasnprintf: Correct errno value in case of out-of-memory.
48814         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
48815         or sprintf. Use the errno value from SNPRINTF or sprintf.
48816         Reported by Ian Beckwith <ianb@erislabs.net>.
48818 2010-04-24  Bruno Haible  <bruno@clisp.org>
48820         ansi-c++-opt: Find correct compiler when cross-compiling.
48821         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
48822         AC_CHECK_PROGS.
48823         Reported by Simon Josefsson.
48825 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
48827         vc-list-files: Add support for subversion
48828         * build-aux/vc-list-files: Use "svn list" to generate the list of
48829         files controlled by subversion.
48831 2010-04-23  Jim Meyering  <meyering@redhat.com>
48833         vc-list-files tests: convert to use init.sh
48834         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
48835         path_prepend_.
48836         Use Exit, not exit.
48837         Use skip_ rather than open coding it.
48838         Remove trap set-up and compare definitions.
48839         * tests/test-vc-list-files-git.sh: Likewise.
48840         * modules/vc-list-files-tests (Files): Add tests/init.sh.
48842 2010-04-22  Simon Josefsson  <simon@josefsson.org>
48844         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
48845         backup files.
48847 2010-04-21  Simon Josefsson  <simon@josefsson.org>
48849         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
48851 2010-04-20  Eric Blake  <eblake@redhat.com>
48853         tests: be robust to ignored SIGPIPE
48854         * tests/test-select-in.sh: Consume all output.
48855         * tests/test-lseek.sh: Check correct exit status, while avoiding
48856         EPIPE.
48858 2010-04-20  Simon Josefsson  <simon@josefsson.org>
48859             Bruno Haible  <bruno@clisp.org>
48861         visibility: Don't use -fvisibility if it leads to a warning.
48862         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
48863         yes, don't pretend that visibility works if it leads to a warning.
48864         Reported by Mike Gran <spk121@yahoo.com>.
48866 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
48868         * build-aux/bootstrap: Use "git -h" for testing for supported options
48869         instead of "git --help".  The short-form option only shows a summary,
48870         and doesn't layout the full man page.  Grep for the full option name
48871         in the summary, too.
48873 2010-04-19  Bruno Haible  <bruno@clisp.org>
48875         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
48876         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
48877         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
48878         mention of RELOCATABLE_STRIP.
48879         Reported by Sylvain Beucler <beuc@beuc.net>.
48881 2010-04-19  Bruno Haible  <bruno@clisp.org>
48883         * lib/diffseq.h: Fix typo in comment.
48884         Reported by Eric Blake.
48886 2010-04-19  Bruno Haible  <bruno@clisp.org>
48888         ioctl: Move autoconf macro to a .m4 file.
48889         * m4/ioctl.m4: New file, extracted from modules/ioctl.
48890         * modules/ioctl (Files): Add it.
48891         (configure.ac): Simply invoke gl_FUNC_IOCTL.
48892         Reported by Ian Beckwith <ianb@erislabs.net>.
48894 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
48895             Bruno Haible  <bruno@clisp.org>
48897         diffseq: Accommodate use-case with abstract arrays.
48898         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
48899         is not defined.
48900         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
48901         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
48903 2010-04-18  Bruno Haible  <bruno@clisp.org>
48905         * doc/posix-headers/stdbool.texi: More precise wording.
48907 2010-04-17  Jim Meyering  <meyering@redhat.com>
48909         maint.mk: use gnu-style indentation in an embedded perl script
48910         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
48911         Rename variable: s/two/last_two_bytes/
48913 2010-04-16  Eric Blake  <eblake@redhat.com>
48915         test-stdbool: skip test that fails with Solaris CC
48916         * tests/test-stdbool.c (f): Skip test that causes compilation
48917         error under buggy C++ compiler.
48918         * lib/stdbool.in.h: Document the limitation.
48919         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
48921         setenv: allow compilation with C++
48922         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
48923         register keyword.
48925         stdint: allow test to pass with C++
48926         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
48928         getopt: allow compilation with C++
48929         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
48930         struct.
48931         * lib/getopt.c (_getopt_internal_r): Use correct type.
48932         Reported by Dagobert Michelson, via Joel E. Denny.
48934 2010-04-16  Bruno Haible  <bruno@clisp.org>
48936         Override netdb.h always.
48937         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
48938         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
48939         Reported by Ludovic Courtès <ludo@gnu.org>.
48941 2010-04-15  Bruno Haible  <bruno@clisp.org>
48943         openpty: Fix mistake from 2010-03-21.
48944         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
48945         Reported by Simon Josefsson.
48947 2010-04-15  Eric Blake  <eblake@redhat.com>
48949         test-forkpty: fix expected signature
48950         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
48951         Reported by Simon Josefsson.
48953 2010-04-15  Jim Meyering  <meyering@redhat.com>
48955         maint.mk: texinfo_suffix_re_: correct the default regexp
48956         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
48958         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
48959         make it configurable via texinfo_suffix_re_.
48961 2010-04-14  Eric Blake  <eblake@redhat.com>
48963         strtok_r: relax license to LGPLv2+
48964         * modules/strtok_r (License): Relax license.
48965         Reported by Matthias Bolte.
48967 2010-04-14  Simon Josefsson  <simon@josefsson.org>
48969         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
48970         version 1.4.4 by default instead of requiring the libgcrypt
48971         version used during build.  This makes it possible to use the
48972         application with older but still binary compatible libgcrypt
48973         versions.
48975 2010-04-13  Eric Blake  <eblake@redhat.com>
48977         getopt-gnu: match recent glibc fixes and posix ruling
48978         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
48979         '+' handling, when requesting extensions.
48980         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
48981         'W;' handling.
48982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
48983         * doc/posix-functions/getopt.texi (getopt): Document this.
48984         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48985         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48986         Likewise.
48988         getopt: merge bug fixes from glibc
48989         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
48990         diagnostics.  Honor '+:' correctly.  Reject ';'.
48992         getopt-posix: detect MacOS bug
48993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
48994         optind when missing a required argument.
48995         * doc/posix-functions/getopt.texi (getopt): Document the bug.
48996         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48997         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48998         Likewise.
49000         getopt-posix: avoid spurious failure on Solaris
49001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
49002         an indicator that setting optind=1 is sufficient for reset.
49004         getopt-posix: avoid spurious failure on FreeBSD
49005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
49006         in POSIX mode, since the m4 test uses it.
49008         gnulib-tool: silence warning on BSD sh
49009         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
49011 2010-04-13  Jim Meyering  <meyering@redhat.com>
49013         doc: users.txt: GNU patch now uses gnulib
49014         * users.txt: Add patch.
49016 2010-04-12  Jim Meyering  <meyering@redhat.com>
49018         maint.mk: generate more concise timing data for syntax-check rules
49019         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
49020         " done" from each line that reports a syntax-check test duration.
49022 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
49024         git-version-gen: use "git update-index..." rather than "git status"
49025         * build-aux/git-version-gen: Use git update-index --refresh, not
49026         "git status".  With some versions of git, "git status" would fail
49027         to update the index and result in an unwarranted "-dirty" suffix.
49029 2010-04-11  Jim Meyering  <meyering@redhat.com>
49031         openat: correct formatting (no semantic change)
49032         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
49033         Suggested by Bruno Haible.
49035 2010-04-11  Bruno Haible  <bruno@clisp.org>
49037         Stricter declaration checking in testdirs.
49038         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49039         If for_tests is true, augment AM_CPPFLAGS to define
49040         GNULIB_STRICT_CHECKING.
49041         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
49042         GNULIB_STRICT_CHECKING is defined, verify that the function is
49043         declared.
49045 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
49046             Bruno Haible  <bruno@clisp.org>
49048         libunistring: Improve configure output.
49049         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
49050         Don't say "consider installing GNU libunistring" when checking again
49051         with libiconv.
49053 2010-04-11  Bruno Haible  <bruno@clisp.org>
49055         libunistring: Correct value of $LTLIBUNISTRING.
49056         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
49057         correct the value of $LTLIBUNISTRING.
49059 2010-04-11  Bruno Haible  <bruno@clisp.org>
49061         havelib: Add static libraries to LIBS in the right order.
49062         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
49063         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
49065 2010-04-11  Bruno Haible  <bruno@clisp.org>
49067         libunistring: Detect libunistring also when it depends on libiconv.
49068         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
49069         the second AC_LIB_HAVE_LINKFLAGS invocation.
49071 2010-04-11  James Youngman  <jay@gnu.org>
49073         close-stream: declare local scalars to be "const"
49074         * lib/close-stream.c (close_stream): Make boolean variables const
49075         to document the fact that we set but do not change them.
49077 2010-04-11  Bruno Haible  <bruno@clisp.org>
49079         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
49081 2010-04-11  Jim Meyering  <meyering@redhat.com>
49083         maint.mk: don't include dist-check.mk
49084         * top/maint.mk: Remove bogus include directive.
49086         maint.mk: improve empty-line-at-EOF check
49087         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
49088         solution, rather than tail+Perl-based one.  The latter would read
49089         a few kilobytes from the end of each file, and did not handle empty
49090         files properly.
49092         maint.mk: print the elapsed time for each syntax-check rule
49093         * top/maint.mk (sc_m_rules_): Save start time in a file.
49094         (sc_z_rules_): New rules: remove temp file and print elapsed time.
49095         (local-check): Interpose the .z rules
49097 2010-04-11  Jim Meyering  <meyering@redhat.com>
49099         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
49100         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
49101         empty file with one that ends in an empty line.
49103 2010-04-10  Bruno Haible  <bruno@clisp.org>
49105         mkdir: Make it work on mingw64.
49106         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
49107         * lib/mkdir.c: Update comment.
49108         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
49110 2010-04-10  Bruno Haible  <bruno@clisp.org>
49112         Don't override improved macro from newer autoconf.
49113         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
49114         autoconf >= 2.62.
49115         Reported by Joel E. Denny <jdenny@clemson.edu>.
49117 2010-04-10  Jim Meyering  <meyering@redhat.com>
49119         maint.mk: new syntax-check rule: prohibit empty lines at end of file
49120         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
49122         maint.mk: correct a diagnostic
49123         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
49124         in diagnostic; now use $prohibit.
49126 2010-04-10  Bruno Haible  <address@hidden>
49128         fchownat: Fix a C++ test error on Solaris 8.
49129         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
49130         the function does not exist.
49132 2010-04-10  Bruno Haible  <bruno@clisp.org>
49134         vasnprintf: Add more tests.
49135         * tests/test-vasnprintf-posix.c: Include <errno.h>.
49136         (test_function): Test converting an invalid wide string.
49138         vasnprintf: Correct handling of unconvertible wide string arguments.
49139         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
49140         VASNPRINTF.
49141         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
49142         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
49143         smaller than the expected maximum need for the directive. Set errno to
49144         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
49145         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
49146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
49147         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
49148         * modules/vasnprintf (Files): Add m4/printf.m4.
49149         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49151 2010-04-10  Bruno Haible  <bruno@clisp.org>
49153         vasnprintf: Fix crash in %ls directive.
49154         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
49155         string is passed as argument to %ls, with no precision and no width.
49156         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49158 2010-04-10  Bruno Haible  <bruno@clisp.org>
49160         vasnprintf: Fix multiple test failures on mingw.
49161         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
49162         _snprintf, or snwprintf, not _snwprintf.
49164 2010-04-10  Bruno Haible  <bruno@clisp.org>
49166         write: Fix a C++ test error on mingw.
49167         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
49169 2010-04-10  Bruno Haible  <bruno@clisp.org>
49171         vasnprintf test: Reduce code duplication.
49172         * tests/test-vasnprintf.c (test_function): New function, extracted from
49173         test_vasnprintf.
49174         (test_vasnprintf, test_asnprintf): Invoke it.
49176 2010-04-10  Bruno Haible  <bruno@clisp.org>
49178         strnlen: Fix warning in C++ mode on MacOS X.
49179         * lib/string.in.h (strnlen): Use the modern idiom.
49180         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
49181         defining strnlen as a macro already in <config.h>.
49182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49183         REPLACE_STRNLEN.
49184         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
49185         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49187 2010-04-08  James Youngman  <jay@gnu.org>
49189         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
49190         the example.
49192 2010-04-09  Jim Meyering  <meyering@redhat.com>
49194         maint.mk: print better diagnostic when there is no $(_hv_file)
49195         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
49196         announce that when $(_hv_file) (aka help-version) does not exist.
49198         init.sh: run tr in the "C" locale to avoid multibyte interpretation
49199         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
49200         not try to interpret its random input bytes.  Jarno Rajahalme reported
49201         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
49202         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
49203         (mktempd_): Likewise, just in case.
49205         ftruncate: add two years to projected module removal date: 2012
49206         * m4/ftruncate.m4: Adjust comments.
49208         ftruncate: mark module as obsolete; even MinGW provides it, now
49209         * modules/ftruncate (Status): Obsolete.
49210         (Notice): Say that.
49211         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
49212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
49214 2010-04-08  Bruno Haible  <bruno@clisp.org>
49216         Fix side effects from tests-related modules.
49217         * modules/dprintf-posix (Comment): New section.
49218         * modules/fprintf-posix (Comment): Likewise.
49219         * modules/obstack-printf-posix (Comment): Likewise.
49220         * modules/printf-posix (Comment): Likewise.
49221         * modules/snprintf-posix (Comment): Likewise.
49222         * modules/sprintf-posix (Comment): Likewise.
49223         * modules/vasnprintf-posix (Comment): Likewise.
49224         * modules/vasprintf-posix (Comment): Likewise.
49225         * modules/vdprintf-posix (Comment): Likewise.
49226         * modules/vfprintf-posix (Comment): Likewise.
49227         * modules/vprintf-posix (Comment): Likewise.
49228         * modules/vsnprintf-posix (Comment): Likewise.
49229         * modules/vsprintf-posix (Comment): Likewise.
49230         * modules/xprintf-posix (Comment): Likewise.
49231         * modules/xvasprintf-posix (Comment): Likewise.
49232         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
49233         * modules/floorf-tests (Depends-on): Likewise.
49234         * modules/round-tests (Depends-on): Likewise.
49235         * modules/roundf-tests (Depends-on): Likewise.
49236         * modules/trunc-tests (Depends-on): Likewise.
49237         * modules/truncf-tests (Depends-on): Likewise.
49238         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
49239         'fprintf-posix' module is not present.
49240         * tests/test-floorf2.c (check): Likewise.
49241         * tests/test-trunc2.c (check): Likewise.
49242         * tests/test-truncf2.c (check): Likewise.
49243         * tests/test-round2.c (equal): Likewise.
49244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49246 2010-04-07  Karl Berry  <karl@gnu.org>
49248         * config/srclist.txt,
49249         * config/srclistvars.sh,
49250         * config/srclist-update: doc fixes.
49252 2010-04-07  Jim Meyering  <meyering@redhat.com>
49254         maint.mk: add a PATH crosschecking syntax-check rule
49255         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
49256         Useful if you use a test like the one in help-version (coreutils,
49257         diffutils, grep, gzip) that ensures $(VERSION) matches what is
49258         printed by prog --version.
49260 2010-04-06  Bruno Haible  <bruno@clisp.org>
49262         Fix link error on mingw.
49263         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
49264         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
49266 2010-04-06  Bruno Haible  <bruno@clisp.org>
49268         Assume rmdir exists.
49269         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
49271 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
49273         doc: update users.txt
49274         * users.txt: Add gcal.
49276 2010-04-06  Jim Meyering  <meyering@redhat.com>
49278         init.sh: simply unset TMPDIR rather than risking env -i
49279         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
49280         although it probably works fine on all Unix-based systems, some
49281         systems (Cygwin?) cannot tolerate a totally cleared environment.
49282         Suggestion from Eric Blake.
49284 2010-04-06  Jim Meyering  <meyering@redhat.com>
49286         init.sh: portability fix: use env's POSIX-specified -i option not -u
49287         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
49288         than unportable env -u.  Solaris 5.11's env lacks support for -u.
49290 2010-04-05  Bruno Haible  <bruno@clisp.org>
49292         btowc: Work around Cygwin 1.7.2 bug.
49293         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
49294         does not map NUL to 0.
49295         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
49297 2010-04-05  Bruno Haible  <bruno@clisp.org>
49299         Make the multithread modules work on Cygwin 1.7.2.
49300         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
49301         imported symbols can be declared weak, so that it returns "no" on
49302         Cygwin 1.7.2.
49304 2010-04-05  Bruno Haible  <bruno@clisp.org>
49306         Use the module 'strncat'.
49307         * modules/unistr/u8-strncat (Depends-on): Add strncat.
49309         Tests for module 'strncat'.
49310         * modules/strncat-tests: New file.
49311         * tests/test-strncat.c: New file.
49313         New module 'strncat'.
49314         * lib/string.in.h (strncat): New declaration.
49315         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
49316         * m4/strncat.m4: New file, based on m4/memchr.m4.
49317         * modules/strncat: New file.
49318         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
49319         is declared.
49320         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
49321         REPLACE_STRNCAT.
49322         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
49323         REPLACE_STRNCAT.
49324         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
49325         module.
49326         * tests/test-string-c++.cc: Check signature of strncat.
49328 2010-04-05  Jim Meyering  <meyering@redhat.com>
49330         xstrtoumax-tests: convert to use init.sh
49331         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
49332         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49333         Use Exit, not exit.
49334         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49336         xstrtoimax-tests: convert to use init.sh
49337         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
49338         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49339         Use Exit, not exit.
49340         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49342 2010-04-05  Bruno Haible  <bruno@clisp.org>
49344         sys_socket: Avoid #define replacements in C++ mode.
49345         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
49346         warning to the function if possible, rather than #defining the symbol
49347         to a dysfunctional alias.
49349 2010-04-05  Bruno Haible  <bruno@clisp.org>
49351         fseeko: Fix C++ test error on mingw.
49352         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
49353         gl_FUNC_FSEEKO.
49354         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
49355         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
49356         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
49357         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
49359 2010-04-05  Bruno Haible  <bruno@clisp.org>
49361         duplocale: Improve test output.
49362         * tests/test-duplocale.c (main): Print reason for skipped test.
49364 2010-04-05  Bruno Haible  <bruno@clisp.org>
49366         Assume rmdir exists.
49367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
49368         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
49370 2010-04-05  Bruno Haible  <bruno@clisp.org>
49372         Fix link error on Solaris 8 with cc.
49373         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
49375 2010-04-05  Bruno Haible  <bruno@clisp.org>
49377         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49378         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
49380 2010-04-05  Bruno Haible  <bruno@clisp.org>
49382         vasprintf: Update documentation.
49383         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
49385 2010-04-05  Bruno Haible  <bruno@clisp.org>
49387         ptsname: Improve test.
49388         * tests/test-ptsname.c (main): Also try the various master names of BSD
49389         systems.
49391 2010-04-05  Bruno Haible  <bruno@clisp.org>
49393         memchr: Avoid a possible C++ test error.
49394         * lib/string.in.h (memchr): Provide declaration if function is missing.
49395         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
49396         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
49397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
49398         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
49400 2010-04-05  Bruno Haible  <bruno@clisp.org>
49402         strtok_r: Improve idiom.
49403         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
49404         AC_LIBOBJ is used.
49406 2010-04-05  Bruno Haible  <bruno@clisp.org>
49408         strdup: Improve idiom.
49409         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
49410         AC_LIBOBJ is used.
49411         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
49412         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
49413         when AC_LIBOBJ is used.
49415 2010-04-05  Bruno Haible  <bruno@clisp.org>
49417         mbsinit, mbrtowc, wcrtomb: Improve idioms.
49418         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
49419         don't set REPLACE_MBSINIT to 1.
49420         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
49421         don't set REPLACE_MBRTOWC to 1.
49422         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
49423         exist, don't set REPLACE_MBSRTOWCS to 1.
49424         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
49425         exist, don't set REPLACE_MBSNRTOWCS to 1.
49426         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
49427         don't set REPLACE_WCRTOMB to 1.
49428         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
49429         exist, don't set REPLACE_WCSRTOMBS to 1.
49430         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
49431         exist, don't set REPLACE_WCSNRTOMBS to 1.
49433 2010-04-05  Bruno Haible  <bruno@clisp.org>
49435         ldexpl: Improve idiom.
49436         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
49437         make sure to set HAVE_DECL_LDEXPL to 0.
49439 2010-04-05  Jim Meyering  <meyering@redhat.com>
49441         xstrtol-tests: convert to use init.sh
49442         * modules/xstrtol-tests (Files): Add tests/init.sh.
49443         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49444         Use Exit, not exit.
49445         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49447         atexit-tests: convert to use init.sh
49448         * modules/atexit-tests (Files): Add tests/init.sh.
49449         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49450         Use Exit, not exit.
49451         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49453         init.sh: fix typo
49454         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
49456         init.sh: make it easier for a test script to write to the tty, ...
49457         when using automake's parallel-tests mode.
49458         * tests/init.sh (stderr_fileno_): Define overridable variable.
49459         (warn_): New function, to use it.
49460         (fail_, skip_, framework_failure_): Use warn_.
49462 2010-04-04  Bruno Haible  <bruno@clisp.org>
49464         btowc: Avoid warning.
49465         * lib/btowc.c: Include <stdlib.h>.
49466         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
49468 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
49469             Bruno Haible  <bruno@clisp.org>
49471         wchar: Port to NetBSD 1.5.
49472         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
49473         * lib/wctype.in.h (WEOF): Likewise.
49475 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
49476             Bruno Haible  <bruno@clisp.org>
49478         Port extended stdio to NetBSD 1.5.
49479         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
49480         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
49481         older.
49483 2010-04-04  Bruno Haible  <bruno@clisp.org>
49485         string: Remove unused substitution.
49486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49487         HAVE_DECL_STRERROR.
49488         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
49490 2010-04-04  Bruno Haible  <bruno@clisp.org>
49492         strtod: Avoid a possible C++ test error.
49493         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
49494         set REPLACE_STRTOD.
49496 2010-04-04  Bruno Haible  <bruno@clisp.org>
49498         strerror: Update documentation.
49499         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
49501 2010-04-04  Bruno Haible  <bruno@clisp.org>
49503         stdio: Fix some C++ test errors on Solaris 8 with GCC.
49504         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
49505         _GL_CXXALIAS_SYS_CAST.
49507 2010-04-04  Bruno Haible  <bruno@clisp.org>
49509         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49510         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
49511         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
49512         REPLACE_FREXPL to 1.
49513         * doc/posix-functions/frexpl.texi: Update documentation.
49515 2010-04-04  Bruno Haible  <bruno@clisp.org>
49517         math: Fix some C++ test errors on Solaris 8 and Cygwin.
49518         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
49520 2010-04-04  Bruno Haible  <bruno@clisp.org>
49522         Implement nanosleep for native Windows.
49523         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
49525 2010-04-04  Bruno Haible  <bruno@clisp.org>
49527         math: Fix some C++ test errors on Solaris 8.
49528         * lib/math.in.h (truncf, trunc): Use simpler idiom.
49530 2010-04-04  Bruno Haible  <bruno@clisp.org>
49532         math: Fix some C++ test errors on Cygwin.
49533         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
49534         truncl): Provide declaration if the system does not have it.
49535         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
49536         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
49537         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
49538         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
49539         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
49540         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
49541         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
49542         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
49543         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
49544         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
49545         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
49546         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
49547         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
49548         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
49549         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
49550         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
49551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
49552         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
49553         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
49554         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
49555         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
49556         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
49558 2010-04-04  Bruno Haible  <bruno@clisp.org>
49560         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
49561         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49562         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49563         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49564         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49565         * m4/isinf.m4 (gl_ISINF): Likewise.
49566         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49568 2010-04-04  Bruno Haible  <bruno@clisp.org>
49570         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
49571         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49573 2010-04-04  Bruno Haible  <bruno@clisp.org>
49575         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
49576         * modules/tmpfile (configure.ac): Update.
49578         tmpfile: Fix C++ test error on mingw.
49579         * lib/stdio.in.h (tmpfile): New declaration.
49580         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
49581         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
49582         * modules/tmpfile (Depends-on): Add stdio.
49583         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49584         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
49585         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
49586         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
49587         REPLACE_TMPFILE.
49588         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
49590 2010-04-04  Bruno Haible  <bruno@clisp.org>
49592         ioctl: Fix C++ test error on mingw.
49593         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
49594         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
49595         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
49597 2010-04-03  Bruno Haible  <bruno@clisp.org>
49599         wcwidth: Fix C++ test error on mingw.
49600         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
49601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
49602         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
49604 2010-04-03  Bruno Haible  <bruno@clisp.org>
49606         nanosleep: Fix C++ test error on mingw.
49607         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
49608         * lib/time.in.h (nanosleep): Use modern idiom.
49609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
49610         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
49611         REPLACE_NANOSLEEP to 1.
49612         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
49613         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
49615 2010-04-03  Bruno Haible  <bruno@clisp.org>
49617         strptime: Fix C++ test error on mingw.
49618         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
49619         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
49620         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
49621         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
49622         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
49623         not REPLACE_STRPTIME.
49624         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
49625         REPLACE_STRPTIME.
49627 2010-04-03  Bruno Haible  <bruno@clisp.org>
49629         timegm: Fix C++ test error on mingw.
49630         * lib/time.in.h (timegm): Use modern idiom.
49631         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
49632         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
49633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
49634         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
49636 2010-04-03  Bruno Haible  <bruno@clisp.org>
49638         timegm: Assume declaration if function exists.
49639         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
49640         if it exists. Don't clobber ac_cv_func_timegm.
49642 2010-04-03  Bruno Haible  <bruno@clisp.org>
49644         time_r: Fix C++ test error on mingw.
49645         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
49646         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
49647         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
49648         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
49649         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
49651 2010-04-03  Bruno Haible  <bruno@clisp.org>
49653         time_r: Minor updates.
49654         * modules/time_r (Description): Mention the provided functions.
49655         * lib/time_r.c: Don't include <string.h>.
49656         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
49657         * doc/posix-functions/localtime_r.texi: Likewise.
49659 2010-04-03  Bruno Haible  <bruno@clisp.org>
49661         time: Fix regression introduced on 2010-03-08.
49662         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
49663         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
49665 2010-04-03  Jim Meyering  <meyering@redhat.com>
49667         maint.mk: don't silently disable project-specific syntax-check rules
49668         * top/maint.mk (_prohibit_regexp): Define, to help people realize
49669         that they need to convert their project-specific syntax-check rules
49670         to use the new _sc_search_regexp.
49672 2010-04-03  Bruno Haible  <bruno@clisp.org>
49674         fchdir: Fix regression introduced on 2010-03-08.
49675         * lib/unistd.in.h (fchdir): Fix declaration.
49676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
49677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
49678         REPLACE_FCHDIR.
49679         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
49680         REPLACE_FCHDIR.
49682 2010-04-03  Bruno Haible  <bruno@clisp.org>
49684         getpagesize: Fix C++ test error on mingw.
49685         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
49686         system does not declare the function.
49687         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
49688         declared.
49689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49690         HAVE_DECL_GETPAGESIZE.
49691         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
49693 2010-04-03  Bruno Haible  <bruno@clisp.org>
49695         stdio: Make C++ tests work on mingw.
49696         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
49697         does not declare the function.
49699 2010-04-03  Bruno Haible  <bruno@clisp.org>
49701         ftello: Fix C++ test error on mingw.
49702         * lib/stdio.in.h (ftello): Use modern idiom.
49703         * lib/ftello.c (ftello): Renamed from rpl_ftello.
49704         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
49705         is missing and that it needs to be replaced.
49706         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
49707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
49708         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
49710 2010-04-03  Bruno Haible  <bruno@clisp.org>
49712         fseeko: Fix C++ test error on mingw.
49713         * lib/stdio.in.h (fseeko): Use modern idiom.
49714         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
49715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
49716         is missing and that it needs to be replaced.
49717         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
49718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
49719         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
49721 2010-04-03  Bruno Haible  <bruno@clisp.org>
49723         mkstemp: Fix C++ test error on mingw.
49724         * lib/stdlib.in.h (mkstemp): Use modern idiom.
49725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
49726         function is missing and that it needs to be replaced.
49727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
49728         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
49730 2010-04-03  Bruno Haible  <bruno@clisp.org>
49732         stpncpy: Fix C++ test error on mingw.
49733         * lib/string.in.h (stpncpy): Use modern idiom.
49734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
49735         function is missing and that it needs to be replaced.
49736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49737         REPLACE_STPNCPY.
49738         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
49740 2010-04-03  Bruno Haible  <bruno@clisp.org>
49742         sys_stat: Fix C++ test error on mingw.
49743         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
49744         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
49746 2010-04-03  Bruno Haible  <bruno@clisp.org>
49748         pty: Update doc.
49749         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
49751 2010-04-03  Bruno Haible  <bruno@clisp.org>
49753         unistd: Fix C++ test error on mingw.
49754         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
49756 2010-04-03  Bruno Haible  <bruno@clisp.org>
49758         Update doc regarding mingw.
49759         * doc/glibc-functions/openpty.texi: Update regarding mingw.
49760         * doc/glibc-functions/login_tty.texi: Likewise.
49761         * doc/glibc-functions/forkpty.texi: Likewise.
49763 2010-04-03  Bruno Haible  <bruno@clisp.org>
49765         stdlib: Avoid compilation failure of c-strtold on mingw.
49766         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
49768 2010-04-03  Bruno Haible  <bruno@clisp.org>
49770         locale: Make C++ tests work on Cygwin and mingw.
49771         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
49772         cannot provide the function.
49773         Reported by Simon Josefsson.
49775 2010-04-03  Bruno Haible  <bruno@clisp.org>
49777         localename: Port to MacOS X 10.6.
49778         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
49779         memory layout of the locales in MacOS X 10.6 as well.
49780         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
49782 2010-04-02  Bruno Haible  <bruno@clisp.org>
49784         gnulib-tool: Ensure that long-running tests are executed last.
49785         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
49786         running tests after the one for the other tests.
49788 2010-04-02  Bruno Haible  <bruno@clisp.org>
49790         gnulib-tool: Ensure the tests in the main directory are executed first.
49791         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
49792         start with the current directory.
49794 2010-04-02  Bruno Haible  <bruno@clisp.org>
49796         Tests for module 'havelib', moved here from GNU gettext.
49797         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
49798         modifications.
49799         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
49800         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
49801         with modifications.
49802         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
49803         modifications.
49804         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
49805         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
49806         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
49807         with modifications.
49808         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
49809         with modifications.
49810         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
49811         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
49812         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
49813         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
49814         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
49815         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
49816         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
49817         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
49818         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
49819         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
49820         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
49821         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
49822         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
49823         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
49824         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
49825         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
49826         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
49827         with modifications.
49828         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
49829         with modifications.
49830         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
49831         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
49832         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
49833         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
49834         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
49835         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
49836         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
49837         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
49838         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
49839         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
49840         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
49841         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
49842         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
49843         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
49844         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
49845         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
49846         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
49847         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
49848         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
49849         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
49850         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
49851         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
49852         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
49853         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
49854         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
49855         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
49856         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
49857         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
49858         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
49859         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
49860         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
49861         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
49862         * tests/havelib/rpathx/rpathx.c: New file, from
49863         gettext/autoconf-lib-link.
49864         * tests/havelib/rpathx/Makefile.am: New file, from
49865         gettext/autoconf-lib-link.
49866         * tests/havelib/rpathx/configure.ac: New file, from
49867         gettext/autoconf-lib-link with modifications.
49868         * tests/havelib/rpathy/rpathy.c: New file, from
49869         gettext/autoconf-lib-link.
49870         * tests/havelib/rpathy/Makefile.am: New file, from
49871         gettext/autoconf-lib-link.
49872         * tests/havelib/rpathy/configure.ac: New file, from
49873         gettext/autoconf-lib-link with modifications.
49874         * tests/havelib/rpathz/rpathz.c: New file, from
49875         gettext/autoconf-lib-link.
49876         * tests/havelib/rpathz/Makefile.am: New file, from
49877         gettext/autoconf-lib-link.
49878         * tests/havelib/rpathz/configure.ac: New file, from
49879         gettext/autoconf-lib-link with modifications.
49880         * tests/havelib/rpathlx/usex.c: New file, from
49881         gettext/autoconf-lib-link.
49882         * tests/havelib/rpathlx/Makefile.am: New file, from
49883         gettext/autoconf-lib-link.
49884         * tests/havelib/rpathlx/configure.ac: New file, from
49885         gettext/autoconf-lib-link with modifications.
49886         * tests/havelib/rpathly/usey.c: New file, from
49887         gettext/autoconf-lib-link.
49888         * tests/havelib/rpathly/Makefile.am: New file, from
49889         gettext/autoconf-lib-link.
49890         * tests/havelib/rpathly/configure.ac: New file, from
49891         gettext/autoconf-lib-link with modifications.
49892         * tests/havelib/rpathlz/usez.c: New file, from
49893         gettext/autoconf-lib-link.
49894         * tests/havelib/rpathlz/Makefile.am: New file, from
49895         gettext/autoconf-lib-link.
49896         * tests/havelib/rpathlz/configure.ac: New file, from
49897         gettext/autoconf-lib-link with modifications.
49898         * tests/havelib/rpathlyx/usey.c: New file, from
49899         gettext/autoconf-lib-link.
49900         * tests/havelib/rpathlyx/Makefile.am: New file, from
49901         gettext/autoconf-lib-link.
49902         * tests/havelib/rpathlyx/configure.ac: New file, from
49903         gettext/autoconf-lib-link with modifications.
49904         * tests/havelib/rpathlzyx/usez.c: New file, from
49905         gettext/autoconf-lib-link.
49906         * tests/havelib/rpathlzyx/Makefile.am: New file, from
49907         gettext/autoconf-lib-link.
49908         * tests/havelib/rpathlzyx/configure.ac: New file, from
49909         gettext/autoconf-lib-link with modifications.
49910         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
49911         with modifications.
49913 2010-04-02  Bruno Haible  <bruno@clisp.org>
49915         gnulib-tool: Create distributed built sources also for the tests.
49916         * gnulib-tool (func_create_testdir): Also generate distributed built
49917         sources in the tests directory.
49919 2010-04-02  Bruno Haible  <bruno@clisp.org>
49921         gnulib-tool: Obey user's environment variables.
49922         * gnulib-tool (func_create_testdir): When creating built sources,
49923         respect the environment variables for autoconf, automake, etc. given by
49924         the user.
49926 2010-04-02  Bruno Haible  <bruno@clisp.org>
49928         gnulib-tool: Provide the value of --m4-base to modules.
49929         * gnulib-tool (func_import, func_create_testdir): Emit a definition
49930         of gl_m4_base.
49932 2010-04-02  Eric Blake  <eblake@redhat.com>
49934         maint.mk: fix some fallout
49935         * NEWS: Document the incompatible change, and its effect on cfg.mk.
49936         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
49938 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
49940         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
49941         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
49942         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
49943         (sc_cast_of_x_alloc_return_value): Likewise.
49944         (sc_cast_of_alloca_return_value): Likewise.
49945         (sc_space_tab): Likewise.
49946         (sc_prohibit_atoi_atof): Likewise.
49947         (sc_prohibit_magic_number_exit): Likewise.
49948         (sc_error_exit_success): Likewise.
49949         (sc_file_system): Likewise.
49950         (sc_prohibit_have_config_h): Likewise.
49951         (sc_require_config_h): Likewise.
49952         (sc_prohibit_HAVE_MBRTOWC): Likewise.
49953         (sc_obsolete_symbols): Likewise.
49954         (sc_changelog): Likewise.
49955         (sc_program_name): Likewise.
49956         (sc_the_the): Likewise.
49957         (sc_trailing_blank): Likewise.
49958         (sc_two_space_separator_in_usage): Likewise.
49959         (sc_useless_cpp_parens): Likewise.
49960         (sc_GPL_version): Likewise.
49961         (sc_GFDL_version): Likewise.
49962         (sc_texinfo_acronym): Likewise.
49963         (sc_prohibit_cvs_keyword): Likewise.
49964         (sc_prohibit_stat_st_blocks): Likewise.
49965         (sc_prohibit_S_IS_definition): Likewise.
49966         (sc_redundant_const): Likewise.
49967         (sc_makefile_TAB_only_indentation): Likewise.
49968         (sc_m4_quote_check): Likewise.
49969         (sc_makefile_path_separator_check): Likewise.
49970         (sc_copyright_check): Likewise.
49971         (sc_Wundef_boolean): Likewise.
49972         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
49974         maint.mk: match 0 or more whitespace-before-function-call '('
49975         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
49976         that have zero or two-and-more spaces between the function name
49977         and the open parenthesis.
49978         (sc_error_message_warn_fatal): Likewise.
49979         (sc_error_message_uppercase): Likewise.
49980         (sc_error_message_period): Likewise.
49982 2010-03-31  Eric Blake  <eblake@redhat.com>
49984         maint.mk: check for [ as well as test
49985         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
49986         Based on a libvirt report by Matthias Bolte.
49988         gnumakefile: don't squelch _version output
49989         * top/GNUmakefile (_version): Create one-shot dependency rather
49990         than using $(shell) when version must be regenerated.
49991         (_autoreconf): Run verbosely, by default.
49993         sys_time: avoid compiler warnings
49994         * lib/sys_time.in.h (includes): Ensure gcc pragma is
49995         unconditional, fixing regression from 2010-03-29.
49996         Reported by Simon Josefsson.
49998 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50000         maint.mk: s/_header_without_use/_sc_header_without_use/
50001         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
50002         (sc_prohibit_assert_without_use): Use the new name.
50003         (sc_prohibit_close_stream_without_use): Likewise.
50004         (sc_prohibit_getopt_without_use): Likewise.
50005         (sc_prohibit_quotearg_without_use): Likewise.
50006         (sc_prohibit_quote_without_use): Likewise.
50007         (sc_prohibit_long_options_without_use): Likewise.
50008         (sc_prohibit_inttostr_without_use): Likewise.
50009         (sc_prohibit_ignore_value_without_use): Likewise.
50010         (sc_prohibit_error_without_use): Likewise.
50011         (sc_prohibit_xalloc_without_use): Likewise.
50012         (sc_prohibit_hash_without_use): Likewise.
50013         (sc_prohibit_hash_pjw_without_use): Likewise.
50014         (sc_prohibit_safe_read_without_use): Likewise.
50015         (sc_prohibit_argmatch_without_use): Likewise.
50016         (sc_prohibit_canonicalize_without_use): Likewise.
50017         (sc_prohibit_root_dev_ino_without_use): Likewise.
50018         (sc_prohibit_openat_without_use): Likewise.
50019         (sc_prohibit_c_ctype_without_use): Likewise.
50020         (sc_prohibit_signal_without_use): Likewise.
50021         (sc_prohibit_intprops_without_use): Likewise.
50023 2010-03-30  Eric Blake  <eblake@redhat.com>
50025         maint: improve module indicators
50026         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
50027         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
50028         columns, and avoid extra macro expansion.
50030         fdopendir: work around FreeBSD bug
50031         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
50032         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
50033         * modules/dirent (Makefile.am): Substitute it.
50034         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
50035         declaration.
50036         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
50037         fix.
50038         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50040 2010-03-29  Bruno Haible  <bruno@clisp.org>
50042         Emit #pragma system_header after the inclusion guard, not before.
50043         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
50044         guard that spans the entire file, not before. This enables an
50045         optimization in GCC's preprocessor.
50046         * lib/ctype.in.h: Likewise.
50047         * lib/dirent.in.h: Likewise.
50048         * lib/errno.in.h: Likewise.
50049         * lib/float.in.h: Likewise.
50050         * lib/getopt.in.h: Likewise.
50051         * lib/iconv.in.h: Likewise.
50052         * lib/langinfo.in.h: Likewise.
50053         * lib/locale.in.h: Likewise.
50054         * lib/math.in.h: Likewise.
50055         * lib/netdb.in.h: Likewise.
50056         * lib/netinet_in.in.h: Likewise.
50057         * lib/pty.in.h: Likewise.
50058         * lib/sched.in.h: Likewise.
50059         * lib/se-selinux.in.h: Likewise.
50060         * lib/search.in.h: Likewise.
50061         * lib/spawn.in.h: Likewise.
50062         * lib/stdarg.in.h: Likewise.
50063         * lib/stdint.in.h: Likewise.
50064         * lib/string.in.h: Likewise.
50065         * lib/strings.in.h: Likewise.
50066         * lib/sys_file.in.h: Likewise.
50067         * lib/sys_ioctl.in.h: Likewise.
50068         * lib/sys_time.in.h: Likewise.
50069         * lib/sys_times.in.h: Likewise.
50070         * lib/sys_utsname.in.h: Likewise.
50071         * lib/sys_wait.in.h: Likewise.
50072         * lib/sysexits.in.h: Likewise.
50073         * lib/wctype.in.h: Likewise.
50075 2010-03-28  James Youngman  <jay@gnu.org>
50077         save-cwd: don't leak a file descriptor when the caller execs.
50078         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
50079         saved file descriptor.
50080         * modules/save-cwd (Depends-on): Depend on cloexec.
50082 2010-03-29  Bruno Haible  <bruno@clisp.org>
50084         Remove vestiges of fts-lgpl module.
50085         * lib/fts_.h: Assume GNULIB_FTS is 1.
50086         * lib/fts.c: Likewise.
50087         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50089 2010-03-28  Bruno Haible  <bruno@clisp.org>
50091         Fix definition of tests witness macro.
50092         * gnulib-tool (func_import): Fix definition of witness macro.
50094 2010-03-28  Bruno Haible  <bruno@clisp.org>
50096         Fix ioctl's protoype on glibc systems.
50097         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
50098         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
50099         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
50100         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
50101         signature. If not, arrange to replace the ioctl function.
50102         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
50103         REPLACE_IOCTL.
50104         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
50105         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
50106         Reported by Ludovic Courtès <ludo@gnu.org>.
50108 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
50110         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
50111         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
50112         made it so grep -r --include=GLOB* ... did not work.
50114 2010-03-26  Jim Meyering  <meyering@redhat.com>
50115             Eric Blake  <eblake@redhat.com>
50117         maint.mk: prohibit use of test's -o and -a operators
50118         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
50120 2010-03-28  Bruno Haible  <bruno@clisp.org>
50122         Remove unused GNULIB_XYZ macro definitions.
50123         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
50124         invocation.
50126 2010-03-28  Bruno Haible  <bruno@clisp.org>
50128         Mark privileged tests modules.
50129         * modules/idpriv-drop-tests (Status): New section.
50130         * modules/idpriv-droptemp-tests (Status): New section.
50132 2010-03-28  Bruno Haible  <bruno@clisp.org>
50134         Split C++ tests into separate tests modules.
50135         * modules/dirent-c++-tests: New file, extracted from
50136         modules/dirent-tests.
50137         * modules/dirent-tests: Depend on it.
50138         * modules/fcntl-h-c++-tests: New file, extracted from
50139         modules/fcntl-h-tests.
50140         * modules/fcntl-h-tests: Depend on it.
50141         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
50142         * modules/glob-tests: Depend on it.
50143         * modules/iconv-h-c++-tests: New file, extracted from
50144         modules/iconv-h-tests.
50145         * modules/iconv-h-tests: Depend on it.
50146         * modules/langinfo-c++-tests: New file, extracted from
50147         modules/langinfo-tests.
50148         * modules/langinfo-tests: Depend on it.
50149         * modules/locale-c++-tests: New file, extracted from
50150         modules/locale-tests.
50151         * modules/locale-tests: Depend on it.
50152         * modules/math-c++-tests: New file, extracted from modules/math-tests.
50153         * modules/math-tests: Depend on it.
50154         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
50155         * modules/pty-tests: Depend on it.
50156         * modules/search-c++-tests: New file, extracted from
50157         modules/search-tests.
50158         * modules/search-tests: Depend on it.
50159         * modules/signal-c++-tests: New file, extracted from
50160         modules/signal-tests.
50161         * modules/signal-tests: Depend on it.
50162         * modules/spawn-c++-tests: New file, extracted from
50163         modules/spawn-tests.
50164         * modules/spawn-tests: Depend on it.
50165         * modules/stdio-c++-tests: New file, extracted from
50166         modules/stdio-tests.
50167         * modules/stdio-tests: Depend on it.
50168         * modules/stdlib-c++-tests: New file, extracted from
50169         modules/stdlib-tests.
50170         * modules/stdlib-tests: Depend on it.
50171         * modules/string-c++-tests: New file, extracted from
50172         modules/string-tests.
50173         * modules/string-tests: Depend on it.
50174         * modules/sys_ioctl-c++-tests: New file, extracted from
50175         modules/sys_ioctl-tests.
50176         * modules/sys_ioctl-tests: Depend on it.
50177         * modules/sys_select-c++-tests: New file, extracted from
50178         modules/sys_select-tests.
50179         * modules/sys_select-tests: Depend on it.
50180         * modules/sys_socket-c++-tests: New file, extracted from
50181         modules/sys_socket-tests.
50182         * modules/sys_socket-tests: Depend on it.
50183         * modules/sys_stat-c++-tests: New file, extracted from
50184         modules/sys_stat-tests.
50185         * modules/sys_stat-tests: Depend on it.
50186         * modules/sys_time-c++-tests: New file, extracted from
50187         modules/sys_time-tests.
50188         * modules/sys_time-tests: Depend on it.
50189         * modules/time-c++-tests: New file, extracted from modules/time-tests.
50190         * modules/time-tests: Depend on it.
50191         * modules/unistd-c++-tests: New file, extracted from
50192         modules/unistd-tests.
50193         * modules/unistd-tests: Depend on it.
50194         * modules/wchar-c++-tests: New file, extracted from
50195         modules/wchar-tests.
50196         * modules/wchar-tests: Depend on it.
50197         * modules/wctype-c++-tests: New file, extracted from
50198         modules/wctype-tests.
50199         * modules/wctype-tests: Depend on it.
50200         Reported by Simon Josefsson.
50202 2010-03-28  Bruno Haible  <bruno@clisp.org>
50204         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
50205         * gnulib-tool (func_exists_module): New function, extracted from
50206         func_verify_module.
50207         (func_verify_module): Use it.
50208         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
50209         'foo' only if 'foo' exists.
50210         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
50211         module.
50213 2010-03-28  Bruno Haible  <bruno@clisp.org>
50215         gnulib-tool: Add support for special categories of tests.
50216         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
50217         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
50218         (func_usage): Document them.
50219         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
50220         inc_unportable_tests, inc_all_tests): New variables.
50221         (func_acceptable): Consider these variables.
50222         (func_modules_transitive_closure): Make it work when the 'Status' field
50223         consists of multiple words.
50224         (func_import): Store and restore the values of inc_cxx_tests,
50225         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
50226         inc_all_tests in gnulib-comp.m4.
50227         (func_create_testdir): Set inc_all_tests to true.
50228         * doc/gnulib.texi (Extra tests modules): New section.
50229         Suggested by Jim Meyering.
50231 2010-03-28  Bruno Haible  <bruno@clisp.org>
50233         ansi-c++-opt: Allow turning off the C++ build by default.
50234         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
50235         gl_CXX_CHOICE_DEFAULT_NO is defined.
50236         Requested by Eric Blake.
50238 2010-03-28  Bruno Haible  <bruno@clisp.org>
50240         unistd: Avoid #define replacements in C++ mode.
50241         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50242         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50243         setsockopt, shutdown, select): In C++, attach a warning to the function
50244         if possible, rather than #defining the symbol to a dysfunctional alias.
50245         Reported by John W. Eaton <jwe@gnu.org>.
50247 2010-03-28  Bruno Haible  <bruno@clisp.org>
50249         Fix link errors on mingw.
50250         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
50251         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
50252         $(LIBSOCKET).
50253         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
50254         $(LIBSOCKET).
50256 2010-03-28  Bruno Haible  <bruno@clisp.org>
50257             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50259         lib-ignore: Determine different options for different compilers.
50260         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
50261         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
50262         Add comments.
50263         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
50264         * NEWS: Mention the change.
50266 2010-03-27  Bruno Haible  <bruno@clisp.org>
50268         Remove unused GNULIB_XYZ macro definitions.
50269         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50270         * modules/fseek (configure.ac): Likewise.
50271         * modules/ioctl (configure.ac): Likewise.
50272         * modules/open (configure.ac): Likewise.
50273         * modules/stdlib-safer (configure.ac): Likewise.
50275 2010-03-27  Bruno Haible  <bruno@clisp.org>
50277         Add a remark about certain modules.
50278         * modules/malloc (Comment): New section.
50279         * modules/realloc (Comment): Likewise.
50280         * modules/sigpipe (Comment): Likewise.
50282 2010-03-27  Bruno Haible  <bruno@clisp.org>
50284         Resolve conflict between the two kinds of module indicators.
50285         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
50286         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
50287         * modules/canonicalize (configure.ac): Invoke
50288         gl_MODULE_INDICATOR_FOR_TESTS.
50289         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
50290         GNULIB_XYZ.
50291         * tests/test-dirent-c++.cc: Likewise.
50292         * tests/test-dirent-safer.c: Likewise.
50293         * tests/test-dup2.c: Likewise.
50294         * tests/test-fchdir.c: Likewise.
50295         * tests/test-fcntl-h-c++.cc: Likewise.
50296         * tests/test-getopt.c: Likewise.
50297         * tests/test-getopt.h: Likewise.
50298         * tests/test-langinfo-c++.cc: Likewise.
50299         * tests/test-locale-c++.cc: Likewise.
50300         * tests/test-math-c++.cc: Likewise.
50301         * tests/test-pty-c++.cc: Likewise.
50302         * tests/test-search-c++.cc: Likewise.
50303         * tests/test-signal-c++.cc: Likewise.
50304         * tests/test-spawn-c++.cc: Likewise.
50305         * tests/test-stdio-c++.cc: Likewise.
50306         * tests/test-stdlib-c++.cc: Likewise.
50307         * tests/test-string-c++.cc: Likewise.
50308         * tests/test-sys_ioctl-c++.cc: Likewise.
50309         * tests/test-sys_select-c++.cc: Likewise.
50310         * tests/test-sys_socket-c++.cc: Likewise.
50311         * tests/test-sys_stat-c++.cc: Likewise.
50312         * tests/test-sys_time-c++.cc: Likewise.
50313         * tests/test-time-c++.cc: Likewise.
50314         * tests/test-unistd-c++.cc: Likewise.
50315         * tests/test-wchar-c++.cc: Likewise.
50316         * tests/uninorm/test-u8-nfc.c: Likewise.
50317         * tests/uninorm/test-u8-nfd.c: Likewise.
50318         * tests/uninorm/test-u8-nfkc.c: Likewise.
50319         * tests/uninorm/test-u8-nfkd.c: Likewise.
50320         * tests/uninorm/test-u16-nfc.c: Likewise.
50321         * tests/uninorm/test-u16-nfd.c: Likewise.
50322         * tests/uninorm/test-u16-nfkc.c: Likewise.
50323         * tests/uninorm/test-u16-nfkd.c: Likewise.
50324         * tests/uninorm/test-u32-nfc.c: Likewise.
50325         * tests/uninorm/test-u32-nfc-big.c: Likewise.
50326         * tests/uninorm/test-u32-nfd.c: Likewise.
50327         * tests/uninorm/test-u32-nfd-big.c: Likewise.
50328         * tests/uninorm/test-u32-nfkc.c: Likewise.
50329         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
50330         * tests/uninorm/test-u32-nfkd.c: Likewise.
50331         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
50332         * tests/uninorm/test-u32-normalize-big.c: Likewise.
50334 2010-03-27  Bruno Haible  <bruno@clisp.org>
50336         Distinguish two kinds of module indicators.
50337         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
50338         gl_MODULE_INDICATOR.
50339         (gl_MODULE_INDICATOR): New macro.
50340         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
50341         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
50342         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50343         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50344         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50345         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50346         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50347         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50348         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50349         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50350         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50351         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50354         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50356         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50357         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50358         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50359         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50360         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50361         * modules/cloexec (configure.ac): Likewise.
50362         * modules/getopt-gnu (configure.ac): Likewise.
50363         * modules/uninorm/u8-normalize (configure.ac): Likewise.
50364         * modules/uninorm/u16-normalize (configure.ac): Likewise.
50365         * modules/uninorm/u32-normalize (configure.ac): Likewise.
50366         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
50368 2010-03-27  Bruno Haible  <bruno@clisp.org>
50370         New module description field 'Comment'.
50371         * gnulib-tool: New option --extract-comment.
50372         (func_usage): Document it.
50373         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
50374         (func_get_comment): New function.
50375         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
50377 2010-03-27  Bruno Haible  <bruno@clisp.org>
50379         Addendum to 2010-02-07 commit.
50380         * gnulib-tool (func_usage): Document --extract-applicability option.
50382 2010-03-27  Bruno Haible  <bruno@clisp.org>
50384         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
50385         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
50386         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
50387         rather than link errors.
50389 2010-03-27  Bruno Haible  <bruno@clisp.org>
50391         Avoid side effects from tests-related modules on the compilation of lib.
50392         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
50393         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
50394         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
50395         parameter. Emit into AM_CPPFLAGS a definition of the designated C
50396         macro.
50397         (func_import): Define a witness macro. Assign it a value that depends
50398         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
50399         tests-related modules.
50400         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
50401         Reported by Jim Meyering.
50403 2010-03-27  Bruno Haible  <bruno@clisp.org>
50405         Factorize common .m4 code.
50406         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
50407         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
50408         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
50409         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
50410         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50411         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
50412         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
50413         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50414         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50415         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50416         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
50417         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50418         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50419         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50420         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50421         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
50422         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50423         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50424         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50425         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
50426         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
50427         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50428         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50430         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50431         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50432         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
50433         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
50434         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
50435         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50436         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50437         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50439 2010-03-27  Bruno Haible  <bruno@clisp.org>
50441         Fix a compilation error on Cygwin with g++ >= 4.3.
50442         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
50443         if it is undefined or if we alias it to chmod.
50444         (lstat): Don't warn about the use of this function if it is undefined
50445         or if we alias it to stat.
50446         Reported by Simon Josefsson.
50448 2010-03-27  Bruno Haible  <bruno@clisp.org>
50450         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
50451         * modules/getlogin (configure.ac): Update.
50453         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
50454         * modules/getlogin_r (configure.ac): Update.
50456         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
50457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
50458         * modules/inet_ntop (configure.ac): Update.
50460         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
50461         * modules/inet_pton (configure.ac): Update.
50463         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
50464         * modules/mbslen (configure.ac): Update.
50466         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
50467         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
50468         * modules/forkpty (configure.ac): Update.
50469         * modules/openpty (configure.ac): Update.
50471 2010-03-26  Simon Josefsson  <simon@josefsson.org>
50473         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
50474         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
50476 2010-03-25  Eric Blake  <eblake@redhat.com>
50478         maint: use pragma consistently across replacement headers
50479         * lib/ctype.in.h (system_header): Hoist for consistent placement.
50480         * lib/dirent.in.h (system_header): Likewise.
50481         * lib/errno.in.h (system_header): Likewise.
50482         * lib/float.in.h (system_header): Likewise.
50483         * lib/getopt.in.h (system_header): Likewise.
50484         * lib/iconv.in.h (system_header): Likewise.
50485         * lib/inttypes.in.h (system_header): Likewise.
50486         * lib/langinfo.in.h (system_header): Likewise.
50487         * lib/locale.in.h (system_header): Likewise.
50488         * lib/math.in.h (system_header): Likewise.
50489         * lib/netdb.in.h (system_header): Likewise.
50490         * lib/netinet_in.in.h (system_header): Likewise.
50491         * lib/pty.in.h (system_header): Likewise.
50492         * lib/sched.in.h (system_header): Likewise.
50493         * lib/se-selinux.in.h (system_header): Likewise.
50494         * lib/search.in.h (system_header): Likewise.
50495         * lib/spawn.in.h (system_header): Likewise.
50496         * lib/stdarg.in.h (system_header): Likewise.
50497         * lib/stdint.in.h (system_header): Likewise.
50498         * lib/string.in.h (system_header): Likewise.
50499         * lib/strings.in.h (system_header): Likewise.
50500         * lib/sys_file.in.h (system_header): Likewise.
50501         * lib/sys_ioctl.in.h (system_header): Likewise.
50502         * lib/sys_socket.in.h (system_header): Likewise.
50503         * lib/sys_times.in.h (system_header): Likewise.
50504         * lib/sys_utsname.in.h (system_header): Likewise.
50505         * lib/sys_wait.in.h (system_header): Likewise.
50506         * lib/sysexits.in.h (system_header): Likewise.
50507         * lib/unistd.in.h (system_header): Likewise.
50508         * lib/wctype.in.h (system_header): Likewise.
50510         arpa/inet: fix mingw compilation warning
50511         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
50512         Reported by Matthew Bolte.
50514 2010-03-25  Bruno Haible  <bruno@clisp.org>
50516         Avoid collision between gnulib wrapper and libintl wrapper.
50517         * lib/printf.c (printf): Don't define if a printf wrapper is already
50518         defined in intl/printf.c.
50519         Reported by Michel Boaventura <michel@michelboaventura.com>.
50521 2010-03-25  Bruno Haible  <bruno@clisp.org>
50523         Use ANSI C.
50524         * lib/readutmp.h (getutent): Provide ANSI C prototype.
50526 2010-03-25  Bruno Haible  <bruno@clisp.org>
50528         Minor formatting changes.
50529         * lib/acosl.c: Insert space before function argument list.
50530         * lib/argz.c: Likewise.
50531         * lib/asinl.c: Likewise.
50532         * lib/expl.c: Likewise.
50533         * lib/gen-uni-tables.c: Likewise.
50534         * lib/gettext.h: Likewise.
50535         * lib/glthread/lock.h: Likewise.
50536         * lib/tanl.c: Likewise.
50537         * lib/uniname/uniname.c: Likewise.
50538         * tests/test-idpriv-drop.c: Likewise.
50539         * tests/test-idpriv-droptemp.c: Likewise.
50540         * tests/test-lock.c: Likewise.
50541         * tests/test-tls.c: Likewise.
50542         * lib/argp-help.c: Insert space before function-like macro argument
50543         list.
50544         * lib/memcmp.c: Likewise.
50545         * tests/test-base64.c: Likewise.
50546         * lib/localename.c: Insert space before sizeof's argument list.
50547         * lib/safe-alloc.h: Likewise.
50548         * lib/file-set.h: Insert space before macro argument list.
50549         * tests/test-argp.c: Likewise.
50550         * lib/argp-namefrob.h: Insert space before function parameter list.
50551         * lib/getaddrinfo.c: Likewise.
50552         * lib/netdb.in.h: Likewise.
50553         * lib/parse-duration.h: Likewise.
50554         * lib/parse-duration.c: Likewise.
50555         * lib/poll.c: Likewise.
50556         * lib/select.c: Likewise.
50557         * lib/trim.h: Likewise.
50558         * tests/test-usleep.c: Likewise.
50559         * lib/ldexpl.c: Insert space before function parameter list and before
50560         function argument list.
50561         * lib/logl.c: Likewise.
50562         * lib/sqrtl.c: Likewise.
50563         * lib/trim.c: Likewise.
50564         * lib/cosl.c: Use GNU style indentation. Insert space before function
50565         argument list.
50566         * lib/sinl.c: Likewise.
50567         * lib/tsearch.c: Insert space after 'for'.
50568         Reported by Jim Meyering.
50570 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
50572         * maint.mk (sc_Wundef_boolean): Check for the presence of the
50573         config header before grepping, as it's not present before
50574         autoreconf/configure are run.  Reported by Simon Josefsson.
50576 2010-03-23  Bruno Haible  <bruno@clisp.org>
50578         pt_chown: Make it work with automake < 1.11.
50579         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
50580         Reported by Simon Josefsson.
50582 2010-03-23  Bruno Haible  <bruno@clisp.org>
50584         pt_chown: Don't depend on GPLed modules.
50585         * lib/pt_chown.c: Don't include idpriv.h.
50586         (main): Don't drop privileges.
50587         * modules/pt_chown (Depends-on): Remove idpriv-drop.
50588         Reported by Simon Josefsson.
50590 2010-03-24  Simon Josefsson  <simon@josefsson.org>
50592         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
50593         suggestions from karl@freefriends.org (Karl Berry).
50595 2010-03-22  Eric Blake  <eblake@redhat.com>
50597         gethostname: further tweaks
50598         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
50599         are overriding gethostname.
50600         Suggested by Bruno Haible.
50602 2010-03-21  Bruno Haible  <bruno@clisp.org>
50604         Fix comments.
50605         * lib/forkpty.c (rpl_forkpty): Fix comment.
50606         * lib/openpty.c (rpl_openpty): Likewise.
50607         Reported by Eric Blake.
50609 2010-03-22  Eric Blake  <eblake@redhat.com>
50611         gethostname: fix build on mingw
50612         * lib/unistd.in.h (includes): Work around fact that mingw
50613         <winsock2.h> re-includes <unistd.h>, by avoiding any
50614         redeclarations if we are being included by <winsock2.h>.
50615         Reported by Matthias Bolte.
50617 2010-03-21  Bruno Haible  <bruno@clisp.org>
50619         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50620         * lib/forkpty.c (forkpty): New replacement function, from glibc with
50621         modifications.
50622         * lib/pty.in.h (forkpty): Update declaration. Add comments.
50623         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
50624         provide the replacement.
50625         * modules/forkpty (Depends-on): Add openpty, login_tty.
50626         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
50627         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
50628         * doc/glibc-functions/forkpty.texi: More supported platforms.
50629         * config/srclist.txt: Add forkpty.c (commented).
50631 2010-03-21  Bruno Haible  <bruno@clisp.org>
50633         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
50634         (Makefile.am): Verify that PTY_LIB is defined.
50636         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
50638 2010-03-21  Bruno Haible  <bruno@clisp.org>
50640         Tests for module 'login_tty'.
50641         * modules/login_tty-tests: New file.
50642         * tests/test-login_tty.c: New file.
50644         New module 'login_tty'.
50645         * lib/login_tty.c: New file.
50646         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
50647         * modules/login_tty: New file.
50648         * doc/glibc-functions/login_tty.texi: Mention the new module.
50650 2010-03-21  Bruno Haible  <bruno@clisp.org>
50652         login_tty: Documentation.
50653         * doc/glibc-functions/login_tty.texi: New file.
50654         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
50656 2010-03-21  Bruno Haible  <bruno@clisp.org>
50658         pty: Consistent macro naming.
50659         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
50660         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
50661         * modules/pty (configure.ac): Update.
50663 2010-03-21  Bruno Haible  <bruno@clisp.org>
50665         Tests for openpty: Make stricter.
50666         * tests/test-openpty.c (main): Add test of canonical processing and
50667         erase.
50668         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
50670         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50671         * lib/openpty.c (openpty): New replacement function.
50672         * lib/pty.in.h: Include <termios.h>.
50673         (openpty): Update declaration. Add comments.
50674         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
50675         is not declared, arrange to provide the replacement. Check for _getpty
50676         and posix_openpt.
50677         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
50678         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
50679         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
50680         * modules/pty-tests (test_pty_c___LDADD): New variable.
50681         * doc/glibc-functions/openpty.texi: More supported platforms.
50683 2010-03-21  Bruno Haible  <bruno@clisp.org>
50685         setenv: Tweaks.
50686         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
50687         the test program.
50688         * doc/posix-functions/setenv.texi: Update platforms list.
50690 2010-03-21  Bruno Haible  <bruno@clisp.org>
50692         New module 'unlockpt'.
50693         * lib/unlockpt.c: New file, from glibc with modifications.
50694         * m4/unlockpt.m4: New file.
50695         * modules/unlockpt: New file.
50696         * lib/stdlib.in.h (unlockpt): New declaration.
50697         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
50698         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
50699         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
50700         HAVE_UNLOCKPT.
50701         * doc/posix-functions/unlockpt.texi: Mention the new module.
50702         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
50703         * config/srclist.txt: Add unlockpt.c (commented).
50705 2010-03-21  Jim Meyering  <meyering@redhat.com>
50707         maint.mk: prohibit inclusion of "intprops.h" without use
50708         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
50710 2010-03-21  Bruno Haible  <bruno@clisp.org>
50712         New module 'grantpt'.
50713         * lib/grantpt.c: New file, from glibc with modifications.
50714         * m4/grantpt.m4: New file.
50715         * modules/grantpt: New file.
50716         * lib/stdlib.in.h (grantpt): New declaration.
50717         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
50718         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
50719         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
50720         HAVE_GRANTPT.
50721         * doc/posix-functions/grantpt.texi: Mention the new module.
50722         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
50723         * config/srclist.txt: Add grantpt.c (commented).
50725 2010-03-21  Bruno Haible  <bruno@clisp.org>
50727         New module 'pt_chown'.
50728         * lib/pt_chown.c: New file, from glibc with modifications.
50729         * lib/pty-private.h: New file, from glibc with modifications.
50730         * modules/pt_chown: New file.
50731         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
50733 2010-03-21  Bruno Haible  <bruno@clisp.org>
50735         Tests for module 'ptsname'.
50736         * modules/ptsname-tests: New file.
50737         * tests/test-ptsname.c: New file.
50739         New module 'ptsname'.
50740         * lib/ptsname.c: New file, from glibc with modifications.
50741         * m4/ptsname.m4: New file.
50742         * modules/ptsname: New file.
50743         * lib/stdlib.in.h (ptsname): New declaration.
50744         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
50745         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
50746         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
50747         HAVE_PTSNAME.
50748         * doc/posix-functions/ptsname.texi: Mention the new module.
50749         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
50750         * config/srclist.txt: Add ptsname.c (commented).
50752 2010-03-21  Bruno Haible  <bruno@clisp.org>
50754         Tests for module 'ttyname_r'.
50755         * modules/ttyname_r-tests: New file.
50756         * tests/test-ttyname_r.c: New file.
50758         New module 'ttyname_r'.
50759         * lib/ttyname_r.c: New file.
50760         * m4/ttyname_r.m4: New file.
50761         * modules/ttyname_r: New file.
50762         * lib/unistd.in.h (ttyname_r): New declaration.
50763         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
50764         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
50765         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
50766         HAVE_TTYNAME_R.
50767         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
50768         * doc/posix-functions/ttyname_r.texi: Mention the new module.
50770 2010-03-20  Bruno Haible  <bruno@clisp.org>
50772         signal: Undefine macro definitions in C++ mode.
50773         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
50774         sigfillset): Undefine macro definitions from the system header in C++
50775         mode.
50776         Reported by John W. Eaton <jwe@gnu.org>.
50778 2010-03-20  Bruno Haible  <bruno@clisp.org>
50780         Ensure no #include statements inside extern "C" { ... }.
50781         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
50782         contain #include statements.
50783         * lib/time.in.h: Likewise.
50785 2010-03-20  Bruno Haible  <bruno@clisp.org>
50787         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
50788         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
50789         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
50790         Reported by John W. Eaton <jwe@gnu.org>.
50792 2010-03-20  Bruno Haible  <bruno@clisp.org>
50794         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
50795         Reported by Jim Meyering.
50797 2010-03-20  Bruno Haible  <bruno@clisp.org>
50799         pipe: Set errno upon failure.
50800         * lib/pipe.h: Specify that when -1 is returned, errno is set.
50801         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
50802         errno value in error message.
50804 2010-03-20  Bruno Haible  <bruno@clisp.org>
50805             Jim Meyering  <meyering@redhat.com>
50807         lchown: Avoid "unused variable" warning.
50808         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
50810 2010-03-20  Bruno Haible  <bruno@clisp.org>
50812         Work around unlink() bug on MacOS X 10.5.6.
50813         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
50814         attempting to unlink a parent directory.
50815         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
50816         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
50817         activate for the replacement function.
50818         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
50820 2010-03-20  Bruno Haible  <bruno@clisp.org>
50822         Fix link errors on Solaris 8.
50823         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
50824         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
50826 2010-03-19  Jim Meyering  <meyering@redhat.com>
50828         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
50829         The _LIBC implementation of build_range_exp correctly honors the
50830         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
50831         However, the non-_LIBC implementation would ignore that syntax-bit
50832         flag and return REG_ERANGE unconditionally.
50833         This change makes it honor that flag.
50834         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
50835         Make two pointer parameters "const".
50836         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
50837         (parse_bracket_exp): Update caller.
50839         regex.m4: correct the reversed range endpoint ([b-a]) test
50840         * m4/regex.m4: When requiring that [b-a] evoke failure,
50841         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
50842         test pass once again for x86-based systems.
50844 2010-03-19  Bruno Haible  <bruno@clisp.org>
50846         scandir: Fix link error on Solaris 8.
50847         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
50848         macros.
50850 2010-03-19  Bruno Haible  <bruno@clisp.org>
50852         getusershell: Fix documentation.
50853         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
50854         module.
50855         * doc/glibc-functions/setusershell.texi: Likewise.
50857         getusershell: Provide declaration, missing on Solaris 9.
50858         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
50859         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
50860         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
50861         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
50862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50863         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
50864         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
50865         HAVE_GETUSERSHELL.
50866         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
50868 2010-03-19  Bruno Haible  <bruno@clisp.org>
50870         wctype: Provide iswblank function.
50871         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
50872         exists and is fine.
50873         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
50874         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
50875         * tests/test-wctype.c (main): Re-enable the iswblank tests.
50876         * doc/posix-functions/iswblank.texi: Update.
50878 2010-03-19  Bruno Haible  <bruno@clisp.org>
50880         Tests of module 'pty' in C++ mode.
50881         * modules/pty-tests: New file.
50882         * tests/test-pty-c++.cc: New file.
50883         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50885 2010-03-19  Eric Blake  <eblake@redhat.com>
50887         logb: fix documentation
50888         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
50889         1.5 declaration bug.
50891         forkpty, openpty: prefer glibc's const-safe prototype
50892         * lib/forkpty.c (rpl_forkpty): New file.
50893         * lib/openpty.c (rpl_openpty): Likewise.
50894         * modules/forkpty (Files): Distribute it.
50895         * modules/openpty (Files): Likewise.
50896         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
50897         check...
50898         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
50899         replacement for non-const BSD signature.
50900         * modules/pty (Makefile.am): Substitute witnesses.
50901         * lib/pty.in.h (forkpty, openpty): Declare replacements.
50902         * tests/test-forkpty.c: Update signature check.
50903         * tests/test-openpty.c: Likewise.
50904         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
50905         * doc/glibc-functions/openpty.texi (openpty): Likewise.
50907         forkpty, openpty: split functions into new modules
50908         * modules/pty (Makefile.am): Substitute new witnesses.
50909         (Libraries): Move library detection...
50910         * modules/forkpty: ...into new module.
50911         * modules/openpty: Another new module.
50912         * modules/pty-tests: Rename and split...
50913         * modules/forkpty-tests: ...to this...
50914         * modules/openpty-tests: ...and this.
50915         * tests/test-pty.c: Rename and split...
50916         * tests/test-forkpty.c: ...to this...
50917         * tests/test-openpty.c: ...and this.
50918         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
50919         (gl_PTY): Split library searching...
50920         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
50921         (gl_FORKPTY, gl_OPENPTY): New macros.
50922         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
50923         * NEWS: Mention the split.
50924         * MODULES.html.sh (Misc): Document the modules.
50925         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
50926         * doc/glibc-functions/openpty.texi (openpty): Likewise.
50928         pty: improve replacement header
50929         * lib/pty.in.h: New file.
50930         * modules/pty (Files): Ship it.
50931         (Makefile.am): Always build replacement.
50932         * m4/pty.m4: Rename...
50933         * m4/pty_h.m4: ...to this.
50934         (gl_PTY): Modernize setting of witness macros; update check of
50935         forkpty to take proper advantage of cache.
50936         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
50938         getopt: avoid compiler warning
50939         * lib/getopt.c (attribute_hidden): Remove unused macro.
50941 2010-03-18  Bruno Haible  <bruno@clisp.org>
50943         Fix link errors on Solaris 8.
50944         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
50945         * modules/search-tests (test_search_c___LDADD): Likewise.
50946         * modules/signal-tests (test_signal_c___LDADD): Likewise.
50947         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
50948         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
50949         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
50950         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
50951         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
50952         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
50954 2010-03-18  Bruno Haible  <bruno@clisp.org>
50956         Fix bug introduced on 2010-03-14.
50957         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
50958         (gl_SPAWN_H): Require it.
50959         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
50960         Reported by Simon Josefsson.
50962 2010-03-18  Bruno Haible  <bruno@clisp.org>
50964         Fix typo introduced on 2009-12-31.
50965         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
50966         posix_spawn_file_actions_adddup2.
50968 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
50969         and Eric Blake  <eblake@redhat.com>
50971         test-vc-list-files-git: make more robust
50972         * tests/test-vc-list-files-git.sh: Unset problematic environment
50973         variables.  Chain commands together.
50975 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
50977         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
50978         `AC_CHECK_DECL' invocation.
50980 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
50982         * lib/inttostr.c (inttostr): Make sure the invocation of verify
50983         appears before executable statements. Suggested by Petr Sumbera
50984         <Petr.Sumbera@Sun.COM>.
50986 2010-03-14  Bruno Haible  <bruno@clisp.org>
50988         * tests/test-flock.c (test_exclusive): Comment out a test that causes
50989         portability problems. Instead use a simpler test.
50990         (main): Check that invalid arguments are rejected only on Linux.
50992 2010-03-14  Bruno Haible  <bruno@clisp.org>
50994         Fix bug introduced on 2009-12-31.
50995         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
50996         gl_PREREQ_SYS_H_WINSOCK2 always.
50997         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
50998         SYS_SOCKET_H variable.
50999         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
51000         Update comments.
51001         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
51002         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51003         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51005         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
51007 2010-03-14  Bruno Haible  <bruno@clisp.org>
51009         Fix values returned by sinl, cosl.
51010         * lib/trigl.h: Add specification comments.
51011         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
51012         that combines the values from the precomputed table with the values of
51013         the Chebyshev polynomials.
51015 2010-03-14  Bruno Haible  <bruno@clisp.org>
51017         Fix compilation error when modules 'posix_spawn[p]' are not used.
51018         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
51019         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
51021 2010-03-14  Bruno Haible  <bruno@clisp.org>
51023         Fix compilation error on mingw when module 'time_r' is not used.
51024         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
51025         is 1.
51026         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
51027         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51028         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
51029         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
51031 2010-03-14  Bruno Haible  <bruno@clisp.org>
51033         Fix compilation error with Sun C.
51034         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
51035         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
51036         instead of GCC specific ULONG_LONG_MAX.
51037         * lib/xstrtoll.c: Likewise.
51038         * lib/xstrtoull.c: Likewise.
51040 2010-03-13  Bruno Haible  <bruno@clisp.org>
51042         Allow the user to disable C++ code and tests.
51043         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
51044         (gl_PROG_ANSI_CXX): Require it.
51046 2010-03-13  Bruno Haible  <bruno@clisp.org>
51048         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
51049         cases.
51051 2010-03-13  Bruno Haible  <bruno@clisp.org>
51053         Test that gnulib does not break the standard C++ headers.
51054         * tests/test-locale-c++2.cc: New file.
51055         * modules/locale-tests (Files): Add it.
51056         (Makefile.am): Compile it for test-locale-c++.
51057         * tests/test-math-c++2.cc: New file.
51058         * modules/math-tests (Files): Add it.
51059         (Makefile.am): Compile it for test-math-c++.
51060         * tests/test-signal-c++2.cc: New file.
51061         * modules/signal-tests (Files): Add it.
51062         (Makefile.am): Compile it for test-signal-c++.
51063         * tests/test-stdio-c++2.cc: New file.
51064         * modules/stdio-tests (Files): Add it.
51065         (Makefile.am): Compile it for test-stdio-c++.
51066         * tests/test-stdlib-c++2.cc: New file.
51067         * modules/stdlib-tests (Files): Add it.
51068         (Makefile.am): Compile it for test-stdlib-c++.
51069         * tests/test-string-c++2.cc: New file.
51070         * modules/string-tests (Files): Add it.
51071         (Makefile.am): Compile it for test-string-c++.
51072         * tests/test-time-c++2.cc: New file.
51073         * modules/time-tests (Files): Add it.
51074         (Makefile.am): Compile it for test-time-c++.
51075         Reported by John W. Eaton <jwe@gnu.org>.
51077 2010-03-13  Bruno Haible  <bruno@clisp.org>
51079         * gnulib-tool (func_usage): Clarify which options are available for
51080         --create-testdir and --create-megatestdir.
51082 2010-03-13  Bruno Haible  <bruno@clisp.org>
51084         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
51085         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
51086         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
51087         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
51088         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
51089         when appropriate.
51090         Reported by Jim Meyering.
51092 2010-03-12  Simon Josefsson  <simon@josefsson.org>
51094         * gnulib-tool (func_import): Explain origin of code.
51096 2010-03-12  Bruno Haible  <bruno@clisp.org>
51098         Fix problem with automake's definition of CXXLINK.
51099         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
51100         Reported by Simon Josefsson and Ludovic Courtès.
51102 2010-03-12  Bruno Haible  <bruno@clisp.org>
51104         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
51105         stable releases.
51107 2010-03-11  Bruno Haible  <bruno@clisp.org>
51109         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
51110         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
51111         whether the system provides one variant or multiple variants of the
51112         function.
51113         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
51114         C++ compilers.
51115         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
51116         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
51117         Reported by Jim Meyering.
51119 2010-03-09  Simon Josefsson  <simon@josefsson.org>
51121         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
51123 2010-03-08  Bruno Haible  <bruno@clisp.org>
51125         gnulib-tool: Add support for --libtool in --create-testdir.
51126         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
51127         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
51129 2010-03-08  Eric Blake  <eblake@redhat.com>
51131         gnulib-tool.texi: mention possibility of git submodule
51132         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
51133         submodules.
51134         * doc/.gitignore: Ignore another generated file.
51136 2010-03-08  Karl Berry  <karl@gnu.org>
51138         * doc/gnulib-tool.texi (VCS Issues): Mention third option
51139         of committing gnulib files while skipping others.
51141 2010-03-07  Bruno Haible  <bruno@clisp.org>
51143         Tests of module 'wctype' in C++ mode.
51144         * tests/test-wctype-c++.cc: New file.
51145         * modules/wctype-tests (Files): Add it and tests/signature.h.
51146         (Depends-on): Add ansi-c++-opt.
51147         (Makefile.am): Arrange to compile and run test-wctype-c++.
51149         Tests of module 'wchar' in C++ mode.
51150         * tests/test-wchar-c++.cc: New file.
51151         * modules/wchar-tests (Files): Add it and tests/signature.h.
51152         (Depends-on): Add ansi-c++-opt.
51153         (Makefile.am): Arrange to compile and run test-wchar-c++.
51154         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
51155         gl_MODULE_INDICATOR.
51157         Tests of module 'unistd' in C++ mode.
51158         * tests/test-unistd-c++.cc: New file.
51159         * modules/unistd-tests (Files): Add it and tests/signature.h.
51160         (Depends-on): Add ansi-c++-opt.
51161         (Makefile.am): Arrange to compile and run test-unistd-c++.
51162         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
51163         gl_MODULE_INDICATOR.
51165         Tests of module 'time' in C++ mode.
51166         * tests/test-time-c++.cc: New file.
51167         * modules/time-tests (Files): Add it and tests/signature.h.
51168         (Depends-on): Add ansi-c++-opt.
51169         (Makefile.am): Arrange to compile and run test-time-c++.
51170         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51172         Tests of module 'sys_time' in C++ mode.
51173         * tests/test-sys_time-c++.cc: New file.
51174         * modules/sys_time-tests (Files): Add it and tests/signature.h.
51175         (Depends-on): Add ansi-c++-opt.
51176         (Makefile.am): Arrange to compile and run test-sys_time-c++.
51177         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
51178         gl_MODULE_INDICATOR.
51180         Tests of module 'sys_stat' in C++ mode.
51181         * tests/test-sys_stat-c++.cc: New file.
51182         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
51183         (Depends-on): Add ansi-c++-opt.
51184         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
51185         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
51186         gl_MODULE_INDICATOR.
51188         Tests of module 'sys_socket' in C++ mode.
51189         * tests/test-sys_socket-c++.cc: New file.
51190         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
51191         (Depends-on): Add ansi-c++-opt.
51192         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
51193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
51194         gl_MODULE_INDICATOR.
51196         Tests of module 'sys_select' in C++ mode.
51197         * tests/test-sys_select-c++.cc: New file.
51198         * modules/sys_select-tests (Files): Add it and tests/signature.h.
51199         (Depends-on): Add ansi-c++-opt.
51200         (Makefile.am): Arrange to compile and run test-sys_select-c++.
51201         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
51202         gl_MODULE_INDICATOR.
51204         Tests of module 'sys_ioctl' in C++ mode.
51205         * tests/test-sys_ioctl-c++.cc: New file.
51206         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
51207         (Depends-on): Add ansi-c++-opt.
51208         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
51209         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
51210         gl_MODULE_INDICATOR.
51212         Tests of module 'string' in C++ mode.
51213         * tests/test-string-c++.cc: New file.
51214         * modules/string-tests (Files): Add it and tests/signature.h.
51215         (Depends-on): Add ansi-c++-opt.
51216         (Makefile.am): Arrange to compile and run test-string-c++.
51217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
51218         gl_MODULE_INDICATOR.
51220         Tests of module 'stdlib' in C++ mode.
51221         * tests/test-stdlib-c++.cc: New file.
51222         * modules/stdlib-tests (Files): Add it and tests/signature.h.
51223         (Depends-on): Add ansi-c++-opt.
51224         (Makefile.am): Arrange to compile and run test-stdlib-c++.
51225         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
51226         gl_MODULE_INDICATOR.
51228         Tests of module 'stdio' in C++ mode.
51229         * tests/test-stdio-c++.cc: New file.
51230         * modules/stdio-tests (Files): Add it and tests/signature.h.
51231         (Depends-on): Add ansi-c++-opt.
51232         (Makefile.am): Arrange to compile and run test-stdio-c++.
51233         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
51234         gl_MODULE_INDICATOR.
51236         Tests of module 'spawn' in C++ mode.
51237         * tests/test-spawn-c++.cc: New file.
51238         * modules/spawn-tests (Files): Add it and tests/signature.h.
51239         (Depends-on): Add ansi-c++-opt.
51240         (Makefile.am): Arrange to compile and run test-spawn-c++.
51241         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
51242         gl_MODULE_INDICATOR.
51244         Tests of module 'signal' in C++ mode.
51245         * tests/test-signal-c++.cc: New file.
51246         * modules/signal-tests (Files): Add it and tests/signature.h.
51247         (Depends-on): Add ansi-c++-opt.
51248         (Makefile.am): Arrange to compile and run test-signal-c++.
51249         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
51250         gl_MODULE_INDICATOR.
51252         Tests of module 'search' in C++ mode.
51253         * tests/test-search-c++.cc: New file.
51254         * modules/search-tests (Files): Add it and tests/signature.h.
51255         (Depends-on): Add ansi-c++-opt.
51256         (Makefile.am): Arrange to compile and run test-search-c++.
51257         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
51258         gl_MODULE_INDICATOR.
51260         Tests of module 'math' in C++ mode.
51261         * tests/test-math-c++.cc: New file.
51262         * modules/math-tests (Files): Add it and tests/signature.h.
51263         (Depends-on): Add ansi-c++-opt.
51264         (Makefile.am): Arrange to compile and run test-math-c++.
51265         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51267         Tests of module 'locale' in C++ mode.
51268         * tests/test-locale-c++.cc: New file.
51269         * modules/locale-tests (Files): Add it and tests/signature.h.
51270         (Depends-on): Add ansi-c++-opt.
51271         (Makefile.am): Arrange to compile and run test-locale-c++.
51272         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
51273         gl_MODULE_INDICATOR.
51275         Tests of module 'langinfo' in C++ mode.
51276         * tests/test-langinfo-c++.cc: New file.
51277         * modules/langinfo-tests (Files): Add it and tests/signature.h.
51278         (Depends-on): Add ansi-c++-opt.
51279         (Makefile.am): Arrange to compile and run test-langinfo-c++.
51280         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
51281         gl_MODULE_INDICATOR.
51283         Tests of module 'iconv-h' in C++ mode.
51284         * tests/test-iconv-h-c++.cc: New file.
51285         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
51286         (Depends-on): Add ansi-c++-opt.
51287         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
51289         Tests of module 'glob' in C++ mode.
51290         * tests/test-glob-c++.cc: New file.
51291         * modules/glob-tests (Files): Add it.
51292         (Depends-on): Add ansi-c++-opt.
51293         (Makefile.am): Arrange to compile and run test-glob-c++.
51295         Tests of module 'fcntl-h' in C++ mode.
51296         * tests/test-fcntl-h-c++.cc: New file.
51297         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
51298         (Depends-on): Add ansi-c++-opt.
51299         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
51300         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
51301         gl_MODULE_INDICATOR.
51303         Tests of module 'dirent' in C++ mode.
51304         * tests/test-dirent-c++.cc: New file.
51305         * modules/dirent-tests (Files): Add it and tests/signature.h.
51306         (Depends-on): Add ansi-c++-opt.
51307         (Makefile.am): Arrange to compile and run test-dirent-c++.
51308         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51309         gl_MODULE_INDICATOR.
51311         New module 'ansi-c++-opt'.
51312         * modules/ansi-c++-opt: New file.
51313         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
51315         Document C++ namespace mode.
51316         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
51318         wctype: Avoid #define replacements in C++ mode.
51319         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
51320         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
51321         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
51322         In C++, define a namespaced alias symbol.
51323         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
51324         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
51325         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
51326         rule.
51328         wchar: Avoid #define replacements in C++ mode.
51329         * lib/wchar.in.h: Include c++defs.h.
51330         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
51331         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
51332         symbol.
51333         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
51334         * modules/wchar (Depends-on): Add c++defs.
51335         (Makefile.am): Update wchar.h rule.
51337         unistd: Avoid #define replacements in C++ mode.
51338         * lib/unistd.in.h: Include c++defs.h.
51339         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
51340         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
51341         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
51342         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
51343         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
51344         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
51345         symbol.
51346         (environ): Update.
51347         * modules/unistd (Depends-on): Add c++defs.
51348         (Makefile.am): Update unistd.h rule.
51350         time: Avoid #define replacements in C++ mode.
51351         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
51352         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
51353         define a namespaced alias symbol.
51354         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
51355         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
51356         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
51357         * modules/time (Depends-on): Add c++defs, warn-on-use.
51358         (Makefile.am): Update time.h rule.
51359         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51360         * modules/nanosleep (configure.ac): Likewise.
51361         * modules/strptime (configure.ac): Likewise.
51362         * modules/timegm (configure.ac): Likewise.
51364         sys_time: Avoid #define replacements in C++ mode.
51365         * lib/sys_time.in.h: Include c++defs.h.
51366         (gettimeofday): In C++, define a namespaced alias symbol.
51367         * modules/sys_time (Depends-on): Add c++defs.
51368         (Makefile.am): Update sys/time.h rule.
51370         sys_stat: Avoid #define replacements in C++ mode.
51371         * lib/sys_stat.in.h: Include c++defs.h.
51372         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
51373         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
51374         namespaced alias symbol.
51375         In C++, define a namespaced alias symbol.
51376         * modules/sys_stat (Depends-on): Add c++defs.
51377         (Makefile.am): Update sys/stat.h rule.
51379         sys_socket: Avoid #define replacements in C++ mode.
51380         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
51381         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
51382         definitions also when the system has a <sys/socket.h>.
51383         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51384         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
51385         In C++, define a namespaced alias symbol.
51386         * modules/sys_socket (Depends-on): Add c++defs.
51387         (Makefile.am): Update sys/socket.h rule.
51389         sys_select: Avoid #define replacements in C++ mode.
51390         * lib/sys_select.in.h: Include c++defs.h. Enable the function
51391         definitions also when the system has a <sys/select.h>.
51392         (select): In C++, define a namespaced alias symbol.
51393         * modules/sys_select (Depends-on): Add c++defs.
51394         (Makefile.am): Update sys/select.h rule.
51396         sys_ioctl: Avoid #define replacements in C++ mode.
51397         * lib/sys_ioctl.in.h: Include c++defs.h.
51398         (ioctl): In C++, define a namespaced alias symbol.
51399         * modules/sys_ioctl (Depends-on): Add c++defs.
51400         (Makefile.am): Update sys/ioctl.h rule.
51402         string: Avoid #define replacements in C++ mode.
51403         * lib/string.in.h: Include c++defs.h.
51404         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
51405         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
51406         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
51407         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
51408         strsignal, strverscmp): In C++, define a namespaced alias symbol.
51409         * modules/string (Depends-on): Add c++defs.
51410         (Makefile.am): Update string.h rule.
51412         stdlib: Avoid #define replacements in C++ mode.
51413         * lib/stdlib.in.h: Include c++defs.h.
51414         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
51415         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
51416         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
51417         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
51418         symbol.
51419         * modules/stdlib (Depends-on): Add c++defs.
51420         (Makefile.am): Update stdlib.h rule.
51422         stdio: Avoid #define replacements in C++ mode.
51423         * lib/stdio.in.h: Include c++defs.h.
51424         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
51425         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
51426         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
51427         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
51428         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
51429         namespaced alias symbol.
51430         * modules/stdio (Depends-on): Add c++defs.
51431         (Makefile.am): Update stdio.h rule.
51433         spawn: Avoid #define replacements in C++ mode.
51434         * lib/spawn.in.h: Include c++defs.h.
51435         (posix_spawn, posix_spawnp, posix_spawnattr_init,
51436         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
51437         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
51438         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
51439         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
51440         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
51441         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
51442         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
51443         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
51444         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
51445         In C++, define a namespaced alias symbol.
51446         * modules/spawn (Depends-on): Add c++defs.
51447         (Makefile.am): Update spawn.h rule.
51449         signal: Avoid #define replacements in C++ mode.
51450         * lib/signal.in.h: Include c++defs.h.
51451         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
51452         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
51453         namespaced alias symbol.
51454         * modules/signal (Depends-on): Add c++defs.
51455         (Makefile.am): Update signal.h rule.
51457         search: Avoid #define replacements in C++ mode.
51458         * lib/search.in.h: Include c++defs.h.
51459         (_gl_search_compar_fn, _gl_search_action_fn): New types.
51460         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
51461         symbol.
51462         * modules/search (Depends-on): Add c++defs.
51463         (Makefile.am): Update search.h rule.
51465         math: Avoid #define replacements in C++ mode.
51466         * lib/math.in.h: Include c++defs.h.
51467         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
51468         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
51469         trunc, truncl): In C++, define a namespaced alias symbol.
51470         * modules/math (Depends-on): Add c++defs.
51471         (Makefile.am): Update math.h rule.
51473         locale: Avoid #define replacements in C++ mode.
51474         * lib/locale.in.h: Include c++defs.h.
51475         (duplocale): In C++, define a namespaced alias symbol.
51476         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
51477         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
51478         * modules/locale (Depends-on): Add c++defs.
51479         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
51481         langinfo: Avoid #define replacements in C++ mode.
51482         * lib/langinfo.in.h: Include c++defs.h.
51483         (nl_langinfo): In C++, define a namespaced alias symbol.
51484         * modules/langinfo (Depends-on): Add c++defs.
51485         (Makefile.am): Update langinfo.h rule.
51487         iconv-h: Avoid #define replacements in C++ mode.
51488         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
51489         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
51490         symbol.
51491         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51492         whenever iconv is present.
51493         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
51494         (Makefile.am): Update iconv.h rule.
51496         glob: Avoid #define replacements in C++ mode.
51497         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
51498         (_gl_glob_errfunc_fn): New type.
51499         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
51500         symbol.
51501         * modules/glob (Depends-on): Add c++defs, warn-on-use.
51502         (Makefile.am): Update glob.h rule.
51504         fcntl-h: Avoid #define replacements in C++ mode.
51505         * lib/fcntl.in.h: Include c++defs.h.
51506         (fcntl, open, openat): In C++, define a namespaced alias symbol.
51507         * modules/fcntl-h (Depends-on): Add c++defs.
51508         (Makefile.am): Update fcntl.h rule.
51510         dirent: Avoid #define replacements in C++ mode.
51511         * lib/dirent.in.h: Include c++defs.h.
51512         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
51513         namespaced alias symbol.
51514         (dirfd): Update declaration.
51515         * modules/dirent (Depends-on): Add c++defs.
51516         (Makefile.am): Update dirent.h rule.
51518         ctype: Make it usable in C++ code.
51519         * lib/ctype.in.h: Include c++defs.h.
51520         (isblank): Declare as extern "C".
51521         * modules/ctype (Depends-on): Add c++defs.
51522         (Makefile.am): Update ctype.h rule.
51524         New module 'c++defs'.
51525         * modules/c++defs: New file.
51526         * build-aux/c++defs.h: New file.
51527         Reported by John W. Eaton <jwe@gnu.org>.
51529 2010-03-07  Bruno Haible  <bruno@clisp.org>
51531         logb: Provide missing declaration for Cygwin.
51532         * lib/math.in.h (logb): New declaration.
51533         * m4/logb.m4: New file.
51534         * modules/logb (Files): Add m4/logb.m4.
51535         (Depends-on): Add math.
51536         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
51537         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
51538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
51539         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
51540         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
51542 2010-03-07  Bruno Haible  <bruno@clisp.org>
51544         Fix test-cond link error.
51545         * tests/test-cond.c: Include <stdio.h>.
51547 2010-03-07  Bruno Haible  <bruno@clisp.org>
51549         Fix test-dirent-safer link error.
51550         * modules/dirent-safer-tests (Makefile.am): Define
51551         test_dirent_safer_LDADD.
51553 2010-03-07  Bruno Haible  <bruno@clisp.org>
51555         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
51556         among default module list.
51558 2010-03-07  Bruno Haible  <bruno@clisp.org>
51560         Fix link error on platforms with GNU libiconv.
51561         * modules/unistr/u8-strcoll-tests (Makefile): Define
51562         test_u8_strcoll_LDADD.
51563         * modules/unistr/u16-strcoll-tests (Makefile): Define
51564         test_u16_strcoll_LDADD.
51565         * modules/unistr/u32-strcoll-tests (Makefile): Define
51566         test_u32_strcoll_LDADD.
51568 2010-03-07  Bruno Haible  <bruno@clisp.org>
51570         Use POSIX declarations for socket functions.
51571         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
51572         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
51573         rpl_sendto): Change declaration to match POSIX.
51574         * lib/connect.c (rpl_connect): Likewise.
51575         * lib/accept.c (rpl_accept): Likewise.
51576         * lib/bind.c (rpl_bind): Likewise.
51577         * lib/getpeername.c (rpl_getpeername): Likewise.
51578         * lib/getsockname.c (rpl_getsockname): Likewise.
51579         * lib/recv.c (rpl_recv): Likewise.
51580         * lib/send.c (rpl_send): Likewise.
51581         * lib/recvfrom.c (rpl_recvfrom): Likewise.
51582         * lib/sendto.c (rpl_sendto): Likewise.
51584 2010-03-06  Bruno Haible  <bruno@clisp.org>
51586         Clarify access, euidaccess, faccessat.
51587         * doc/posix-functions/faccessat.texi: Mention security problem under
51588         "Other problems", not "Portability problems".
51589         * doc/posix-functions/access.texi: Likewise. Mention a related security
51590         problem.
51591         * doc/glibc-functions/euidaccess.texi: Mention security problems.
51592         * lib/euidaccess.c: Add comments about platforms.
51593         * lib/unistd.in.h (access, euidaccess): Add warnings.
51595 2010-03-07  Bruno Haible  <bruno@clisp.org>
51597         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
51598         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
51599         (POSIX_SPAWN_SETSCHEDULER): Likewise.
51600         (POSIX_SPAWN_USEVFORK): Define in a way that works when
51601         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51602         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
51603         declare when POSIX_SPAWN_SETSCHEDULER is zero.
51604         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
51605         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
51606         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
51607         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
51608         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
51609         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
51610         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
51611         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
51612         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
51613         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
51614         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
51615         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
51616         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
51617         Likewise.
51618         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
51619         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
51620         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
51621         Likewise.
51622         * tests/test-spawn.c (main): Make it work when
51623         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51625 2010-03-07  Bruno Haible  <bruno@clisp.org>
51627         Fix incorrect Makefile.am generation in German locale.
51628         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51629         Execute sed command with character range in C locale.
51631 2010-03-06  Bruno Haible  <bruno@clisp.org>
51633         Tests for module 'iconv-h'.
51634         * modules/iconv-h-tests: New file.
51635         * tests/test-iconv-h.c: New file.
51637         New module 'iconv-h'.
51638         * modules/iconv-h: New file.
51639         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
51640         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
51641         (configure.ac): Remove gl_ICONV_H.
51642         (Makefile.am): Remove rule for iconv.h.
51644 2010-03-06  Bruno Haible  <bruno@clisp.org>
51646         More consistent naming of *.m4 files.
51647         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
51648         * modules/wctype (Files): Update.
51650         More consistent naming of *.m4 files.
51651         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
51652         * modules/wchar (Files): Update.
51654 2010-03-06  Jim Meyering  <meyering@redhat.com>
51656         euidaccess: relax license to LGPLv2+
51657         * modules/euidaccess (License): Relax to LGPLv2+.
51659 2010-03-06  Bruno Haible  <bruno@clisp.org>
51661         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
51662         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
51663         (Makefile.am): Augment lib_SOURCES instead.
51665 2010-03-04  Jim Meyering  <meyering@redhat.com>
51667         utime: remove obsolete module
51668         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
51669         unnecessary for years, and has been marked as obsolete for 10 months.
51670         * modules/utime: Remove file.
51671         * lib/utime.c: Remove file.
51672         * m4/utime.m4: Remove file.
51673         * m4/utimes-null.m4: Remove file.
51674         * doc/posix-functions/utime.texi (utime): Remove reference to
51675         the module.  Move the sole "fixed by gnulib" item into the
51676         "problems not fixed by Gnulib" list.
51677         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
51679 2010-03-05  Simon Josefsson  <simon@josefsson.org>
51681         * modules/exit (License): Relax license to LGPLv2+.
51682         (Status): Mark as obsolete.
51683         * NEWS: Mention deprecated 'exit' module.
51684         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
51685         of now obsolete 'exit'.
51687 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51689         fts-lgpl: remove unused module
51690         * modules/fts-lgpl: Remove.
51691         * MODULES.html.sh (func_all_modules): Adjust.
51692         * check-module (find_included_lib_files): Adjust.
51693         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
51695 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
51697         copy-acl: enhance Solaris ACL error handling
51698         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
51699         * lib/set-mode-acl.c (qset_acl): Likewise.
51701 2010-03-02  Bruno Haible  <bruno@clisp.org>
51703         spawn: Don't override the system defined values on FreeBSD 8.
51704         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
51705         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
51706         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
51707         if HAVE_POSIX_SPAWN is 1.
51708         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
51710 2010-03-01  Bruno Haible  <bruno@clisp.org>
51712         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
51713         regarding Automake.
51715 2010-02-25  Bruno Haible  <bruno@clisp.org>
51717         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
51718         * gnulib-tool: Define 'echo' as a function only before the ksh alias
51719         setting, not afterwards.
51720         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
51722 2010-02-24  Eric Blake  <eblake@redhat.com>
51724         bootstrap, git-version-gen: use timestamp
51725         * build-aux/git-version-gen (scriptversion): Force UTC.
51726         * build-aux/bootstrap (scriptversion): New variable.
51728         bootstrap: allow older git
51729         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
51730         older than 1.6.4.  Requested by the libvirt project.
51732 2010-02-23  Eric Blake  <eblake@redhat.com>
51734         warn-on-use: work with old autoconf
51735         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
51736         AS_VAR semantics of autoconf 2.60.
51737         Reported by Bruno Haible.
51739         bootstrap: improve some comments
51740         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
51741         clarification comments.
51743         gettimeofday: provide correct function
51744         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
51745         when replacement is declared, otherwise provide gettimeofday.
51746         Reported by Michael Goffioul.
51748 2010-02-23  Jim Meyering  <meyering@redhat.com>
51750         lib-ignore: relax license to "unlimited", not LGPLv2+
51751         * modules/lib-ignore (License): Relax to "unlimited".
51753 2010-02-23  Jim Meyering  <meyering@redhat.com>
51755         lib-ignore: relax license to LGPLv2+
51756         * modules/lib-ignore (License): Relax to LGPLv2+.
51758 2010-02-22  Eric Blake  <eblake@redhat.com>
51760         lseek: avoid bash 3.2 broken pipe bug
51761         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
51762         warning from bash 3.2.
51763         Reported by Ben Pfaff, with analysis from Bruno Haible.
51765         bootstrap: support non-FSF copyright holder
51766         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
51767         bootstrap.conf override of COPYRIGHT_HOLDER.
51768         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
51770         bootstrap: interoperate with gettext 0.14.1
51771         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
51773         bootstrap: allow for alternate submodule location
51774         * build-aux/bootstrap (gnulib_path): New variable; use instead of
51775         hardcoding submodule location.
51776         (gnulib_mk): Allow direct use of Makefile.am.
51778         bootstrap: use GNULIB_SRCDIR to reduce disk usage
51779         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
51780         rather than reconfiguring where the submodule points.
51782         gettimeofday: restore support for platforms that lack function
51783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
51784         replacement if function is missing.
51785         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
51786         * modules/sys_time (Makefile.am): Substitute it.
51787         * lib/sys_time.in.h (gettimeofday): Check it.
51788         Reported by Michael Goffioul.
51790 2010-02-21  Bruno Haible  <bruno@clisp.org>
51792         * lib/stdio.in.h (obstack_printf): Fix typo.
51794 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
51796         vc-list-files: use bzr ls's -R option
51797         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
51798         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
51800 2010-02-21  Jim Meyering  <meyering@redhat.com>
51802         init.sh: fix EXEEXT shims to work also for names like test-prog
51803         * tests/init.sh: Re-exec a better shell, when needed.
51804         If the current shell lacks support for posix $(...), an init.sh-using
51805         test will now try to find a shell that supports that.  If EXEEXT is
51806         nonempty, we also require support for hyphen-in-alias-name and shell
51807         substitutions like ${var#glob}.  Failure to find such a shell results
51808         in a skipped test.
51810 2010-02-21  Bruno Haible  <bruno@clisp.org>
51812         Really work around "broken pipe" error message from bash 3.2.
51813         * gnulib-tool (func_reset_sigpipe): Remove function.
51814         (echo): In bash 3.2, define to a function that uses printf.
51815         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
51817 2010-02-20  Bruno Haible  <bruno@clisp.org>
51819         Restore support for automake 1.9.6 with autoconf 2.61.
51820         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
51821         Reported by James Youngman <jay@gnu.org>.
51823 2010-02-20  Bruno Haible  <bruno@clisp.org>
51825         Improve *printf warning condition.
51826         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
51827         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
51828         and the function is overridden due to SIGPIPE emulation.
51830 2010-02-20  Bruno Haible  <bruno@clisp.org>
51832         * lib/stdio.in.h: Tweak comments.
51834 2010-02-19  Bruno Haible  <bruno@clisp.org>
51836         Make it easier to find modules. New gnulib-tool option '--find'.
51837         * gnulib-tool: New option --find.
51838         (func_usage): Document it.
51839         (func_sanitize_modulelist): New function, extracted from
51840         func_all_modules.
51841         (func_all_modules): Invoke it.
51842         * doc/gnulib-tool.texi (Which modules?): New node.
51844 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
51846         * lib/sys_select.in.h: Provide select replacement even if
51847         sys/select.h exists on a system, for Interix.
51849 2010-02-18  Jim Meyering  <meyering@redhat.com>
51851         init.sh: don't use $(...) just yet
51852         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
51853         to accommodate e.g., Solaris' /bin/sh.
51855 2010-02-17  Bruno Haible  <bruno@clisp.org>
51857         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
51858         Reported by Ludovic Courtès <ludo@gnu.org>.
51860 2010-02-16  Simon Josefsson  <simon@josefsson.org>
51862         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
51863         linking with -lintl.
51865 2010-02-17  Simon Josefsson  <simon@josefsson.org>
51867         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
51868         if not provided by the system's netdb.h.  Reported by
51869         ludo@gnu.org (Ludovic Courtès).
51871 2010-02-15  Jim Meyering  <meyering@redhat.com>
51873         init.sh: improve portability and efficiency
51874         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
51875         "dummy" in a for loop.
51876         Use '!', not '^' to select the complement of a character set used
51877         in a "case" statement.
51878         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
51879         Suggestions from Eric Blake.
51881         init.sh: automatically accommodate programs with the .exe suffix
51882         Automatically arrange for an invocation of "prog" to execute the
51883         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
51884         may use the simpler "prog", yet still work when built on a system
51885         that requires specifying the added suffix.
51886         Do this by constructing a function named "prog" that invokes
51887         "prog.exe" for each .exe file in selected directories.
51888         * tests/init.sh (find_exe_basenames_): New function.
51889         (create_exe_shim_functions_): New function.
51890         (path_prepend_): Use it.
51892         maint.mk: mark syntax-check sc_*.m rules as .PHONY
51893         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
51894         "make -t syntax-check" doesn't create a ton of sc_*.m files.
51896 2010-02-14  Jim Meyering  <meyering@redhat.com>
51898         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
51899         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
51900         (sc_prohibit_hash_pjw_without_use): New rule.
51902         maint.mk: allow the default upload destination dir to be overridden
51903         * top/maint.mk (upload_dest_dir_): Define with a default that
51904         preserves the status quo.
51905         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
51906         Reported by Peter Simons.
51908         maint.mk: prohibit inclusion of "hash.h" without_use
51909         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
51911 2010-02-10  Jim Meyering  <meyering@redhat.com>
51913         maint.mk: prohibit inclusion of "ignore-value.h" without_use
51914         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
51916 2010-02-09  Eric Blake  <ebb9@byu.net>
51917         and Bruno Haible  <bruno@clisp.org>
51919         obstack-printf-posix: ensure declaration
51920         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
51921         extracted from gl_FUNC_OBSTACK_PRINTF.
51922         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
51923         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51924         Likewise.
51925         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
51926         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
51927         0.
51929 2010-02-08  Bruno Haible  <bruno@clisp.org>
51931         gnulib-tool: Fix typo in 2010-02-07 commit.
51932         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
51933         Reported by Eric Blake.
51935 2010-02-07  Bruno Haible  <bruno@clisp.org>
51937         gnulib-tool: Fix up caching patches.
51938         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
51939         option --no-cache. Use associative arrays when supported by the shell.
51940         (sed_comments): New variable.
51941         (modcache): Renamed from do_cache.
51942         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
51943         abbreviate unnecessarily.
51944         (have_associative): New variable.
51945         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
51946         way also for ksh and zsh.
51947         (func_init_sed_convert_to_cache_statements): New function, extracted
51948         from func_cache_lookup_module. Add support for associative arrays.
51949         Don't set the c_MODULE_cached variable here. Ignore all lines before
51950         the first field header. Remove only the final newline, not all trailing
51951         newlines. Support empty fields correctly. Limit the use of 'eval' to
51952         assignments.
51953         (func_get_description, func_get_status, func_get_notice,
51954         func_get_applicability, func_get_filelist, func_get_dependencies,
51955         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
51956         func_get_automake_snippet, func_get_include_directive,
51957         func_get_link_directive, func_get_license, func_get_maintainer):
51958         Update documentation. List the unoptimized code first. Add support for
51959         associative arrays. Limit the use of 'eval' to assignments.
51960         (func_get_applicability): Undo stylistic pessimisations.
51961         (func_get_automake_snippet, func_get_include_directive): Reduce code
51962         duplication.
51963         (func_modules_transitive_closure, func_modules_add_dummy,
51964         func_modules_notice, func_modules_to_filelist, func_add_file,
51965         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
51966         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
51967         func_create_testdir, func_create_megatestdir): Update documentation.
51969 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51971         * gnulib-tool (func_cache_lookup_module): Store the module name
51972         belonging to the cache variable; error out if two different
51973         module names map to the same cache variable name.
51975 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51977         gnulib-tool: Make caching optional.
51978         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
51979         Update matching short versions of --no-changelog.
51980         (func_usage): Update.
51981         (sed_extract_cache_prog): Renamed from ...
51982         (sed_extract_prog): ... this; revert to old extraction script.
51983         (func_get_description, func_get_status)
51984         (func_get_notice, func_get_applicability, func_get_filelist)
51985         (func_get_dependencies, func_get_autoconf_early_snippet)
51986         (func_get_autoconf_snippet, func_get_automake_snippet)
51987         (func_get_include_directive, func_get_link_directive)
51988         (func_get_license, func_get_maintainer): If $do_cache is false,
51989         use old, non-caching extraction scripts.
51990         Suggestion by Bruno Haible.
51992 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51994         gnulib-tool: cache module metainformation.
51995         * gnulib-tool (sed_extract_prog): Match newline before each
51996         header, and rewrite header to a shell variable suffix.
51997         (func_cache_var, func_cache_lookup_module): New functions,
51998         to turn a module name into a cache variable prefix, and to
51999         look up and cache module metainformation.
52000         (func_get_description, func_get_status)
52001         (func_get_notice, func_get_applicability, func_get_filelist)
52002         (func_get_dependencies, func_get_autoconf_early_snippet)
52003         (func_get_autoconf_snippet, func_get_automake_snippet)
52004         (func_get_include_directive, func_get_link_directive)
52005         (func_get_license, func_get_maintainer): Use
52006         func_cache_lookup_module.
52008 2010-02-07  Bruno Haible  <bruno@clisp.org>
52010         fnctl: Fix missing dependency.
52011         * modules/fcntl (Depends-on): Add getdtablesize.
52012         Reported by John W. Eaton <jwe@gnu.org>.
52014 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52016         Argp: fix recognition of short alias options.
52018         * lib/argp-parse.c (convert_options): Fix improper use of
52019         `|' between character values.
52020         * tests/test-argp.c (group1_option): New alias option
52021         --read (-r).
52022         (group1_parser): Special handling for 'r'.
52023         (test15): New test case.
52024         (test_fun): Add test15.
52025         * tests/test-argp-2.sh: Update expected --help and --usage
52026         outputs.
52028 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52030         * tests/test-argp.c: Fix indentation.
52032 2010-02-04  Eric Blake  <ebb9@byu.net>
52034         gettimeofday: expose type of second argument
52035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
52036         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
52037         * tests/test-gettimeofday.c: Use it to silence warning.
52038         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
52039         the issue.
52041 2010-02-03  Jim Meyering  <meyering@redhat.com>
52043         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
52044         * lib/regcomp.c (TYPE_SIGNED): Define.
52045         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
52047         regcomp.c: avoid a new -Wshadow warning
52048         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
52050 2010-02-01  Jim Meyering  <meyering@redhat.com>
52052         removing useless parentheses in cpp #define directives
52053         For motivation, see commit c0221df4, "define STREQ(a,b)
52054         consistently, removing useless parentheses"
52055         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
52056         * lib/mountlist.c (MNT_IGNORE): Likewise.
52057         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
52059 2010-02-01  Eric Blake  <ebb9@byu.net>
52061         sys_time: use link-warning
52062         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
52063         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
52064         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
52065         * modules/sys_time (Depends-on): Add warn-on-use.
52066         (Makefile.am): Always build replacement.
52067         (configure.ac): Update substitutions.
52068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
52069         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
52070         bother with SYS_TIME_H.
52071         * modules/gettimeofday (configure.ac): Declare indicator.
52072         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
52073         in use.
52075         closein-tests: silence compiler warning
52076         * tests/test-closein.c (main): Ignore fread result.
52077         * modules/closein-tests (Depends-on): Add ignore-value.
52079         tests: silence warning about system return
52080         * tests/test-areadlink-with-size.c (main): Ignore system result.
52081         * tests/test-areadlink.c (main): Likewise.
52082         * tests/test-areadlinkat-with-size.c (main): Likewise.
52083         * tests/test-areadlinkat.c (main): Likewise.
52084         * tests/test-canonicalize-lgpl.c (main): Likewise.
52085         * tests/test-canonicalize.c (main): Likewise.
52086         * tests/test-chown.c (main): Likewise.
52087         * tests/test-fchownat.c (main): Likewise.
52088         * tests/test-fdutimensat.c (main): Likewise.
52089         * tests/test-fstatat.c (main): Likewise.
52090         * tests/test-futimens.c (main): Likewise.
52091         * tests/test-lchown.c (main): Likewise.
52092         * tests/test-link.c (main): Likewise.
52093         * tests/test-linkat.c (main): Likewise.
52094         * tests/test-lstat.c (main): Likewise.
52095         * tests/test-mkdir.c (main): Likewise.
52096         * tests/test-mkdirat.c (main): Likewise.
52097         * tests/test-mkfifo.c (main): Likewise.
52098         * tests/test-mkfifoat.c (main): Likewise.
52099         * tests/test-mknod.c (main): Likewise.
52100         * tests/test-readlink.c (main): Likewise.
52101         * tests/test-remove.c (main): Likewise.
52102         * tests/test-rename.c (main): Likewise.
52103         * tests/test-renameat.c (main): Likewise.
52104         * tests/test-rmdir.c (main): Likewise.
52105         * tests/test-symlink.c (main): Likewise.
52106         * tests/test-symlinkat.c (main): Likewise.
52107         * tests/test-unlink.c (main): Likewise.
52108         * tests/test-unlinkat.c (main): Likewise.
52109         * tests/test-utimens.c (main): Likewise.
52110         * tests/test-utimensat.c (main): Likewise.
52111         * modules/areadlink-tests (Depends-on): Add ignore-value.
52112         * modules/areadlink-with-size-tests (Depends-on): Likewise.
52113         * modules/areadlinkat-tests (Depends-on): Likewise.
52114         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
52115         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
52116         * modules/canonicalize-tests (Depends-on): Likewise.
52117         * modules/chown-tests (Depends-on): Likewise.
52118         * modules/fdutimensat-tests (Depends-on): Likewise.
52119         * modules/futimens-tests (Depends-on): Likewise.
52120         * modules/lchown-tests (Depends-on): Likewise.
52121         * modules/link-tests (Depends-on): Likewise.
52122         * modules/linkat-tests (Depends-on): Likewise.
52123         * modules/lstat-tests (Depends-on): Likewise.
52124         * modules/mkdir-tests (Depends-on): Likewise.
52125         * modules/mkfifo-tests (Depends-on): Likewise.
52126         * modules/mkfifoat-tests (Depends-on): Likewise.
52127         * modules/mknod-tests (Depends-on): Likewise.
52128         * modules/openat-tests (Depends-on): Likewise.
52129         * modules/readlink-tests (Depends-on): Likewise.
52130         * modules/remove-tests (Depends-on): Likewise.
52131         * modules/rename-tests (Depends-on): Likewise.
52132         * modules/renameat-tests (Depends-on): Likewise.
52133         * modules/rmdir-tests (Depends-on): Likewise.
52134         * modules/symlink-tests (Depends-on): Likewise.
52135         * modules/symlinkat-tests (Depends-on): Likewise.
52136         * modules/unlink-tests (Depends-on): Likewise.
52137         * modules/utimens-tests (Depends-on): Likewise.
52138         * modules/utimensat-tests (Depends-on): Likewise.
52140 2010-01-31  Bruno Haible  <bruno@clisp.org>
52142         Perform the same test for many <math.h> functions.
52143         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
52144         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
52145         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
52146         of gl_MATHFUNC.
52147         * modules/acos (configure.ac): Likewise.
52148         * modules/asin (configure.ac): Likewise.
52149         * modules/atan (configure.ac): Likewise.
52150         * modules/atan2 (configure.ac): Likewise.
52151         * modules/cbrt (configure.ac): Likewise.
52152         * modules/copysign (configure.ac): Likewise.
52153         * modules/cos (configure.ac): Likewise.
52154         * modules/cosh (configure.ac): Likewise.
52155         * modules/erf (configure.ac): Likewise.
52156         * modules/erfc (configure.ac): Likewise.
52157         * modules/exp (configure.ac): Likewise.
52158         * modules/fmod (configure.ac): Likewise.
52159         * modules/hypot (configure.ac): Likewise.
52160         * modules/j0 (configure.ac): Likewise.
52161         * modules/j1 (configure.ac): Likewise.
52162         * modules/jn (configure.ac): Likewise.
52163         * modules/lgamma (configure.ac): Likewise.
52164         * modules/log (configure.ac): Likewise.
52165         * modules/log10 (configure.ac): Likewise.
52166         * modules/log1p (configure.ac): Likewise.
52167         * modules/pow (configure.ac): Likewise.
52168         * modules/remainder (configure.ac): Likewise.
52169         * modules/sin (configure.ac): Likewise.
52170         * modules/sinh (configure.ac): Likewise.
52171         * modules/tan (configure.ac): Likewise.
52172         * modules/tanh (configure.ac): Likewise.
52173         * modules/y0 (configure.ac): Likewise.
52174         * modules/y1 (configure.ac): Likewise.
52175         * modules/yn (configure.ac): Likewise.
52176         Suggested by Paolo Bonzini.
52178 2010-01-31  Bruno Haible  <bruno@clisp.org>
52180         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
52182 2010-01-31  Bruno Haible  <bruno@clisp.org>
52184         Work around getdelim() bug on FreeBSD 8.0.
52185         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
52186         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
52187         not work.
52188         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
52189         is 1.
52190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
52191         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
52192         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
52193         a non-zero size.
52194         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
52196 2010-01-31  Bruno Haible  <bruno@clisp.org>
52198         Work around getline() bug on FreeBSD 8.0.
52199         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
52200         and a non-zero size.
52201         * tests/test-getline.c (main): Likewise.
52202         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
52203         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
52205 2010-01-28  Eric Blake  <ebb9@byu.net>
52207         regex: fix build failure
52208         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
52209         platforms.
52211 2010-01-28  Jim Meyering  <meyering@redhat.com>
52213         regex: do not ignore memory allocation failure
52214         * lib/regex_internal.c (create_cd_newstate): Detect
52215         re_node_set_init_copy failure.   Extracted from glibc commit
52216         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52218         regex: sync more white-space changes from libc
52219         * lib/regex_internal.c: White-space only changes.
52220         * lib/regexec.c: Likewise.
52222         regex: add many uses of __attribute_warn_unused_result__
52223         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
52224         * lib/regexec.c: Likewise.
52225         Extracted from a messy glibc commit.
52227         regcomp.c: spelling and merge-artifact from glibc
52228         * lib/regcomp.c: Merge remainder of glibc's
52229         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52231         regcomp.c: sync white-space changes from glibc
52232         * lib/regcomp.c: Merge to accommodate white space
52233         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52235         regcomp.c: do not ignore internal return values
52236         * lib/regcomp.c: Do not ignore internal return values.
52237         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
52238         but without its white-space changes and spelling fixes.
52240         regex_internal.h: define __attribute_warn_unused_result__
52241         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
52243         maint: add a syntax-check rule to check for vulnerable Makefile.in
52244         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
52246 2010-01-27  Jim Meyering  <meyering@redhat.com>
52248         ncftpput-ftp: clean up spaces
52249         * build-aux/ncftpput-ftp: Make Copyright line consistent.
52250         Remove trailing blanks.
52252 2010-01-27  Simon Josefsson  <simon@josefsson.org>
52254         * build-aux/git-version-gen: Fix copyright statement.
52255         * build-aux/gnupload: Likewise.
52256         * tests/test-arcfour.c: Likewise.
52257         * tests/test-arctwo.c: Likewise.
52258         * tests/test-count-one-bits.c: Likewise.
52259         * tests/test-crc.c: Likewise.
52260         * tests/test-des.c: Likewise.
52261         * tests/test-gc-arcfour.c: Likewise.
52262         * tests/test-gc-arctwo.c: Likewise.
52263         * tests/test-gc-des.c: Likewise.
52264         * tests/test-gc-hmac-md5.c: Likewise.
52265         * tests/test-gc-hmac-sha1.c: Likewise.
52266         * tests/test-gc-md2.c: Likewise.
52267         * tests/test-gc-md4.c: Likewise.
52268         * tests/test-gc-md5.c: Likewise.
52269         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52270         * tests/test-gc-rijndael.c: Likewise.
52271         * tests/test-gc-sha1.c: Likewise.
52272         * tests/test-gc.c: Likewise.
52273         * tests/test-gethostname.c: Likewise.
52274         * tests/test-gettimeofday.c: Likewise.
52275         * tests/test-hash.c: Likewise.
52276         * tests/test-hmac-md5.c: Likewise.
52277         * tests/test-hmac-sha1.c: Likewise.
52278         * tests/test-md2.c: Likewise.
52279         * tests/test-md4.c: Likewise.
52280         * tests/test-md5.c: Likewise.
52281         * tests/test-memchr.c: Likewise.
52282         * tests/test-memchr2.c: Likewise.
52283         * tests/test-memcmp.c: Likewise.
52284         * tests/test-memmem.c: Likewise.
52285         * tests/test-memrchr.c: Likewise.
52286         * tests/test-rawmemchr.c: Likewise.
52287         * tests/test-read-file.c: Likewise.
52288         * tests/test-rijndael.c: Likewise.
52289         * tests/test-sockets.c: Likewise.
52290         * tests/test-strchrnul.c: Likewise.
52291         * tests/test-strstr.c: Likewise.
52292         * tests/test-strtod.c: Likewise.
52293         * build-aux/ncftpput-ftp: Likewise.
52295 2010-01-26  Eric Blake  <ebb9@byu.net>
52297         ignore-value: update recommended header name
52298         * modules/ignore-value (Include): Only use <> for headers that
52299         exist in glibc.
52301 2010-01-26  Jim Meyering  <meyering@redhat.com>
52303         test-userspec.c: avoid compiler warnings
52304         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
52305         and "initialization discards qualifiers..." warnings.
52306         Put the first "uid" in its own scope, and make char* members "const".
52308 2010-01-25  Bruno Haible  <bruno@clisp.org>
52310         gnulib-tool: Make warning diagnostics consistent.
52311         * gnulib-tool (func_warning): New function.
52312         Use it everywhere where gnulib-tool produces output to stderr and it is
52313         not a fatal error.
52315 2010-01-25  Bruno Haible  <bruno@clisp.org>
52317         Fix test dependencies.
52318         * modules/xstrtol-tests (Depends-on): Add inttypes.
52319         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
52321 2010-01-25  Pádraig Brady  <P@draigBrady.com>
52323         syntax-check: detect incorrect boolean macro values in config.h
52324         * modules/maintainer-makefile (configure.ac): Parameterize the location
52325         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
52326         The logic is from Eric Blake and the location indicated by Jim Meyering.
52327         Note the more natural CONFIG_HEADER name is prohibited by automake
52328         for backwards compatibility reasons.
52329         * top/maint.mk (sc_Wundef_boolean): New rule.
52331 2010-01-25  Jim Meyering  <meyering@redhat.com>
52333         bootstrap: detect MacOS 10.6's shasum, too
52334         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
52335         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
52337 2010-01-23  Jim Meyering  <meyering@redhat.com>
52339         xstrtoll: new module
52340         * modules/xstrtoll: New file.
52341         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
52342         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
52343         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
52344         ./configure fails if you use this module and lack "long long".
52345         * modules/xstrtoll-tests: New module.
52346         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
52347         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
52348         new init.sh-based test framework.
52350 2010-01-24  Bruno Haible  <bruno@clisp.org>
52352         Tests for module 'yn'.
52353         * modules/yn-tests: New file.
52354         * tests/test-yn.c: New file.
52356         Tests for module 'y1'.
52357         * modules/y1-tests: New file.
52358         * tests/test-y1.c: New file.
52360         Tests for module 'y0'.
52361         * modules/y0-tests: New file.
52362         * tests/test-y0.c: New file.
52364         Tests for module 'tanh'.
52365         * modules/tanh-tests: New file.
52366         * tests/test-tanh.c: New file.
52368         Tests for module 'tan'.
52369         * modules/tan-tests: New file.
52370         * tests/test-tan.c: New file.
52372         Tests for module 'sqrt'.
52373         * modules/sqrt-tests: New file.
52374         * tests/test-sqrt.c: New file.
52376         Tests for module 'sinh'.
52377         * modules/sinh-tests: New file.
52378         * tests/test-sinh.c: New file.
52380         Tests for module 'sin'.
52381         * modules/sin-tests: New file.
52382         * tests/test-sin.c: New file.
52384         Tests for module 'rint'.
52385         * modules/rint-tests: New file.
52386         * tests/test-rint.c: New file.
52388         Tests for module 'remainder'.
52389         * modules/remainder-tests: New file.
52390         * tests/test-remainder.c: New file.
52392         Tests for module 'pow'.
52393         * modules/pow-tests: New file.
52394         * tests/test-pow.c: New file.
52396         Tests for module 'nextafter'.
52397         * modules/nextafter-tests: New file.
52398         * tests/test-nextafter.c: New file.
52400         Tests for module 'modf'.
52401         * modules/modf-tests: New file.
52402         * tests/test-modf.c: New file.
52404         Tests for module 'logb'.
52405         * modules/logb-tests: New file.
52406         * tests/test-logb.c: New file.
52408         Tests for module 'log1p'.
52409         * modules/log1p-tests: New file.
52410         * tests/test-log1p.c: New file.
52412         Tests for module 'log10'.
52413         * modules/log10-tests: New file.
52414         * tests/test-log10.c: New file.
52416         Tests for module 'log'.
52417         * modules/log-tests: New file.
52418         * tests/test-log.c: New file.
52420         Tests for module 'lgamma'.
52421         * modules/lgamma-tests: New file.
52422         * tests/test-lgamma.c: New file.
52424         Tests for module 'ldexp'.
52425         * modules/ldexp-tests: New file.
52426         * tests/test-ldexp.c: New file.
52428         Tests for module 'jn'.
52429         * modules/jn-tests: New file.
52430         * tests/test-jn.c: New file.
52432         Tests for module 'j1'.
52433         * modules/j1-tests: New file.
52434         * tests/test-j1.c: New file.
52436         Tests for module 'j0'.
52437         * modules/j0-tests: New file.
52438         * tests/test-j0.c: New file.
52440         Tests for module 'hypot'.
52441         * modules/hypot-tests: New file.
52442         * tests/test-hypot.c: New file.
52444         Tests for module 'fmod'.
52445         * modules/fmod-tests: New file.
52446         * tests/test-fmod.c: New file.
52448         Tests for module 'fabs'.
52449         * modules/fabs-tests: New file.
52450         * tests/test-fabs.c: New file.
52452         Tests for module 'exp'.
52453         * modules/exp-tests: New file.
52454         * tests/test-exp.c: New file.
52456         Tests for module 'erfc'.
52457         * modules/erfc-tests: New file.
52458         * tests/test-erfc.c: New file.
52460         Tests for module 'erf'.
52461         * modules/erf-tests: New file.
52462         * tests/test-erf.c: New file.
52464         Tests for module 'cosh'.
52465         * modules/cosh-tests: New file.
52466         * tests/test-cosh.c: New file.
52468         Tests for module 'cos'.
52469         * modules/cos-tests: New file.
52470         * tests/test-cos.c: New file.
52472         Tests for module 'copysign'.
52473         * modules/copysign-tests: New file.
52474         * tests/test-copysign.c: New file.
52476         Tests for module 'cbrt'.
52477         * modules/cbrt-tests: New file.
52478         * tests/test-cbrt.c: New file.
52480         Tests for module 'atan2'.
52481         * modules/atan2-tests: New file.
52482         * tests/test-atan2.c: New file.
52484         Tests for module 'atan'.
52485         * modules/atan-tests: New file.
52486         * tests/test-atan.c: New file.
52488         Tests for module 'asin'.
52489         * modules/asin-tests: New file.
52490         * tests/test-asin.c: New file.
52492         Tests for module 'acos'.
52493         * modules/acos-tests: New file.
52494         * tests/test-acos.c: New file.
52496 2010-01-24  Bruno Haible  <bruno@clisp.org>
52498         Fix tests for common <math.h> functions.
52499         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
52500         code snippet that references the function pointer, rather than merely
52501         calling the function. Substitute the FUNC_LIBM variable.
52502         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
52503         * modules/acos (configure.ac): Likewise.
52504         * modules/asin (configure.ac): Likewise.
52505         * modules/atan (configure.ac): Likewise.
52506         * modules/atan2 (configure.ac): Likewise.
52507         * modules/cbrt (configure.ac): Likewise.
52508         * modules/copysign (configure.ac): Likewise.
52509         * modules/cos (configure.ac): Likewise.
52510         * modules/cosh (configure.ac): Likewise.
52511         * modules/erf (configure.ac): Likewise.
52512         * modules/erfc (configure.ac): Likewise.
52513         * modules/exp (configure.ac): Likewise.
52514         * modules/fabs (configure.ac): Likewise.
52515         * modules/fmod (configure.ac): Likewise.
52516         * modules/hypot (configure.ac): Likewise.
52517         * modules/j0 (configure.ac): Likewise.
52518         * modules/j1 (configure.ac): Likewise.
52519         * modules/jn (configure.ac): Likewise.
52520         * modules/ldexp (configure.ac): Likewise.
52521         * modules/lgamma (configure.ac): Likewise.
52522         * modules/log (configure.ac): Likewise.
52523         * modules/log10 (configure.ac): Likewise.
52524         * modules/log1p (configure.ac): Likewise.
52525         * modules/logb (configure.ac): Likewise.
52526         * modules/modf (configure.ac): Likewise.
52527         * modules/nextafter (configure.ac): Likewise.
52528         * modules/pow (configure.ac): Likewise.
52529         * modules/remainder (configure.ac): Likewise.
52530         * modules/rint (configure.ac): Likewise.
52531         * modules/sin (configure.ac): Likewise.
52532         * modules/sinh (configure.ac): Likewise.
52533         * modules/tan (configure.ac): Likewise.
52534         * modules/tanh (configure.ac): Likewise.
52535         * modules/y0 (configure.ac): Likewise.
52536         * modules/y1 (configure.ac): Likewise.
52537         * modules/yn (configure.ac): Likewise.
52539 2010-01-24  Bruno Haible  <bruno@clisp.org>
52541         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
52542         * tests/test-acosl.c (x): New variable.
52543         (main): Store argument in x and fetch it from x.
52544         * tests/test-asinl.c (x): New variable.
52545         (main): Store argument in x and fetch it from x.
52546         * tests/test-atanl.c (x): New variable.
52547         (main): Store argument in x and fetch it from x.
52548         * tests/test-cosl.c (x): New variable.
52549         (main): Store argument in x and fetch it from x.
52550         * tests/test-expl.c (x): New variable.
52551         (main): Store argument in x and fetch it from x.
52552         * tests/test-logl.c (x): New variable.
52553         (main): Store argument in x and fetch it from x.
52554         * tests/test-sinl.c (x): New variable.
52555         (main): Store argument in x and fetch it from x.
52556         * tests/test-sqrtl.c (x): New variable.
52557         (main): Store argument in x and fetch it from x.
52558         * tests/test-tanl.c (x): New variable.
52559         (main): Store argument in x and fetch it from x.
52561 2010-01-24  Bruno Haible  <bruno@clisp.org>
52563         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
52564         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
52565         assignments to the initial TESTS_ENVIRONMENT.
52566         * doc/gnulib.texi (Unit test modules): Document it.
52567         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
52568         TESTS_ENVIRONMENT.
52569         * modules/btowc-tests (Makefile.am): Likewise.
52570         * modules/c-stack-tests (Makefile.am): Likewise.
52571         * modules/c-strcase-tests (Makefile.am): Likewise.
52572         * modules/copy-file-tests (Makefile.am): Likewise.
52573         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
52574         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
52575         * modules/mbrtowc-tests (Makefile.am): Likewise.
52576         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52577         * modules/mbscasestr-tests (Makefile.am): Likewise.
52578         * modules/mbschr-tests (Makefile.am): Likewise.
52579         * modules/mbscspn-tests (Makefile.am): Likewise.
52580         * modules/mbsinit-tests (Makefile.am): Likewise.
52581         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52582         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
52583         * modules/mbspbrk-tests (Makefile.am): Likewise.
52584         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52585         * modules/mbsrchr-tests (Makefile.am): Likewise.
52586         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
52587         * modules/mbsspn-tests (Makefile.am): Likewise.
52588         * modules/mbsstr-tests (Makefile.am): Likewise.
52589         * modules/nl_langinfo-tests (Makefile.am): Likewise.
52590         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
52591         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52592         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52593         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52594         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52595         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
52596         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52597         * modules/wcrtomb-tests (Makefile.am): Likewise.
52598         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
52599         * modules/wcsrtombs-tests (Makefile.am): Likewise.
52600         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
52601         assignments from TESTS_ENVIRONMENT.
52602         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
52603         augmentation.
52604         * modules/argp-version-etc-tests (Makefile.am): Likewise.
52605         * modules/atexit-tests (Makefile.am): Likewise.
52606         * modules/binary-io-tests (Makefile.am): Likewise.
52607         * modules/closein-tests (Makefile.am): Likewise.
52608         * modules/dprintf-posix-tests (Makefile.am): Likewise.
52609         * modules/exclude-tests (Makefile.am): Likewise.
52610         * modules/fflush-tests (Makefile.am): Likewise.
52611         * modules/fpending-tests (Makefile.am): Likewise.
52612         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52613         * modules/freadahead-tests (Makefile.am): Likewise.
52614         * modules/freadptr-tests (Makefile.am): Likewise.
52615         * modules/freadseek-tests (Makefile.am): Likewise.
52616         * modules/fseek-tests (Makefile.am): Likewise.
52617         * modules/fseeko-tests (Makefile.am): Likewise.
52618         * modules/ftell-tests (Makefile.am): Likewise.
52619         * modules/ftello-tests (Makefile.am): Likewise.
52620         * modules/idpriv-drop-tests (Makefile.am): Likewise.
52621         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
52622         * modules/lseek-tests (Makefile.am): Likewise.
52623         * modules/parse-duration-tests (Makefile.am): Likewise.
52624         * modules/perror-tests (Makefile.am): Likewise.
52625         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
52626         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
52627         * modules/pipe-tests (Makefile.am): Likewise.
52628         * modules/pread-tests (Makefile.am): Likewise.
52629         * modules/printf-posix-tests (Makefile.am): Likewise.
52630         * modules/select-tests (Makefile.am): Likewise.
52631         * modules/sigpipe-tests (Makefile.am): Likewise.
52632         * modules/tsearch-tests (Makefile.am): Likewise.
52633         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
52634         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
52635         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52636         * modules/uniwidth/width-tests (Makefile.am): Likewise.
52637         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
52638         * modules/version-etc-tests (Makefile.am): Likewise.
52639         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52640         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52641         * modules/xalloc-die-tests (Makefile.am): Likewise.
52642         * modules/xprintf-posix-tests (Makefile.am): Likewise.
52643         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52644         * modules/xstrtol-tests (Makefile.am): Likewise.
52645         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52646         * modules/yesno-tests (Makefile.am): Likewise.
52647         Suggested by Jim Meyering.
52649 2010-01-24  Bruno Haible  <bruno@clisp.org>
52651         More documentation.
52652         * doc/gnulib.texi (Writing modules): New chapter.
52653         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
52654         the new chapter.
52656 2010-01-24  Jim Meyering  <meyering@redhat.com>
52658         maint.mk: do not prepend "./" after filtering
52659         * top/maint.mk (_prepend_srcdir_prefix): New variable
52660         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
52661         "./" when $(srcdir) is ".".
52663         define STREQ(a,b) consistently, removing useless parentheses
52664         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
52665         since the only risk is that "a" or "b" contains an unparenthesized
52666         comma, but if either did that, STREQ would have 3 or more arguments.
52667         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
52668         * lib/fts.c (STREQ): Remove unnecessary parentheses.
52669         * lib/hash-triple.c (STREQ): Likewise.
52670         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
52671         * lib/getugroups.c (STREQ): Likewise.
52673 2010-01-23  Jim Meyering  <meyering@redhat.com>
52675         maint.mk: fix syntax-check in a non-srcdir build directory
52676         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
52677         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
52679 2010-01-22  Jim Meyering  <meyering@redhat.com>
52681         userspec: add unit tests
52682         * tests/test-userspec.c: New file.
52683         * modules/userspec-tests: Likewise.
52685 2010-01-21  Jim Meyering  <meyering@redhat.com>
52687         maint.mk: handle source file names containing "." robustly
52688         * top/maint.mk (_dot_escaped_srcdir): Define.
52689         (VC_LIST): Use it in LHS of sed substitution.
52691 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
52693         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
52694         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
52695         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
52696         from a non-srcdir build.
52698 2010-01-20  Eric Blake  <ebb9@byu.net>
52700         warn-on-use: use instead of link-warning
52701         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
52702         * modules/unistd (Depends-on, Makefile.am): Likewise.
52703         * modules/arpa_inet (Depends-on): Replace link-warning with
52704         warn-on-use.
52705         (Makefile.am): Update rules accordingly.
52706         * modules/ctype (Depends-on, Makefile.am): Likewise.
52707         * modules/dirent (Depends-on, Makefile.am): Likewise.
52708         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
52709         * modules/inttypes (Depends-on, Makefile.am): Likewise.
52710         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52711         * modules/locale (Depends-on, Makefile.am): Likewise.
52712         * modules/math (Depends-on, Makefile.am): Likewise.
52713         * modules/search (Depends-on, Makefile.am): Likewise.
52714         * modules/signal (Depends-on, Makefile.am): Likewise.
52715         * modules/spawn (Depends-on, Makefile.am): Likewise.
52716         * modules/stdlib (Depends-on, Makefile.am): Likewise.
52717         * modules/string (Depends-on, Makefile.am): Likewise.
52718         * modules/strings (Depends-on, Makefile.am): Likewise.
52719         * modules/sys_file (Depends-on, Makefile.am): Likewise.
52720         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
52721         * modules/sys_select (Depends-on, Makefile.am): Likewise.
52722         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
52723         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
52724         * modules/sys_times (Depends-on, Makefile.am): Likewise.
52725         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52726         * modules/wchar (Depends-on, Makefile.am): Likewise.
52727         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
52728         should be poisoned.
52729         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
52730         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
52731         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
52732         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52733         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52734         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52735         * m4/math_h.m4 (gl_MATH_H): Likewise.
52736         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52737         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52738         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52739         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52740         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52741         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52742         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
52743         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
52744         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
52745         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52748         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52749         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52750         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52751         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52752         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
52753         GL_LINK_WARNING.
52754         * lib/ctype.in.h: Likewise.
52755         * lib/dirent.in.h: Likewise.
52756         * lib/fcntl.in.h: Likewise.
52757         * lib/inttypes.in.h: Likewise.
52758         * lib/langinfo.in.h: Likewise.
52759         * lib/locale.in.h: Likewise.
52760         * lib/math.in.h: Likewise.
52761         * lib/search.in.h: Likewise.
52762         * lib/signal.in.h: Likewise.
52763         * lib/spawn.in.h: Likewise.
52764         * lib/stdio.in.h: Likewise.
52765         * lib/stdlib.in.h: Likewise.
52766         * lib/string.in.h: Likewise.
52767         * lib/strings.in.h: Likewise.
52768         * lib/sys_file.in.h: Likewise.
52769         * lib/sys_ioctl.in.h: Likewise.
52770         * lib/sys_select.in.h: Likewise.
52771         * lib/sys_socket.in.h: Likewise.
52772         * lib/sys_stat.in.h: Likewise.
52773         * lib/sys_times.in.h: Likewise.
52774         * lib/sys_utsname.in.h: Likewise.
52775         * lib/unistd.in.h: Likewise.
52776         * lib/wchar.in.h: Likewise.
52778 2010-01-20  Bruno Haible  <bruno@clisp.org>
52780         Avoid duplicate -lm.
52781         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
52782         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
52783         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
52784         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
52785         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
52786         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
52787         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
52788         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
52789         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
52790         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
52791         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
52792         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
52793         Reported by Paolo Bonzini.
52795 2010-01-19  Bruno Haible  <bruno@clisp.org>
52797         langinfo, nl_langinfo: Relicense under LGPLv2+.
52798         * modules/langinfo (License): Change to LGPLv2+.
52799         * modules/nl_langinfo (License): Likewise.
52800         Patch by David Lutterkort <lutter@redhat.com>.
52802 2010-01-19  Bruno Haible  <bruno@clisp.org>
52804         Avoid compilation error with cc on OSF/1 5.1.
52805         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
52806         statement, not before.
52807         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52809 2010-01-18  Bruno Haible  <bruno@clisp.org>
52811         Avoid a link error due to the __printf__ symbol.
52812         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
52813         and 2.6.x.
52814         (__format__, __printf__): Remove definitions.
52815         * lib/argp-fmtstream.h: Likewise.
52816         * lib/argp.h: Likewise.
52817         * lib/error.h: Likewise.
52818         * lib/vasnprintf.h: Likewise.
52819         * lib/xprintf.h: Likewise.
52820         * lib/xvasprintf.h: Likewise.
52821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52823 2010-01-18  Bruno Haible  <bruno@clisp.org>
52825         Tests for module 'tanl'.
52826         * modules/tanl-tests: New file.
52827         * tests/test-tanl.c: New file.
52829         Tests for module 'sqrtl'.
52830         * modules/sqrtl-tests: New file.
52831         * tests/test-sqrtl.c: New file.
52833         Tests for module 'sinl'.
52834         * modules/sinl-tests: New file.
52835         * tests/test-sinl.c: New file.
52837         Tests for module 'logl'.
52838         * modules/logl-tests: New file.
52839         * tests/test-logl.c: New file.
52841         Tests for module 'expl'.
52842         * modules/expl-tests: New file.
52843         * tests/test-expl.c: New file.
52845         Tests for module 'cosl'.
52846         * modules/cosl-tests: New file.
52847         * tests/test-cosl.c: New file.
52849         Tests for module 'atanl'.
52850         * modules/atanl-tests: New file.
52851         * tests/test-atanl.c: New file.
52853         Tests for module 'asinl'.
52854         * modules/asinl-tests: New file.
52855         * tests/test-asinl.c: New file.
52857         Tests for module 'acosl'.
52858         * modules/acosl-tests: New file.
52859         * tests/test-acosl.c: New file.
52861         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
52862         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
52863         tanl): Use the standard gnulib idiom.
52864         * lib/cosl.c: Don't include trigl.c and sincosl.c.
52865         * lib/sinl.c: Likewise.
52866         * lib/tanl.c: Don't include trigl.c.
52867         (kernel_tanl): Make static.
52868         * lib/sincosl.c: Include trigl.h first.
52869         * lib/trigl.c: Likewise.
52870         * m4/acosl.m4: New file.
52871         * m4/asinl.m4: New file.
52872         * m4/atanl.m4: New file.
52873         * m4/cosl.m4: New file.
52874         * m4/expl.m4: New file.
52875         * m4/logl.m4: New file.
52876         * m4/sinl.m4: New file.
52877         * m4/sqrtl.m4: New file.
52878         * m4/tanl.m4: New file.
52879         * m4/mathl.m4: Remove file.
52880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
52881         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
52882         Don't initialize GNULIB_MATHL.
52883         * modules/acosl: New file.
52884         * modules/asinl: New file.
52885         * modules/atanl: New file.
52886         * modules/cosl: New file.
52887         * modules/expl: New file.
52888         * modules/logl: New file.
52889         * modules/sinl: New file.
52890         * modules/sqrtl: New file.
52891         * modules/tanl: New file.
52892         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
52893         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
52894         substitute GNULIB_MATHL.
52895         * modules/mathl: Rewritten.
52896         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
52897         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
52898         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
52899         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
52900         * doc/posix-functions/expl.texi: Mention the 'expl' module.
52901         * doc/posix-functions/logl.texi: Mention the 'logl' module.
52902         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
52903         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
52904         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
52906 2010-01-18  Bruno Haible  <bruno@clisp.org>
52908         sqrt: Make gl_FUNC_SQRT requirable.
52909         * m4/sqrt.m4: New file.
52910         * modules/sqrt (Files): Add it.
52911         (configure.ac): Invoke gl_FUNC_SQRT.
52913 2010-01-18  Bruno Haible  <bruno@clisp.org>
52915         New modules for common <math.h> functions.
52916         * m4/mathfunc.m4: New file.
52917         * modules/acos: New file.
52918         * modules/asin: New file.
52919         * modules/atan: New file.
52920         * modules/atan2: New file.
52921         * modules/cbrt: New file.
52922         * modules/copysign: New file.
52923         * modules/cos: New file.
52924         * modules/cosh: New file.
52925         * modules/erf: New file.
52926         * modules/erfc: New file.
52927         * modules/exp: New file.
52928         * modules/fabs: New file.
52929         * modules/fmod: New file.
52930         * modules/hypot: New file.
52931         * modules/j0: New file.
52932         * modules/j1: New file.
52933         * modules/jn: New file.
52934         * modules/ldexp: New file.
52935         * modules/lgamma: New file.
52936         * modules/log: New file.
52937         * modules/log10: New file.
52938         * modules/log1p: New file.
52939         * modules/logb: New file.
52940         * modules/modf: New file.
52941         * modules/nextafter: New file.
52942         * modules/pow: New file.
52943         * modules/remainder: New file.
52944         * modules/rint: New file.
52945         * modules/sin: New file.
52946         * modules/sinh: New file.
52947         * modules/sqrt: New file.
52948         * modules/tan: New file.
52949         * modules/tanh: New file.
52950         * modules/y0: New file.
52951         * modules/y1: New file.
52952         * modules/yn: New file.
52953         * doc/posix-functions/acos.texi: Mention the 'acos' module.
52954         * doc/posix-functions/asin.texi: Mention the 'asin' module.
52955         * doc/posix-functions/atan.texi: Mention the 'atan' module.
52956         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
52957         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
52958         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
52959         * doc/posix-functions/cos.texi: Mention the 'cos' module.
52960         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
52961         * doc/posix-functions/erf.texi: Mention the 'erf' module.
52962         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
52963         * doc/posix-functions/exp.texi: Mention the 'exp' module.
52964         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
52965         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
52966         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
52967         * doc/posix-functions/j0.texi: Mention the 'j0' module.
52968         * doc/posix-functions/j1.texi: Mention the 'j1' module.
52969         * doc/posix-functions/jn.texi: Mention the 'jn' module.
52970         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
52971         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
52972         * doc/posix-functions/log.texi: Mention the 'log' module.
52973         * doc/posix-functions/log10.texi: Mention the 'log10' module.
52974         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
52975         * doc/posix-functions/logb.texi: Mention the 'logb' module.
52976         * doc/posix-functions/modf.texi: Mention the 'modf' module.
52977         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
52978         * doc/posix-functions/pow.texi: Mention the 'pow' module.
52979         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
52980         * doc/posix-functions/rint.texi: Mention the 'rint' module.
52981         * doc/posix-functions/sin.texi: Mention the 'sin' module.
52982         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
52983         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
52984         * doc/posix-functions/tan.texi: Mention the 'tan' module.
52985         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
52986         * doc/posix-functions/y0.texi: Mention the 'y0' module.
52987         * doc/posix-functions/y1.texi: Mention the 'y1' module.
52988         * doc/posix-functions/yn.texi: Mention the 'yn' module.
52990 2010-01-18  Jim Meyering  <meyering@redhat.com>
52992         ignore-value: relax license to LGPLv2+
52993         * modules/ignore-value (License): Relax to LGPLv2+.
52995         getdate: don't leak when TZ contains two or more '"'s
52996         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
52997         double quote in TZ after the first one.
52999         readtokens: do not leak internal token_lengths buffer
53000         * lib/readtokens.c (readtokens): Free the local, lengths,
53001         when the supplied "token_lengths" parameter is NULL.
53003 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53005         Fix a couple of missing LIBTHREAD link failures on AIX.
53006         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
53007         $(LIBTHREAD).
53008         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
53010         Link test-poll against INET_PTON_LIB.
53011         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
53012         for inet_pton on Solaris 10.
53014 2010-01-17  Bruno Haible  <bruno@clisp.org>
53016         unistdio/*-sprintf: Fix typo in module description.
53017         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
53018         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
53019         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
53020         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
53021         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
53022         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
53023         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
53024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53026 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53028         gnulib-tool: fix filelist for AIX, HP-UX ksh.
53029         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
53030         variables in shell case patterns, for AIX and HP-UX ksh.
53032         Split large sed scripts, for HP-UX sed.
53033         * modules/stdio: Split sed scripts around 50 sed commands,
53034         to avoid HP-UX limit of 99 commands, in the near future.
53035         * modules/string: Likewise.
53036         * modules/unistd: Likewise.
53038         gnulib-tool: avoid writing in the current directory.
53039         * gnulib-tool (func_emit_lib_Makefile_am)
53040         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
53041         not in the current directory, so concurrent gnulib-tool
53042         instances do not interfere.
53044 2010-01-16  Jim Meyering  <meyering@redhat.com>
53046         doc: update users.txt
53047         * users.txt: Add grep.
53048         (diffutils, gzip): Update URLs.
53050 2010-01-12  Bruno Haible  <bruno@clisp.org>
53052         posix_spawn: Avoid test failure on Cygwin.
53053         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
53054         characters.
53055         Reported by Simon Josefsson.
53057 2010-01-12  Bruno Haible  <bruno@clisp.org>
53059         * tests/test-cond.c (main): When skipping the test, show the reason.
53061 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53063         * lib/striconv.c (str_cd_iconv): Avoid if before free.
53065 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53067         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
53068         VC_LIST_ALWAYS_EXCLUDE_REGEX.
53070 2010-01-12  Eric Blake  <ebb9@byu.net>
53072         build: guarantee AS_VAR_IF
53073         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
53074         (gl_AS_VAR_IF): Move...
53075         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
53076         Reported by Simon Josefsson.
53078 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53080         * lib/stdio.in.h: Fix typo.
53082 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53084         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
53085         libgpg-error.
53087 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53089         * tests/test-xalloc-die.sh: Use $EXEEXT.
53091 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53092             Bruno Haible  <bruno@clisp.org>
53094         getlogin, getlogin_r: Avoid test failure.
53095         * tests/test-getlogin.c: Include <stdio.h>.
53096         (main): Skip the test when the function fails because stdin is not a
53097         tty.
53098         * tests/test-getlogin_r.c: Include <stdio.h>.
53099         (main): Skip the test when the function fails because stdin is not a
53100         tty.
53102 2010-01-11  Eric Blake  <ebb9@byu.net>
53104         tests: avoid more large file warnings
53105         * tests/test-fflush.c: Avoid warning about ftell use.
53106         * tests/test-fseek.c: Avoid warning about fseek use.
53108 2010-01-10  Bruno Haible  <bruno@clisp.org>
53110         nproc: Work better on Linux when /proc and /sys are not mounted.
53111         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
53112         as lower bound when, on glibc/Linux systems,
53113         sysconf (_SC_NPROCESSORS_CONF) returns 1.
53114         Suggested by Pádraig Brady <P@draigbrady.com>.
53115         Reported by Dmitry V. Levin <ldv@altlinux.org>.
53117         nproc: Refactor.
53118         * lib/nproc.c (num_processors_via_affinity_mask): New function,
53119         extracted from num_processors.
53120         (num_processors): Call it.
53122 2010-01-11  Jim Meyering  <meyering@redhat.com>
53124         utimecmp: avoid new warning from upcoming gcc-4.5.0
53125         * lib/utimecmp.c (BILLION): Define using #define rather than an
53126         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
53128 2010-01-11  Eric Blake  <ebb9@byu.net>
53130         math: add portability warnings for classification macros
53131         * modules/math (Depends-on): Add warn-on-use.
53132         (Makefile.am): Provide new substitutions.
53133         * m4/math_h.m4 (gl_MATH_H): Require inline.
53134         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
53135         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
53136         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
53137         implement warnings.
53139         unistd: warn on use of environ without module
53140         * modules/unistd (Depends-on): Add warn-on-use.
53141         (Makefile.am): Provide new substitutions.
53142         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
53143         * lib/unistd.in.h (environ): Wrap with a warning helper function.
53145         stdio: warn on suspicious uses
53146         * modules/stdio (Depends-on): Add warn-on-use.
53147         (Makefile.am): Provide new substitutions.
53148         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
53149         fseeko.
53150         * lib/stdio.in.h (gets): Always warn on use.
53151         (fseek, ftell): Adjust when warnings are issued, and honor
53152         _GL_NO_LARGE_FILES as a way to silence the warning.
53153         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
53154         any warning about large file offsets.
53155         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
53156         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
53157         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
53158         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
53159         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
53160         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
53161         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
53162         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
53164         warn-on-use: new module
53165         * modules/warn-on-use: New file.
53166         * build-aux/warn-on-use.h: Likewise.
53167         * m4/warn-on-use.m4: Likewise.
53168         * MODULES.html.sh (Support for building): Mention it.
53170 2010-01-10  Bruno Haible  <bruno@clisp.org>
53172         Tests for module 'unistr/u32-strdup'.
53173         * modules/unistr/u32-strdup-tests: New file.
53174         * tests/unistr/test-u32-strdup.c: New file.
53176         Tests for module 'unistr/u16-strdup'.
53177         * modules/unistr/u16-strdup-tests: New file.
53178         * tests/unistr/test-u16-strdup.c: New file.
53180         Tests for module 'unistr/u8-strdup'.
53181         * modules/unistr/u8-strdup-tests: New file.
53182         * tests/unistr/test-u8-strdup.c: New file.
53183         * tests/unistr/test-strdup.h: New file.
53185         Tests for module 'unistr/u32-strncmp'.
53186         * modules/unistr/u32-strncmp-tests: New file.
53187         * tests/unistr/test-u32-strncmp.c: New file.
53189         Tests for module 'unistr/u16-strncmp'.
53190         * modules/unistr/u16-strncmp-tests: New file.
53191         * tests/unistr/test-u16-strncmp.c: New file.
53193         Tests for module 'unistr/u8-strncmp'.
53194         * modules/unistr/u8-strncmp-tests: New file.
53195         * tests/unistr/test-u8-strncmp.c: New file.
53196         * tests/unistr/test-strncmp.h: New file.
53198         Tests for module 'unistr/u32-strcoll'.
53199         * modules/unistr/u32-strcoll-tests: New file.
53200         * tests/unistr/test-u32-strcoll.c: New file.
53202         Tests for module 'unistr/u16-strcoll'.
53203         * modules/unistr/u16-strcoll-tests: New file.
53204         * tests/unistr/test-u16-strcoll.c: New file.
53206         Tests for module 'unistr/u8-strcoll'.
53207         * modules/unistr/u8-strcoll-tests: New file.
53208         * tests/unistr/test-u8-strcoll.c: New file.
53210         Tests for module 'unistr/u32-strcmp'.
53211         * modules/unistr/u32-strcmp-tests: New file.
53212         * tests/unistr/test-u32-strcmp.c: New file.
53213         * tests/unistr/test-u32-strcmp.h: New file.
53215         Tests for module 'unistr/u16-strcmp'.
53216         * modules/unistr/u16-strcmp-tests: New file.
53217         * tests/unistr/test-u16-strcmp.c: New file.
53218         * tests/unistr/test-u16-strcmp.h: New file.
53220         Tests for module 'unistr/u8-strcmp'.
53221         * modules/unistr/u8-strcmp-tests: New file.
53222         * tests/unistr/test-u8-strcmp.c: New file.
53223         * tests/unistr/test-u8-strcmp.h: New file.
53224         * tests/unistr/test-strcmp.h: New file.
53226         Tests for module 'unistr/u32-strncat'.
53227         * modules/unistr/u32-strncat-tests: New file.
53228         * tests/unistr/test-u32-strncat.c: New file.
53230         Tests for module 'unistr/u16-strncat'.
53231         * modules/unistr/u16-strncat-tests: New file.
53232         * tests/unistr/test-u16-strncat.c: New file.
53234         Tests for module 'unistr/u8-strncat'.
53235         * modules/unistr/u8-strncat-tests: New file.
53236         * tests/unistr/test-u8-strncat.c: New file.
53237         * tests/unistr/test-strncat.h: New file.
53239         Tests for module 'unistr/u32-strcat'.
53240         * modules/unistr/u32-strcat-tests: New file.
53241         * tests/unistr/test-u32-strcat.c: New file.
53243         Tests for module 'unistr/u16-strcat'.
53244         * modules/unistr/u16-strcat-tests: New file.
53245         * tests/unistr/test-u16-strcat.c: New file.
53247         Tests for module 'unistr/u8-strcat'.
53248         * modules/unistr/u8-strcat-tests: New file.
53249         * tests/unistr/test-u8-strcat.c: New file.
53250         * tests/unistr/test-strcat.h: New file.
53252         Tests for module 'unistr/u32-stpncpy'.
53253         * modules/unistr/u32-stpncpy-tests: New file.
53254         * tests/unistr/test-u32-stpncpy.c: New file.
53256         Tests for module 'unistr/u16-stpncpy'.
53257         * modules/unistr/u16-stpncpy-tests: New file.
53258         * tests/unistr/test-u16-stpncpy.c: New file.
53260         Tests for module 'unistr/u8-stpncpy'.
53261         * modules/unistr/u8-stpncpy-tests: New file.
53262         * tests/unistr/test-u8-stpncpy.c: New file.
53263         * tests/unistr/test-stpncpy.h: New file.
53265         Tests for module 'unistr/u32-strncpy'.
53266         * modules/unistr/u32-strncpy-tests: New file.
53267         * tests/unistr/test-u32-strncpy.c: New file.
53269         Tests for module 'unistr/u16-strncpy'.
53270         * modules/unistr/u16-strncpy-tests: New file.
53271         * tests/unistr/test-u16-strncpy.c: New file.
53273         Tests for module 'unistr/u8-strncpy'.
53274         * modules/unistr/u8-strncpy-tests: New file.
53275         * tests/unistr/test-u8-strncpy.c: New file.
53276         * tests/unistr/test-strncpy.h: New file.
53278         Tests for module 'unistr/u32-stpcpy'.
53279         * modules/unistr/u32-stpcpy-tests: New file.
53280         * tests/unistr/test-u32-stpcpy.c: New file.
53282         Tests for module 'unistr/u16-stpcpy'.
53283         * modules/unistr/u16-stpcpy-tests: New file.
53284         * tests/unistr/test-u16-stpcpy.c: New file.
53286         Tests for module 'unistr/u8-stpcpy'.
53287         * modules/unistr/u8-stpcpy-tests: New file.
53288         * tests/unistr/test-u8-stpcpy.c: New file.
53289         * tests/unistr/test-stpcpy.h: New file.
53291         Tests for module 'unistr/u32-strcpy'.
53292         * modules/unistr/u32-strcpy-tests: New file.
53293         * tests/unistr/test-u32-strcpy.c: New file.
53295         Tests for module 'unistr/u16-strcpy'.
53296         * modules/unistr/u16-strcpy-tests: New file.
53297         * tests/unistr/test-u16-strcpy.c: New file.
53299         Tests for module 'unistr/u8-strcpy'.
53300         * modules/unistr/u8-strcpy-tests: New file.
53301         * tests/unistr/test-u8-strcpy.c: New file.
53302         * tests/unistr/test-strcpy.h: New file.
53304         Tests for module 'unistr/u32-strnlen'.
53305         * modules/unistr/u32-strnlen-tests: New file.
53306         * tests/unistr/test-u32-strnlen.c: New file.
53308         Tests for module 'unistr/u16-strnlen'.
53309         * modules/unistr/u16-strnlen-tests: New file.
53310         * tests/unistr/test-u16-strnlen.c: New file.
53312         Tests for module 'unistr/u8-strnlen'.
53313         * modules/unistr/u8-strnlen-tests: New file.
53314         * tests/unistr/test-u8-strnlen.c: New file.
53315         * tests/unistr/test-strnlen.h: New file.
53317         Tests for module 'unistr/u32-strlen'.
53318         * modules/unistr/u32-strlen-tests: New file.
53319         * tests/unistr/test-u32-strlen.c: New file.
53321         Tests for module 'unistr/u16-strlen'.
53322         * modules/unistr/u16-strlen-tests: New file.
53323         * tests/unistr/test-u16-strlen.c: New file.
53325         Tests for module 'unistr/u8-strlen'.
53326         * modules/unistr/u8-strlen-tests: New file.
53327         * tests/unistr/test-u8-strlen.c: New file.
53329         Tests for module 'unistr/u32-prev'.
53330         * modules/unistr/u32-prev-tests: New file.
53331         * tests/unistr/test-u32-prev.c: New file.
53333         Tests for module 'unistr/u16-prev'.
53334         * modules/unistr/u16-prev-tests: New file.
53335         * tests/unistr/test-u16-prev.c: New file.
53337         Tests for module 'unistr/u8-prev'.
53338         * modules/unistr/u8-prev-tests: New file.
53339         * tests/unistr/test-u8-prev.c: New file.
53341         Tests for module 'unistr/u32-next'.
53342         * modules/unistr/u32-next-tests: New file.
53343         * tests/unistr/test-u32-next.c: New file.
53345         Tests for module 'unistr/u16-next'.
53346         * modules/unistr/u16-next-tests: New file.
53347         * tests/unistr/test-u16-next.c: New file.
53349         Tests for module 'unistr/u8-next'.
53350         * modules/unistr/u8-next-tests: New file.
53351         * tests/unistr/test-u8-next.c: New file.
53353         Tests for module 'unistr/u32-strmbtouc'.
53354         * modules/unistr/u32-strmbtouc-tests: New file.
53355         * tests/unistr/test-u32-strmbtouc.c: New file.
53357         Tests for module 'unistr/u16-strmbtouc'.
53358         * modules/unistr/u16-strmbtouc-tests: New file.
53359         * tests/unistr/test-u16-strmbtouc.c: New file.
53361         Tests for module 'unistr/u8-strmbtouc'.
53362         * modules/unistr/u8-strmbtouc-tests: New file.
53363         * tests/unistr/test-u8-strmbtouc.c: New file.
53365         Tests for module 'unistr/u32-strmblen'.
53366         * modules/unistr/u32-strmblen-tests: New file.
53367         * tests/unistr/test-u32-strmblen.c: New file.
53369         Tests for module 'unistr/u16-strmblen'.
53370         * modules/unistr/u16-strmblen-tests: New file.
53371         * tests/unistr/test-u16-strmblen.c: New file.
53373         Tests for module 'unistr/u8-strmblen'.
53374         * modules/unistr/u8-strmblen-tests: New file.
53375         * tests/unistr/test-u8-strmblen.c: New file.
53377         Tests for module 'unistr/u32-cpy-alloc'.
53378         * modules/unistr/u32-cpy-alloc-tests: New file.
53379         * tests/unistr/test-u32-cpy-alloc.c: New file.
53381         Tests for module 'unistr/u16-cpy-alloc'.
53382         * modules/unistr/u16-cpy-alloc-tests: New file.
53383         * tests/unistr/test-u16-cpy-alloc.c: New file.
53385         Tests for module 'unistr/u8-cpy-alloc'.
53386         * modules/unistr/u8-cpy-alloc-tests: New file.
53387         * tests/unistr/test-u8-cpy-alloc.c: New file.
53388         * tests/unistr/test-cpy-alloc.h: New file.
53390         Tests for module 'unistr/u32-mbsnlen'.
53391         * modules/unistr/u32-mbsnlen-tests: New file.
53392         * tests/unistr/test-u32-mbsnlen.c: New file.
53394         Tests for module 'unistr/u16-mbsnlen'.
53395         * modules/unistr/u16-mbsnlen-tests: New file.
53396         * tests/unistr/test-u16-mbsnlen.c: New file.
53398         Tests for module 'unistr/u8-mbsnlen'.
53399         * modules/unistr/u8-mbsnlen-tests: New file.
53400         * tests/unistr/test-u8-mbsnlen.c: New file.
53402         Tests for module 'unistr/u32-chr'.
53403         * modules/unistr/u32-chr-tests: New file.
53404         * tests/unistr/test-u32-chr.c: New file.
53406         Tests for module 'unistr/u16-chr'.
53407         * modules/unistr/u16-chr-tests: New file.
53408         * tests/unistr/test-u16-chr.c: New file.
53410         Tests for module 'unistr/u8-chr'.
53411         * modules/unistr/u8-chr-tests: New file.
53412         * tests/unistr/test-u8-chr.c: New file.
53413         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
53415         Tests for module 'unistr/u32-cmp2'.
53416         * modules/unistr/u32-cmp2-tests: New file.
53417         * tests/unistr/test-u32-cmp2.c: New file.
53419         Tests for module 'unistr/u16-cmp2'.
53420         * modules/unistr/u16-cmp2-tests: New file.
53421         * tests/unistr/test-u16-cmp2.c: New file.
53423         Tests for module 'unistr/u8-cmp2'.
53424         * modules/unistr/u8-cmp2-tests: New file.
53425         * tests/unistr/test-u8-cmp2.c: New file.
53426         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
53428         Tests for module 'unistr/u32-cmp'.
53429         * modules/unistr/u32-cmp-tests: New file.
53430         * tests/unistr/test-u32-cmp.c: New file.
53432         Tests for module 'unistr/u16-cmp'.
53433         * modules/unistr/u16-cmp-tests: New file.
53434         * tests/unistr/test-u16-cmp.c: New file.
53436         Tests for module 'unistr/u8-cmp'.
53437         * modules/unistr/u8-cmp-tests: New file.
53438         * tests/unistr/test-u8-cmp.c: New file.
53439         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
53441         Tests for module 'unistr/u32-set'.
53442         * modules/unistr/u32-set-tests: New file.
53443         * tests/unistr/test-u32-set.c: New file.
53445         Tests for module 'unistr/u16-set'.
53446         * modules/unistr/u16-set-tests: New file.
53447         * tests/unistr/test-u16-set.c: New file.
53449         Tests for module 'unistr/u8-set'.
53450         * modules/unistr/u8-set-tests: New file.
53451         * tests/unistr/test-u8-set.c: New file.
53452         * tests/unistr/test-set.h: New file.
53454         Tests for module 'unistr/u32-move'.
53455         * modules/unistr/u32-move-tests: New file.
53456         * tests/unistr/test-u32-move.c: New file.
53458         Tests for module 'unistr/u16-move'.
53459         * modules/unistr/u16-move-tests: New file.
53460         * tests/unistr/test-u16-move.c: New file.
53462         Tests for module 'unistr/u8-move'.
53463         * modules/unistr/u8-move-tests: New file.
53464         * tests/unistr/test-u8-move.c: New file.
53465         * tests/unistr/test-move.h: New file.
53467         Tests for module 'unistr/u32-cpy'.
53468         * modules/unistr/u32-cpy-tests: New file.
53469         * tests/unistr/test-u32-cpy.c: New file.
53471         Tests for module 'unistr/u16-cpy'.
53472         * modules/unistr/u16-cpy-tests: New file.
53473         * tests/unistr/test-u16-cpy.c: New file.
53475         Tests for module 'unistr/u8-cpy'.
53476         * modules/unistr/u8-cpy-tests: New file.
53477         * tests/unistr/test-u8-cpy.c: New file.
53478         * tests/unistr/test-cpy.h: New file.
53480 2010-01-09  Bruno Haible  <bruno@clisp.org>
53482         Tests for module 'unistr/u32-uctomb'.
53483         * modules/unistr/u32-uctomb-tests: New file.
53484         * tests/unistr/test-u32-uctomb.c: New file.
53486         Tests for module 'unistr/u16-uctomb'.
53487         * modules/unistr/u16-uctomb-tests: New file.
53488         * tests/unistr/test-u16-uctomb.c: New file.
53490         Tests for module 'unistr/u8-uctomb'.
53491         * modules/unistr/u8-uctomb-tests: New file.
53492         * tests/unistr/test-u8-uctomb.c: New file.
53494         Tests for module 'unistr/u32-mbtoucr'.
53495         * modules/unistr/u32-mbtoucr-tests: New file.
53496         * tests/unistr/test-u32-mbtoucr.c: New file.
53498         Tests for module 'unistr/u16-mbtoucr'.
53499         * modules/unistr/u16-mbtoucr-tests: New file.
53500         * tests/unistr/test-u16-mbtoucr.c: New file.
53502         Tests for module 'unistr/u8-mbtoucr'.
53503         * modules/unistr/u8-mbtoucr-tests: New file.
53504         * tests/unistr/test-u8-mbtoucr.c: New file.
53506         Tests for module 'unistr/u32-mbtouc'.
53507         * modules/unistr/u32-mbtouc-tests: New file.
53508         * tests/unistr/test-u32-mbtouc.c: New file.
53510         Tests for module 'unistr/u16-mbtouc'.
53511         * modules/unistr/u16-mbtouc-tests: New file.
53512         * tests/unistr/test-u16-mbtouc.c: New file.
53514         Tests for module 'unistr/u8-mbtouc'.
53515         * modules/unistr/u8-mbtouc-tests: New file.
53516         * tests/unistr/test-u8-mbtouc.c: New file.
53518         Tests for module 'unistr/u32-mbtouc-unsafe'.
53519         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
53520         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
53521         * tests/unistr/test-u32-mbtouc.h: New file.
53523         Tests for module 'unistr/u16-mbtouc-unsafe'.
53524         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
53525         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
53526         * tests/unistr/test-u16-mbtouc.h: New file.
53528         Tests for module 'unistr/u8-mbtouc-unsafe'.
53529         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
53530         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
53531         * tests/unistr/test-u8-mbtouc.h: New file.
53533         Tests for module 'unistr/u32-mblen'.
53534         * modules/unistr/u32-mblen-tests: New file.
53535         * tests/unistr/test-u32-mblen.c: New file.
53537         Tests for module 'unistr/u16-mblen'.
53538         * modules/unistr/u16-mblen-tests: New file.
53539         * tests/unistr/test-u16-mblen.c: New file.
53541         Tests for module 'unistr/u8-mblen'.
53542         * modules/unistr/u8-mblen-tests: New file.
53543         * tests/unistr/test-u8-mblen.c: New file.
53545         Tests for module 'unistr/u32-to-u16'.
53546         * modules/unistr/u32-to-u16-tests: New file.
53547         * tests/unistr/test-u32-to-u16.c: New file.
53549         Tests for module 'unistr/u32-to-u8'.
53550         * modules/unistr/u32-to-u8-tests: New file.
53551         * tests/unistr/test-u32-to-u8.c: New file.
53553         Tests for module 'unistr/u16-to-u32'.
53554         * modules/unistr/u16-to-u32-tests: New file.
53555         * tests/unistr/test-u16-to-u32.c: New file.
53557         Tests for module 'unistr/u16-to-u8'.
53558         * modules/unistr/u16-to-u8-tests: New file.
53559         * tests/unistr/test-u16-to-u8.c: New file.
53561         Tests for module 'unistr/u8-to-u32'.
53562         * modules/unistr/u8-to-u32-tests: New file.
53563         * tests/unistr/test-u8-to-u32.c: New file.
53565         Tests for module 'unistr/u8-to-u16'.
53566         * modules/unistr/u8-to-u16-tests: New file.
53567         * tests/unistr/test-u8-to-u16.c: New file.
53569         Tests for module 'unistr/u32-check'.
53570         * modules/unistr/u32-check-tests: New file.
53571         * tests/unistr/test-u32-check.c: New file.
53573         Tests for module 'unistr/u16-check'.
53574         * modules/unistr/u16-check-tests: New file.
53575         * tests/unistr/test-u16-check.c: New file.
53577         Tests for module 'unistr/u8-check'.
53578         * modules/unistr/u8-check-tests: New file.
53579         * tests/unistr/test-u8-check.c: New file.
53581         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
53582         (category_equals): New function.
53583         (main): Add more tests.
53584         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
53586         * tests/unictype/test-bidi_byname.c (main): Add more tests.
53588 2010-01-10  Bruno Haible  <bruno@clisp.org>
53590         unistr/u*-strcoll: Try harder to distinguish different strings.
53591         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
53592         compare s1 and s2 to see if they are different.
53594 2010-01-10  Bruno Haible  <bruno@clisp.org>
53596         unistr/u*-stpncpy: Fix the return value.
53597         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
53598         description of the return value consistent with stpncpy in glibc.
53599         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
53600         written non-NUL unit.
53602 2010-01-10  Bruno Haible  <bruno@clisp.org>
53604         unistr/u*-next: Add missing dependencies.
53605         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
53606         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
53607         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
53609 2010-01-10  Bruno Haible  <bruno@clisp.org>
53611         unistr/u8-mbsnlen: Fix return value for incomplete character.
53612         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
53613         u8_mblen.
53614         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
53615         Remove unistr/u8-mblen.
53616         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
53617         u16_mblen.
53618         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
53619         Remove unistr/u16-mblen.
53621 2010-01-10  Bruno Haible  <bruno@clisp.org>
53623         wchar: Fix compilation error when <wchar.h> is used from coreutils.
53624         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
53625         Reported by Brian Gough <bjg@gnu.org> and
53626         Chris Clayton <chris2553@googlemail.com> via
53627         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
53629 2010-01-09  Bruno Haible  <bruno@clisp.org>
53631         unistr/u16-to-u32: Reject invalid input.
53632         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
53633         u16_mbtouc.
53634         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
53635         Remove unistr/u16-mbtouc.
53637         unistr/u16-to-u8: Reject invalid input.
53638         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
53639         u16_mbtouc.
53640         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
53641         Remove unistr/u16-mbtouc.
53643         unistr/u8-to-u32: Reject invalid input.
53644         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
53645         u8_mbtouc.
53646         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
53647         Remove unistr/u8-mbtouc.
53649         unistr/u8-to-u16: Reject invalid input.
53650         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
53651         u8_mbtouc.
53652         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
53653         Remove unistr/u8-mbtouc.
53655 2010-01-09  Bruno Haible  <bruno@clisp.org>
53657         Tests for module 'getlogin'.
53658         * modules/getlogin-tests: New file.
53659         * tests/test-getlogin.c: New file.
53661         New module 'getlogin'.
53662         * lib/unistd.in.h (getlogin): New declaration.
53663         * lib/getlogin.c: New file.
53664         * m4/getlogin.m4: New file.
53665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
53666         HAVE_GETLOGIN.
53667         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
53668         HAVE_GETLOGIN.
53669         * modules/getlogin: New file.
53670         * doc/posix-functions/getlogin.texi: Mention the new module.
53671         Reported by John W. Eaton <jwe@gnu.org>.
53673 2010-01-09  Bruno Haible  <bruno@clisp.org>
53675         getlogin_r: Support for native Windows.
53676         * lib/getlogin_r.c: Include <windows.h>
53677         (getlogin_r): Implement for native Windows.
53678         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
53679         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
53680         via John W. Eaton <jwe@gnu.org>.
53682 2010-01-09  Bruno Haible  <bruno@clisp.org>
53684         getlogin_r: Small fixes.
53685         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
53686         succeeds.
53687         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
53688         before testing whether getlogin_r is declared. No need to set
53689         HAVE_DECL_GETLOGIN_R to 1.
53690         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
53692 2010-01-09  Bruno Haible  <bruno@clisp.org>
53694         * lib/unistd.in.h (getlogin_r): Add comment.
53696 2010-01-09  Bruno Haible  <bruno@clisp.org>
53698         Tests for module 'getlogin_r'.
53699         * modules/getlogin_r-tests: New file.
53700         * tests/test-getlogin_r.c: New file.
53702 2010-01-09  Jim Meyering  <meyering@redhat.com>
53704         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
53705         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
53706         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
53708 2010-01-08  Simon Josefsson  <simon@josefsson.org>
53710         * lib/dup2.c (rpl_dup2): Improve comment.
53712 2010-01-08  Eric Blake  <ebb9@byu.net>
53714         maint.mk: allow packages to add makefile @@ exceptions
53715         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
53716         (sc_makefile_check): Rename...
53717         (sc_makefile_at_at_check): ...to this, and use hook.
53719         dup2: work around mingw bug
53720         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
53721         Reported by Simon Josefsson.
53723 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
53725         glob: Fix C++ compilation.
53726         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
53727         C++.
53729 2010-01-07  Bruno Haible  <bruno@clisp.org>
53731         Fix indentation of wctype.in.h, broken since 2007-01-06.
53732         * lib/wctype.in.h: Fix indentation of preprocessor directives.
53734 2010-01-07  Bruno Haible  <bruno@clisp.org>
53736         mbslen: Avoid collision with system function.
53737         * lib/string.in.h [MirBSD]: Include <wchar.h>.
53738         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
53739         * m4/mbslen.m4: New file.
53740         * modules/mbslen (Files): Add it.
53741         (configure.ac): Invoke gl_MBSLEN.
53742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
53743         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
53744         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
53745         via Ian Beckwith <ianb@erislabs.net>.
53747 2010-01-07  Bruno Haible  <bruno@clisp.org>
53749         dirent: Document the last fix.
53750         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
53752 2010-01-07  Bruno Haible  <bruno@clisp.org>
53754         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
53755         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
53756         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
53757         va_list are defined.
53758         * doc/posix-headers/stdio.texi: Document the bug of missing types.
53759         Reported by Eric Blake.
53761 2010-01-07  Bruno Haible  <bruno@clisp.org>
53763         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
53764         * modules/xlist (Depends-on): Add 'list',
53765         * modules/xoset (Depends-on): Add 'oset'.
53766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53768 2010-01-07  Bruno Haible  <bruno@clisp.org>
53770         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
53771         * doc/posix-functions/strncasecmp.texi: Likewise.
53773 2010-01-07  Bruno Haible  <bruno@clisp.org>
53775         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
53777 2010-01-07  John W. Eaton  <jwe@octave.org>
53779         wctype: allow C++ use
53780         * lib/wctype.in.h: Add extern "C" block for C++.
53782 2010-01-06  Eric Blake  <ebb9@byu.net>
53784         maint.mk: detect incorrect GFDL usage
53785         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
53787 2010-01-06  Jim Meyering  <meyering@redhat.com>
53788         and Eric Blake  <ebb9@byu.net>
53790         maint.mk: ignore multi-line copyright in NEWS
53791         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
53793 2010-01-06  Eric Blake  <ebb9@byu.net>
53795         select: add missing dependency
53796         * modules/select-tests (Depends-on): Move sockets dependency...
53797         * modules/select (Depends-on): ...here.
53798         Reported by Ian Beckwith.
53800         doc: regenerate INSTALL
53801         * doc/INSTALL: Reflect recent autoconf update.
53802         * doc/INSTALL.ISO: Likewise.
53803         * doc/INSTALL.UTF-8: Likewise.
53805         pread: fix compilation on glibc
53806         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
53807         Reported by Ralf Wildenhues.
53809         dirent: fix test failure
53810         * lib/dirent.in.h (includes): Guarantee ino_t.
53811         Reported by Ralf Wildenhues.
53813 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
53815         linkat, renameat: avoid bad free
53816         * lib/at-func2.c (at_func2): Fix typo.
53817         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
53819 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53821         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
53822         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
53823         to avoid failure of symlink test later.
53825 2010-01-06  Eric Blake  <ebb9@byu.net>
53827         stdio, unistd: guarantee ssize_t
53828         * lib/unistd.in.h (includes): Ensure that types required by POSIX
53829         2008 are exposed when needed.
53830         * lib/stdio.in.h (includes): Likewise.
53831         Reported by Ralf Wildenhues.
53833 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
53835         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
53836         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
53837         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
53839 2010-01-06  Jim Meyering  <meyering@redhat.com>
53841         readtokens: this module *does* require xalloc.h
53842         It uses only functions that were omitted by the old syntax-check rule.
53843         * lib/readtokens.c: Include "xalloc.h" once again.
53844         * modules/readtokens (Depends-on): Add xalloc.
53845         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
53847 2010-01-05  Eric Blake  <ebb9@byu.net>
53849         maint: support 'make announcement' from a VPATH build
53850         * top/maint.mk (announcement): Look for correct NEWS file.
53852 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
53854         utimens (fdutimens): ignore a negative FD, per contract
53855         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
53856         when we have a valid file descriptor.  Otherwise, using a brand
53857         new glibc (with just-patched futimens that now fails with EBADF)
53858         would cause this function to fail with ENOSYS.
53859         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
53860         See also http://bugzilla.redhat.com/552320.
53862 2010-01-05  Eric Blake  <ebb9@byu.net>
53864         strcase: document what it provides
53865         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
53866         gnulib module.
53867         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
53868         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
53870 2010-01-05  Jim Meyering  <meyering@redhat.com>
53872         maint: remove useless inclusions of "xalloc.h"
53873         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
53874         * lib/readtokens.c: Likewise.
53875         * lib/same.c: Likewise.
53876         * modules/getloadavg (Depends-on): Remove xalloc.
53877         * modules/readtokens: Likewise.
53878         * modules/same: Likewise.
53880         maint.mk: include 4 more function names in alloca.h-checking regexp
53881         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
53882         regexp.  Before, we would give a false-positive (saying alloca.h
53883         is included unnecessarily) when the only uses involved omitted symbols.
53885         xalloc.h: use consistent formatting
53886         * lib/xalloc.h: Move declarations to start in the first column.
53888 2010-01-05  Eric Blake  <ebb9@byu.net>
53890         mkdir: avoid xalloc
53891         * lib/mkdir.c (includes): Drop unused header.
53892         Reported by John W. Eaton.
53894 2010-01-04  Jim Meyering  <meyering@redhat.com>
53896         nl_langinfo: avoid configure-time syntax error
53897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
53898         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
53899         the empty string.  Don't let that provoke a shell syntax error.
53901         regcomp, regexec, fnmatch: avoid array bounds read error
53902         * lib/regcomp.c (build_equiv_class): From glibc:
53903         Use only the low 24 bits of a findidx return value as an index
53904         into the weights array.  Patch by Ulrich Drepper:
53905         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
53906         * lib/regexec.c (check_node_accept_bytes): Likewise.
53907         * lib/fnmatch_loop.c (FCT): Likewise.
53909         regcomp: skip collseq lookup when there are no rules
53910         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
53911         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
53913         regcomp: recognize ill-formed { } expressions
53914         * lib/regcomp.c (parse_dup_op): From glibc:
53915         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
53917         regcomp: fix typo in comment
53918         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
53919         s/satisfy/satisfies/.
53921         regcomp: sync from glibc: remove dead store
53922         * lib/regcomp.c (duplicate_node_closure): Remove useless
53923         search_duplicated_node call and dead store.
53925         regcomp: sync from glibc; always use nl_langinfo
53926         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
53927         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
53928         * modules/regex (Depends-on): Add nl_langinfo.
53930 2010-01-04  Eric Blake  <ebb9@byu.net>
53932         fdopendir: fix configure test
53933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
53935 2010-01-01  Bruno Haible  <bruno@clisp.org>
53937         wchar: Remove unused configure check.
53938         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
53940 2010-01-01  Eric Blake  <ebb9@byu.net>
53942         headers: make check of system header explicit
53943         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
53944         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
53945         ourselves.
53946         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53948         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53949         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
53950         internals.
53951         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
53952         missing.
53953         Suggested by Bruno Haible.
53955 2010-01-01  Jim Meyering  <meyering@redhat.com>
53957         ChangeLog: tweak to eliminate unnecessary copyright line
53958         * ChangeLog: Remove a copyright line that was mistakenly updated
53959         by today's update-copyright run.  Reported by Eric Blake.
53961         test-update-copyright: don't let envvar setting cause test failure
53962         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
53964 2010-01-01  Bruno Haible  <bruno@clisp.org>
53966         localename: Avoid gcc warning.
53967         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
53968         function if it is not used.
53970 2010-01-01  Jim Meyering  <meyering@redhat.com>
53972         update nearly all FSF copyright year lists to include 2010
53973         Use the same procedure as for 2009, outlined in
53974         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
53976         version-etc: set COPYRIGHT_YEAR to 2010
53977         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
53979 2009-12-31  Eric Blake  <ebb9@byu.net>
53981         doc: correct availability of cygwin 1.5.x getopt
53982         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
53983         variables.
53984         * doc/posix-functions/opterr.texi (opterr): Likewise.
53985         * doc/posix-functions/optind.texi (optind): Likewise.
53986         * doc/posix-functions/optopt.texi (optopt): Likewise.
53987         * doc/posix-functions/tzname.texi (tzname): Likewise.
53989         openat: update maintainer
53990         * modules/openat (Maintainer): Add myself.
53992         utimens: avoid shadowing warning
53993         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
53994         buffers into one, to avoid shadowing, as well as avoiding a
53995         redundant stat.
53996         Reported by Jim Meyering.
53998         test-dup2: avoid compiler warning
53999         * tests/test-dup2.c (is_inheritable): Only define if used.
54001 2010-01-01  Bruno Haible  <bruno@clisp.org>
54003         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
54004         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
54005         defined, use wctomb instead of wcrtomb.
54007 2010-01-01  Bruno Haible  <bruno@clisp.org>
54009         iconv: Reject native Solaris iconv.
54010         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
54011         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
54013 2009-12-31  Bruno Haible  <bruno@clisp.org>
54015         * tests/test-signal.c (main): Remove test of 'SIG'.
54017 2009-12-31  Bruno Haible  <bruno@clisp.org>
54019         spawn: Fix incomplete fix.
54020         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54021         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54022         warnings for GNULIB_POSIXCHECK again.
54023         Reported by Eric Blake.
54025 2009-12-31  Bruno Haible  <bruno@clisp.org>
54027         Avoid namespace pollution on glibc systems.
54028         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
54029         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
54030         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
54031         glibc systems.
54033 2009-12-31  Bruno Haible  <bruno@clisp.org>
54035         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
54036         (gl_REPLACE_WCHAR_H): Turn into a no-op.
54037         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
54038         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54039         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54040         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54041         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54043 2009-12-31  Bruno Haible  <bruno@clisp.org>
54045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54046         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
54047         afterwards.
54049 2009-12-31  Bruno Haible  <bruno@clisp.org>
54051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
54052         SYS_UTSNAME_H.
54054 2009-12-31  Bruno Haible  <bruno@clisp.org>
54056         spawn: Fix misapplied patch.
54057         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54058         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54059         warnings for GNULIB_POSIXCHECK.
54061 2009-12-31  Bruno Haible  <bruno@clisp.org>
54063         times: Update after sys_times changed.
54064         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
54065         * modules/times (Files): Add it.
54066         (configure.ac): Invoke gl_FUNC_TIMES.
54068 2009-12-31  Bruno Haible  <bruno@clisp.org>
54070         Use AC_C_INLINE where necessary.
54071         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
54072         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54074         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54075         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54076         * m4/mbiter.m4 (gl_MBITER): Likewise.
54077         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54078         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54079         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
54080         * modules/u64 (configure.ac): Likewise.
54082 2009-12-31  Bruno Haible  <bruno@clisp.org>
54084         Use AC_C_INLINE instead of module 'inline' where possible.
54085         * modules/inline (Description): Clarify purpose.
54086         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
54087         * modules/count-one-bits (Depends-on): Remove inline.
54088         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
54089         * modules/openat (Depends-on): Remove inline.
54090         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
54091         instead of depending on module 'inline'.
54092         * modules/filevercmp (Depends-on, configure.ac): Likewise.
54093         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
54094         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
54095         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
54096         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
54097         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
54098         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
54099         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
54100         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
54101         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
54102         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
54103         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
54104         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
54105         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
54106         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
54107         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
54108         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
54109         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
54110         Likewise.
54111         * modules/unictype/property-ascii-hex-digit (Depends-on,
54112         configure.ac): Likewise.
54113         * modules/unictype/property-bidi-arabic-digit (Depends-on,
54114         configure.ac): Likewise.
54115         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
54116         configure.ac): Likewise.
54117         * modules/unictype/property-bidi-block-separator (Depends-on,
54118         configure.ac): Likewise.
54119         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
54120         configure.ac): Likewise.
54121         * modules/unictype/property-bidi-common-separator (Depends-on,
54122         configure.ac): Likewise.
54123         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
54124         Likewise.
54125         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
54126         configure.ac): Likewise.
54127         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
54128         configure.ac): Likewise.
54129         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
54130         configure.ac): Likewise.
54131         * modules/unictype/property-bidi-european-digit (Depends-on,
54132         configure.ac): Likewise.
54133         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
54134         configure.ac): Likewise.
54135         * modules/unictype/property-bidi-left-to-right (Depends-on,
54136         configure.ac): Likewise.
54137         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
54138         configure.ac): Likewise.
54139         * modules/unictype/property-bidi-other-neutral (Depends-on,
54140         configure.ac): Likewise.
54141         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
54142         Likewise.
54143         * modules/unictype/property-bidi-segment-separator (Depends-on,
54144         configure.ac): Likewise.
54145         * modules/unictype/property-bidi-whitespace (Depends-on,
54146         configure.ac): Likewise.
54147         * modules/unictype/property-combining (Depends-on, configure.ac):
54148         Likewise.
54149         * modules/unictype/property-composite (Depends-on, configure.ac):
54150         Likewise.
54151         * modules/unictype/property-currency-symbol (Depends-on,
54152         configure.ac): Likewise.
54153         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
54154         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
54155         Likewise.
54156         * modules/unictype/property-default-ignorable-code-point (Depends-on,
54157         configure.ac): Likewise.
54158         * modules/unictype/property-deprecated (Depends-on, configure.ac):
54159         Likewise.
54160         * modules/unictype/property-diacritic (Depends-on, configure.ac):
54161         Likewise.
54162         * modules/unictype/property-extender (Depends-on, configure.ac):
54163         Likewise.
54164         * modules/unictype/property-format-control (Depends-on, configure.ac):
54165         Likewise.
54166         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
54167         Likewise.
54168         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
54169         Likewise.
54170         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
54171         Likewise.
54172         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
54173         Likewise.
54174         * modules/unictype/property-hyphen (Depends-on, configure.ac):
54175         Likewise.
54176         * modules/unictype/property-id-continue (Depends-on, configure.ac):
54177         Likewise.
54178         * modules/unictype/property-id-start (Depends-on, configure.ac):
54179         Likewise.
54180         * modules/unictype/property-ideographic (Depends-on, configure.ac):
54181         Likewise.
54182         * modules/unictype/property-ids-binary-operator (Depends-on,
54183         configure.ac): Likewise.
54184         * modules/unictype/property-ids-trinary-operator (Depends-on,
54185         configure.ac): Likewise.
54186         * modules/unictype/property-ignorable-control (Depends-on,
54187         configure.ac): Likewise.
54188         * modules/unictype/property-iso-control (Depends-on, configure.ac):
54189         Likewise.
54190         * modules/unictype/property-join-control (Depends-on, configure.ac):
54191         Likewise.
54192         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
54193         Likewise.
54194         * modules/unictype/property-line-separator (Depends-on, configure.ac):
54195         Likewise.
54196         * modules/unictype/property-logical-order-exception (Depends-on,
54197         configure.ac): Likewise.
54198         * modules/unictype/property-lowercase (Depends-on, configure.ac):
54199         Likewise.
54200         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
54201         * modules/unictype/property-non-break (Depends-on, configure.ac):
54202         Likewise.
54203         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
54204         Likewise.
54205         * modules/unictype/property-numeric (Depends-on, configure.ac):
54206         Likewise.
54207         * modules/unictype/property-other-alphabetic (Depends-on,
54208         configure.ac): Likewise.
54209         * modules/unictype/property-other-default-ignorable-code-point
54210         (Depends-on, configure.ac): Likewise.
54211         * modules/unictype/property-other-grapheme-extend (Depends-on,
54212         configure.ac): Likewise.
54213         * modules/unictype/property-other-id-continue (Depends-on,
54214         configure.ac): Likewise.
54215         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
54216         Likewise.
54217         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
54218         Likewise.
54219         * modules/unictype/property-other-math (Depends-on, configure.ac):
54220         Likewise.
54221         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
54222         Likewise.
54223         * modules/unictype/property-paired-punctuation (Depends-on,
54224         configure.ac): Likewise.
54225         * modules/unictype/property-paragraph-separator (Depends-on,
54226         configure.ac): Likewise.
54227         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
54228         Likewise.
54229         * modules/unictype/property-pattern-white-space (Depends-on,
54230         configure.ac): Likewise.
54231         * modules/unictype/property-private-use (Depends-on, configure.ac):
54232         Likewise.
54233         * modules/unictype/property-punctuation (Depends-on, configure.ac):
54234         Likewise.
54235         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
54236         Likewise.
54237         * modules/unictype/property-radical (Depends-on, configure.ac):
54238         Likewise.
54239         * modules/unictype/property-sentence-terminal (Depends-on,
54240         configure.ac): Likewise.
54241         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
54242         Likewise.
54243         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
54244         * modules/unictype/property-terminal-punctuation (Depends-on,
54245         configure.ac): Likewise.
54246         * modules/unictype/property-titlecase (Depends-on, configure.ac):
54247         Likewise.
54248         * modules/unictype/property-unassigned-code-value (Depends-on,
54249         configure.ac): Likewise.
54250         * modules/unictype/property-unified-ideograph (Depends-on,
54251         configure.ac): Likewise.
54252         * modules/unictype/property-uppercase (Depends-on, configure.ac):
54253         Likewise.
54254         * modules/unictype/property-variation-selector (Depends-on,
54255         configure.ac): Likewise.
54256         * modules/unictype/property-white-space (Depends-on, configure.ac):
54257         Likewise.
54258         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
54259         Likewise.
54260         * modules/unictype/property-xid-start (Depends-on, configure.ac):
54261         Likewise.
54262         * modules/unictype/property-zero-width (Depends-on, configure.ac):
54263         Likewise.
54264         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
54265         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
54266         Likewise.
54268 2009-12-31  Bruno Haible  <bruno@clisp.org>
54270         Remove unnecessary AC_C_INLINE invocation.
54271         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
54272         since 2009-08-21.
54274 2009-12-31  Jim Meyering  <meyering@redhat.com>
54276         maint.mk: don't require explicit gpg_key_ID in cfg.mk
54277         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
54278         With this change, we can all remove the gpg_key_ID = ... definition
54279         from our respective cfg.mk files.
54281         maint.mk: create announcement template in ~/, not in /tmp
54282         * top/maint.mk (emit_upload_commands): Adjust.
54283         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
54284         Remove temporary file, .ci-msg.
54286 2009-12-31  Eric Blake  <ebb9@byu.net>
54288         link-warning: always build headers with link warnings
54289         * modules/arpa_inet (Makefile.am): Always build replacement
54290         header.
54291         * modules/ctype (Makefile.am): Likewise.
54292         * modules/dirent (Makefile.am): Likewise.
54293         * modules/inttypes (Makefile.am): Likewise.
54294         * modules/langinfo (Makefile.am): Likewise.
54295         * modules/locale (Makefile.am): Likewise.
54296         * modules/spawn (Makefile.am): Likewise.
54297         * modules/sys_file (Makefile.am): Likewise.
54298         * modules/sys_ioctl (Makefile.am): Likewise.
54299         * modules/sys_select (Makefile.am): Likewise.
54300         * modules/sys_socket (Makefile.am): Likewise.
54301         * modules/sys_times (Makefile.am): Likewise.
54302         * modules/sys_utsname (Makefile.am): Likewise.
54303         * modules/sys_wait (Makefile.am): Likewise.
54304         * modules/wchar (Makefile.am): Likewise.
54305         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
54306         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
54307         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
54308         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
54309         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
54310         Likewise.
54311         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54312         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54313         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
54314         Likewise.
54315         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
54316         Likewise.
54317         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
54318         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
54319         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
54320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54321         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54322         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54323         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54324         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
54325         (gl_WCHAR_H_DEFAULTS): Likewise.
54327 2009-12-31  Eric Blake  <ebb9@byu.net>
54329         signal, spawn: use link warnings
54330         * lib/signal.in.h (sigset_t): Make unconditional.
54331         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
54332         (sigpending, sigprocmask, sigaction): Add link warnings.
54333         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
54334         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
54335         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
54336         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
54337         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
54338         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
54339         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
54340         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
54341         (posix_spawn_file_actions_destroy)
54342         (posix_spawn_file_actions_addopen)
54343         (posix_spawn_file_actions_addclose)
54344         (posix_spawn_file_actions_adddup2): Likewise.
54345         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
54346         * tests/test-signal.c (main): Enhance test.
54348         spawn: improve wrapper support
54349         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
54350         (gl_SPAWN_H_DEFAULTS): New defaults.
54351         * modules/spawn (Makefile.am): Substitute them.
54352         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
54353         Only declare if missing or broken.
54355         sys_times, sys_utsname: use include_next
54356         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
54357         header.
54358         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
54359         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54360         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54361         * modules/sys_times (Depends-on): Add include_next.
54362         (Makefile.am): Substitute additional values.
54363         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54364         * lib/sys_times.in.h (includes): Include native header, if
54365         available.
54366         * lib/sys_utsname.in.h (includes): Likewise.
54367         * tests/test-sys_times.c (main): Enhance test.
54369         fdutimensat: revert prior patch
54370         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
54371         utimens.h.
54372         Reported by Bruno Haible.
54374 2009-12-30  Eric Blake  <ebb9@byu.net>
54376         sys_wait: drop link-warning dependency
54377         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
54378         link-warning efforts.
54379         * lib/sys_wait.in.h: Likewise.
54381         fdutimensat: remove bogus dependency
54382         * modules/fdutimensat (Depends-on): Drop inline.
54384         unistd: fix typo
54385         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
54387 2009-12-30  Bruno Haible  <bruno@clisp.org>
54389         Fix compilation error with Solaris cc.
54390         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
54391         * lib/unicase/u16-is-invariant.c: Likewise.
54392         * lib/unicase/u32-is-invariant.c: Likewise.
54393         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54395 2009-12-30  Bruno Haible  <bruno@clisp.org>
54397         Fix test crash.
54398         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
54399         locales.
54400         Reported by Simon Josefsson <simon@josefsson.org>.
54402 2009-12-30  Bruno Haible  <bruno@clisp.org>
54404         Fix compilation error on most platforms.
54405         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
54406         Reported by Simon Josefsson <simon@josefsson.org>
54407         and Nelson H. F. Beebe <beebe@math.utah.edu>.
54409 2009-12-30  Eric Blake  <ebb9@byu.net>
54411         futimens, utimensat: work around ntfs-3g bug
54412         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
54413         a ctime bug is present, and expand workaround to cover ntfs-3g.
54414         * lib/utimens.c (fdutimens, lutimens): Likewise.
54415         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
54416         (validate_timespec): Adjust return value.
54417         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
54418         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54419         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
54421 2009-12-29  Eric Blake  <ebb9@byu.net>
54423         link-warning: make usage consistent
54424         * modules/ctype (Depends-on): Add link-warning.
54425         (Makefile.am): Update rules accordingly.
54426         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54427         * modules/locale (Depends-on, Makefile.am): Likewise.
54428         * modules/sys_file (Makefile.am): Likewise.
54429         * modules/getopt-posix (Makefile.am): Delete unused link warning
54430         efforts.
54431         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
54432         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
54433         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
54434         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
54436         stdio: remove unused variables
54437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
54438         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
54439         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54441         tests: test more substitute headers
54442         * modules/ctype-tests: New file.
54443         * modules/dirent-tests: Likewise.
54444         * modules/spawn-tests: Likewise.
54445         * modules/sys_file-tests: Likewise.
54446         * modules/sys_ioctl-tests: Likewise.
54447         * modules/sys_wait-tests: Likewise.
54448         * tests/test-ctype.c: Likewise.
54449         * tests/test-dirent.c: Likewise.
54450         * tests/test-spawn.c: Likewise.
54451         * tests/test-sys_file.c: Likewise.
54452         * tests/test-sys_ioctl.c: Likewise.
54453         * tests/test-sys_wait.c: Likewise.
54454         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
54455         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
54456         whether or not flock is in use.
54458         tests: remove License section from module
54459         * modules/arpa_inet-tests: Remove unneeded section.
54460         * modules/byteswap-tests: Likewise.
54461         * modules/ceilf-tests: Likewise.
54462         * modules/ceill-tests: Likewise.
54463         * modules/crypto/des-tests: Likewise.
54464         * modules/crypto/gc-arcfour-tests: Likewise.
54465         * modules/crypto/gc-arctwo-tests: Likewise.
54466         * modules/crypto/gc-des-tests: Likewise.
54467         * modules/crypto/gc-hmac-md5-tests: Likewise.
54468         * modules/crypto/gc-hmac-sha1-tests: Likewise.
54469         * modules/crypto/gc-md2-tests: Likewise.
54470         * modules/crypto/gc-md4-tests: Likewise.
54471         * modules/crypto/gc-md5-tests: Likewise.
54472         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
54473         * modules/crypto/gc-rijndael-tests: Likewise.
54474         * modules/crypto/gc-sha1-tests: Likewise.
54475         * modules/crypto/gc-tests: Likewise.
54476         * modules/crypto/md2-tests: Likewise.
54477         * modules/crypto/md4-tests: Likewise.
54478         * modules/fcntl-h-tests: Likewise.
54479         * modules/floorf-tests: Likewise.
54480         * modules/floorl-tests: Likewise.
54481         * modules/frexp-nolibm-tests: Likewise.
54482         * modules/frexp-tests: Likewise.
54483         * modules/frexpl-nolibm-tests: Likewise.
54484         * modules/frexpl-tests: Likewise.
54485         * modules/getaddrinfo-tests: Likewise.
54486         * modules/inttypes-tests: Likewise.
54487         * modules/isfinite-tests: Likewise.
54488         * modules/isinf-tests: Likewise.
54489         * modules/ldexpl-tests: Likewise.
54490         * modules/locale-tests: Likewise.
54491         * modules/math-tests: Likewise.
54492         * modules/netdb-tests: Likewise.
54493         * modules/netinet_in-tests: Likewise.
54494         * modules/printf-frexp-tests: Likewise.
54495         * modules/printf-frexpl-tests: Likewise.
54496         * modules/priv-set-tests: Likewise.
54497         * modules/random_r-tests: Likewise.
54498         * modules/round-tests: Likewise.
54499         * modules/roundf-tests: Likewise.
54500         * modules/roundl-tests: Likewise.
54501         * modules/search-tests: Likewise.
54502         * modules/select-tests: Likewise.
54503         * modules/signal-tests: Likewise.
54504         * modules/stdbool-tests: Likewise.
54505         * modules/stddef-tests: Likewise.
54506         * modules/stdint-tests: Likewise.
54507         * modules/stdio-tests: Likewise.
54508         * modules/stdlib-tests: Likewise.
54509         * modules/string-tests: Likewise.
54510         * modules/strings-tests: Likewise.
54511         * modules/sys_select-tests: Likewise.
54512         * modules/sys_socket-tests: Likewise.
54513         * modules/sys_stat-tests: Likewise.
54514         * modules/sys_time-tests: Likewise.
54515         * modules/sys_utsname-tests: Likewise.
54516         * modules/sysexits-tests: Likewise.
54517         * modules/time-tests: Likewise.
54518         * modules/trunc-tests: Likewise.
54519         * modules/truncf-tests: Likewise.
54520         * modules/truncl-tests: Likewise.
54521         * modules/tsearch-tests: Likewise.
54522         * modules/unistd-tests: Likewise.
54523         * modules/wchar-tests: Likewise.
54524         * modules/wctype-tests: Likewise.
54526         tests: fix license on several tests
54527         * tests/test-des.c: Update to GPLv3+.
54528         * tests/test-flock.c: Likewise.
54529         * tests/test-fsync.c: Likewise.
54530         * tests/test-futimens.h: Likewise.
54531         * tests/test-gc-arcfour.c: Likewise.
54532         * tests/test-gc-arctwo.c: Likewise.
54533         * tests/test-gc-des.c: Likewise.
54534         * tests/test-gc-hmac-md5.c: Likewise.
54535         * tests/test-gc-hmac-sha1.c: Likewise.
54536         * tests/test-gc-md2.c: Likewise.
54537         * tests/test-gc-md4.c: Likewise.
54538         * tests/test-gc-md5.c: Likewise.
54539         * tests/test-gc-pbkdf2-sha1.c: Likewise.
54540         * tests/test-gc-rijndael.c: Likewise.
54541         * tests/test-gc-sha1.c: Likewise.
54542         * tests/test-gc.c: Likewise.
54543         * tests/test-getcwd.c: Likewise.
54544         * tests/test-link.c: Likewise.
54545         * tests/test-link.h: Likewise.
54546         * tests/test-lutimens.h: Likewise.
54547         * tests/test-md2.c: Likewise.
54548         * tests/test-md4.c: Likewise.
54549         * tests/test-mkdir.h: Likewise.
54550         * tests/test-rename.c: Likewise.
54551         * tests/test-rename.h: Likewise.
54552         * tests/test-safe-alloc.c: Likewise.
54553         * tests/test-utimens-common.h: Likewise.
54554         * tests/test-utimens.h: Likewise.
54556         maint: sync license texts
54557         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
54558         * doc/gpl-3.0.texi: Revert copyright year update.
54559         * doc/lgpl-3.0.texi: Likewise.
54561 2009-12-29  Jim Meyering  <meyering@redhat.com>
54563         update nearly all FSF copyright year lists to include 2009
54564         The files named by the following are exempted:
54565             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
54566               test -f "$dst" && { echo "$dst"; continue; }
54567               test -d "$dst" || continue
54568               echo "$dst"/$(basename "$src")
54569             done > exempt
54570             git ls-files tests/unictype >> exempt
54571         In the remaining files, convert to all-interval notation if
54572         - there is already at least one year interval like 2000-2003
54573         - the file is maintained by me
54574         - the file is in lib/uni*/, where that style already prevails
54575         Otherwise, use update-copyright's default.
54577 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54578         and Eric Blake  <ebb9@byu.net>
54580         tests: don't require debug system() to pass
54581         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
54582         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54583         * tests/test-unlink.h (test_unlink_func): Likewise.
54584         * tests/test-fstatat.c (main): ...into callers.
54585         * tests/test-lstat.c (main): Likewise.
54586         * tests/test-rmdir.c (main): Likewise.
54587         * tests/test-unlink.c (main): Likewise.
54588         * tests/test-unlinkat.c (main): Likewise.
54589         * tests/test-areadlink-with-size.c (main): Don't require a
54590         debug-only system call to pass, aiding cross-testing to mingw.
54591         * tests/test-areadlink.c (main): Likewise.
54592         * tests/test-areadlinkat-with-size.c (main): Likewise.
54593         * tests/test-areadlinkat.c (main): Likewise.
54594         * tests/test-canonicalize-lgpl.c (main): Likewise.
54595         * tests/test-canonicalize.c (main): Likewise.
54596         * tests/test-chown.c (main): Likewise.
54597         * tests/test-fchownat.c (main): Likewise.
54598         * tests/test-lchown.c (main): Likewise.
54599         * tests/test-fdutimensat.c (main): Likewise.
54600         * tests/test-futimens.c (main): Likewise.
54601         * tests/test-link.c (main): Likewise.
54602         * tests/test-linkat.c (main): Likewise.
54603         * tests/test-mkdir.c (main): Likewise.
54604         * tests/test-mkdirat.c (main): Likewise.
54605         * tests/test-mkfifo.c (main): Likewise.
54606         * tests/test-mkfifoat.c (main): Likewise.
54607         * tests/test-mknod.c (main): Likewise.
54608         * tests/test-readlink.c (main): Likewise.
54609         * tests/test-remove.c (main): Likewise.
54610         * tests/test-rename.c (main): Likewise.
54611         * tests/test-renameat.c (main): Likewise.
54612         * tests/test-symlink.c (main): Likewise.
54613         * tests/test-symlinkat.c (main): Likewise.
54614         * tests/test-utimens.c (main): Likewise.
54615         * tests/test-utimensat.c (main): Likewise.
54617 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54619         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
54620         on $(UNUSED_PARAMETER_H) to avoid build failure.
54622 2009-12-28  Jim Meyering  <meyering@redhat.com>
54624         update-copyright: you may specify a max. line length other than 72
54625         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54627         maint: use consistent FSF copyright line syntax
54628         * lib/posixtm.c: Add missing comma in FSF copyright line.
54629         * lib/posixtm.h: Likewise.
54630         * lib/getugroups.c: Add missing ", Inc.".
54632         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
54633         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
54634         FSF copyright line.  Remove trailing blanks.
54636 2009-12-28  Eric Blake  <ebb9@byu.net>
54638         test-dup2: reduce dependencies
54639         * modules/cloexec (Configure.ac): Set witness.
54640         * modules/dup2-tests (Depends-on): Drop cloexec.
54641         * tests/test-dup2.c (main): Skip portion of test if cloexec module
54642         not present.
54643         Suggested by Bruno Haible.
54645 2009-12-26  Bruno Haible  <bruno@clisp.org>
54647         Remove an unneeded dependency.
54648         * modules/fseterr (Depends-on): Remove dup2.
54650 2009-12-26  Eric Blake  <ebb9@byu.net>
54652         tests: use macros.h in more places
54653         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
54654         (ASSERT_STREAM): Provide default of stderr.
54655         * tests/test-dirent-safer.c: Include macros.h, using alternate
54656         stream for assertions.
54657         * tests/test-dup-safer.c: Likewise.
54658         * tests/test-freopen-safer.c: Likewise.
54659         * tests/test-getopt.c: Likewise.
54660         * tests/test-openat-safer.c: Likewise.
54661         * tests/test-pipe.c: Likewise.
54662         * tests/test-popen-safer.c: Likewise.
54663         * modules/dirent-safer-tests (Files): Include macros.h.
54664         * modules/unistd-safer-tests (Files): Likewise.
54665         * modules/freopen-safer-tests (Files): Likewise.
54666         * modules/getopt-posix-tests (Files): Likewise.
54667         * modules/openat-safer-tests (Files): Likewise.
54668         * modules/pipe-tests (Files): Likewise.
54670 2009-12-26  Bruno Haible  <bruno@clisp.org>
54672         javacomp: Portability fix.
54673         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
54674         that it also works on Solaris.
54676 2009-12-26  Bruno Haible  <bruno@clisp.org>
54678         localename: Fix storage allocation of gl_locale_name_thread's result.
54679         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
54680         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
54681         all platforms that have 'uselocale'.
54682         (gl_locale_name_thread_unsafe): New function, extracted from
54683         gl_locale_name_thread.
54684         (gl_locale_name_thread): Call struniq on all platforms that have
54685         'uselocale'.
54686         * tests/test-localename.c (test_locale_name_thread): Check that the
54687         resulting strings are permanently allocated.
54688         * modules/localename-tests (Depends-on): Add strdup.
54690 2009-12-26  Bruno Haible  <bruno@clisp.org>
54692         * tests/test-localename.c (categories): Fill in the strings.
54694 2009-12-26  Jim Meyering  <meyering@redhat.com>
54696         isdir: complete the removal of m4/isdir.m4
54697         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
54699         isdir: clean up, since at least grep still uses it
54700         * lib/isdir.c: Include "isdir.h".
54701         (S_ISDIR): Remove now-unneeded definition.
54702         * modules/isdir (Files): Add lib/isdir.h.
54703         * lib/isdir.h: New file, with declaration.
54704         * m4/isdir.m4: Remove file -- unneeded.
54706 2009-12-25  Bruno Haible  <bruno@clisp.org>
54708         selinux-h: Make generated .h files standalone.
54709         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
54710         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
54711         * lib/se-selinux.in.h: Likewise.
54712         * modules/selinux-h (Depends-on): Add unused-parameter.
54713         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
54714         selinux/selinux.h and selinux/context.h.
54715         Suggested by Eric Blake.
54717 2009-12-25  Bruno Haible  <bruno@clisp.org>
54719         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
54720         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
54721         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
54722         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
54723         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
54725 2009-12-24  Bruno Haible  <bruno@clisp.org>
54727         openat: Fix warning.
54728         * lib/openat-proc.c: Include <unistd.h>.
54730 2009-12-24  Bruno Haible  <bruno@clisp.org>
54732         New module 'unused-parameter'.
54733         * build-aux/unused-parameter.h: New file, extracted from earlier
54734         gnulib-common.m4.
54735         * modules/unused-parameter: New file.
54736         * lib/unistr.h: Include unused-parameter.h.
54737         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
54738         _GL_UNUSED.
54739         * modules/unistr/base (Depends-on): Add unused-parameter.
54741 2009-12-24  Bruno Haible  <bruno@clisp.org>
54743         Add missing dependencies to 'extensions' module.
54744         * m4/extensions.m4: Add comment.
54745         * modules/accept4 (Depends-on): Add extensions.
54746         * modules/dup3 (Depends-on): Likewise.
54747         * modules/fcntl (Depends-on): Likewise.
54748         * modules/futimens (Depends-on): Likewise.
54749         * modules/mknod (Depends-on): Likewise.
54750         * modules/pipe2 (Depends-on): Likewise.
54751         * modules/stat-time (Depends-on): Likewise.
54752         * modules/strcasestr-simple (Depends-on): Likewise.
54753         * modules/strsignal (Depends-on): Likewise.
54754         * modules/utimensat (Depends-on): Likewise.
54755         * modules/localcharset (Depends-on): Likewise. Needed because of
54756         gl_FCNTL_O_FLAGS.
54757         * modules/wcrtomb (Depends-on): Likewise. Needed because of
54758         AC_TYPE_MBSTATE_T.
54759         * modules/wcsnrtombs (Depends-on): Likewise.
54760         * modules/wcsrtombs (Depends-on): Likewise.
54762 2009-12-24  Bruno Haible  <bruno@clisp.org>
54764         binary-io: Avoid gcc warning due to SET_BINARY.
54765         * lib/binary-io.h (SET_BINARY): Cast the result to void.
54766         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
54768 2009-12-24  Bruno Haible  <bruno@clisp.org>
54770         Avoid future namespace pollution on glibc systems.
54771         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
54772         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
54773         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
54774         glibc systems.
54776 2009-12-24  Bruno Haible  <bruno@clisp.org>
54778         Refactor common macros used in tests.
54779         * tests/macros.h: New file.
54780         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
54781         and/or <stdlib.h>, if appropriate.
54782         (ASSERT, SIZEOF): Remove macros.
54783         * tests/test-areadlink-with-size.c: Likewise.
54784         * tests/test-areadlinkat.c: Likewise.
54785         * tests/test-areadlinkat-with-size.c: Likewise.
54786         * tests/test-argmatch.c: Likewise.
54787         * tests/test-argv-iter.c: Likewise.
54788         * tests/test-array-mergesort.c: Likewise.
54789         * tests/test-array_list.c: Likewise.
54790         * tests/test-array_oset.c: Likewise.
54791         * tests/test-avltree_list.c: Likewise.
54792         * tests/test-avltree_oset.c: Likewise.
54793         * tests/test-avltreehash_list.c: Likewise.
54794         * tests/test-base64.c: Likewise.
54795         * tests/test-binary-io.c: Likewise.
54796         * tests/test-bitrotate.c: Likewise.
54797         * tests/test-btowc.c: Likewise.
54798         * tests/test-byteswap.c: Likewise.
54799         * tests/test-c-ctype.c: Likewise.
54800         * tests/test-c-stack.c: Likewise.
54801         * tests/test-c-strcasecmp.c: Likewise.
54802         * tests/test-c-strcasestr.c: Likewise.
54803         * tests/test-c-strncasecmp.c: Likewise.
54804         * tests/test-c-strstr.c: Likewise.
54805         * tests/test-canonicalize-lgpl.c: Likewise.
54806         * tests/test-canonicalize.c: Likewise.
54807         * tests/test-carray_list.c: Likewise.
54808         * tests/test-ceilf1.c: Likewise.
54809         * tests/test-ceilf2.c: Likewise.
54810         * tests/test-ceill.c: Likewise.
54811         * tests/test-chown.c: Likewise.
54812         * tests/test-cloexec.c: Likewise.
54813         * tests/test-copy-acl.c: Likewise.
54814         * tests/test-copy-file.c: Likewise.
54815         * tests/test-count-one-bits.c: Likewise.
54816         * tests/test-dprintf-posix.c: Likewise.
54817         * tests/test-dup2.c: Likewise.
54818         * tests/test-dup3.c: Likewise.
54819         * tests/test-duplocale.c: Likewise.
54820         * tests/test-fbufmode.c: Likewise.
54821         * tests/test-fchdir.c: Likewise.
54822         * tests/test-fchownat.c: Likewise.
54823         * tests/test-fcntl-safer.c: Likewise.
54824         * tests/test-fcntl.c: Likewise.
54825         * tests/test-fdopendir.c: Likewise.
54826         * tests/test-fdutimensat.c: Likewise.
54827         * tests/test-fflush2.c: Likewise.
54828         * tests/test-file-has-acl.c: Likewise.
54829         * tests/test-filevercmp.c: Likewise.
54830         * tests/test-flock.c: Likewise.
54831         * tests/test-floorf1.c: Likewise.
54832         * tests/test-floorf2.c: Likewise.
54833         * tests/test-floorl.c: Likewise.
54834         * tests/test-fnmatch.c: Likewise.
54835         * tests/test-fopen.h: Likewise.
54836         * tests/test-fpending.c: Likewise.
54837         * tests/test-fprintf-posix.c: Likewise.
54838         * tests/test-fpurge.c: Likewise.
54839         * tests/test-freadable.c: Likewise.
54840         * tests/test-freadahead.c: Likewise.
54841         * tests/test-freading.c: Likewise.
54842         * tests/test-freadptr.c: Likewise.
54843         * tests/test-freadptr2.c: Likewise.
54844         * tests/test-freadseek.c: Likewise.
54845         * tests/test-freopen.c: Likewise.
54846         * tests/test-frexp.c: Likewise.
54847         * tests/test-frexpl.c: Likewise.
54848         * tests/test-fseek.c: Likewise.
54849         * tests/test-fseeko.c: Likewise.
54850         * tests/test-fstatat.c: Likewise.
54851         * tests/test-fstrcmp.c: Likewise.
54852         * tests/test-fsync.c: Likewise.
54853         * tests/test-ftell.c: Likewise.
54854         * tests/test-ftello.c: Likewise.
54855         * tests/test-func.c: Likewise.
54856         * tests/test-futimens.c: Likewise.
54857         * tests/test-fwritable.c: Likewise.
54858         * tests/test-fwriting.c: Likewise.
54859         * tests/test-getcwd.c: Likewise.
54860         * tests/test-getdate.c: Likewise.
54861         * tests/test-getdelim.c: Likewise.
54862         * tests/test-getdtablesize.c: Likewise.
54863         * tests/test-getgroups.c: Likewise.
54864         * tests/test-getline.c: Likewise.
54865         * tests/test-getndelim2.c: Likewise.
54866         * tests/test-glob.c: Likewise.
54867         * tests/test-hash.c: Likewise.
54868         * tests/test-i-ring.c: Likewise.
54869         * tests/test-iconv-utf.c: Likewise.
54870         * tests/test-iconv.c: Likewise.
54871         * tests/test-idpriv-drop.c: Likewise.
54872         * tests/test-idpriv-droptemp.c: Likewise.
54873         * tests/test-inet_ntop.c: Likewise.
54874         * tests/test-inet_pton.c: Likewise.
54875         * tests/test-isblank.c: Likewise.
54876         * tests/test-isfinite.c: Likewise.
54877         * tests/test-isinf.c: Likewise.
54878         * tests/test-isnan.c: Likewise.
54879         * tests/test-isnand.h: Likewise.
54880         * tests/test-isnanf.h: Likewise.
54881         * tests/test-isnanl.h: Likewise.
54882         * tests/test-lchown.c: Likewise.
54883         * tests/test-ldexpl.c: Likewise.
54884         * tests/test-link.c: Likewise.
54885         * tests/test-linkat.c: Likewise.
54886         * tests/test-linked_list.c: Likewise.
54887         * tests/test-linkedhash_list.c: Likewise.
54888         * tests/test-localename.c: Likewise.
54889         * tests/test-lseek.c: Likewise.
54890         * tests/test-lstat.c: Likewise.
54891         * tests/test-mbmemcasecmp.c: Likewise.
54892         * tests/test-mbmemcasecoll.c: Likewise.
54893         * tests/test-mbrtowc.c: Likewise.
54894         * tests/test-mbscasecmp.c: Likewise.
54895         * tests/test-mbscasestr1.c: Likewise.
54896         * tests/test-mbscasestr2.c: Likewise.
54897         * tests/test-mbscasestr3.c: Likewise.
54898         * tests/test-mbscasestr4.c: Likewise.
54899         * tests/test-mbschr.c: Likewise.
54900         * tests/test-mbscspn.c: Likewise.
54901         * tests/test-mbsinit.c: Likewise.
54902         * tests/test-mbsncasecmp.c: Likewise.
54903         * tests/test-mbsnrtowcs.c: Likewise.
54904         * tests/test-mbspbrk.c: Likewise.
54905         * tests/test-mbspcasecmp.c: Likewise.
54906         * tests/test-mbsrchr.c: Likewise.
54907         * tests/test-mbsrtowcs.c: Likewise.
54908         * tests/test-mbsspn.c: Likewise.
54909         * tests/test-mbsstr1.c: Likewise.
54910         * tests/test-mbsstr2.c: Likewise.
54911         * tests/test-mbsstr3.c: Likewise.
54912         * tests/test-memchr.c: Likewise.
54913         * tests/test-memchr2.c: Likewise.
54914         * tests/test-memcmp.c: Likewise.
54915         * tests/test-memmem.c: Likewise.
54916         * tests/test-memrchr.c: Likewise.
54917         * tests/test-mkdir.c: Likewise.
54918         * tests/test-mkdirat.c: Likewise.
54919         * tests/test-mkfifo.c: Likewise.
54920         * tests/test-mkfifoat.c: Likewise.
54921         * tests/test-mknod.c: Likewise.
54922         * tests/test-nanosleep.c: Likewise.
54923         * tests/test-nl_langinfo.c: Likewise.
54924         * tests/test-obstack-printf.c: Likewise.
54925         * tests/test-open.c: Likewise.
54926         * tests/test-openat.c: Likewise.
54927         * tests/test-pipe-filter-gi1.c: Likewise.
54928         * tests/test-pipe-filter-gi2-main.c: Likewise.
54929         * tests/test-pipe-filter-ii1.c: Likewise.
54930         * tests/test-pipe-filter-ii2-main.c: Likewise.
54931         * tests/test-pipe2.c: Likewise.
54932         * tests/test-popen.h: Likewise.
54933         * tests/test-posixtm.c: Likewise.
54934         * tests/test-pread.c: Likewise.
54935         * tests/test-printf-frexp.c: Likewise.
54936         * tests/test-printf-frexpl.c: Likewise.
54937         * tests/test-printf-posix.c: Likewise.
54938         * tests/test-priv-set.c: Likewise.
54939         * tests/test-quotearg.c: Likewise.
54940         * tests/test-random_r.c: Likewise.
54941         * tests/test-rawmemchr.c: Likewise.
54942         * tests/test-rbtree_list.c: Likewise.
54943         * tests/test-rbtree_oset.c: Likewise.
54944         * tests/test-rbtreehash_list.c: Likewise.
54945         * tests/test-readlink.c: Likewise.
54946         * tests/test-remove.c: Likewise.
54947         * tests/test-rename.c: Likewise.
54948         * tests/test-renameat.c: Likewise.
54949         * tests/test-rmdir.c: Likewise.
54950         * tests/test-round1.c: Likewise.
54951         * tests/test-roundf1.c: Likewise.
54952         * tests/test-roundl.c: Likewise.
54953         * tests/test-safe-alloc.c: Likewise.
54954         * tests/test-sameacls.c: Likewise.
54955         * tests/test-set-mode-acl.c: Likewise.
54956         * tests/test-setenv.c: Likewise.
54957         * tests/test-sigaction.c: Likewise.
54958         * tests/test-signbit.c: Likewise.
54959         * tests/test-sleep.c: Likewise.
54960         * tests/test-snprintf-posix.c: Likewise.
54961         * tests/test-snprintf.c: Likewise.
54962         * tests/test-sprintf-posix.c: Likewise.
54963         * tests/test-stat-time.c: Likewise.
54964         * tests/test-stat.c: Likewise.
54965         * tests/test-strcasestr.c: Likewise.
54966         * tests/test-strchrnul.c: Likewise.
54967         * tests/test-strerror.c: Likewise.
54968         * tests/test-striconv.c: Likewise.
54969         * tests/test-striconveh.c: Likewise.
54970         * tests/test-striconveha.c: Likewise.
54971         * tests/test-strsignal.c: Likewise.
54972         * tests/test-strstr.c: Likewise.
54973         * tests/test-strtod.c: Likewise.
54974         * tests/test-strverscmp.c: Likewise.
54975         * tests/test-symlink.c: Likewise.
54976         * tests/test-symlinkat.c: Likewise.
54977         * tests/test-trunc1.c: Likewise.
54978         * tests/test-trunc2.c: Likewise.
54979         * tests/test-truncf1.c: Likewise.
54980         * tests/test-truncf2.c: Likewise.
54981         * tests/test-truncl.c: Likewise.
54982         * tests/test-uname.c: Likewise.
54983         * tests/test-unlink.c: Likewise.
54984         * tests/test-unlinkat.c: Likewise.
54985         * tests/test-unsetenv.c: Likewise.
54986         * tests/test-usleep.c: Likewise.
54987         * tests/test-utimens.c: Likewise.
54988         * tests/test-utimensat.c: Likewise.
54989         * tests/test-vasnprintf-posix.c: Likewise.
54990         * tests/test-vasnprintf-posix2.c: Likewise.
54991         * tests/test-vasnprintf.c: Likewise.
54992         * tests/test-vasprintf-posix.c: Likewise.
54993         * tests/test-vasprintf.c: Likewise.
54994         * tests/test-vdprintf-posix.c: Likewise.
54995         * tests/test-vfprintf-posix.c: Likewise.
54996         * tests/test-vprintf-posix.c: Likewise.
54997         * tests/test-vsnprintf-posix.c: Likewise.
54998         * tests/test-vsnprintf.c: Likewise.
54999         * tests/test-vsprintf-posix.c: Likewise.
55000         * tests/test-wcrtomb.c: Likewise.
55001         * tests/test-wcsnrtombs.c: Likewise.
55002         * tests/test-wcsrtombs.c: Likewise.
55003         * tests/test-wctype.c: Likewise.
55004         * tests/test-wcwidth.c: Likewise.
55005         * tests/test-xfprintf-posix.c: Likewise.
55006         * tests/test-xmemdup0.c: Likewise.
55007         * tests/test-xprintf-posix.c: Likewise.
55008         * tests/test-xvasprintf.c: Likewise.
55009         * tests/unicase/test-locale-language.c: Likewise.
55010         * tests/unicase/test-mapping-part1.h: Likewise.
55011         * tests/unicase/test-predicate-part1.h: Likewise.
55012         * tests/unicase/test-u8-casecmp.c: Likewise.
55013         * tests/unicase/test-u8-casecoll.c: Likewise.
55014         * tests/unicase/test-u8-casefold.c: Likewise.
55015         * tests/unicase/test-u8-is-cased.c: Likewise.
55016         * tests/unicase/test-u8-is-casefolded.c: Likewise.
55017         * tests/unicase/test-u8-is-lowercase.c: Likewise.
55018         * tests/unicase/test-u8-is-titlecase.c: Likewise.
55019         * tests/unicase/test-u8-is-uppercase.c: Likewise.
55020         * tests/unicase/test-u8-tolower.c: Likewise.
55021         * tests/unicase/test-u8-totitle.c: Likewise.
55022         * tests/unicase/test-u8-toupper.c: Likewise.
55023         * tests/unicase/test-u16-casecmp.c: Likewise.
55024         * tests/unicase/test-u16-casecoll.c: Likewise.
55025         * tests/unicase/test-u16-casefold.c: Likewise.
55026         * tests/unicase/test-u16-is-cased.c: Likewise.
55027         * tests/unicase/test-u16-is-casefolded.c: Likewise.
55028         * tests/unicase/test-u16-is-lowercase.c: Likewise.
55029         * tests/unicase/test-u16-is-titlecase.c: Likewise.
55030         * tests/unicase/test-u16-is-uppercase.c: Likewise.
55031         * tests/unicase/test-u16-tolower.c: Likewise.
55032         * tests/unicase/test-u16-totitle.c: Likewise.
55033         * tests/unicase/test-u16-toupper.c: Likewise.
55034         * tests/unicase/test-u32-casecmp.c: Likewise.
55035         * tests/unicase/test-u32-casecoll.c: Likewise.
55036         * tests/unicase/test-u32-casefold.c: Likewise.
55037         * tests/unicase/test-u32-is-cased.c: Likewise.
55038         * tests/unicase/test-u32-is-casefolded.c: Likewise.
55039         * tests/unicase/test-u32-is-lowercase.c: Likewise.
55040         * tests/unicase/test-u32-is-titlecase.c: Likewise.
55041         * tests/unicase/test-u32-is-uppercase.c: Likewise.
55042         * tests/unicase/test-u32-tolower.c: Likewise.
55043         * tests/unicase/test-u32-totitle.c: Likewise.
55044         * tests/unicase/test-u32-toupper.c: Likewise.
55045         * tests/unicase/test-ulc-casecmp.c: Likewise.
55046         * tests/unicase/test-ulc-casecoll.c: Likewise.
55047         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55048         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55049         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55050         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55051         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55052         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55053         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55054         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55055         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55056         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55057         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55058         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55059         * tests/unictype/test-bidi_byname.c: Likewise.
55060         * tests/unictype/test-bidi_name.c: Likewise.
55061         * tests/unictype/test-bidi_of.c: Likewise.
55062         * tests/unictype/test-bidi_test.c: Likewise.
55063         * tests/unictype/test-block_list.c: Likewise.
55064         * tests/unictype/test-block_of.c: Likewise.
55065         * tests/unictype/test-block_test.c: Likewise.
55066         * tests/unictype/test-categ_and.c: Likewise.
55067         * tests/unictype/test-categ_and_not.c: Likewise.
55068         * tests/unictype/test-categ_byname.c: Likewise.
55069         * tests/unictype/test-categ_name.c: Likewise.
55070         * tests/unictype/test-categ_none.c: Likewise.
55071         * tests/unictype/test-categ_of.c: Likewise.
55072         * tests/unictype/test-categ_or.c: Likewise.
55073         * tests/unictype/test-categ_test_withtable.c: Likewise.
55074         * tests/unictype/test-combining.c: Likewise.
55075         * tests/unictype/test-decdigit.c: Likewise.
55076         * tests/unictype/test-digit.c: Likewise.
55077         * tests/unictype/test-mirror.c: Likewise.
55078         * tests/unictype/test-numeric.c: Likewise.
55079         * tests/unictype/test-pr_byname.c: Likewise.
55080         * tests/unictype/test-pr_test.c: Likewise.
55081         * tests/unictype/test-predicate-part1.h: Likewise.
55082         * tests/unictype/test-scripts.c: Likewise.
55083         * tests/unictype/test-sy_c_ident.c: Likewise.
55084         * tests/unictype/test-sy_java_ident.c: Likewise.
55085         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
55086         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
55087         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
55088         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
55089         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
55090         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
55091         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
55092         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
55093         * tests/uninorm/test-canonical-decomposition.c: Likewise.
55094         * tests/uninorm/test-compat-decomposition.c: Likewise.
55095         * tests/uninorm/test-composition.c: Likewise.
55096         * tests/uninorm/test-decomposing-form.c: Likewise.
55097         * tests/uninorm/test-decomposition.c: Likewise.
55098         * tests/uninorm/test-u8-nfc.c: Likewise.
55099         * tests/uninorm/test-u8-nfd.c: Likewise.
55100         * tests/uninorm/test-u8-nfkc.c: Likewise.
55101         * tests/uninorm/test-u8-nfkd.c: Likewise.
55102         * tests/uninorm/test-u8-normcmp.c: Likewise.
55103         * tests/uninorm/test-u8-normcoll.c: Likewise.
55104         * tests/uninorm/test-u16-nfc.c: Likewise.
55105         * tests/uninorm/test-u16-nfd.c: Likewise.
55106         * tests/uninorm/test-u16-nfkc.c: Likewise.
55107         * tests/uninorm/test-u16-nfkd.c: Likewise.
55108         * tests/uninorm/test-u16-normcmp.c: Likewise.
55109         * tests/uninorm/test-u16-normcoll.c: Likewise.
55110         * tests/uninorm/test-u32-nfc.c: Likewise.
55111         * tests/uninorm/test-u32-nfd.c: Likewise.
55112         * tests/uninorm/test-u32-nfkc.c: Likewise.
55113         * tests/uninorm/test-u32-nfkd.c: Likewise.
55114         * tests/uninorm/test-u32-normalize-big.c: Likewise.
55115         * tests/uninorm/test-u32-normcmp.c: Likewise.
55116         * tests/uninorm/test-u32-normcoll.c: Likewise.
55117         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
55118         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55119         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55120         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55121         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55122         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55123         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55124         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55125         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55126         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55127         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55128         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55129         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55130         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55131         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55132         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55133         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55134         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55135         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55136         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55137         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55138         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55139         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55140         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55141         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55142         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55143         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55144         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55145         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55146         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
55147         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
55148         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
55149         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
55150         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55151         * tests/uniwidth/test-u8-width.c: Likewise.
55152         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55153         * tests/uniwidth/test-u16-width.c: Likewise.
55154         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55155         * tests/uniwidth/test-u32-width.c: Likewise.
55156         * tests/uniwidth/test-uc_width.c: Likewise.
55157         * tests/uniwidth/test-uc_width2.c: Likewise.
55158         * modules/acl-tests (Files): Add tests/macros.h.
55159         * modules/areadlink-tests (Files): Likewise.
55160         * modules/areadlink-with-size-tests (Files): Likewise.
55161         * modules/areadlinkat-tests (Files): Likewise.
55162         * modules/areadlinkat-with-size-tests (Files): Likewise.
55163         * modules/argmatch-tests (Files): Likewise.
55164         * modules/argv-iter-tests (Files): Likewise.
55165         * modules/array-list-tests (Files): Likewise.
55166         * modules/array-mergesort-tests (Files): Likewise.
55167         * modules/array-oset-tests (Files): Likewise.
55168         * modules/avltree-list-tests (Files): Likewise.
55169         * modules/avltree-oset-tests (Files): Likewise.
55170         * modules/avltreehash-list-tests (Files): Likewise.
55171         * modules/base64-tests (Files): Likewise.
55172         * modules/binary-io-tests (Files): Likewise.
55173         * modules/bitrotate-tests (Files): Likewise.
55174         * modules/btowc-tests (Files): Likewise.
55175         * modules/byteswap-tests (Files): Likewise.
55176         * modules/c-ctype-tests (Files): Likewise.
55177         * modules/c-stack-tests (Files): Likewise.
55178         * modules/c-strcase-tests (Files): Likewise.
55179         * modules/c-strcasestr-tests (Files): Likewise.
55180         * modules/c-strstr-tests (Files): Likewise.
55181         * modules/canonicalize-lgpl-tests (Files): Likewise.
55182         * modules/canonicalize-tests (Files): Likewise.
55183         * modules/carray-list-tests (Files): Likewise.
55184         * modules/ceilf-tests (Files): Likewise.
55185         * modules/ceill-tests (Files): Likewise.
55186         * modules/chown-tests (Files): Likewise.
55187         * modules/cloexec-tests (Files): Likewise.
55188         * modules/copy-file-tests (Files): Likewise.
55189         * modules/count-one-bits-tests (Files): Likewise.
55190         * modules/dprintf-posix-tests (Files): Likewise.
55191         * modules/dup2-tests (Files): Likewise.
55192         * modules/dup3-tests (Files): Likewise.
55193         * modules/duplocale-tests (Files): Likewise.
55194         * modules/fbufmode-tests (Files): Likewise.
55195         * modules/fchdir-tests (Files): Likewise.
55196         * modules/fcntl-safer-tests (Files): Likewise.
55197         * modules/fcntl-tests (Files): Likewise.
55198         * modules/fdopendir-tests (Files): Likewise.
55199         * modules/fdutimensat-tests (Files): Likewise.
55200         * modules/fflush-tests (Files): Likewise.
55201         * modules/filevercmp-tests (Files): Likewise.
55202         * modules/flock-tests (Files): Likewise.
55203         * modules/floorf-tests (Files): Likewise.
55204         * modules/floorl-tests (Files): Likewise.
55205         * modules/fnmatch-tests (Files): Likewise.
55206         * modules/fopen-safer-tests (Files): Likewise.
55207         * modules/fopen-tests (Files): Likewise.
55208         * modules/fpending-tests (Files): Likewise.
55209         * modules/fprintf-posix-tests (Files): Likewise.
55210         * modules/fpurge-tests (Files): Likewise.
55211         * modules/freadable-tests (Files): Likewise.
55212         * modules/freadahead-tests (Files): Likewise.
55213         * modules/freading-tests (Files): Likewise.
55214         * modules/freadptr-tests (Files): Likewise.
55215         * modules/freadseek-tests (Files): Likewise.
55216         * modules/freopen-tests (Files): Likewise.
55217         * modules/frexp-nolibm-tests (Files): Likewise.
55218         * modules/frexp-tests (Files): Likewise.
55219         * modules/frexpl-nolibm-tests (Files): Likewise.
55220         * modules/frexpl-tests (Files): Likewise.
55221         * modules/fseek-tests (Files): Likewise.
55222         * modules/fseeko-tests (Files): Likewise.
55223         * modules/fstrcmp-tests (Files): Likewise.
55224         * modules/fsync-tests (Files): Likewise.
55225         * modules/ftell-tests (Files): Likewise.
55226         * modules/ftello-tests (Files): Likewise.
55227         * modules/func-tests (Files): Likewise.
55228         * modules/futimens-tests (Files): Likewise.
55229         * modules/fwritable-tests (Files): Likewise.
55230         * modules/fwriting-tests (Files): Likewise.
55231         * modules/getcwd-tests (Files): Likewise.
55232         * modules/getdate-tests (Files): Likewise.
55233         * modules/getdelim-tests (Files): Likewise.
55234         * modules/getdtablesize-tests (Files): Likewise.
55235         * modules/getgroups-tests (Files): Likewise.
55236         * modules/getline-tests (Files): Likewise.
55237         * modules/getndelim2-tests (Files): Likewise.
55238         * modules/glob-tests (Files): Likewise.
55239         * modules/hash-tests (Files): Likewise.
55240         * modules/i-ring-tests (Files): Likewise.
55241         * modules/iconv-tests (Files): Likewise.
55242         * modules/iconv_open-utf-tests (Files): Likewise.
55243         * modules/idpriv-drop-tests (Files): Likewise.
55244         * modules/idpriv-droptemp-tests (Files): Likewise.
55245         * modules/inet_ntop-tests (Files): Likewise.
55246         * modules/inet_pton-tests (Files): Likewise.
55247         * modules/isblank-tests (Files): Likewise.
55248         * modules/isfinite-tests (Files): Likewise.
55249         * modules/isinf-tests (Files): Likewise.
55250         * modules/isnan-tests (Files): Likewise.
55251         * modules/isnand-nolibm-tests (Files): Likewise.
55252         * modules/isnand-tests (Files): Likewise.
55253         * modules/isnanf-nolibm-tests (Files): Likewise.
55254         * modules/isnanf-tests (Files): Likewise.
55255         * modules/isnanl-nolibm-tests (Files): Likewise.
55256         * modules/isnanl-tests (Files): Likewise.
55257         * modules/lchown-tests (Files): Likewise.
55258         * modules/ldexpl-tests (Files): Likewise.
55259         * modules/link-tests (Files): Likewise.
55260         * modules/linkat-tests (Files): Likewise.
55261         * modules/linked-list-tests (Files): Likewise.
55262         * modules/linkedhash-list-tests (Files): Likewise.
55263         * modules/localename-tests (Files): Likewise.
55264         * modules/lseek-tests (Files): Likewise.
55265         * modules/lstat-tests (Files): Likewise.
55266         * modules/mbmemcasecmp-tests (Files): Likewise.
55267         * modules/mbmemcasecoll-tests (Files): Likewise.
55268         * modules/mbrtowc-tests (Files): Likewise.
55269         * modules/mbscasecmp-tests (Files): Likewise.
55270         * modules/mbscasestr-tests (Files): Likewise.
55271         * modules/mbschr-tests (Files): Likewise.
55272         * modules/mbscspn-tests (Files): Likewise.
55273         * modules/mbsinit-tests (Files): Likewise.
55274         * modules/mbsncasecmp-tests (Files): Likewise.
55275         * modules/mbsnrtowcs-tests (Files): Likewise.
55276         * modules/mbspbrk-tests (Files): Likewise.
55277         * modules/mbspcasecmp-tests (Files): Likewise.
55278         * modules/mbsrchr-tests (Files): Likewise.
55279         * modules/mbsrtowcs-tests (Files): Likewise.
55280         * modules/mbsspn-tests (Files): Likewise.
55281         * modules/mbsstr-tests (Files): Likewise.
55282         * modules/memchr-tests (Files): Likewise.
55283         * modules/memchr2-tests (Files): Likewise.
55284         * modules/memcmp-tests (Files): Likewise.
55285         * modules/memmem-tests (Files): Likewise.
55286         * modules/memrchr-tests (Files): Likewise.
55287         * modules/mkdir-tests (Files): Likewise.
55288         * modules/mkfifo-tests (Files): Likewise.
55289         * modules/mkfifoat-tests (Files): Likewise.
55290         * modules/mknod-tests (Files): Likewise.
55291         * modules/nanosleep-tests (Files): Likewise.
55292         * modules/nl_langinfo-tests (Files): Likewise.
55293         * modules/obstack-printf-tests (Files): Likewise.
55294         * modules/open-tests (Files): Likewise.
55295         * modules/openat-tests (Files): Likewise.
55296         * modules/pipe-filter-gi-tests (Files): Likewise.
55297         * modules/pipe-filter-ii-tests (Files): Likewise.
55298         * modules/pipe2-tests (Files): Likewise.
55299         * modules/popen-safer-tests (Files): Likewise.
55300         * modules/popen-tests (Files): Likewise.
55301         * modules/posixtm-tests (Files): Likewise.
55302         * modules/pread-tests (Files): Likewise.
55303         * modules/printf-frexp-tests (Files): Likewise.
55304         * modules/printf-frexpl-tests (Files): Likewise.
55305         * modules/printf-posix-tests (Files): Likewise.
55306         * modules/priv-set-tests (Files): Likewise.
55307         * modules/quotearg-tests (Files): Likewise.
55308         * modules/random_r-tests (Files): Likewise.
55309         * modules/rawmemchr-tests (Files): Likewise.
55310         * modules/rbtree-list-tests (Files): Likewise.
55311         * modules/rbtree-oset-tests (Files): Likewise.
55312         * modules/rbtreehash-list-tests (Files): Likewise.
55313         * modules/readlink-tests (Files): Likewise.
55314         * modules/remove-tests (Files): Likewise.
55315         * modules/rename-tests (Files): Likewise.
55316         * modules/renameat-tests (Files): Likewise.
55317         * modules/rmdir-tests (Files): Likewise.
55318         * modules/round-tests (Files): Likewise.
55319         * modules/roundf-tests (Files): Likewise.
55320         * modules/roundl-tests (Files): Likewise.
55321         * modules/safe-alloc-tests (Files): Likewise.
55322         * modules/setenv-tests (Files): Likewise.
55323         * modules/sigaction-tests (Files): Likewise.
55324         * modules/signbit-tests (Files): Likewise.
55325         * modules/sleep-tests (Files): Likewise.
55326         * modules/snprintf-posix-tests (Files): Likewise.
55327         * modules/snprintf-tests (Files): Likewise.
55328         * modules/sprintf-posix-tests (Files): Likewise.
55329         * modules/stat-tests (Files): Likewise.
55330         * modules/stat-time-tests (Files): Likewise.
55331         * modules/strcasestr-tests (Files): Likewise.
55332         * modules/strchrnul-tests (Files): Likewise.
55333         * modules/strerror-tests (Files): Likewise.
55334         * modules/striconv-tests (Files): Likewise.
55335         * modules/striconveh-tests (Files): Likewise.
55336         * modules/striconveha-tests (Files): Likewise.
55337         * modules/strsignal-tests (Files): Likewise.
55338         * modules/strstr-tests (Files): Likewise.
55339         * modules/strtod-tests (Files): Likewise.
55340         * modules/strverscmp-tests (Files): Likewise.
55341         * modules/symlink-tests (Files): Likewise.
55342         * modules/symlinkat-tests (Files): Likewise.
55343         * modules/trunc-tests (Files): Likewise.
55344         * modules/truncf-tests (Files): Likewise.
55345         * modules/truncl-tests (Files): Likewise.
55346         * modules/uname-tests (Files): Likewise.
55347         * modules/unicase/cased-tests (Files): Likewise.
55348         * modules/unicase/ignorable-tests (Files): Likewise.
55349         * modules/unicase/locale-language-tests (Files): Likewise.
55350         * modules/unicase/tolower-tests (Files): Likewise.
55351         * modules/unicase/totitle-tests (Files): Likewise.
55352         * modules/unicase/toupper-tests (Files): Likewise.
55353         * modules/unicase/u8-casecmp-tests (Files): Likewise.
55354         * modules/unicase/u8-casecoll-tests (Files): Likewise.
55355         * modules/unicase/u8-casefold-tests (Files): Likewise.
55356         * modules/unicase/u8-is-cased-tests (Files): Likewise.
55357         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
55358         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
55359         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
55360         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
55361         * modules/unicase/u8-tolower-tests (Files): Likewise.
55362         * modules/unicase/u8-totitle-tests (Files): Likewise.
55363         * modules/unicase/u8-toupper-tests (Files): Likewise.
55364         * modules/unicase/u16-casecmp-tests (Files): Likewise.
55365         * modules/unicase/u16-casecoll-tests (Files): Likewise.
55366         * modules/unicase/u16-casefold-tests (Files): Likewise.
55367         * modules/unicase/u16-is-cased-tests (Files): Likewise.
55368         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
55369         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
55370         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
55371         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
55372         * modules/unicase/u16-tolower-tests (Files): Likewise.
55373         * modules/unicase/u16-totitle-tests (Files): Likewise.
55374         * modules/unicase/u16-toupper-tests (Files): Likewise.
55375         * modules/unicase/u32-casecmp-tests (Files): Likewise.
55376         * modules/unicase/u32-casecoll-tests (Files): Likewise.
55377         * modules/unicase/u32-casefold-tests (Files): Likewise.
55378         * modules/unicase/u32-is-cased-tests (Files): Likewise.
55379         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
55380         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
55381         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
55382         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
55383         * modules/unicase/u32-tolower-tests (Files): Likewise.
55384         * modules/unicase/u32-totitle-tests (Files): Likewise.
55385         * modules/unicase/u32-toupper-tests (Files): Likewise.
55386         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
55387         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
55388         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
55389         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
55390         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
55391         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
55392         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
55393         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
55394         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
55395         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
55396         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
55397         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
55398         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
55399         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
55400         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
55401         * modules/unictype/bidicategory-name-tests (Files): Likewise.
55402         * modules/unictype/bidicategory-of-tests (Files): Likewise.
55403         * modules/unictype/bidicategory-test-tests (Files): Likewise.
55404         * modules/unictype/block-list-tests (Files): Likewise.
55405         * modules/unictype/block-of-tests (Files): Likewise.
55406         * modules/unictype/block-test-tests (Files): Likewise.
55407         * modules/unictype/category-C-tests (Files): Likewise.
55408         * modules/unictype/category-Cc-tests (Files): Likewise.
55409         * modules/unictype/category-Cf-tests (Files): Likewise.
55410         * modules/unictype/category-Cn-tests (Files): Likewise.
55411         * modules/unictype/category-Co-tests (Files): Likewise.
55412         * modules/unictype/category-Cs-tests (Files): Likewise.
55413         * modules/unictype/category-L-tests (Files): Likewise.
55414         * modules/unictype/category-Ll-tests (Files): Likewise.
55415         * modules/unictype/category-Lm-tests (Files): Likewise.
55416         * modules/unictype/category-Lo-tests (Files): Likewise.
55417         * modules/unictype/category-Lt-tests (Files): Likewise.
55418         * modules/unictype/category-Lu-tests (Files): Likewise.
55419         * modules/unictype/category-M-tests (Files): Likewise.
55420         * modules/unictype/category-Mc-tests (Files): Likewise.
55421         * modules/unictype/category-Me-tests (Files): Likewise.
55422         * modules/unictype/category-Mn-tests (Files): Likewise.
55423         * modules/unictype/category-N-tests (Files): Likewise.
55424         * modules/unictype/category-Nd-tests (Files): Likewise.
55425         * modules/unictype/category-Nl-tests (Files): Likewise.
55426         * modules/unictype/category-No-tests (Files): Likewise.
55427         * modules/unictype/category-P-tests (Files): Likewise.
55428         * modules/unictype/category-Pc-tests (Files): Likewise.
55429         * modules/unictype/category-Pd-tests (Files): Likewise.
55430         * modules/unictype/category-Pe-tests (Files): Likewise.
55431         * modules/unictype/category-Pf-tests (Files): Likewise.
55432         * modules/unictype/category-Pi-tests (Files): Likewise.
55433         * modules/unictype/category-Po-tests (Files): Likewise.
55434         * modules/unictype/category-Ps-tests (Files): Likewise.
55435         * modules/unictype/category-S-tests (Files): Likewise.
55436         * modules/unictype/category-Sc-tests (Files): Likewise.
55437         * modules/unictype/category-Sk-tests (Files): Likewise.
55438         * modules/unictype/category-Sm-tests (Files): Likewise.
55439         * modules/unictype/category-So-tests (Files): Likewise.
55440         * modules/unictype/category-Z-tests (Files): Likewise.
55441         * modules/unictype/category-Zl-tests (Files): Likewise.
55442         * modules/unictype/category-Zp-tests (Files): Likewise.
55443         * modules/unictype/category-Zs-tests (Files): Likewise.
55444         * modules/unictype/category-and-not-tests (Files): Likewise.
55445         * modules/unictype/category-and-tests (Files): Likewise.
55446         * modules/unictype/category-byname-tests (Files): Likewise.
55447         * modules/unictype/category-name-tests (Files): Likewise.
55448         * modules/unictype/category-none-tests (Files): Likewise.
55449         * modules/unictype/category-of-tests (Files): Likewise.
55450         * modules/unictype/category-or-tests (Files): Likewise.
55451         * modules/unictype/category-test-withtable-tests (Files): Likewise.
55452         * modules/unictype/combining-class-tests (Files): Likewise.
55453         * modules/unictype/ctype-alnum-tests (Files): Likewise.
55454         * modules/unictype/ctype-alpha-tests (Files): Likewise.
55455         * modules/unictype/ctype-blank-tests (Files): Likewise.
55456         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
55457         * modules/unictype/ctype-digit-tests (Files): Likewise.
55458         * modules/unictype/ctype-graph-tests (Files): Likewise.
55459         * modules/unictype/ctype-lower-tests (Files): Likewise.
55460         * modules/unictype/ctype-print-tests (Files): Likewise.
55461         * modules/unictype/ctype-punct-tests (Files): Likewise.
55462         * modules/unictype/ctype-space-tests (Files): Likewise.
55463         * modules/unictype/ctype-upper-tests (Files): Likewise.
55464         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
55465         * modules/unictype/decimal-digit-tests (Files): Likewise.
55466         * modules/unictype/digit-tests (Files): Likewise.
55467         * modules/unictype/mirror-tests (Files): Likewise.
55468         * modules/unictype/numeric-tests (Files): Likewise.
55469         * modules/unictype/property-alphabetic-tests (Files): Likewise.
55470         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
55471         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
55472         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
55473         Likewise.
55474         * modules/unictype/property-bidi-block-separator-tests (Files):
55475         Likewise.
55476         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
55477         Likewise.
55478         * modules/unictype/property-bidi-common-separator-tests (Files):
55479         Likewise.
55480         * modules/unictype/property-bidi-control-tests (Files): Likewise.
55481         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
55482         Likewise.
55483         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
55484         Likewise.
55485         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
55486         Likewise.
55487         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
55488         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
55489         Likewise.
55490         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
55491         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
55492         Likewise.
55493         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
55494         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
55495         * modules/unictype/property-bidi-segment-separator-tests (Files):
55496         Likewise.
55497         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
55498         * modules/unictype/property-byname-tests (Files): Likewise.
55499         * modules/unictype/property-combining-tests (Files): Likewise.
55500         * modules/unictype/property-composite-tests (Files): Likewise.
55501         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
55502         * modules/unictype/property-dash-tests (Files): Likewise.
55503         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
55504         * modules/unictype/property-default-ignorable-code-point-tests (Files):
55505         Likewise.
55506         * modules/unictype/property-deprecated-tests (Files): Likewise.
55507         * modules/unictype/property-diacritic-tests (Files): Likewise.
55508         * modules/unictype/property-extender-tests (Files): Likewise.
55509         * modules/unictype/property-format-control-tests (Files): Likewise.
55510         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
55511         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
55512         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
55513         * modules/unictype/property-hex-digit-tests (Files): Likewise.
55514         * modules/unictype/property-hyphen-tests (Files): Likewise.
55515         * modules/unictype/property-id-continue-tests (Files): Likewise.
55516         * modules/unictype/property-id-start-tests (Files): Likewise.
55517         * modules/unictype/property-ideographic-tests (Files): Likewise.
55518         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
55519         * modules/unictype/property-ids-trinary-operator-tests (Files):
55520         Likewise.
55521         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
55522         * modules/unictype/property-iso-control-tests (Files): Likewise.
55523         * modules/unictype/property-join-control-tests (Files): Likewise.
55524         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
55525         * modules/unictype/property-line-separator-tests (Files): Likewise.
55526         * modules/unictype/property-logical-order-exception-tests (Files):
55527         Likewise.
55528         * modules/unictype/property-lowercase-tests (Files): Likewise.
55529         * modules/unictype/property-math-tests (Files): Likewise.
55530         * modules/unictype/property-non-break-tests (Files): Likewise.
55531         * modules/unictype/property-not-a-character-tests (Files): Likewise.
55532         * modules/unictype/property-numeric-tests (Files): Likewise.
55533         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
55534         * modules/unictype/property-other-default-ignorable-code-point-tests
55535         (Files): Likewise.
55536         * modules/unictype/property-other-grapheme-extend-tests (Files):
55537         Likewise.
55538         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
55539         * modules/unictype/property-other-id-start-tests (Files): Likewise.
55540         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
55541         * modules/unictype/property-other-math-tests (Files): Likewise.
55542         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
55543         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
55544         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
55545         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
55546         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
55547         * modules/unictype/property-private-use-tests (Files): Likewise.
55548         * modules/unictype/property-punctuation-tests (Files): Likewise.
55549         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
55550         * modules/unictype/property-radical-tests (Files): Likewise.
55551         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
55552         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
55553         * modules/unictype/property-space-tests (Files): Likewise.
55554         * modules/unictype/property-terminal-punctuation-tests (Files):
55555         Likewise.
55556         * modules/unictype/property-test-tests (Files): Likewise.
55557         * modules/unictype/property-titlecase-tests (Files): Likewise.
55558         * modules/unictype/property-unassigned-code-value-tests (Files):
55559         Likewise.
55560         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
55561         * modules/unictype/property-uppercase-tests (Files): Likewise.
55562         * modules/unictype/property-variation-selector-tests (Files): Likewise.
55563         * modules/unictype/property-white-space-tests (Files): Likewise.
55564         * modules/unictype/property-xid-continue-tests (Files): Likewise.
55565         * modules/unictype/property-xid-start-tests (Files): Likewise.
55566         * modules/unictype/property-zero-width-tests (Files): Likewise.
55567         * modules/unictype/scripts-tests (Files): Likewise.
55568         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
55569         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
55570         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
55571         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
55572         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
55573         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
55574         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
55575         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
55576         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
55577         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
55578         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
55579         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
55580         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
55581         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
55582         * modules/uninorm/composition-tests (Files): Likewise.
55583         * modules/uninorm/decomposing-form-tests (Files): Likewise.
55584         * modules/uninorm/decomposition-tests (Files): Likewise.
55585         * modules/uninorm/filter-tests (Files): Likewise.
55586         * modules/uninorm/nfc-tests (Files): Likewise.
55587         * modules/uninorm/nfd-tests (Files): Likewise.
55588         * modules/uninorm/nfkc-tests (Files): Likewise.
55589         * modules/uninorm/nfkd-tests (Files): Likewise.
55590         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
55591         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
55592         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
55593         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
55594         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
55595         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
55596         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
55597         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
55598         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
55599         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
55600         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
55601         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
55602         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
55603         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
55604         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
55605         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
55606         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
55607         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
55608         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
55609         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
55610         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
55611         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
55612         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
55613         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
55614         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
55615         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
55616         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
55617         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
55618         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
55619         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
55620         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
55621         * modules/uniwidth/u8-width-tests (Files): Likewise.
55622         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
55623         * modules/uniwidth/u16-width-tests (Files): Likewise.
55624         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
55625         * modules/uniwidth/u32-width-tests (Files): Likewise.
55626         * modules/uniwidth/width-tests (Files): Likewise.
55627         * modules/unlink-tests (Files): Likewise.
55628         * modules/unsetenv-tests (Files): Likewise.
55629         * modules/usleep-tests (Files): Likewise.
55630         * modules/utimens-tests (Files): Likewise.
55631         * modules/utimensat-tests (Files): Likewise.
55632         * modules/vasnprintf-posix-tests (Files): Likewise.
55633         * modules/vasnprintf-tests (Files): Likewise.
55634         * modules/vasprintf-posix-tests (Files): Likewise.
55635         * modules/vasprintf-tests (Files): Likewise.
55636         * modules/vdprintf-posix-tests (Files): Likewise.
55637         * modules/vfprintf-posix-tests (Files): Likewise.
55638         * modules/vprintf-posix-tests (Files): Likewise.
55639         * modules/vsnprintf-posix-tests (Files): Likewise.
55640         * modules/vsnprintf-tests (Files): Likewise.
55641         * modules/vsprintf-posix-tests (Files): Likewise.
55642         * modules/wcrtomb-tests (Files): Likewise.
55643         * modules/wcsnrtombs-tests (Files): Likewise.
55644         * modules/wcsrtombs-tests (Files): Likewise.
55645         * modules/wctype-tests (Files): Likewise.
55646         * modules/wcwidth-tests (Files): Likewise.
55647         * modules/xmemdup0-tests (Files): Likewise.
55648         * modules/xprintf-posix-tests (Files): Likewise.
55649         * modules/xvasprintf-tests (Files): Likewise.
55651 2009-12-24  Eric Blake  <ebb9@byu.net>
55653         test-nanosleep: fix typo
55654         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
55655         patch.
55656         Reported by Bruno Haible.
55658 2009-12-24  Bruno Haible  <bruno@clisp.org>
55660         Reduce namespace pollution on glibc systems.
55661         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
55662         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
55663         systems.
55664         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
55665         <getopt.h> on glibc systems.
55666         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
55667         systems.
55668         * lib/fcntl.c: Include <unistd.h> here instead.
55670 2009-12-24  Bruno Haible  <bruno@clisp.org>
55672         * lib/stdlib.in.h (includes): Fix typo in today's commit.
55674 2009-12-24  Eric Blake  <ebb9@byu.net>
55676         tests: add signature checks
55677         * tests/signature.h (SIGNATURE_CHECK): New file.
55678         * modules/atexit-tests (Files): Use it.
55679         * modules/btowc-tests (Files): Likewise.
55680         * modules/canonicalize-lgpl-tests (Files): Likewise.
55681         * modules/ceilf-tests (Files): Likewise.
55682         * modules/ceill-tests (Files): Likewise.
55683         * modules/chown-tests (Files): Likewise.
55684         * modules/dprintf-posix-tests (Files): Likewise.
55685         * modules/dup2-tests (Files): Likewise.
55686         * modules/dup3-tests (Files): Likewise.
55687         * modules/duplocale-tests (Files): Likewise.
55688         * modules/fchdir-tests (Files): Likewise.
55689         * modules/fcntl-tests (Files): Likewise.
55690         * modules/fdopendir-tests (Files): Likewise.
55691         * modules/fflush-tests (Files): Likewise.
55692         * modules/flock-tests (Files): Likewise.
55693         * modules/floorf-tests (Files): Likewise.
55694         * modules/floorl-tests (Files): Likewise.
55695         * modules/fnmatch-tests (Files): Likewise.
55696         * modules/fopen-tests (Files): Likewise.
55697         * modules/fprintf-posix-tests (Files): Likewise.
55698         * modules/freopen-tests (Files): Likewise.
55699         * modules/frexp-nolibm-tests (Files): Likewise.
55700         * modules/frexp-tests (Files): Likewise.
55701         * modules/frexpl-nolibm-tests (Files): Likewise.
55702         * modules/frexpl-tests (Files): Likewise.
55703         * modules/fseek-tests (Files): Likewise.
55704         * modules/fseeko-tests (Files): Likewise.
55705         * modules/fsync-tests (Files): Likewise.
55706         * modules/ftell-tests (Files): Likewise.
55707         * modules/ftello-tests (Files): Likewise.
55708         * modules/futimens-tests (Files): Likewise.
55709         * modules/getaddrinfo-tests (Files): Likewise.
55710         * modules/getcwd-tests (Files): Likewise.
55711         * modules/getdelim-tests (Files): Likewise.
55712         * modules/getdtablesize-tests (Files): Likewise.
55713         * modules/getgroups-tests (Files): Likewise.
55714         * modules/gethostname-tests (Files): Likewise.
55715         * modules/getline-tests (Files): Likewise.
55716         * modules/getopt-posix-tests (Files): Likewise.
55717         * modules/gettimeofday-tests (Files): Likewise.
55718         * modules/glob-tests (Files): Likewise.
55719         * modules/iconv-tests (Files): Likewise.
55720         * modules/inet_ntop-tests (Files): Likewise.
55721         * modules/inet_pton-tests (Files): Likewise.
55722         * modules/isblank-tests (Files): Likewise.
55723         * modules/lchown-tests (Files): Likewise.
55724         * modules/ldexpl-tests (Files): Likewise.
55725         * modules/link-tests (Files): Likewise.
55726         * modules/linkat-tests (Files): Likewise.
55727         * modules/lseek-tests (Files): Likewise.
55728         * modules/lstat-tests (Files): Likewise.
55729         * modules/mbrtowc-tests (Files): Likewise.
55730         * modules/mbsinit-tests (Files): Likewise.
55731         * modules/mbsnrtowcs-tests (Files): Likewise.
55732         * modules/mbsrtowcs-tests (Files): Likewise.
55733         * modules/memchr-tests (Files): Likewise.
55734         * modules/memcmp-tests (Files): Likewise.
55735         * modules/memmem-tests (Files): Likewise.
55736         * modules/memrchr-tests (Files): Likewise.
55737         * modules/mkdir-tests (Files): Likewise.
55738         * modules/mkfifo-tests (Files): Likewise.
55739         * modules/mkfifoat-tests (Files): Likewise.
55740         * modules/mknod-tests (Files): Likewise.
55741         * modules/nanosleep-tests (Files): Likewise.
55742         * modules/nl_langinfo-tests (Files): Likewise.
55743         * modules/obstack-printf-tests (Files): Likewise.
55744         * modules/open-tests (Files): Likewise.
55745         * modules/openat-tests (Files): Likewise.
55746         * modules/perror-tests (Files): Likewise.
55747         * modules/pipe2-tests (Files): Likewise.
55748         * modules/poll-tests (Files): Likewise.
55749         * modules/popen-tests (Files): Likewise.
55750         * modules/posix_spawn-tests (Files): Likewise.
55751         * modules/posix_spawnp-tests (Files): Likewise.
55752         * modules/pread-tests (Files): Likewise.
55753         * modules/printf-posix-tests (Files): Likewise.
55754         * modules/pty-tests (Files): Likewise.
55755         * modules/random_r-tests (Files): Likewise.
55756         * modules/rawmemchr-tests (Files): Likewise.
55757         * modules/readlink-tests (Files): Likewise.
55758         * modules/remove-tests (Files): Likewise.
55759         * modules/rename-tests (Files): Likewise.
55760         * modules/renameat-tests (Files): Likewise.
55761         * modules/rmdir-tests (Files): Likewise.
55762         * modules/round-tests (Files): Likewise.
55763         * modules/roundf-tests (Files): Likewise.
55764         * modules/roundl-tests (Files): Likewise.
55765         * modules/select-tests (Files): Likewise.
55766         * modules/setenv-tests (Files): Likewise.
55767         * modules/sigaction-tests (Files): Likewise.
55768         * modules/sleep-tests (Files): Likewise.
55769         * modules/snprintf-posix-tests (Files): Likewise.
55770         * modules/snprintf-tests (Files): Likewise.
55771         * modules/sprintf-posix-tests (Files): Likewise.
55772         * modules/stat-tests (Files): Likewise.
55773         * modules/strcasestr-tests (Files): Likewise.
55774         * modules/strchrnul-tests (Files): Likewise.
55775         * modules/strerror-tests (Files): Likewise.
55776         * modules/strsignal-tests (Files): Likewise.
55777         * modules/strstr-tests (Files): Likewise.
55778         * modules/strtod-tests (Files): Likewise.
55779         * modules/strverscmp-tests (Files): Likewise.
55780         * modules/symlink-tests (Files): Likewise.
55781         * modules/symlinkat-tests (Files): Likewise.
55782         * modules/times-tests (Files): Likewise.
55783         * modules/trunc-tests (Files): Likewise.
55784         * modules/truncf-tests (Files): Likewise.
55785         * modules/truncl-tests (Files): Likewise.
55786         * modules/tsearch-tests (Files): Likewise.
55787         * modules/uname-tests (Files): Likewise.
55788         * modules/unlink-tests (Files): Likewise.
55789         * modules/unsetenv-tests (Files): Likewise.
55790         * modules/usleep-tests (Files): Likewise.
55791         * modules/utimensat-tests (Files): Likewise.
55792         * modules/vasprintf-tests (Files): Likewise.
55793         * modules/vdprintf-posix-tests (Files): Likewise.
55794         * modules/vfprintf-posix-tests (Files): Likewise.
55795         * modules/vprintf-posix-tests (Files): Likewise.
55796         * modules/vsnprintf-posix-tests (Files): Likewise.
55797         * modules/vsnprintf-tests (Files): Likewise.
55798         * modules/vsprintf-posix-tests (Files): Likewise.
55799         * modules/wcrtomb-tests (Files): Likewise.
55800         * modules/wcsnrtombs-tests (Files): Likewise.
55801         * modules/wcsrtombs-tests (Files): Likewise.
55802         * modules/wcwidth-tests (Files): Likewise.
55803         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
55804         * tests/test-isinf.c (isinf): Likewise.
55805         * tests/test-isnan.c (isnan): Likewise.
55806         * tests/test-signbit.c (signbit): Likewise.
55807         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
55808         declaration, either as macro or with correct signature.
55809         (select): Ensure function under test is declared with correct
55810         signature in correct header.
55811         * tests/test-atexit.c (atexit): Likewise.
55812         * tests/test-btowc.c (btowc): Likewise.
55813         * tests/test-canonicalize-lgpl.c (realpath)
55814         (canonicalize_file_name): Likewise.
55815         * tests/test-ceilf1.c (ceilf): Likewise.
55816         * tests/test-ceill.c (ceill): Likewise.
55817         * tests/test-chown.c (chown): Likewise.
55818         * tests/test-dprintf-posix.c (dprintf): Likewise.
55819         * tests/test-dup2.c (dup2): Likewise.
55820         * tests/test-dup3.c (dup3): Likewise.
55821         * tests/test-duplocale.c (duplocale): Likewise.
55822         * tests/test-fchdir.c (fchdir): Likewise.
55823         * tests/test-fchownat.c (fchownat): Likewise.
55824         * tests/test-fcntl.c (fcntl): Likewise.
55825         * tests/test-fdopendir.c (fdopendir): Likewise.
55826         * tests/test-fflush.c (fflush): Likewise.
55827         * tests/test-flock.c (flock): Likewise.
55828         * tests/test-floorf1.c (floorf): Likewise.
55829         * tests/test-floorl.c (floorl): Likewise.
55830         * tests/test-fnmatch.c (fnmatch): Likewise.
55831         * tests/test-fopen.c (fopen): Likewise.
55832         * tests/test-fprintf-posix.c (fprintf): Likewise.
55833         * tests/test-freopen.c (freopen): Likewise.
55834         * tests/test-frexp.c (frexp): Likewise.
55835         * tests/test-frexpl.c (frexpl): Likewise.
55836         * tests/test-fseek.c (fseek): Likewise.
55837         * tests/test-fseeko.c (fseeko): Likewise.
55838         * tests/test-fstatat.c (fstatat): Likewise.
55839         * tests/test-fsync.c (fsync): Likewise.
55840         * tests/test-ftell.c (ftell): Likewise.
55841         * tests/test-ftello.c (ftello): Likewise.
55842         * tests/test-futimens.c (futimens): Likewise.
55843         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
55844         (gai_strerror): Likewise.
55845         * tests/test-getcwd.c (getcwd): Likewise.
55846         * tests/test-getdelim.c (getdelim): Likewise.
55847         * tests/test-getdtablesize.c (getdtablesize): Likewise.
55848         * tests/test-getgroups.c (getgroups): Likewise.
55849         * tests/test-gethostname.c (gethostname): Likewise.
55850         * tests/test-getline.c (getline): Likewise.
55851         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
55852         Likewise.
55853         * tests/test-gettimeofday.c (gettimeofday): Likewise.
55854         * tests/test-glob.c (glob, globfree): Likewise.
55855         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
55856         * tests/test-inet_ntop.c (inet_ntop): Likewise.
55857         * tests/test-inet_pton.c (inet_pton): Likewise.
55858         * tests/test-isblank.c (isblank): Likewise.
55859         * tests/test-lchown.c (lchown): Likewise.
55860         * tests/test-ldexpl.c (ldexpl): Likewise.
55861         * tests/test-link.c (link): Likewise.
55862         * tests/test-linkat.c (linkat): Likewise.
55863         * tests/test-lseek.c (lseek): Likewise.
55864         * tests/test-lstat.c (lstat): Likewise.
55865         * tests/test-mbrtowc.c (mbrtowc): Likewise.
55866         * tests/test-mbsinit.c (mbsinit): Likewise.
55867         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
55868         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
55869         * tests/test-memchr.c (memchr): Likewise.
55870         * tests/test-memcmp.c (memcmp): Likewise.
55871         * tests/test-memmem.c (memmem): Likewise.
55872         * tests/test-memrchr.c (memrchr): Likewise.
55873         * tests/test-mkdir.c (mkdir): Likewise.
55874         * tests/test-mkdirat.c (mkdirat): Likewise.
55875         * tests/test-mkfifo.c (mkfifo): Likewise.
55876         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
55877         * tests/test-mknod.c (mknod): Likewise.
55878         * tests/test-nanosleep.c (nanosleep): Likewise.
55879         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
55880         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
55881         Likewise.
55882         * tests/test-open.c (open): Likewise.
55883         * tests/test-openat.c (openat): Likewise.
55884         * tests/test-perror.c (perror): Likewise.
55885         * tests/test-pipe2.c (pipe2): Likewise.
55886         * tests/test-poll.c (poll): Likewise.
55887         * tests/test-popen.c (popen, pclose): Likewise.
55888         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
55889         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
55890         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
55891         (posix_spawn_file_actions_destroy)
55892         (posix_spawn_file_actions_addclose)
55893         (posix_spawn_file_actions_addopen)
55894         (posix_spawn_file_actions_adddup2): Likewise.
55895         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
55896         * tests/test-pread.c (pread): Likewise.
55897         * tests/test-printf-posix.c (printf): Likewise.
55898         * tests/test-pty.c (openpty, forkpty): Likewise.
55899         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
55900         (random_r): Likewise.
55901         * tests/test-rawmemchr.c (rawmemchr): Likewise.
55902         * tests/test-readlink.c (readlink): Likewise.
55903         * tests/test-remove.c (remove): Likewise.
55904         * tests/test-rename.c (rename): Likewise.
55905         * tests/test-renameat.c (renameat): Likewise.
55906         * tests/test-rmdir.c (rmdir): Likewise.
55907         * tests/test-round1.c (round): Likewise.
55908         * tests/test-roundf1.c (roundf): Likewise.
55909         * tests/test-roundl.c (roundl): Likewise.
55910         * tests/test-setenv.c (setenv): Likewise.
55911         * tests/test-sigaction.c (sigaction): Likewise.
55912         * tests/test-sleep.c (sleep): Likewise.
55913         * tests/test-snprintf.c (snprintf): Likewise.
55914         * tests/test-sprintf-posix.c (sprintf): Likewise.
55915         * tests/test-stat.c (stat): Likewise.
55916         * tests/test-stpncpy.c (stpncpy): Likewise.
55917         * tests/test-strcasestr.c (strcasestr): Likewise.
55918         * tests/test-strchrnul.c (strchrnul): Likewise.
55919         * tests/test-strerror.c (strerror): Likewise.
55920         * tests/test-strsignal.c (strsignal): Likewise.
55921         * tests/test-strstr.c (strstr): Likewise.
55922         * tests/test-strtod.c (strtod): Likewise.
55923         * tests/test-strverscmp.c (strverscmp): Likewise.
55924         * tests/test-symlink.c (symlink): Likewise.
55925         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
55926         * tests/test-times.c (times): Likewise.
55927         * tests/test-trunc1.c (trunc): Likewise.
55928         * tests/test-truncf1.c (truncf): Likewise.
55929         * tests/test-truncl.c (truncl): Likewise.
55930         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
55931         Likewise.
55932         * tests/test-uname.c (uname): Likewise.
55933         * tests/test-unlink.c (unlink): Likewise.
55934         * tests/test-unlinkat.c (unlinkat): Likewise.
55935         * tests/test-unsetenv.c (unsetenv): Likewise.
55936         * tests/test-usleep.c (usleep): Likewise.
55937         * tests/test-utimensat.c (utimensat): Likewise.
55938         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
55939         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
55940         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
55941         * tests/test-vprintf-posix.c (vprintf): Likewise.
55942         * tests/test-vsnprintf.c (vsnprintf): Likewise.
55943         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
55944         * tests/test-wcrtomb.c (wcrtomb): Likewise.
55945         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
55946         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
55947         * tests/test-wcwidth.c (wcwidth): Likewise.
55949         build: pull in conditional headers during GNULIB_POSIXCHECK
55950         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
55951         definitions from any conditionally-included headers.
55952         * lib/stdlib.in.h (includes): Likewise.
55953         * lib/unistd.in.h (includes): Likewise.
55955 2009-12-24  Bruno Haible  <bruno@clisp.org>
55957         * tests/test-argv-iter.c: Include header file being tested immediately
55958         after config.h.
55959         * tests/test-base64.c: Likewise.
55960         * tests/test-flock.c: Likewise.
55961         * tests/test-fsync.c: Likewise.
55962         * tests/test-getdate.c: Likewise.
55963         * tests/test-getndelim2.c: Likewise.
55964         * tests/test-isfinite.c: Likewise.
55965         * tests/test-isinf.c: Likewise.
55966         * tests/test-strerror.c: Likewise.
55967         * tests/test-strsignal.c: Likewise.
55969 2009-12-23  Eric Blake  <ebb9@byu.net>
55971         unistd: work around cygwin bug
55972         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
55973         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
55974         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55976 2009-12-23  Bruno Haible  <bruno@clisp.org>
55978         localename: More tests.
55979         * tests/test-localename.c (SIZEOF): New macro.
55980         (categories): New variable.
55981         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
55982         test_locale_name_default): Add test w.r.t. thread locale.
55983         (test_locale_name_thread): New function.
55984         (main): Invoke it.
55986         localename: Make aware of thread locale.
55987         * lib/localename.h (gl_locale_name_thread): New declaration.
55988         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
55989         behaviour with respect to thread locale.
55990         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
55991         <langinfo.h>, glthread/lock.h.
55992         (SIZE_BITS): New macro.
55993         (string_hash): New function.
55994         (struct hash_node): New type.
55995         (HASH_TABLE_SIZE): New macro.
55996         (struniq_hash_table, struniq_lock): New variables.
55997         (struniq): New function.
55998         (gl_locale_name_thread): New function.
55999         (gl_locale_name): Invoke it.
56000         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
56001         * modules/localename (Depends-on): Add lock.
56002         Reported by Mike Gran <spk121@yahoo.com>.
56004 2009-12-23  Eric Blake  <ebb9@byu.net>
56006         va-args: new module
56007         * modules/va-args: New file.
56008         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
56009         * MODULES.html.sh (Core language properties): Mention it.
56011         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
56012         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
56013         named alias for __attribute__((__unused__)).
56014         * lib/chown.c: Update client.
56015         * lib/fchmodat.c: Likewise.
56016         * lib/fts.c: Likewise.
56017         * lib/getdate.y: Likewise.
56018         * lib/getgroups.c: Likewise.
56019         * lib/getopt.c: Likewise.
56020         * lib/getugroups.c: Likewise.
56021         * lib/mkdir.c: Likewise.
56022         * lib/mkfifo.c: Likewise.
56023         * lib/mkfifoat.c: Likewise.
56024         * lib/mknod.c: Likewise.
56025         * lib/mknodat.c: Likewise.
56026         * lib/readlink.c: Likewise.
56027         * lib/se-context.in.h: Likewise.
56028         * lib/se-selinux.in.h: Likewise.
56029         * lib/sockets.c: Likewise.
56030         * lib/symlink.c: Likewise.
56031         * lib/symlinkat.c: Likewise.
56032         * lib/unicodeio.c: Likewise.
56033         * lib/unistr.h: Likewise.
56034         * tests/test-areadlink.c: Likewise.
56035         * tests/test-areadlinkat.c: Likewise.
56036         * tests/test-filenamecat.c: Likewise.
56037         * tests/test-fseeko.c: Likewise.
56038         * tests/test-ftello.c: Likewise.
56039         * tests/test-getdate.c: Likewise.
56040         * tests/test-getgroups.c: Likewise.
56041         * tests/test-gethostname.c: Likewise.
56042         * tests/test-quotearg.c: Likewise.
56043         * tests/test-version-etc.c: Likewise.
56044         * tests/test-xalloc-die.c: Likewise.
56045         * tests/test-xfprintf-posix.c: Likewise.
56046         * tests/test-xprintf-posix.c: Likewise.
56047         * tests/test-xvasprintf.c: Likewise.
56049         tests: avoid compiler warnings
56050         * tests/test-fcntl.c (main): Delete unused parameters.
56051         * tests/test-freopen-safer.c (main): Likewise.
56052         * tests/test-xalloc-die.c (main): Mark unused parameters.
56053         * tests/test-fseeko.c (main): Likewise.
56054         * tests/test-ftello.c (main): Likewise.
56055         * tests/test-nanosleep.c (main): Avoid declaration warning.
56056         * tests/test-sleep.c (main): Likewise.
56057         * tests/test-unsetenv.c (main): Silence warning about string
56058         literal.
56059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
56061 2009-12-23  Bruno Haible  <bruno@clisp.org>
56063         * tests/test-localename.c (test_locale_name): New function, extracted
56064         from main. Also test mixed situations.
56065         (test_locale_name_posix, test_locale_name_environ,
56066         test_locale_name_default): New functions.
56067         (main): Invoke them all.
56068         * modules/localename-tests (configure.ac): Test for newlocale.
56070 2009-12-23  Bruno Haible  <bruno@clisp.org>
56072         unistd: Ensure getcwd gets declared before being overridden.
56073         * lib/unistd.in.h: Conditionally include <io.h>.
56075 2009-12-22  Bruno Haible  <bruno@clisp.org>
56077         wchar: Diagnose broken combination of glibc and gcc versions and flags.
56078         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
56079         (gl_WCHAR_H): Invoke it.
56080         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
56081         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
56082         Reported by Karl Berry <karl@freefriends.org>.
56084 2009-12-22  Eric Blake  <ebb9@byu.net>
56086         math, unistd: avoid redundant includes
56087         * lib/math.in.h (isnan): No need to re-include <math.h>.
56088         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
56090         getsubopt: work around cygwin bug
56091         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
56092         avoid conflicting with system getsubopt.
56093         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
56094         bug.
56096         getopt: synchronize from glibc
56097         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
56098         parameter order.  Adjust all callers.
56099         (_getopt_internal_r, main): Adjust quoting in error messages.
56100         Drop considerations for outdated POSIX 1003.2 error message.
56101         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
56102         callers.
56103         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
56105         test-getopt: test stderr behavior
56106         * modules/getopt-posix-tests (Depends-on): Add dup2.
56107         * tests/test-getopt.c (ASSERT): Avoid stderr.
56108         (main): Move stderr to a temporary file.
56109         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
56110         Instead, add parameter to inform caller if output occurred.
56111         (test_getopt): Adjust all existing tests to expect silence, and
56112         add new tests of leading ":".
56113         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56114         glibc shortcomings with leading "-:" or "+:" in optstring.
56115         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56116         Likewise.
56117         * doc/posix-functions/getopt.texi (getopt): Likewise.
56119         test-getopt: enhance test
56120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
56121         supports optind=0.
56122         * tests/test-getopt.c (OPTIND_MIN): Move...
56123         * tests/test-getopt.h (OPTIND_MIN): ...here.
56124         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
56125         Require that optind=0 works, since modern BSD supports it in
56126         addition to optreset, and since coreutils expects it.
56127         (test_getopt_long_only): New test.
56128         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56129         glibc shortcomings with 'W;', and enforcement of optind=0.
56130         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56131         Likewise.
56133 2009-12-21  Bruno Haible  <bruno@clisp.org>
56135         localename: Improvements for MacOS X and Cygwin.
56136         * lib/localename.h (gl_locale_name_environ): New declaration.
56137         * lib/localename.c (gl_locale_name_environ): New function, extracted from
56138         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
56139         (gl_locale_name_posix): Invoke it.
56140         (gl_locale_name_default): Add comments. Use Windows native API also on
56141         Cygwin.
56143 2009-12-21  Bruno Haible  <bruno@clisp.org>
56145         Update list of Win32 locale ids.
56146         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
56147         (LANG_SAMI): Renamed from LANG_SAAMI.
56148         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
56149         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
56150         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
56151         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
56152         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
56153         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
56154         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
56155         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
56156         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
56157         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
56158         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
56159         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
56160         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
56161         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
56162         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
56163         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
56164         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
56165         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
56166         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
56167         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
56168         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
56169         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
56170         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
56171         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
56172         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
56173         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
56174         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
56175         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
56176         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
56177         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
56178         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
56179         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
56180         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
56181         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
56182         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
56183         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
56184         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
56185         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
56186         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
56187         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
56188         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
56189         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
56190         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
56191         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
56192         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
56193         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
56194         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
56195         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
56196         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
56197         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
56198         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
56199         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
56200         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
56201         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
56202         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
56203         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
56204         Add more languages and countries for Sami, Sorbian. Add more countries
56205         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
56206         for Pashto. Change country for Syriac, Tswana.
56208 2009-12-21  Eric Blake  <ebb9@byu.net>
56210         test-utimens: avoid spurious failure
56211         * tests/test-chown.h (nap): Factor...
56212         * tests/nap.h: ...into new file.
56213         * tests/test-lchown.h (nap): Avoid duplication.
56214         * tests/test-utimens-common.h (nap): Use shared implementation,
56215         necessary on file systems with 1-second resolution.
56216         * modules/chown-tests (Files): Include new file.
56217         * modules/fdutimensat-tests (Files): Likewise.
56218         * modules/futimens-tests (Files): Likewise.
56219         * modules/lchown-tests (Files): Likewise.
56220         * modules/openat-tests (Files): Likewise.
56221         * modules/utimens-tests (Files): Likewise.
56222         * modules/utimensat-tests (Files): Likewise.
56224 2009-12-19  Eric Blake  <ebb9@byu.net>
56226         futimens, utimensat: work around Linux bug
56227         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
56228         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56229         * lib/utimensat.c (rpl_utimensat): Work around it.
56230         * lib/futimens.c (rpl_futimens): Adjust comment.
56232         utimens: work around Linux ctime bug
56233         * lib/utimens.c (detect_ctime_bug): New helper function.
56234         (update_timespec): Differentiate between workaround needed for
56235         this bug vs. what is needed for systems that lack utimensat.
56236         (fdutimens, lutimens): Work around bug.
56238         utimens: check for ctime update
56239         * tests/test-utimens-common.h (check_ctime): Define.
56240         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
56241         * tests/test-futimens.h (test_futimens): Likewise.
56242         * tests/test-lutimens.h (test_lutimens): Likewise.
56243         * doc/posix-functions/futimens.texi (futimens): Document the bug.
56244         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56246 2009-12-19  Bruno Haible  <bruno@clisp.org>
56248         dprintf-posix: Check against memory leak fixed on 2009-12-15.
56249         * tests/test-dprintf-posix2.sh: New file.
56250         * tests/test-dprintf-posix2.c: New file.
56251         * modules/dprintf-posix-tests (Files): Add them.
56252         (configure.ac): Check for getrlimit and setrlimit.
56253         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56255 2009-12-19  Bruno Haible  <bruno@clisp.org>
56257         fprintf-posix: Check against memory leak fixed on 2009-12-15.
56258         * tests/test-fprintf-posix3.sh: New file.
56259         * tests/test-fprintf-posix3.c: New file.
56260         * modules/fprintf-posix-tests (Files): Add them.
56261         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56263 2009-12-19  Eric Blake  <ebb9@byu.net>
56265         dirfd: fix prototype
56266         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
56267         * lib/dirfd.c (dirfd): Likewise.
56269         canonicalize: reduce memory usage
56270         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
56271         allocation to size.
56272         Reported by Solar Designer <solar@openwall.com>.
56274 2009-12-19  Bruno Haible  <bruno@clisp.org>
56276         New module attribute 'Applicability'.
56277         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
56278         * gnulib-tool: New option --extract-applicability.
56279         (func_usage): Document it.
56280         (sed_extract_prog): Recognize it.
56281         (func_get_applicability): New function.
56282         (func_import): Generalize handling of 'link-warning' module.
56283         * modules/link-warning (Applicability): New section.
56284         * modules/arg-nonnull (Applicability): New section.
56285         Repoted by Simon Josefsson <simon@josefsson.org>.
56287 2009-12-19  Bruno Haible  <bruno@clisp.org>
56289         fflush: tweak
56290         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
56291         * lib/fseeko.c (rpl_fseeko): Likewise.
56293 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
56295         * lib/gl_list.h: Fix typo in comment.
56297 2009-12-16  Eric Blake  <ebb9@byu.net>
56299         fcntl: use to simplify other modules
56300         * modules/cloexec (Depends-on): Add fcntl.
56301         * modules/fchdir (Depends-on): Likewise.
56302         * modules/fd-safer-flag (Depends-on): Likewise.
56303         * modules/unistd-safer (Depends-on): Likewise.
56304         * modules/dup3 (configure.ac): Set module indicator.
56305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
56306         missing.
56307         * lib/fchdir.c (_gl_register_dup): Fix comment.
56308         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
56309         * lib/dup-safer.c (dup_safer): Likewise.
56310         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
56311         * lib/dup3.c (dup3): Likewise.
56312         * tests/test-fchdir.c (main): Enhance test.
56313         Fixes a dup_cloexec bug reported by Ondřej Vašík.
56315         fcntl: port portions of fcntl to mingw
56316         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
56317         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
56318         replacement for mingw.
56319         * modules/fcntl (Description): Update.
56320         (Depends-on): Add dup2.
56321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
56322         * modules/fcntl-h (Makefile.am): Substitute it.
56323         * lib/fcntl.in.h (fcntl): Update declaration.
56324         (F_DUPFD, F_GETFD): New macros, when needed.
56325         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56326         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
56327         * tests/test-fcntl.c (check_flags, main): Enhance test for items
56328         we now guarantee.
56330         fcntl: work around cygwin bug in F_DUPFD
56331         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
56332         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
56333         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
56334         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
56335         * doc/posix-functions/fcntl.texi (fcntl): Document it.
56337         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
56338         * modules/fcntl (Files): List new files.
56339         (configure.ac): Run a test.
56340         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
56341         * lib/fcntl.c (rpl_fcntl): Likewise.
56342         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
56343         (gl_FCNTL_H): Always replace fcntl.h.
56344         * modules/fcntl-h (Makefile.am): Substitute witnesses.
56345         * lib/fcntl.in.h (fcntl): Declare replacement.
56346         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
56347         needed, plus a witness.
56348         * doc/posix-functions/fcntl.texi (fcntl): Document this.
56349         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
56350         * tests/test-fcntl.c: New file.
56351         * modules/fcntl-tests: Likewise.
56353         binary-io: avoid potential compilation warning
56354         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
56355         directives.
56357         fflush: avoid compilation error on NetBSD
56358         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
56359         between off_t and fpos_t, since the latter is sometimes a struct.
56360         * lib/fseeko.c (rpl_fseeko): Likewise.
56361         Reported by Alexander Nasonov <alnsn@yandex.ru>.
56363 2009-12-15  Eric Blake  <ebb9@byu.net>
56365         fcntl-h, stdio, sys_ioctl: fix declarations
56366         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
56367         function must not take arguments.
56368         * lib/sys_ioctl.in.h (ioctl): Likewise.
56369         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
56370         (open): Add a link warning.
56372 2009-12-15  Jim Meyering  <meyering@redhat.com>
56374         areadlink, areadlink-with-size: relax license to LGPLv2+
56375         * modules/areadlink (License): Relax to LGPLv2+.
56376         * modules/areadlink-with-size (License): Likewise.
56378 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
56379             Bruno Haible  <bruno@clisp.org>
56381         *printf: Fix memory leak.
56382         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
56383         * lib/vfprintf.c (vfprintf): Likewise.
56384         * lib/dprintf.c (dprintf): Likewise.
56385         * lib/vdprintf.c (vdprintf): Likewise.
56387 2009-12-14  Eric Blake  <ebb9@byu.net>
56389         accept4: adjust module dependencies
56390         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
56392         utimens: one more try at avoiding compiler warning
56393         * lib/utimens.c (lutimens): Lower scope of result.
56395 2009-12-13  Bruno Haible  <bruno@clisp.org>
56397         Move the malloc checking from module 'list' to new module 'xlist'.
56398         * modules/xlist: New file.
56399         * lib/gl_xlist.h: New file.
56400         * lib/gl_xlist.c: New file.
56401         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
56402         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
56403         gl_list_add_last, gl_list_add_before, gl_list_add_after,
56404         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
56405         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
56406         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
56407         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
56408         gl_sortedlist_nx_add): New declarations.
56409         (struct gl_list_implementation): Rename and change methods accordingly.
56410         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
56411         (gl_list_nx_create): Renamed from gl_list_create.
56412         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
56413         (gl_list_nx_set_at): Renamed from gl_list_set_at.
56414         (gl_list_nx_add_first): Renamed from gl_list_add_first.
56415         (gl_list_nx_add_last): Renamed from gl_list_add_last.
56416         (gl_list_nx_add_before): Renamed from gl_list_add_before.
56417         (gl_list_nx_add_after): Renamed from gl_list_add_after.
56418         (gl_list_nx_add_at): Renamed from gl_list_add_at.
56419         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
56420         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
56421         gl_list_create_empty.
56422         (gl_list_nx_create): Renamed from gl_list_create.
56423         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
56424         (gl_list_nx_set_at): Renamed from gl_list_set_at.
56425         (gl_list_nx_add_first): Renamed from gl_list_add_first.
56426         (gl_list_nx_add_last): Renamed from gl_list_add_last.
56427         (gl_list_nx_add_before): Renamed from gl_list_add_before.
56428         (gl_list_nx_add_after): Renamed from gl_list_add_after.
56429         (gl_list_nx_add_at): Renamed from gl_list_add_at.
56430         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
56431         * lib/gl_array_list.c: Don't include xalloc.h.
56432         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
56433         NULL upon out-of-memory.
56434         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
56435         out-of-memory.
56436         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
56437         Change return type to 'int'.
56438         (gl_array_nx_set_at): Renamed from gl_array_set_at.
56439         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
56440         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
56441         upon out-of-memory.
56442         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
56443         upon out-of-memory.
56444         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
56445         upon out-of-memory.
56446         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
56447         upon out-of-memory.
56448         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
56449         out-of-memory.
56450         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
56451         Update.
56452         (gl_array_list_implementation): Update.
56453         * lib/gl_carray_list.c: Don't include xalloc.h.
56454         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
56455         Return NULL upon out-of-memory.
56456         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
56457         out-of-memory.
56458         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
56459         Change return type to 'int'.
56460         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
56461         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
56462         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
56463         upon out-of-memory.
56464         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
56465         upon out-of-memory.
56466         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
56467         out-of-memory.
56468         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
56469         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
56470         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
56471         Update.
56472         (gl_carray_list_implementation): Update.
56473         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
56474         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
56475         gl_linked_create_empty. Return NULL upon out-of-memory.
56476         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
56477         out-of-memory.
56478         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
56479         Change return type to 'int'. Return -1 upon out-of-memory.
56480         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
56481         out-of-memory.
56482         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
56483         upon out-of-memory.
56484         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
56485         upon out-of-memory.
56486         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
56487         NULL upon out-of-memory.
56488         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
56489         upon out-of-memory.
56490         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
56491         out-of-memory.
56492         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
56493         Update.
56494         * lib/gl_linked_list.c: Don't include xalloc.h.
56495         (gl_linked_list_implementation): Update.
56496         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
56497         (add_to_bucket): Change return type to 'int'.
56498         (gl_linkedhash_list_implementation): Update.
56499         * lib/gl_anytree_list1.h (free_subtree): New function.
56500         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
56501         gl_tree_create_empty. Return NULL upon out-of-memory.
56502         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
56503         Change return type to 'int'. Return -1 upon out-of-memory.
56504         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
56505         out-of-memory.
56506         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
56507         (gl_tree_remove_node): New function, moved here from
56508         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
56509         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
56510         Update.
56511         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
56512         malloc, not xmalloc. Return NULL upon out-of-memory.
56513         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
56514         out-of-memory.
56515         (gl_tree_remove_node_from_tree): New function, extracted from
56516         gl_tree_remove_node.
56517         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
56518         upon out-of-memory.
56519         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
56520         out-of-memory.
56521         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
56522         upon out-of-memory.
56523         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
56524         upon out-of-memory.
56525         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
56526         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
56527         not xmalloc. Return NULL upon out-of-memory.
56528         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
56529         out-of-memory.
56530         (gl_tree_remove_node_from_tree): New function, extracted from
56531         gl_tree_remove_node.
56532         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
56533         upon out-of-memory.
56534         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
56535         out-of-memory.
56536         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
56537         upon out-of-memory.
56538         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
56539         upon out-of-memory.
56540         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
56541         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
56542         gl_anytree_list1.h before gl_anyavltree_list2.h.
56543         (gl_avltree_list_implementation): Update.
56544         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
56545         gl_anytree_list1.h before gl_anyavltree_list2.h.
56546         (gl_rbtree_list_implementation): Update.
56547         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
56548         Change return type to 'int'. Return -1 upon out-of-memory. Use
56549         __builtin_expect.
56550         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
56551         (gl_avltreehash_list_implementation): Update.
56552         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
56553         (gl_rbtreehash_list_implementation): Update.
56554         * modules/array-list (Depends-on): Remove xalloc.
56555         * modules/carray-list (Depends-on): Likewise.
56556         * modules/linked-list (Depends-on): Likewise.
56557         * modules/linkedhash-list (Depends-on): Likewise.
56558         * modules/avltree-list (Depends-on): Likewise.
56559         * modules/rbtree-list (Depends-on): Likewise.
56560         * modules/avltreehash-list (Depends-on): Likewise.
56561         * modules/rbtreehash-list (Depends-on): Likewise.
56563         * modules/xsublist: New file.
56564         * lib/gl_xsublist.h: New file.
56565         * lib/gl_xsublist.c: New file.
56566         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
56567         (gl_sublist_nx_create): New declaration.
56568         * lib/gl_sublist.c: Don't include xalloc.h.
56569         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
56570         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
56571         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
56572         Change return type to 'int'. Return -1 upon out-of-memory.
56573         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
56574         upon out-of-memory.
56575         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
56576         NULL upon out-of-memory.
56577         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
56578         upon out-of-memory.
56579         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
56580         NULL upon out-of-memory.
56581         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
56582         NULL upon out-of-memory.
56583         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
56584         upon out-of-memory.
56585         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
56586         (gl_sublist_list_implementation): Update.
56587         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
56588         upon out-of-memory.
56589         * modules/sublist (Depends-on): Remove xalloc.
56591         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
56592         * tests/test-carray_list.c: Likewise.
56593         * tests/test-linked_list.c: Likewise.
56594         * tests/test-linkedhash_list.c: Likewise.
56595         * tests/test-avltree_list.c: Likewise.
56596         * tests/test-rbtree_list.c: Likewise.
56597         * tests/test-avltreehash_list.c: Likewise.
56598         * tests/test-rbtreehash_list.c: Likewise.
56599         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
56600         * modules/carray-list-tests (Makefile.am): Likewise.
56601         * modules/linked-list-tests (Makefile.am): Likewise.
56602         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56603         * modules/avltree-list-tests (Makefile.am): Likewise.
56604         * modules/rbtree-list-tests (Makefile.am): Likewise.
56605         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56606         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56608         * NEWS: Mention the changes.
56610         * lib/clean-temp.c: Include gl_xlist.h.
56611         * modules/clean-temp (Depends-on): Add xlist.
56613         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
56614         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
56616         * tests/test-array_oset.c: Include gl_xlist.h.
56617         * modules/array-oset-tests (Depends-on): Add xlist.
56619         Reported by José E. Marchesi <jemarch@gnu.org>.
56621 2009-12-13  Bruno Haible  <bruno@clisp.org>
56623         Move the malloc checking from module 'oset' to new module 'xoset'.
56624         * modules/xoset: New file.
56625         * lib/gl_xoset.h: New file.
56626         * lib/gl_xoset.c: New file.
56627         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
56628         declarations.
56629         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
56630         (struct gl_oset_implementation): Rename and change methods accordingly.
56631         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
56632         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56633         'int'. Mark as __warn_unused_result__.
56634         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
56635         gl_oset_create_empty.
56636         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56637         'int'.
56638         * lib/gl_array_oset.c: Don't include xalloc.h.
56639         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
56640         malloc, not xmalloc.
56641         (grow): Change return type to 'int'. Don't call xalloc_die.
56642         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
56643         to 'int'.
56644         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
56645         'int'.
56646         (gl_array_oset_implementation): Update.
56647         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
56648         gl_tree_create_empty.
56649         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
56650         'int'.
56651         * lib/gl_avltree_oset.c: Don't include xalloc.h.
56652         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56653         xmalloc.
56654         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56655         not xmalloc.
56656         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56657         xmalloc.
56658         (gl_avltree_oset_implementation): Update.
56659         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
56660         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56661         xmalloc.
56662         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56663         not xmalloc.
56664         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56665         xmalloc.
56666         (gl_rbtree_oset_implementation): Update.
56667         * modules/array-oset (Depends-on): Remove xalloc.
56668         * modules/avltree-oset (Depends-on): Likewise.
56669         * modules/rbtree-oset (Depends-on): Likewise.
56670         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
56671         * tests/test-avltree_oset.c: Likewise.
56672         * tests/test-rbtree_oset.c: Likewise.
56673         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56674         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
56675         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56676         * NEWS: Mention the change.
56678 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
56680         maint.mk: allow a project to override release-prep commands
56681         * top/maint.mk (alpha, beta, stable): Move release-preparatory
56682         commands into a new rule.
56683         (release-prep): New rule.
56684         (release-prep-hook): New overridable variable.
56686 2009-12-13  Bruno Haible  <bruno@clisp.org>
56688         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
56690 2009-12-13  Jim Meyering  <meyering@redhat.com>
56692         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
56693         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
56695 2009-12-12  Bruno Haible  <bruno@clisp.org>
56697         duplocale: Tweak.
56698         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
56700 2009-12-12  Karl Berry  <karl@gnu.org>
56702         * config/srclist.txt (strtoll.c): tab changes, no more sync.
56704 2009-12-12  Bruno Haible  <bruno@clisp.org>
56706         * m4/po.m4: Undo incorrect untabification.
56708 2009-12-12  Bruno Haible  <bruno@clisp.org>
56710         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
56711         * modules/c-strtod (Depends-on): Add locale.
56712         * modules/c-strtold (Depends-on): Likewise.
56714 2009-12-12  Bruno Haible  <bruno@clisp.org>
56716         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
56718 2009-12-11  Eric Blake  <ebb9@byu.net>
56720         setenv: relax requirement in light of POSIX ruling
56721         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
56722         not NULL.
56723         * tests/test-setenv.c (main): Relax test.
56724         * tests/test-unsetenv.c (main): Likewise.
56725         * doc/posix-functions/setenv.texi (setenv): Document this.
56726         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56728 2009-12-11  Bruno Haible  <bruno@clisp.org>
56730         New module 'fd-safer-flag'.
56731         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
56732         * lib/dup-safer.c (dup_safer_flag): Remove function.
56733         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
56734         * lib/fd-safer.c (fd_safer_flag): Remove function.
56735         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
56736         * modules/cloexec (configure.ac): Drop indicator macro.
56737         * modules/fd-safer-flag: New file.
56738         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
56739         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
56740         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
56742 2009-12-11  Bruno Haible  <bruno@clisp.org>
56744         Tests for module 'nl_langinfo'.
56745         * modules/nl_langinfo-tests: New file.
56746         * tests/test-nl_langinfo.sh: New file.
56747         * tests/test-nl_langinfo.c: New file.
56749         New module 'nl_langinfo'.
56750         * lib/nl_langinfo.c: New file.
56751         * m4/nl_langinfo.m4: New file.
56752         * modules/nl_langinfo: New file.
56753         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
56755 2009-12-11  Bruno Haible  <bruno@clisp.org>
56757         Tests for module 'langinfo'.
56758         * modules/langinfo-tests: New file.
56759         * tests/test-langinfo.c: New file.
56761         New module 'langinfo'.
56762         * lib/langinfo.in.h: New file.
56763         * m4/langinfo_h.m4: New file.
56764         * modules/langinfo: New file.
56765         * doc/posix-headers/langinfo.texi: Mention the new module.
56767 2009-12-11  Bruno Haible  <bruno@clisp.org>
56769         * lib/config.charset: Untabify.
56771 2009-12-11  Bruno Haible  <bruno@clisp.org>
56773         * modules/unistd-safer (configure.ac): Drop indicator macro.
56775 2009-12-11  Bruno Haible  <bruno@clisp.org>
56777         Move pipe2-safer code to its own file.
56778         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
56779         * lib/pipe-safer.c (pipe2_safer): Remove function.
56780         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
56781         (Makefile.am): Add it to lib_SOURCES.
56783 2009-12-10  Bruno Haible  <bruno@clisp.org>
56785         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
56787 2009-12-10  Bruno Haible  <bruno@clisp.org>
56789         Declare which arguments expect non-NULL values, for GCC and clang.
56790         * build-aux/arg-nonnull.h: New file.
56791         * modules/arg-nonnull: New file.
56792         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
56793         (inet_ntop, inet_pton): Use it.
56794         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
56795         (closedir, dirfd, opendir, scandir, alphasort): Use it.
56796         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
56797         (open, openat): Use it.
56798         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
56799         (fnmatch): Use it.
56800         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
56801         (getopt, getopt_long, getopt_long_only): Use it.
56802         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
56803         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
56804         Use it.
56805         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
56806         (iconv_open): Use it.
56807         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
56808         (strtoimax, strtoumax): Use it.
56809         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
56810         (duplocale): Use it.
56811         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
56812         (frexp, frexpl): Use it.
56813         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
56814         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
56815         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
56816         (tsearch, tfind, tdelete, twalk): Use it.
56817         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
56818         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
56819         sigpending): Use it.
56820         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
56821         (posix_spawn, posix_spawnp, posix_spawnattr_init,
56822         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
56823         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
56824         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
56825         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
56826         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
56827         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
56828         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
56829         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
56830         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
56831         Use it.
56832         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
56833         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
56834         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
56835         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
56836         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
56837         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
56838         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
56839         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
56840         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
56841         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
56842         strtoull, unsetenv): Use it.
56843         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
56844         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
56845         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
56846         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
56847         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
56848         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
56849         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
56850         (strcasecmp, strncasecmp): Use it.
56851         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
56852         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
56853         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
56854         rpl_setsockopt): Use it.
56855         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
56856         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
56857         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
56858         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
56859         (gettimeofday): Use it.
56860         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
56861         (times): Use it.
56862         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
56863         (uname): Use it.
56864         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
56865         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
56866         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
56867         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
56868         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
56869         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
56870         unlinkat, write): Use it.
56871         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
56872         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
56873         * lib/argv-iter.h: Include arg-nonnull.h.
56874         (_ATTRIBUTE_NONNULL_): Remove macro.
56875         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
56876         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
56877         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
56878         optimization.
56879         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
56880         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
56881         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
56882         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
56883         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
56884         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
56885         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
56886         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
56887         * modules/arpa_inet (Depends-on): Add arg-nonnull.
56888         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
56889         * modules/dirent (Depends-on): Add arg-nonnull.
56890         (Makefile.am): Insert arg-nonnull.h into dirent.h.
56891         * modules/fcntl-h (Depends-on): Add arg-nonnull.
56892         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
56893         * modules/fnmatch (Depends-on): Add arg-nonnull.
56894         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
56895         * modules/getopt-posix (Depends-on): Add arg-nonnull.
56896         (Makefile.am): Insert arg-nonnull.h into getopt.h.
56897         * modules/glob (Depends-on): Add arg-nonnull.
56898         (Makefile.am): Insert arg-nonnull.h into glob.h.
56899         * modules/iconv_open (Depends-on): Add arg-nonnull.
56900         (Makefile.am): Insert arg-nonnull.h into iconv.h.
56901         * modules/inttypes (Depends-on): Add arg-nonnull.
56902         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
56903         * modules/locale (Depends-on): Add arg-nonnull.
56904         (Makefile.am): Insert arg-nonnull.h into locale.h.
56905         * modules/math (Depends-on): Add arg-nonnull.
56906         (Makefile.am): Insert arg-nonnull.h into math.h.
56907         * modules/netdb (Depends-on): Add arg-nonnull.
56908         (Makefile.am): Insert arg-nonnull.h into netdb.h.
56909         * modules/search (Depends-on): Add arg-nonnull.
56910         (Makefile.am): Insert arg-nonnull.h into search.h.
56911         * modules/signal (Depends-on): Add arg-nonnull.
56912         (Makefile.am): Insert arg-nonnull.h into signal.h.
56913         * modules/spawn (Depends-on): Add arg-nonnull.
56914         (Makefile.am): Insert arg-nonnull.h into spawn.h.
56915         * modules/stdio (Depends-on): Add arg-nonnull.
56916         (Makefile.am): Insert arg-nonnull.h into stdio.h.
56917         * modules/stdlib (Depends-on): Add arg-nonnull.
56918         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
56919         * modules/string (Depends-on): Add arg-nonnull.
56920         (Makefile.am): Insert arg-nonnull.h into string.h.
56921         * modules/strings (Depends-on): Add arg-nonnull.
56922         (Makefile.am): Insert arg-nonnull.h into strings.h.
56923         * modules/sys_socket (Depends-on): Add arg-nonnull.
56924         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
56925         * modules/sys_stat (Depends-on): Add arg-nonnull.
56926         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
56927         * modules/sys_time (Depends-on): Add arg-nonnull.
56928         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
56929         * modules/sys_times (Depends-on): Add arg-nonnull.
56930         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
56931         * modules/sys_utsname (Depends-on): Add arg-nonnull.
56932         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
56933         * modules/time (Depends-on): Add arg-nonnull.
56934         (Makefile.am): Insert arg-nonnull.h into time.h.
56935         * modules/unistd (Depends-on): Add arg-nonnull.
56936         (Makefile.am): Insert arg-nonnull.h into unistd.h.
56937         * modules/wchar (Depends-on): Add arg-nonnull.
56938         (Makefile.am): Insert arg-nonnull.h into wchar.h.
56939         * modules/argv-iter (Depends-on): Add arg-nonnull.
56940         * tests/test-canonicalize.c (null_ptr): New function.
56941         (main): Use it.
56942         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
56943         (main): Use it.
56944         * tests/test-memmem.c (null_ptr): New function.
56945         (main): Use it.
56946         Reported by Jim Meyering.
56948 2009-12-10  Bruno Haible  <bruno@clisp.org>
56950         Use spaces for indentation, not tabs.
56951         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
56952         * m4/*.m4: Untabify.
56953         * build-aux/*.h: Untabify.
56954         * tests/**/*.[hc]: Untabify.
56955         * README: New section "Indent with spaces, not TABs", based on
56956         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
56957         * NEWS: Mention the change.
56959 2009-12-10  Bruno Haible  <bruno@clisp.org>
56961         pty test: Fix link error.
56962         * modules/pty-tests (Makefile.am): Add the default LDADD value to
56963         test_pty_LDADD.
56965 2009-12-07  Simon Josefsson  <simon@josefsson.org>
56967         * modules/pty: New file.
56968         * modules/pty-tests: New file.
56969         * m4/pty.m4: New file.
56970         * tests/test-pty.c: New file.
56971         * doc/glibc-headers/pty.texi: Modified.
56972         * doc/glibc-functions/forkpty.texi: Modified.
56973         * doc/glibc-functions/openpty.texi: Modified.
56975 2009-12-10  Bruno Haible  <bruno@clisp.org>
56977         Avoid syntax error in C++ mode.
56978         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
56980 2009-12-10  Bruno Haible  <bruno@clisp.org>
56982         Use sed with option -e.
56983         * gnulib-tool (func_version, func_emit_copyright_notice,
56984         func_emit_initmacro_end, func_import, func_create_testdir): Pass
56985         option -e to sed.
56986         * modules/link-warning (Makefile.am): Likewise.
56988 2009-12-10  Jim Meyering  <meyering@redhat.com>
56990         mgetgroups: do not write bytes beyond end of malloc'd buffer
56991         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
56992         username, we call getgroups with a one-element-shorter buffer,
56993         but still told it the length was original, max_n_groups.
56995 2009-12-09  Eric Blake  <ebb9@byu.net>
56997         cloexec: relax license
56998         * modules/cloexec (Maintainer): Add myself.
56999         (License): Use LGPL, not GPL.
57001         link-warning: optimize generation
57002         * modules/link-warning (Makefile.am): Reduce process usage.
57004 2009-12-09  Bruno Haible  <bruno@clisp.org>
57006         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
57007         workaround was added on 2009-11-17.
57009 2009-12-09  Jim Meyering  <meyering@redhat.com>
57010             Bruno Haible  <bruno@clisp.org>
57012         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
57013         * modules/link-warning (Makefile.am): Make the comment-removing sed
57014         command more robust in the face of bootstrap-prepended comment lines.
57016 2009-12-09  Bruno Haible  <bruno@clisp.org>
57018         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
57019         most one group.
57021 2009-12-09  Simon Josefsson  <simon@josefsson.org>
57022             Bruno Haible  <bruno@clisp.org>
57024         * build-aux/link-warning.h: Add copyright notice.
57025         * modules/link-warning (Makefile.am): Generate link-warning.h from
57026         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
57027         * NEWS: Mention change in link-warning module.
57028         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
57029         * modules/dirent (Makefile.am): Add dependency to dirent.h.
57030         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
57031         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
57032         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
57033         * modules/math (Makefile.am): Add dependency to math.h.
57034         * modules/search (Makefile.am): Add dependency to search.h.
57035         * modules/signal (Makefile.am): Add dependency to signal.h.
57036         * modules/spawn (Makefile.am): Add dependency to spawn.h.
57037         * modules/stdio (Makefile.am): Add dependency to stdio.h.
57038         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
57039         * modules/string (Makefile.am): Add dependency to string.h.
57040         * modules/strings (Makefile.am): Add dependency to strings.h.
57041         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
57042         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
57043         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
57044         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
57045         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
57046         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
57047         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
57048         * modules/unistd (Makefile.am): Add dependency to unistd.h.
57049         * modules/wchar (Makefile.am): Add dependency to wchar.h.
57051 2009-12-09  Bruno Haible  <bruno@clisp.org>
57053         fchdir: Optimize away rpl_fstat when possible.
57054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
57055         REPLACE_OPEN_DIRECTORY.
57056         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
57058 2009-12-09  Bruno Haible  <bruno@clisp.org>
57060         * lib/fchdir.c: Update comment.
57062 2009-12-09  Bruno Haible  <bruno@clisp.org>
57064         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
57066 2009-12-08  Eric Blake  <ebb9@byu.net>
57068         fchdir: avoid memory leak on re-registration.
57069         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
57071 2009-12-08  Jim Meyering  <meyering@redhat.com>
57073         init.sh: avoid Solaris 10 /bin/sh portability problem
57074         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
57075         sourced script:
57076           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
57077           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
57078           bar
57079         tests/init.sh relied on that, accepting a --set-path=DIR argument,
57080         and two tests used that idiom.
57081         * tests/init.sh: Update suggested usage comments.
57082         (path_prepend_): New function, to be used in place
57083         of the --src-path=DIR option.
57084         (setup_): Move PATH-prepending code into path_prepend_.
57085         * tests/test-pread.sh: Adapt to new usage.
57086         * tests/test-xalloc-die.sh: Likewise.
57088 2009-12-08  Simon Josefsson  <simon@josefsson.org>
57090         * doc/gnulib.texi (Glibc pty.h): Add.
57091         * doc/glibc-functions/forkpty.texi: Add.
57092         * doc/glibc-functions/openpty.texi: Add.
57093         Suggested by Bruno Haible.
57095 2009-12-08  Eric Blake  <ebb9@byu.net>
57097         fchdir: fix logic bugs
57098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
57099         * tests/test-fchdir.c (main): Enhance test.
57100         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
57101         is in use.
57103         dup2: fix logic bugs
57104         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
57105         REPLACE_DUP2 to decide when rpl_dup2 is needed.
57106         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
57107         exists.
57108         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
57110 2009-12-07  Eric Blake  <ebb9@byu.net>
57112         unlink: fix m4 detection
57113         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
57115         unistd-safer: add unit test
57116         * modules/unistd-safer-tests: New file.
57117         * tests/test-dup-safer.c: Likewise.
57118         * tests/test-cloexec.c (setmode): Avoid compiler warning.
57119         * tests/test-dup2.c (setmode): Likewise.
57120         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
57122         cloexec: preserve text vs. binary across dup_cloexec
57123         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
57124         mode.
57125         * modules/dup2-tests (Depends-on): Add binary-io.
57126         * modules/cloexec-tests (Depends-on): Likewise.
57127         * tests/test-dup2.c (setmode, is_mode): New helpers.
57128         (main): Add tests that translation mode is preserved.
57129         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
57130         Reported by Bruno Haible.
57132         mgetgroups: reduce duplicate listings
57133         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
57134         resulting array.
57135         * tests/test-chown.h (test_chown): Simplify client.
57136         * tests/test-lchown.h (test_lchown): Likewise.
57138 2009-12-06  Bruno Haible  <bruno@clisp.org>
57140         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
57141         value.
57143 2009-12-06  Bruno Haible  <bruno@clisp.org>
57145         * lib/progname.c: Include stdio.h, stdlib.h.
57146         (set_program_name): Reject a NULL argument.
57148 2009-12-05  Eric Blake  <ebb9@byu.net>
57150         pipe2-safer: new module
57151         * modules/pipe2-safer: New file.
57152         * lib/unistd-safer.h (pipe2_safer): New prototype.
57153         * lib/unistd--.h (pipe2): New wrapper.
57154         * lib/pipe-safer.c (pipe2_safer): New function.
57155         * modules/pipe (Depends-on): Add pipe2-safer.
57156         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
57158         stdlib-safer: preserve cloexec flag for mkostemp[s]
57159         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
57160         fd_safer_flag.
57162         unistd-safer: allow preservation of cloexec status via flag
57163         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
57164         prototypes.
57165         * lib/dup-safer.c (dup_safer_flag): New function.
57166         * lib/fd-safer.c (fd_safer_flag): Likewise.
57167         * modules/cloexec (configure.ac): Set witness.
57169         test-dup2: enhance test
57170         * modules/dup2-tests (Depends-on): Add cloexec.
57171         * tests/test-dup2.c (main): Enhance test.
57173         cloexec: add dup_cloexec
57174         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
57175         header and comments.
57176         * lib/cloexec.c (set_cloexec_flag): Add comments.
57177         (dup_cloexec): New function, with mingw implementation borrowed
57178         from...
57179         * lib/w32spawn.h (dup_noinherit): ...here.
57180         * modules/execute (Depends-on): Add cloexec.
57181         * modules/pipe (Depends-on): Likewise.
57182         * modules/cloexec (Depends-on): Add dup2.
57183         * modules/cloexec-tests (Files): New file.
57184         * tests/test-cloexec.c: Likewise.
57186         test-xalloc-die: fix test for mingw
57187         * modules/xalloc-die-tests (Files): Add tests/init.sh.
57188         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
57189         directory and .exe suffix off argv[0] output.
57191         test-fseeko: fix test for mingw
57192         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
57193         than undefining fseek, so test will pass on mingw.
57195 2009-12-05  Bruno Haible  <bruno@clisp.org>
57197         * lib/progname.h (set_program_name): Clarify specification.
57198         * lib/progname.c (set_program_name): Likewise.
57199         Reported by Jim Meyering.
57201 2009-12-05  Jim Meyering  <meyering@redhat.com>
57203         maint.mk: backslash-escape parens in default regexp
57204         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
57205         backslash-escape the literal parentheses.
57207         maint.mk: news-date-check: use grep -E
57208         * top/maint.mk (today): Define a Make variable, not a...
57209         (news-date-check): ...shell variable.
57210         (news-date-regexp): Use the Make variable.
57211         Use grep's -E option.  Change the failing diagnostic to mention
57212         the variable, $(news-date-regexp).
57214 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
57216         maintainer-makefile: allow customization of NEWS entry format
57217         * top/maint.mk (news-date-regexp): New overridable variable.
57218         (news-date-check): Use it.
57220 2009-12-04  Eric Blake  <ebb9@byu.net>
57222         mgetgroups: add xgetgroups, and avoid ENOSYS failures
57223         * lib/mgetgroups.h (xgetgroups): New prototype.
57224         * lib/mgetgroups.c (xgetgroups): New wrapper.
57225         (mgetgroups): Handle ENOSYS.
57226         * modules/mgetgroups (Depends-on): Add realloc.
57227         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
57229         mgetgroups: avoid argument promotion issues with -1
57230         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
57231         for invalid gid_t.
57232         * tests/test-chown.h (getegid, test_chown): Likewise.
57233         * tests/test-lchown.h (getegid, test_lchown): Likewise.
57235 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
57237         exclude: Fix header file problems.
57238         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
57240 2009-12-01  Jim Meyering  <meyering@redhat.com>
57242         fts: fts_open: do not let an empty string cause immediate failure
57243         This is required in support of GNU rm, for which the command
57244         "rm A '' B" must process and remove both A and B, in spite of
57245         the empty string argument.
57246         * lib/fts.c (fts_open): Do not let the presence of an empty string
57247         cause fts_open to fail immediately.  Most fts-using tools must be
57248         able to process all arguments, in order, and can be expected to
57249         diagnose such arguments themselves.
57251 2009-11-30  Eric Blake  <ebb9@byu.net>
57253         utimens: fix compilation error
57254         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
57255         Declare variable at right scope.
57257 2009-11-29  Jim Meyering  <meyering@redhat.com>
57259         bootstrap: handle perl-5.11's changed --version output
57260         * build-aux/bootstrap (get_version): Handle perl separately,
57261         since perl-5.11's --version output is different.
57263 2009-11-28  Jim Meyering  <meyering@redhat.com>
57265         userspec: depend on the inttostr module, too
57266         * modules/userspec (Depends-on): Add inttostr.
57268         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
57269         * lib/userspec.c (parse_with_separator): Do not accept a user ID
57270         number of MAXUID when it evaluates to (uid_t) -1.
57271         Likewise for group ID.  Reported by Matt McCutchen in
57272         <http://savannah.gnu.org/bugs/?28113>
57274         userspec: reformat to use spaces, not TABs
57275         * lib/userspec.c: Expand TABs to spaces.
57276         Add Emacs' "indent-tabs-mode: nil" hint.
57278 2009-11-27  Eric Blake  <ebb9@byu.net>
57280         getopt-gnu: flush out another BSD bug
57281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
57282         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
57283         flush out BSD bug.
57284         * tests/test-getopt.h (test_getopt): End lists with NULL.
57285         * tests/test-getopt_long.h (test_getopt_long): Likewise.
57286         (test_getopt_long_posix): Enhance test.
57287         * modules/getopt-posix-tests (Depends-on): Add stdbool.
57288         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
57289         getopt-gnu.
57290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57291         Likewise.
57293 2009-11-27  Simon Josefsson  <simon@josefsson.org>
57295         * modules/idpriv-droptemp-tests (Notice): Fix text.
57297 2009-11-27  Jim Meyering  <meyering@redhat.com>
57299         test-xalloc-die: avoid spurious failure due to libtool argv difference
57300         In a libtool-enabled project, this test would fail due to a difference
57301         in the emitted program name, e.g.,
57302         -test-xalloc-die: memory exhausted
57303         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
57304         Use program to avoid that.
57305         * modules/xalloc-die-tests (Depends-on): Add progname.
57306         * tests/test-xalloc-die.c: Include progname.h".
57307         (program_name): Remove decl.
57308         (main): Call set_program_name.
57309         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
57311 2009-11-26  Richard Jones  <rjones@redhat.com>
57313         w32sock: leave win32 error in place.
57314         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
57316 2009-11-26  Eric Blake  <ebb9@byu.net>
57318         init.sh: suggest to use skip_ and fail_ functions in comments
57319         * tests/init.sh: Add a sentence.
57321 2009-11-25  Bruno Haible  <bruno@clisp.org>
57323         init.sh: add documentation in comments
57324         * tests/init.sh: Add some developer and user documentation.
57326 2009-11-26  Jim Meyering  <meyering@redhat.com>
57328         init.sh: accommodate even those who specify bogus srcdir manually
57329         * tests/init.sh: Normally, srcdir is guaranteed by automake and
57330         configure-time tests to be sanitized, so that there is no need to
57331         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
57332         (with no double quotes) suffices.  However, since tests may be
57333         invoked manually, and since you may explicitly set srcdir to the
57334         name of a directory containing spaces, do quote its uses here.
57335         * tests/test-pread.sh: Likewise.
57336         Suggested by Bruno Haible.
57338         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
57339         * tests/test-pread.sh: Write no data into the pipe, because
57340         test-pread actually reads none.  This avoids a diagnostic,
57341         "bash: echo: write error: Broken pipe", that arises in the unusual
57342         event something is ignoring SIGPIPE, and might be interpreted
57343         as some sort of failure.  Reported by Bruno Haible.
57345 2009-11-25  Jim Meyering  <meyering@redhat.com>
57347         test-pread: cover failure with ESPIPE and EINVAL
57348         * tests/test-pread.c (main): Test for failure, too.
57349         * tests/test-pread.sh: Invoke with stdin on a pipe.
57350         Suggested by Eric Blake.
57352         pread: improvement and fix
57353         * modules/pread (Depends-on): Depend on lseek, for portability to
57354         e.g., mingw.  Suggested by Eric Blake.
57355         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
57357         unistd.in.h: correct declaration of pread
57358         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
57359         Reported by Richard W.M. Jones.
57361         test-pread.sh: distribute the test script
57362         * modules/pread-tests (Files): Include test-pread.sh.
57364         test-pread.sh: clean up
57365         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
57366         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
57367         That is unnecessary, since it's always ".".
57368         Suggestion from Eric Blake.
57370         test-pread.sh: make executable
57371         * tests/test-pread.sh: Set executable bit.
57372         Reported by Eric Blake.
57374         correct typo in test-pread.sh
57375         * tests/test-pread.sh: Add #! line.
57377         test pread
57378         * tests/test-pread.c: New file.
57379         * tests/test-pread.sh: Likewise.
57380         * modules/pread-tests: Likewise.
57382         pread: new module
57383         * modules/pread: New file.
57384         * lib/unistd.in.h (pread): Define/declare.
57385         * lib/pread.c (pread): New file.
57386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
57387         * modules/unistd (Makefile.am): Substitute witnesses.
57388         * doc/posix-functions/pread.texi (pread): Update.
57389         * MODULES.html.sh: Add pread.
57391 2009-11-25  Jim Meyering  <meyering@redhat.com>
57393         tests/init.sh: new file to be used via most *.sh tests
57394         * tests/init.sh: New file.
57396 2009-11-25  Eric Blake  <ebb9@byu.net>
57398         utimens: work around older Linux failure with symlinks
57399         * lib/utimens.c (lutimensat_works_really): New variable.
57400         (fdutimens, lutimens): Use it to manage kernels that support
57401         nanosecond times on files, but not on symlinks.
57402         Reported by Ondřej Vašík.
57404         utimes: fix configure grammar
57405         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
57407 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
57409         regex: Fix fastmap for multibyte character ranges.
57410         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
57411         characters when a multibyte character range is included.
57413 2009-11-22  Andy Wingo  <wingo@pobox.com>
57415         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
57416         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
57418 2009-11-24  Bruno Haible  <bruno@clisp.org>
57420         doc: Most *_l functions exist in MacOS X 10.5.
57421         * doc/posix-functions/duplocale.texi: Update platforms list.
57422         * doc/posix-functions/freelocale.texi: Likewise.
57423         * doc/posix-functions/newlocale.texi: Likewise.
57424         * doc/posix-functions/uselocale.texi: Likewise.
57425         * doc/posix-functions/isalnum_l.texi: Likewise.
57426         * doc/posix-functions/isalpha_l.texi: Likewise.
57427         * doc/posix-functions/isblank_l.texi: Likewise.
57428         * doc/posix-functions/iscntrl_l.texi: Likewise.
57429         * doc/posix-functions/isdigit_l.texi: Likewise.
57430         * doc/posix-functions/isgraph_l.texi: Likewise.
57431         * doc/posix-functions/islower_l.texi: Likewise.
57432         * doc/posix-functions/isprint_l.texi: Likewise.
57433         * doc/posix-functions/ispunct_l.texi: Likewise.
57434         * doc/posix-functions/isspace_l.texi: Likewise.
57435         * doc/posix-functions/isupper_l.texi: Likewise.
57436         * doc/posix-functions/iswalnum_l.texi: Likewise.
57437         * doc/posix-functions/iswalpha_l.texi: Likewise.
57438         * doc/posix-functions/iswblank_l.texi: Likewise.
57439         * doc/posix-functions/iswcntrl_l.texi: Likewise.
57440         * doc/posix-functions/iswctype_l.texi: Likewise.
57441         * doc/posix-functions/iswdigit_l.texi: Likewise.
57442         * doc/posix-functions/iswgraph_l.texi: Likewise.
57443         * doc/posix-functions/iswlower_l.texi: Likewise.
57444         * doc/posix-functions/iswprint_l.texi: Likewise.
57445         * doc/posix-functions/iswpunct_l.texi: Likewise.
57446         * doc/posix-functions/iswspace_l.texi: Likewise.
57447         * doc/posix-functions/iswupper_l.texi: Likewise.
57448         * doc/posix-functions/iswxdigit_l.texi: Likewise.
57449         * doc/posix-functions/isxdigit_l.texi: Likewise.
57450         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
57451         * doc/posix-functions/strcasecmp_l.texi: Likewise.
57452         * doc/posix-functions/strcoll_l.texi: Likewise.
57453         * doc/posix-functions/strfmon_l.texi: Likewise.
57454         * doc/posix-functions/strftime_l.texi: Likewise.
57455         * doc/posix-functions/strncasecmp_l.texi: Likewise.
57456         * doc/posix-functions/strxfrm_l.texi: Likewise.
57457         * doc/posix-functions/tolower_l.texi: Likewise.
57458         * doc/posix-functions/toupper_l.texi: Likewise.
57459         * doc/posix-functions/towctrans_l.texi: Likewise.
57460         * doc/posix-functions/towlower_l.texi: Likewise.
57461         * doc/posix-functions/towupper_l.texi: Likewise.
57462         * doc/posix-functions/wcscoll_l.texi: Likewise.
57463         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
57464         * doc/posix-functions/wctrans_l.texi: Likewise.
57465         * doc/posix-functions/wctype_l.texi: Likewise.
57466         * doc/glibc-functions/strptime_l.texi: Likewise.
57467         * doc/glibc-functions/strtod_l.texi: Likewise.
57468         * doc/glibc-functions/strtof_l.texi: Likewise.
57469         * doc/glibc-functions/strtol_l.texi: Likewise.
57470         * doc/glibc-functions/strtold_l.texi: Likewise.
57471         * doc/glibc-functions/strtoll_l.texi: Likewise.
57472         * doc/glibc-functions/strtoul_l.texi: Likewise.
57473         * doc/glibc-functions/strtoull_l.texi: Likewise.
57474         * doc/glibc-functions/wcsftime_l.texi: Likewise.
57475         * doc/glibc-functions/wcstod_l.texi: Likewise.
57476         * doc/glibc-functions/wcstof_l.texi: Likewise.
57477         * doc/glibc-functions/wcstol_l.texi: Likewise.
57478         * doc/glibc-functions/wcstold_l.texi: Likewise.
57479         * doc/glibc-functions/wcstoll_l.texi: Likewise.
57480         * doc/glibc-functions/wcstoul_l.texi: Likewise.
57481         * doc/glibc-functions/wcstoull_l.texi: Likewise.
57483 2009-11-24  Bruno Haible  <bruno@clisp.org>
57485         duplocale: Fix logic bug.
57486         * lib/duplocale.c: Don't include <langinfo.h>.
57487         (_NL_LOCALE_NAME): Remove macro.
57488         (rpl_duplocale): Use setlocale instead of nl_langinfo.
57489         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
57491 2009-11-23  Jim Meyering  <meyering@redhat.com>
57493         test-update-copyright: don't hard-code /usr/bin/perl
57494         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
57495         perl to print the current year.  Gilles Espinasse reported that
57496         the replaced use of perl was hard-coded as /usr/bin/perl.
57498 2009-11-23  Bruno Haible  <bruno@clisp.org>
57500         duplocale: Add support for glibc 2.3.x.
57501         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
57503 2009-11-22  Bruno Haible  <bruno@clisp.org>
57505         vasnprintf: Tiny optimization.
57506         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
57507         MacOS X.
57509 2009-11-22  Bruno Haible  <bruno@clisp.org>
57511         Tests for module 'duplocale'.
57512         * modules/duplocale-tests: New file.
57513         * tests/test-duplocale.c: New file.
57515         New module 'duplocale'.
57516         * m4/duplocale.m4: New file.
57517         * lib/locale.in.h (duplocale): New declaration.
57518         * lib/duplocale.c: New file.
57519         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
57520         gl_LOCALE_H_DEFAULTS): New macros.
57521         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
57522         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
57523         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
57524         REPLACE_DUPLOCALE.
57525         * modules/duplocale: New file.
57526         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
57528 2009-11-22  Bruno Haible  <bruno@clisp.org>
57530         * modules/locale-tests (configure.ac): Test for newlocale function.
57531         * tests/test-locale.c: When the system has extended locale functions,
57532         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
57534         locale: Make locale_t available when possible.
57535         * lib/locale.in.h: Include <xlocale.h> when it exists.
57536         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
57537         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
57538         * modules/locale (Depends-on): Add extensions.
57539         (Makefile.am): Also substitute HAVE_XLOCALE_H.
57540         * doc/posix-headers/locale.texi: Document the problem with locale_t.
57542 2009-11-22  Bruno Haible  <bruno@clisp.org>
57544         Add comments.
57545         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
57546         invocation.
57547         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57548         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57549         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57551 2009-11-22  Bruno Haible  <bruno@clisp.org>
57553         error: account for the possibility of freopen (stdout).
57554         * lib/error.c: Include <unistd.h>.
57555         (flush_stdout): New function, extracted from error and error_at_line.
57556         Determine stdout's fd dynamically.
57557         (error, error_at_line): Invoke flush_stdout.
57558         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
57559         * modules/error (Depends-on): Add unistd.
57561 2009-11-22  Bruno Haible  <bruno@clisp.org>
57563         diffseq: Add comment.
57564         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
57566 2009-11-22  Jim Meyering  <meyering@redhat.com>
57568         c-stack: avoid defining an unused static function
57569         * lib/c-stack.c (find_stack_direction): Do not define this function
57570         when it will not be used.
57572         diffseq: avoid spurious gcc warnings
57573         * lib/diffseq.h (IF_LINT2): Define.
57574         (compareseq): Use it to initialize two members of "part".
57575         This avoids two used-uninitialized warnings.
57577 2009-11-21  Jim Meyering  <meyering@redhat.com>
57579         c-stack: avoid "ignoring return value of `write'" warning
57580         * lib/c-stack.c: Include "ignore-value.h".
57581         (die): Explicitly ignore each write return value.
57582         * modules/c-stack (Depends-on): Add ignore-value.
57584 2009-11-21  Bruno Haible  <bruno@clisp.org>
57586         diffseq: reduce scope of variable 'best'.
57587         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
57588         variable, earlier used for two different purposes.
57590 2009-11-21  Jim Meyering  <meyering@redhat.com>
57592         diffseq: remove useless assignment to "best"
57593         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
57594         assignment.  At that point "best" is already guaranteed to be zero.
57596 2009-11-20  Eric Blake  <ebb9@byu.net>
57598         build: mention ftp redirector in release announcements
57599         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
57600         values that used to come from cfg.mk; mention FTP redirect URL.
57601         * build-aux/announce-gen: Mention the mirror list.
57602         Suggested by Karl Berry.
57604         nanosleep: improve port to mingw
57605         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
57606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
57607         LIB_NANOSLEEP, but only when needed.
57608         * modules/select (Link): Document LIBSOCKET.
57609         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
57610         enough.
57612         nanosleep: work around cygwin bug
57613         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
57614         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
57615         bug.
57616         (getnow): Delete, not needed.
57617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
57618         LIB_CLOCK_GETTIME.
57619         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
57620         clock-time, gettime.
57621         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
57622         bug.
57623         * modules/nanosleep-tests: New test.
57624         * tests/test-nanosleep.c: New file.
57626         sleep: work around cygwin bug
57627         * lib/sleep.c (rpl_sleep): Work around the bug.
57628         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
57629         (gl_PREREQ_SLEEP): Delete unused macro.
57630         * modules/sleep (Depends-on): Add verify.
57631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57632         * modules/unistd (Makefile.am): Substitute witness.
57633         * lib/unistd.in.h (sleep): Update prototype.
57634         * doc/posix-functions/sleep.texi (sleep): Document the bug.
57635         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
57636         * modules/sleep-tests (Depends-on): Check for alarm.
57638 2009-11-20  Jim Meyering  <meyering@redhat.com>
57640         maint.mk: improve sc_prohibit_magic_number_exit
57641         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
57642         so it does not match uses like System.exit(1).
57643         Add comments showing how to correct all offenders.
57645 2009-11-19  Eric Blake  <ebb9@byu.net>
57647         xalloc-die-tests: add missing library
57648         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
57650         test-xvasprintf: silence compiler warnings
57651         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
57652         empty string from gcc.
57654 2009-11-19  Jim Meyering  <meyering@redhat.com>
57656         xfreopen: new module, from coreutils
57657         * modules/xfreopen: New module.
57658         * lib/xfreopen.c: New file.
57659         * lib/xfreopen.h: New file.
57660         * MODULES.html.sh (File stream based Input/Output"): Add it.
57662 2009-11-19  Eric Blake  <ebb9@byu.net>
57664         manywarnings: depend on warnings
57665         * modules/manywarnings (Depends-on): Add warnings.
57667         build: avoid compiler warnings
57668         * lib/select.c (rpl_select): Delete unused variable.
57669         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
57671 2009-11-18  Eric Blake  <ebb9@byu.net>
57673         tests: avoid false negative with --with-packager
57674         * tests/test-version-etc.sh: Discard packager information.
57675         * tests/test-argp-version-etc-1.sh: Likewise.
57676         Reported by Mike Frysinger.
57678         utimens: fix regression on Solaris
57679         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
57680         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
57681         can only change fd timestamps via futimesat.  Instead, use an
57682         additional witness macro to avoid BSD bug.
57683         Reported by Jim Meyering.
57685 2009-11-17  Eric Blake  <ebb9@byu.net>
57687         usleep: use it to simplify tests
57688         * modules/stat-time-tests (Depends-on): Add usleep.
57689         (configure.ac): Drop usleep check.
57690         * modules/chown-tests (Depends-on, configure.ac): Likewise.
57691         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
57692         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
57693         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
57694         * modules/openat-tests (Depends-on, configure.ac): Likewise.
57695         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
57696         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
57697         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
57698         Likewise.
57699         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
57700         * tests/test-lchown.h (nap): Likewise.
57701         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
57702         * tests/test-stat-time.c (nap): Likewise.
57703         * tests/test-utimens-common.h (nap): Update comments.
57705         usleep: new module
57706         * modules/usleep: New file.
57707         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
57708         * lib/usleep.c (usleep): Likewise.
57709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
57710         * modules/unistd (Makefile.am): Substitute witnesses.
57711         * lib/unistd.in.h (usleep): Add declaration.
57712         * doc/pastposix-functions/usleep.texi (usleep): Document this.
57713         * MODULES.html.sh (Date and time): Likewise.
57714         * modules/usleep-tests (Depends-on): New test.
57715         * tests/test-usleep.c: New file.
57717         chown: work around OpenBSD bug
57718         * lib/chown.c (rpl_chown): Work around the bug.
57719         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
57720         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
57721         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
57722         * modules/chown (Depends-on): Add stdbool.
57723         * modules/lchown (Depends-on): Likewise.
57724         * doc/posix-functions/chown.texi (chown): Document the bug.
57725         * doc/posix-functions/lchown.texi (lchown): Likewise.
57726         * tests/test-lchown.h (test_chown): Relax test.
57728         mkstemp: avoid conflict with C++ keyword template
57729         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
57730         * lib/mkostemp.c (mkostemp): Likewise.
57731         * lib/mkostemps.c (mkostemps): Likewise.
57732         * lib/mkstemp.c (mkstemp): Likewise.
57733         * lib/mkstemps.c (mkstemps): Likewise.
57735         xalloc-die-tests: optimize
57736         * tests/test-xalloc-die.sh: Reduce number of processes.
57738 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57740         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
57741         patch from ludo@gnu.org (Ludovic Courtès).
57743 2009-11-17  Jim Meyering  <meyering@redhat.com>
57745         version-etc: use proper license string
57746         * modules/version-etc (License): Use LGPL, not LGPLv3+.
57747         * modules/version-etc-fsf: Likewise.
57749 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57751         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
57752         printed to stdout.  Deal with EOL differences.
57754 2009-11-17  Eric Blake  <ebb9@byu.net>
57756         unsetenv: work around Solaris bug
57757         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
57758         * lib/unsetenv.c (rpl_unsetenv): Work around it.
57759         Reported by Jim Meyering.
57761         vasnprintf: avoid compiler warnings
57762         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
57763         variables.
57764         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
57766 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57768         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
57769         settings since xalloc-die is no longer the self test,
57770         xalloc-die.sh is.
57772 2009-11-17  Jim Meyering  <meyering@redhat.com>
57774         test-xalloc-die.sh: make the code agree with the commit log
57775         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
57776         at the end, just in case you happen to have a test-xalloc-die
57777         program in some other PATH directory.
57779         test-xalloc-die.sh: fix a portability bug
57780         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
57781         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
57782         Otherwise, argv[0] (as often seen in diagnostics) would be too
57783         system-dependent, sometimes with, and sometimes without the leading "./".
57785         version-etc-fsf: relax license to LGPLv3+
57786         * modules/version-etc-fsf (License): Relax license.
57788 2009-11-16  Eric Blake  <ebb9@byu.net>
57790         xalloc-die-tests: avoid printing null pointer
57791         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
57792         shell script.
57793         * tests/test-xalloc-die.c (program_name): Declare.
57794         * tests/test-xalloc-die.sh (tmpfiles): New file.
57796         setenv, unsetenv: work around various bugs
57797         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
57798         (setenv) [HAVE_SETENV]: Work around bugs.
57799         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
57800         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
57801         for bugs.
57802         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
57803         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
57804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
57805         * modules/stdlib (Makefile.am): Update substitutions.
57806         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
57807         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
57808         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57809         * modules/setenv-tests: New test.
57810         * modules/unsetenv-tests: Likewise.
57811         * tests/test-setenv.c: New file.
57812         * tests/test-unsetenv.c: Likewise.
57814 2009-11-16  Jim Meyering  <meyering@redhat.com>
57816         version-etc: relax license to LGPLv3+
57817         * modules/version-etc (License): Relax license.
57819         better AC_REQUIRE expanded-before-required-warning avoidance
57820         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
57821         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
57822         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
57823         which is no longer needed.
57825 2009-11-16  Eric Blake  <ebb9@byu.net>
57827         test-freading: clean up temporary file
57828         * tests/test-freading.c (main): Remove file on success, and use
57829         ASSERT more liberally.
57830         Reported by Jim Meyering.
57832 2009-11-16  Jim Meyering  <meyering@redhat.com>
57834         avoid new AC_REQUIRE expanded-before-required warnings
57835         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
57836         merely using it.
57837         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
57838         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
57840 2009-11-15  Simon Josefsson  <simon@josefsson.org>
57842         * tests/test-xalloc-die.c: New file.
57843         * modules/xalloc-die-tests: New file.
57844         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
57845         XFAIL_TESTS so it can be appended by modules.
57847 2009-11-15  Simon Josefsson  <simon@josefsson.org>
57849         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
57850         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
57852 2009-11-14  Eric Blake  <ebb9@byu.net>
57854         fnmatch: avoid compiler warning
57855         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
57856         to silence compiler warning about mismatch signedness in ?:.
57857         Reported by Robert Millan.
57859         intprops: add double-inclusion guard
57860         * lib/intprops.h: Allow idempotent includes.
57861         Suggested by Bruce Korb.
57863         openat: detect Solaris fchownat bug
57864         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
57865         penalizing glibc chownat when only lchownat is broken.
57866         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
57867         trailing slash bugs.
57868         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
57869         * modules/openat-tests (Files): Include more files.
57870         (Depends-on): Add mgetgroups, sleep, stat-time.
57871         (configure.ac): Add additional checks.
57872         (Makefile.am): Build new test.
57873         * tests/test-fchownat.c: New file.
57875         lchown: detect Solaris and FreeBSD bug
57876         * lib/lchown.c (rpl_lchown): Work around bug.
57877         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
57878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57879         * modules/unistd (Makefile.am): Populate it.
57880         * lib/unistd.in.h (lchown): Update declaration.
57881         * doc/posix-functions/lchown.texi (lchown): Document the bug.
57882         * modules/lchown-tests: New file.
57883         * tests/test-lchown.h (test_lchown): Likewise.
57884         * tests/test-lchown.c (main): Likewise.
57886         chown: detect Solaris and FreeBSD bug
57887         * lib/chown.c (rpl_chown): Work around bug.
57888         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
57889         (gl_PREREQ_CHOWN): Delete.
57890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57891         * modules/unistd (Makefile.am): Populate it.
57892         * lib/unistd.in.h (chown): Update declaration.
57893         * lib/lchown.c (chown): Update client.
57894         * modules/lchown (Depends-on): Add lstat.
57895         * doc/posix-functions/chown.texi (chown): Document the bug.
57896         * doc/posix-functions/getgroups.texi (getgroups): Document
57897         getgroups pitfall.
57898         * modules/chown-tests: New file.
57899         * tests/test-chown.h (test_chown): Likewise.
57900         * tests/test-chown.c (main): Likewise.
57902 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
57904         gnulib-tool: correctly detect absence of m4 directories
57905         * gnulib-tool: Avoid extra newline on data passed to wc -l.
57907 2009-11-14  Jim Meyering  <meyering@redhat.com>
57909         maint.mk: Prohibit inclusion of "xalloc.h" without use.
57910         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
57912 2009-11-14  John W. Eaton  <jwe@gnu.org>
57914         strftime.h: wrap function declaration in extern "C" block
57915         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
57917 2009-11-13  Eric Blake  <ebb9@byu.net>
57919         getgroups: avoid compiler warning
57920         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
57922         getgroups: work around FreeBSD bug
57923         * lib/getgroups.c (rpl_getgroups): Work around the bug.
57924         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
57925         * doc/posix-functions/getgroups.texi (getgroups): Document it.
57926         * tests/test-getgroups.c (main): Fix buffer overrun.
57928         getgroups: avoid compilation failure
57929         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
57930         * modules/getgroups (Depends-on): Add stdint.
57932 2009-11-13  Jim Meyering  <meyering@redhat.com>
57934         test-getgroups: avoid compilation failure
57935         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
57937 2009-11-13  Eric Blake  <ebb9@byu.net>
57939         mgetgroups: new module, taken from coreutils
57940         * modules/mgetgroups: New file.
57941         * lib/mgetgroups.h: Likewise.
57942         * lib/mgetgroups.c (mgetgroups): Likewise.
57943         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
57944         * MODULES.html.sh (Users and groups): Mention it.
57946         getgroups: don't expose GETGROUPS_T to user
57947         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
57948         an element at a time if GETGROUPS_T is wrong size.
57949         * lib/getugroups.h (getugroups): Change signature.
57950         * lib/unistd.in.h (getgroups): Likewise.
57951         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
57952         signature needs fixing.
57953         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
57954         AC_TYPE_GETGROUPS.
57955         * modules/group-member (Depends-on): Add getgroups.
57956         * lib/group-member.c (group_info, get_group_info): Use gid_t.
57957         (group_member): Rely on getgroups replacement.
57958         * lib/getugroups.c (getugroups): Use gid_t.
57959         * tests/test-getgroups.c (main): Likewise.
57960         * NEWS: Mention the signature change.
57961         * doc/posix-functions/getgroups.texi (getgroups): Mention the
57962         problem with signature.
57963         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
57964         GETGROUPS_T is still useful for setgroups.
57966         getgroups, getugroups: provide stubs for mingw
57967         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
57968         * lib/getugroups.c (getugroups): Likewise.
57969         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
57970         function.  Modernize replacement scheme.
57971         (gl_PREREQ_GETGROUPS): Delete.
57972         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
57973         * modules/getgroups (configure.ac): Declare witness.
57974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57975         * modules/unistd (Depends-on): Substitute witness.
57976         * lib/unistd.in.h (getgroups): Declare replacement.
57978         getgroups: avoid calling exit
57979         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
57980         drop xalloc.
57981         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
57982         dependencies.
57983         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
57984         exiting, in the rare case of malloc failure.
57986         getgroups: fix logic error
57987         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
57988         has more than 20 groups.
57989         * modules/getgroups-tests: New test.
57990         * tests/test-getgroups.c: New file.
57992 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57994         * tests/test-base64.c: Improve.
57996 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57998         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
57999         Blake <ebb9@byu.net>.
58001 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58003         * tests/test-xvasprintf.c: Add %s%s related checks.
58005 2009-11-12  Eric Blake  <ebb9@byu.net>
58007         version-etc: match standards.texi style
58008         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
58009         and use <> only for URLs.
58011 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
58013         fts: do not fail on a submount during traversal
58014         * lib/fts.c (fts_build): Read the stat info again after opening
58015         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
58016         Original report at http://bugzilla.redhat.com/501848.
58018 2009-11-12  Jim Meyering  <meyering@redhat.com>
58020         bootstrap: sync from coreutils
58021         * build-aux/bootstrap (bootstrap_epilogue): New function.
58022         Use git_modules_config in one more place.  This make bootstrap's
58023         --gnulib-srcdir option more useful for testing.
58025         bootstrap: generalize autoheader check
58026         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
58027         AC_CONFIG_HEADERS.
58029 2009-11-11  Eric Blake  <ebb9@byu.net>
58031         mkfifoat: use new modules for Solaris and BSD bugs
58032         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
58033         * lib/mkfifoat.c (mknodat): Split...
58034         * lib/mknodat.c (mknodat): ...into new file.
58035         * modules/mkfifoat (Files): Ship new file.
58036         (Depends-on): Add mkfifo, mknod.
58037         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
58038         (Depends-on): Add symlink.
58039         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
58040         redundant with test_mkfifo.h.
58041         (do_mkfifoat, do_mknodat): New helpers.
58043         mknod: new module
58044         * modules/mknod: New file.
58045         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
58046         * lib/mknod.c (mknod): Likewise.
58047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58048         defaults.
58049         * modules/sys_stat (Makefile.am): Substitute them.
58050         * lib/sys_stat.in.h (mknod): Declare replacement.
58051         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58052         Document it.
58053         * doc/posix-functions/mknod.texi (mknod): Likewise.
58054         * modules/mknod-tests: New test.
58055         * tests/test-mknod.c: Likewise.
58057         mkfifo: new module
58058         * modules/mkfifo: New file.
58059         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58060         * lib/mkfifo.c (mkfifo): Likewise.
58061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58062         defaults.
58063         * modules/sys_stat (Makefile.am): Substitute them.
58064         * lib/sys_stat.in.h (mkfifo): Declare replacement.
58065         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58066         Document it.
58067         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
58068         * modules/mkfifo-tests: New test.
58069         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
58070         from test-mkfifoat.c.
58071         * tests/test-mkfifo.c: New file.
58073         readlink: detect FreeBSD bug
58074         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
58075         slash on symlink.
58076         * doc/posix-functions/readlink.texi (readlink): Document the bug.
58077         * tests/test-readlink.h (test_readlink): Enhance test.
58079         symlink: detect FreeBSD bug
58080         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
58081         slash on symlink.
58082         * doc/posix-functions/symlink.texi (symlink): Document the bug.
58083         * tests/test-symlink.h (test_symlink): Enhance test.
58085 2009-11-10  Eric Blake  <ebb9@byu.net>
58087         link: detect FreeBSD bug
58088         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
58089         symlink.
58090         * doc/posix-functions/link.texi (link): Document the bug.
58091         * tests/test-link.h (test_link): Enhance test.
58092         * tests/test-linkat.c (main): Update caller.
58094         unlink, remove: detect FreeBSD bug
58095         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
58096         slash on symlink.
58097         * doc/posix-functions/unlink.texi (unlink): Document the bug.
58098         * doc/posix-functions/remove.texi (remove): Likewise.
58099         * tests/test-unlink.h (test_unlink): Enhance test.
58100         * tests/test-remove.c (main): Likewise.
58102 2009-11-09  Eric Blake  <ebb9@byu.net>
58104         rename: detect FreeBSD bug
58105         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
58106         slash on symlink.
58107         * modules/renameat-tests (Depends-on): Add filenamecat.
58108         * tests/test-rename.h (test_rename): Allow one more errno.
58109         * tests/test-renameat.c (main): Likewise.
58110         * doc/posix-functions/rename.texi (rename): Document the bug.
58112         open: detect FreeBSD bug
58113         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
58114         symlink.
58115         * doc/posix-functions/open.texi (open): Document the bug.
58116         * doc/posix-functions/utimes.texi (utimes): Likewise.
58117         * tests/test-open.h (test_open): Add parameters, and test symlink
58118         handling.
58119         * tests/test-open.c (main): Adjust caller.
58120         * tests/test-fcntl-safer.c (main): Likewise.
58121         * modules/open-tests (Depends-on): Add stdbool, symlink.
58122         * modules/fcntl-safer-tests (Depends-on): Likewise.
58123         * tests/test-openat.c (main): Add test-open tests.
58125         stat: detect FreeBSD bug
58126         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
58127         symlink.
58128         * doc/posix-functions/stat.texi (stat): Document the bug.
58129         * tests/test-stat.h (test_stat_func): Add argument.
58130         * tests/test-stat.c (main): Adjust caller.
58131         * tests/test-fstatat.c (main): Likewise.
58132         * modules/stat-tests (Depends-on): Add stdbool, symlink.
58133         Reported by Jim Meyering.
58135 2009-11-09  James Youngman  <jay@gnu.org>
58137         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
58138         * lib/strftime.c: Correct placement of #include "ignore-value.h".
58140 2009-11-08  Jim Meyering  <meyering@redhat.com>
58142         utimens: remove invalid futimesat call
58143         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
58144         It used the file descriptor of the target file as the DIR_FD
58145         parameter and NULL as the file name.  That caused failure with
58146         errno == EFAULT on FreeBSD-8.0-rc2
58148 2009-11-07  Eric Blake  <ebb9@byu.net>
58150         fflush, freadseek: use fseeko, not fseek
58151         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
58152         (clear_ungetc_buffer): Avoid potential problems on large files.
58153         * lib/freadseek.c (freadseek): Likewise.
58154         * modules/freadseek (Depends-on): Add fseeko.
58155         * modules/fseek (configure.ac): Set a witness.
58156         * tests/test-fflush.c (main): Use fseeko.
58157         * tests/test-fpurge.c (fseek): Disable link warning.
58158         * tests/test-freadable.c (fseek): Likewise.
58159         * tests/test-freading.c (fseek): Likewise.
58160         * tests/test-fseeko.c (fseek): Likewise.
58161         * tests/test-ftell.c (fseek): Likewise.
58162         * tests/test-ftello.c (fseek): Likewise.
58163         * tests/test-fwritable.c (fseek): Likewise.
58164         * tests/test-fwriting.c (fseek): Likewise.
58166 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58168         * modules/memchr (Depends-on): Drop getpagesize dependency.
58170 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58172         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
58173         Reported by Ludovic Courtès.
58174         * build-aux/pmccabe2html: Improve example usage.
58175         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
58177 2009-11-06  Jim Meyering  <meyering@redhat.com>
58179         do-release-commit-and-tag: New module.
58180         Automate the release-commit and tag process.
58181         * build-aux/do-release-commit-and-tag: New script, from coreutils.
58182         * modules/do-release-commit-and-tag: New file.
58183         * MODULES.html.sh (Support for maintaining and releasing): Add it.
58185 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58187         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
58188         because test-select.c uses inet_pton.
58190 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58192         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
58193         GETADDRINFO_LIB.  Bump serial number.
58194         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
58195         Suggested by Eric Blake <ebb9@byu.net>.
58197 2009-11-05  Eric Blake  <ebb9@byu.net>
58199         strtod: detect darwin bug
58200         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
58201         Reported by Leo Davis.
58203         freopen-safer: new module
58204         * modules/freopen-safer: New module.
58205         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
58206         * lib/freopen-safer.c (freopen_safer): New file.
58207         * lib/stdio-safer.h (freopen_safer): New declaration.
58208         * lib/stdio--.h (freopen): New override.
58209         * MODULES.html.sh (File stream based Input/Output): Mention it.
58210         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
58211         freopen-safer module.
58212         * doc/posix-functions/stderr.texi (stderr): Likewise.
58213         * doc/posix-functions/stdin.texi (stdin): Likewise.
58214         * doc/posix-functions/stdout.texi (stdout): Likewise.
58215         * modules/freopen-safer-tests: New test.
58216         * tests/test-reopen-safer.c: New file.
58218 2009-11-05  Jim Meyering  <meyering@redhat.com>
58220         maint.mk: Prohibit inclusion of "close-stream.h" without use.
58221         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58223 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58225         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
58227 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58229         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
58231 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58233         Fix link error.
58234         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58235         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58237 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58239         * tests/test-func.c: Also test value of __func__.
58241 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58243         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
58244         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
58246 2009-11-05  Bruno Haible  <bruno@clisp.org>
58248         Fix link error.
58249         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58250         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58251         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
58253 2009-11-05  Bruno Haible  <bruno@clisp.org>
58255         Tests for module 'inet_pton'.
58256         * modules/inet_pton-tests: New file.
58257         * tests/test-inet_pton.c: New file.
58259 2009-11-05  Bruno Haible  <bruno@clisp.org>
58261         Tests for module 'inet_ntop'.
58262         * modules/inet_ntop-tests: New file.
58263         * tests/test-inet_ntop.c: New file.
58265 2009-11-04  Eric Blake  <ebb9@byu.net>
58267         stdlib-safer: wrap all mkstemp variants
58268         * modules/mkostemp (configure.ac): Set witness.
58269         * modules/mkostemps (configure.ac): Likewise.
58270         * modules/mkstemps (configure.ac): Likewise.
58271         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
58272         (mkstemps_safer): Wrap more functions.
58273         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
58274         wrapping.
58275         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
58276         (mkstemps_safer): Implement the wrappers.
58278         mkstemps, mkostemps: new modules
58279         * modules/mkostemps: New module.
58280         * modules/mkstemps: Likewise.
58281         * lib/mkostemps.c (mkostemps): New file.
58282         * lib/mkstemps.c (mkstemps): Likewise.
58283         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
58284         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
58285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
58286         * modules/stdlib (Makefile.am): Substitute them.
58287         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
58288         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
58289         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
58290         * doc/gnulib.texi (Glibc stdlib.h): Include them.
58291         * MODULES.html.sh (File system functions): Mention them.
58293         tempname: resync from glibc
58294         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
58295         same values for __GT_FILE as glibc.  Abort even when assertions
58296         are disabled.
58297         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
58298         match its value otherwise.  Allow idempotent inclusion.
58299         * lib/mkdtemp.c (mkdtemp): Adjust caller.
58300         * lib/mkostemp.c (mkostemp): Likewise.
58301         * lib/mkstemp.c (mkstemp): Likewise.
58302         * lib/tmpfile.c (tmpfile): Likewise.
58303         * NEWS: Document this.
58305         utimens: fix use of futimens on older Linux
58306         * lib/utimens.c (fdutimens): Use updated, rather than original,
58307         timespec to avoid bug in older Linux kernel.
58308         Reported by Simon Josefsson.
58310 2009-11-04  Bruno Haible  <bruno@clisp.org>
58312         Make num_processors more flexible and consistent.
58313         * lib/nproc.h (enum nproc_query): New type.
58314         (num_processors): Add a 'query' argument.
58315         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
58316         (num_processors): Add a 'query' argument. Test the value of the
58317         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
58318         mingw, count the number of CPUs available for the current process.
58319         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
58320         Check for sched_getaffinity and sched_getaffinity_np.
58321         * modules/nproc (Depends-on): Add c-ctype, extensions.
58322         * NEWS: Mention the change.
58324 2009-11-03  Bruno Haible  <bruno@clisp.org>
58326         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
58328 2009-11-03  Jim Meyering  <meyering@redhat.com>
58330         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
58331         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
58332         if it is defined.
58334 2009-11-02  Eric Blake  <ebb9@byu.net>
58336         mktime, timegm: share common declaration
58337         * lib/mktime-internal.h: New file.
58338         * lib/mktime.c: Use it rather than open-coding a declaration.
58339         * lib/timegm.c: Likewise.
58340         * modules/mktime (Files): Ship it.
58341         * modules/timegm (Files): Likewise.
58342         Suggested by Bruno Haible.
58344         test-update-copyright: update test to match script changes
58345         * tests/test-update-copyright.sh: Avoid hard-coding perl
58346         location.  Don't update *.bak created by earlier runs.
58348 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58349             Simon Josefsson  <simon@josefsson.org>
58350             Bruno Haible  <bruno@clisp.org>
58352         Fix link error on Solaris 8.
58353         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
58354         also in libnsl. Define also INET_PTON_LIB.
58355         * modules/inet_pton (Link): New section.
58357 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58358             Bruno Haible  <bruno@clisp.org>
58360         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
58361         * modules/inet_ntop (Link): New section.
58362         Reported by Boyan Kasarov <bkasarov@gmail.com>.
58364 2009-11-02  Eric Blake  <ebb9@byu.net>
58366         maint: avoid compiler warnings in m4 macros
58367         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
58368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
58370 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58372         * m4/pmccabe2html.m4: Remove file.
58373         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
58374         function.  Change maintainer.
58375         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
58376         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
58377         Courtès).
58379 2009-10-31  Eric Blake  <ebb9@byu.net>
58381         fseeko: fix m4 regression
58382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
58383         regression from 2009-10-27.
58384         Reported by Ralf Wildenhues.
58386 2009-10-31  Jim Meyering  <meyering@redhat.com>
58388         inttostr: aesthetics and improved (compile-time) safety
58389         Define inttype_is_signed rather than inttype_is_unsigned,
58390         since the sole use is via "#if inttype_is_signed".
58391         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
58392         inttype_is_unsigned.
58393         * lib/offtostr.c (inttype_is_signed): Likewise.
58394         * lib/uinttostr.c (inttype_is_signed): Likewise.
58395         * lib/umaxtostr.c (inttype_is_signed): Likewise.
58396         * lib/inttostr.c (inttostr): Use verify to cross-check the
58397         inttype_is_signed value and the signedness of the actual type.
58398         * modules/inttostr (Depends-on): Add verify.
58400 2009-10-30  Eric Blake  <ebb9@byu.net>
58402         build: avoid compiler warnings
58403         * lib/fchmodat.c (lchmod): Mark unused variables.
58404         * lib/getopt.c (_getopt_initialize): Likewise.
58405         * lib/mktime.c (__mktime_internal): Provide prototype.
58406         * lib/inttostr.c (inttostr): Avoid compiler warning even with
58407         older gcc that do not understand #pragma GCC diagnostic.
58408         * lib/uinttostr.c (inttype_is_unsigned): Define.
58409         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
58411 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
58413         stat: fix compilation on AIX
58414         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
58415         only see struct stat64.
58417 2009-10-30  Eric Blake  <ebb9@byu.net>
58419         exclude: make more robust
58420         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
58421         rather than masking a coding bug.
58422         Suggested by Bruno Haible.
58424 2009-10-30  Jim Meyering  <meyering@redhat.com>
58426         perl scripts: remove #!/usr/bin/perl in favor of more portable...
58427         Rather than putting #!/usr/bin/perl on the first line,
58428         start with a variant of what's recommended by "man perlrun" that
58429         invokes the first "perl" program from your shell's search path.
58430         * build-aux/gitlog-to-changelog: Replace #!... as above.
58431         Add a "Local Variables" perl mode setting.
58432         Prompted by a patch from Ludovic Courtès.
58433         Improved by Eric Blake.
58434         * build-aux/useless-if-before-free: Likewise.
58435         * build-aux/announce-gen: Likewise.
58436         * build-aux/update-copyright: Likewise.
58438 2009-10-29  Eric Blake  <ebb9@byu.net>
58440         filenamecat-lgpl: adjust clients
58441         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
58442         filenamecat.
58443         * modules/renameat (Depends-on): Likewise.
58445         filenamecat: split into filenamecat-lgpl
58446         * modules/filenamecat-lgpl: New module.
58447         * modules/filenamecat (Files): Move library-safe files into
58448         filenamecat-lgpl.
58449         (Depends-on): Add filenamecat-lgpl.
58450         (configure.ac): Declare witness.
58451         * lib/filenamecat.h (file_name_concat): Only declare when using
58452         GPL module.
58453         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
58454         Move...
58455         * lib/filenamecat-lgpl.c: ...into new file.
58456         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
58457         (gl_FILE_NAME_CONCAT): Use it.
58458         * MODULES.html.sh (File system functions): Mention new module.
58460         argp: avoid memory leak
58461         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
58462         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
58463         base_name, since the latter malloc()s and can call exit().
58464         Leak introduced 2006-07-03.
58466         dirname-lgpl: adjust clients that don't need full dirname
58467         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
58468         * modules/filenamecat (Depends-on): Likewise.
58469         * modules/linkat (Depends-on): Likewise.
58470         * modules/mkancesdirs (Depends-on): Likewise.
58471         * modules/mkdir (Depends-on): Likewise.
58472         * modules/openat (Depends-on): Likewise.
58473         * modules/savewd (Depends-on): Likewise.
58474         * modules/rename (Depends-on): Likewise.
58475         (License): Relax license.
58476         * modules/mkdir-tests (Depends-on): Drop progname.
58477         (Makefile.am): Delete unneeded LDADD.
58478         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
58480         dirname: split into dirname-lgpl
58481         * modules/dirname-lgpl: New module.
58482         * modules/dirname (Files): Move library-safe files into
58483         dirname-lgpl.
58484         (Depends-on): Add dirname-lgpl.
58485         (configure.ac): Declare witness.
58486         * modules/double-slash-root (License): Relax license.
58487         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
58488         module.
58489         * lib/dirname.c (dir_len, mdir_name): Move...
58490         * lib/dirname-lgpl.c: ...into new file.
58491         * lib/basename.c (last_component, base_len): Move...
58492         * lib/basename-lgpl.c: ...into new file.
58493         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
58494         (gl_DIRNAME): Use it.
58495         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
58496         Mention new module.
58497         * modules/dirname-tests (Depends-on): Add progname.
58498         * tests/test-dirname.c (program_name): Delete.
58500         mkdir: make safe for libraries
58501         * modules/mkdir (Depends-on): Drop xalloc.
58502         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
58503         exit.
58505         tests: avoid some compiler warnings
58506         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
58507         literals.
58508         * tests/test-memchr.c (main): Avoid type mismatch.
58509         * tests/test-arpa_inet.c (main): Avoid unused parameters.
58510         * tests/test-base64.c (main): Likewise.
58511         * tests/test-getdelim.c (main): Likewise.
58512         * tests/test-gethostname.c (main): Likewise.
58513         * tests/test-getline.c (main): Likewise.
58514         * tests/test-netinet_in.c (main): Likewise.
58515         * tests/test-select.c (open_server_socket, main): Likewise.
58516         * tests/test-select-stdin.c (main): Likewise.
58517         * tests/test-sockets.c (main): Likewise.
58518         * tests/test-strsignal.c (main): Likewise.
58519         * tests/test-sys_select.c (main): Likewise.
58520         * tests/test-sys_socket.c (main): Likewise.
58521         * tests/test-u64.c (main): Likewise.
58522         * tests/test-xfprintf-posix.c (main): Likewise.
58523         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
58525         sockets: avoid compiler warning
58526         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
58528         maint: detect usage(1) and other suspicious exits
58529         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
58531 2009-10-29  Jim Meyering  <meyering@redhat.com>
58533         timespec: long-to-int truncation could make timespec_cmp malfunction
58534         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
58535         a multiple of 2^32 nanoseconds as no difference.
58537 2009-10-28  Jim Meyering  <meyering@redhat.com>
58539         fprintftime: wrap macro code argument in "do {...} while(0)"
58540         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
58541         cpy macro must be a statement that can be followed by a semicolon.
58542         Now that the else clause contains a comment and is hence longer
58543         than one line, I require curly braces.  That in turn requires
58544         that we wrap this code block in the standard do...while(0).
58546         fprintftime: remove stray semicolon from previous change
58547         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
58549         fprintftime: avoid a warning about ignored fwrite return value
58550         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
58551         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
58552         that is unsafe.
58553         * modules/fprintftime (Depends-on): Add ignore-value.
58555         exclude: avoid an unwarranted warning
58556         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
58558 2009-10-27  Eric Blake  <ebb9@byu.net>
58560         fseek: avoid compilation failure when fflush is replaced
58561         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
58562         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
58563         module is in use.
58564         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
58565         module is not in use; since REPLACE_FSEEK worked otherwise.
58566         (GNULIB_FTELLO): Likewise for ftell.
58567         Reported by Ian Beckwith and others.
58569 2009-10-27  Bruno Haible  <bruno@clisp.org>
58571         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
58572         Reported by Jim Meyering.
58574 2009-10-27  Jim Meyering  <jim@meyering.net>
58575             Bruno Haible  <bruno@clisp.org>
58577         Avoid warning despite dropping the return value of fwrite.
58578         * lib/unicodeio.c: Include ignore-value.h.
58579         (fwrite_success_callback): Explicitly ignore fwrite's return value.
58580         * modules/unicodeio (Depends-on): Add ignore-value.
58582 2009-10-26  Eric Blake  <ebb9@byu.net>
58584         areadlinkat: fix fallback path
58585         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
58586         pointer and zero.
58588 2009-10-22  Pádraig Brady  <P@draigBrady.com>
58590         Use a better IO block size for modern systems
58591         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
58592         * lib/md2.c: Likewise.
58593         * lib/md4.c: Likewise.
58594         * lib/md5.c: Likewise.
58595         * lib/sha1.c: Likewise.
58596         * lib/sha256.c: Likewise.
58597         * lib/sha512.c: Likewise.
58599 2009-10-22  Eric Blake  <ebb9@byu.net>
58601         tests: avoid several compiler warnings
58602         * tests/test-getcwd.c (main): Avoid buffer underflow.
58603         * tests/test-getdate.c (main): String literals are not safe with
58604         putenv, so use setenv.  Declare unused argument.
58605         * modules/getdate-tests (Depends-on): Add setenv.
58606         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
58607         problems with string literals in char *.
58608         * tests/test-hash.c (main): Avoid shadowing declaration.
58609         (insert_new): Treat string literals as char const *.
58610         * tests/test-getopt.h (test_getopt): Likewise.
58611         (getopt_loop): Alter types to minimize casting elsewhere.
58612         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
58613         (test_getopt_long_posix): Likewise.
58614         (do_getopt_long): Add wrapper to minimize casting.
58615         * tests/test-atexit.c (clear_temp_file): Use void.
58616         * tests/test-areadlink-with-size.c (main): Declare unused
58617         arguments.
58618         * tests/test-areadlink.c (main): Likewise.
58619         * tests/test-areadlinkat-with-size.c (main): Likewise.
58620         * tests/test-areadlinkat.c (main): Likewise.
58621         * tests/test-canonicalize-lgpl.c (main): Likewise.
58622         * tests/test-canonicalize.c (main): Likewise.
58623         * tests/test-dirent-safer.c (main): Likewise.
58624         * tests/test-dirname.c (main): Likewise.
58625         * tests/test-dup2.c (main): Likewise.
58626         * tests/test-fchdir.c (main): Likewise.
58627         * tests/test-fcntl-h.c (main): Likewise.
58628         * tests/test-fcntl-safer.c (main): Likewise.
58629         * tests/test-fdopendir.c (main): Likewise.
58630         * tests/test-fdutimensat.c (main): Likewise.
58631         * tests/test-fflush.c (main): Likewise.
58632         * tests/test-filenamecat.c (main): Likewise.
58633         * tests/test-filevercmp.c (main): Likewise.
58634         * tests/test-fopen-safer.c (main): Likewise.
58635         * tests/test-fopen.c (main): Likewise.
58636         * tests/test-fpending.c (main): Likewise.
58637         * tests/test-fpurge.c (main): Likewise.
58638         * tests/test-freading.c (main): Likewise.
58639         * tests/test-fstatat.c (main): Likewise.
58640         * tests/test-fsync.c (main): Likewise.
58641         * tests/test-futimens.c (main): Likewise.
58642         * tests/test-getndelim2.c (main): Likewise.
58643         * tests/test-gettimeofday.c (main): Likewise.
58644         * tests/test-getopt.c (main): Likewise.
58645         * tests/test-i-ring.c (main): Likewise.
58646         * tests/test-inttypes.c (main): Likewise.
58647         * tests/test-link.c (main): Likewise.
58648         * tests/test-lstat.c (main): Likewise.
58649         * tests/test-math.c (main): Likewise.
58650         * tests/test-md5.c (main): Likewise.
58651         * tests/test-memchr2.c (main): Likewise.
58652         * tests/test-memrchr.c (main): Likewise.
58653         * tests/test-mkdir.c (main): Likewise.
58654         * tests/test-mkdirat.c (main): Likewise.
58655         * tests/test-mkfifoat.c (main): Likewise.
58656         * tests/test-open.c (main): Likewise.
58657         * tests/test-openat-safer.c (main): Likewise.
58658         * tests/test-openat.c (main): Likewise.
58659         * tests/test-quotearg.c (main): Likewise.
58660         * tests/test-rawmemchr.c (main): Likewise.
58661         * tests/test-readlink.c (main): Likewise.
58662         * tests/test-remove.c (main): Likewise.
58663         * tests/test-rename.c (main): Likewise.
58664         * tests/test-renameat.c (main): Likewise.
58665         * tests/test-rmdir.c (main): Likewise.
58666         * tests/test-sha1.c (main): Likewise.
58667         * tests/test-signal.c (main): Likewise.
58668         * tests/test-sigaction.c (main): Likewise.
58669         * tests/test-stat.c (main): Likewise.
58670         * tests/test-stat-time.c (main): Likewise.
58671         * tests/test-stddef.c (main): Likewise.
58672         * tests/test-stdint.c (main): Likewise.
58673         * tests/test-stdio.c (main): Likewise.
58674         * tests/test-stdlib.c (main): Likewise.
58675         * tests/test-strchrnul.c (main): Likewise.
58676         * tests/test-strerror.c (main): Likewise.
58677         * tests/test-string.c (main): Likewise.
58678         * tests/test-strtod.c (main): Likewise.
58679         * tests/test-strverscmp.c (main): Likewise.
58680         * tests/test-symlink.c (main): Likewise.
58681         * tests/test-symlinkat.c (main): Likewise.
58682         * tests/test-sys_stat.c (main): Likewise.
58683         * tests/test-sys_time.c (main): Likewise.
58684         * tests/test-time.c (main): Likewise.
58685         * tests/test-unistd.c (main): Likewise.
58686         * tests/test-unlink.c (main): Likewise.
58687         * tests/test-unlinkat.c (main): Likewise.
58688         * tests/test-utimens.c (main): Likewise.
58689         * tests/test-utimensat.c (main): Likewise.
58690         * tests/test-version-etc.c (main): Likewise.
58691         * tests/test-wchar.c (main): Likewise.
58692         * tests/test-wctype.c (main): Likewise.
58693         * tests/test-xprintf-posix.c (main): Likewise.
58694         * tests/test-posixtm.c (main): Likewise.
58695         (STREQ): Delete unused macro.
58696         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
58697         shadowed variables.
58698         * tests/test-memchr.c (main): Likewise.
58700 2009-10-21  Eric Blake  <ebb9@byu.net>
58702         areadlinkat: avoid failure on older glibc
58703         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
58704         rather than mis-comparing 0 against FUNC_RESULT of char*.
58706 2009-10-21  Bruno Haible  <bruno@clisp.org>
58708         * modules/stpncpy (License): Relicense under LGPLv2+.
58709         Reported by David Lutterkort <lutter@redhat.com>.
58711 2009-10-20  Eric Blake  <ebb9@byu.net>
58713         utimensat: work around Solaris 9 bug
58714         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
58715         has trailing slash bugs.
58716         * tests/test-lutimens.h (test_lutimens): Enhance test.
58717         * tests/test-utimens.h (test_utimens): Likewise.
58718         * doc/posix-functions/utime.texi (utime): Enhance documentation.
58719         * doc/posix-functions/utimes.texi (utimes): Likewise.
58720         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58721         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
58722         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
58723         * doc/posix-functions/futimens.texi (futimens): Likewise.
58725         fdutimensat: new module
58726         * modules/fdutimensat: New file.
58727         * lib/fdutimensat.c (fdutimensat): Likewise.
58728         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
58729         * MODULES.html.sh (File system functions): Mention module.
58730         * modules/fdutimensat-tests: New test.
58731         * tests/test-fdutimensat.c: Likewise.
58733         doc: regenerate INSTALL
58734         * doc/INSTALL: Reflect recent autoconf update.
58735         * doc/INSTALL.ISO: Likewise.
58736         * doc/INSTALL.UTF-8: Likewise.
58738 2009-10-20  Pádraig Brady  <P@draigBrady.com>
58740         acl: warn if ACL support is not detected
58741         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
58743 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
58745         * lib/nproc.h: Add extern "C" block for C++.
58747 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
58748             Bruno Haible  <bruno@clisp.org>
58750         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
58751         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
58752         * doc/posix-functions/isalpha.texi: Likewise.
58753         * doc/posix-functions/isblank.texi: Likewise.
58754         * doc/posix-functions/iscntrl.texi: Likewise.
58755         * doc/posix-functions/isdigit.texi: Likewise.
58756         * doc/posix-functions/isgraph.texi: Likewise.
58757         * doc/posix-functions/islower.texi: Likewise.
58758         * doc/posix-functions/isprint.texi: Likewise.
58759         * doc/posix-functions/ispunct.texi: Likewise.
58760         * doc/posix-functions/isspace.texi: Likewise.
58761         * doc/posix-functions/isupper.texi: Likewise.
58762         * doc/posix-functions/isxdigit.texi: Likewise.
58764 2009-10-18  Bruno Haible  <bruno@clisp.org>
58766         Tests for module 'isblank'.
58767         * modules/isblank-tests: New file.
58768         * tests/test-isblank.c: New file.
58770         New module 'isblank'.
58771         * lib/isblank.c: New file.
58772         * m4/isblank.m4: New file.
58773         * modules/isblank: New file.
58774         * doc/posix-functions/isblank.texi: Mention the new module.
58776 2009-10-18  Bruno Haible  <bruno@clisp.org>
58778         New module 'ctype'.
58779         * lib/ctype.in.h: New file.
58780         * m4/ctype.m4: New file.
58781         * modules/ctype: New file.
58782         * doc/posix-headers/ctype.texi: Mention the new module.
58784 2009-10-18  Jim Meyering  <meyering@redhat.com>
58786         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
58787         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
58788         right after its initialization, rather than farther down.
58789         Keeping these in close proximity makes it easier to ensure
58790         that each such variable is initialized.  E.g.,
58792             LIB_CLOCK_GETTIME=
58793             AC_SUBST([LIB_CLOCK_GETTIME])
58795         This change also increments these serial numbers.
58796         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
58797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58800 2009-10-18  Bruno Haible  <bruno@clisp.org>
58802         Don't let environment variables perturb build.
58803         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
58804         (gl_PREREQ_GETHRXTIME): ... not here.
58806 2009-10-18  Bruno Haible  <bruno@clisp.org>
58808         Avoid symlink attack in localcharset module.
58809         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
58810         (O_NOFOLLOW): Define fallback.
58811         (get_charset_aliases): Don't open the file if it is a symbolic link.
58812         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
58813         gl_FCNTL_H.
58814         (gl_FCNTL_H): Require it.
58815         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
58816         * modules/localcharset (Files): Add m4/fcntl_h.m4.
58817         Reported by Fergal Glynn <fglynn@veracode.com>.
58819 2009-10-18  Bruno Haible  <bruno@clisp.org>
58821         Implement nproc for mingw.
58822         * lib/nproc.c: Include <windows.h>
58823         (num_processors): On native Windows platforms, try GetSystemInfo.
58825 2009-10-18  Bruno Haible  <bruno@clisp.org>
58827         Implement nproc for IRIX.
58828         * lib/nproc.c: Include <sys/sysmp.h>.
58829         (num_processors): On IRIX systems, try sysmp.
58830         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
58832 2009-10-18  Bruno Haible  <bruno@clisp.org>
58834         Implement nproc for HP-UX.
58835         * lib/nproc.c: Include <sys/pstat.h>
58836         (num_processors): On HP-UX systems, try pstat_getdynamic.
58837         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
58838         pstat_getdynamic.
58840 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
58841             Bruno Haible  <bruno@clisp.org>
58843         Implement nproc for NetBSD, OpenBSD.
58844         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
58845         (ARRAY_SIZE): New macro.
58846         (num_processors): On BSD systems, try sysctl of HW_NCPU.
58847         * m4/nproc.m4: New file.
58848         * modules/nproc (Files): Add m4/nproc.m4.
58849         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
58850         (Makefile.am): Instead, augment lib_SOURCES.
58852 2009-10-18  Bruno Haible  <bruno@clisp.org>
58854         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
58855         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
58856         sys/param.h.
58858 2009-10-16  Eric Blake  <ebb9@byu.net>
58860         utimensat: new module
58861         * modules/utimensat: New file.
58862         * lib/utimensat.c (utimensat): Likewise.
58863         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58864         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
58865         so we can work around Linux bugs.
58866         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58867         * modules/sys_stat (Makefile.am): Substitute them.
58868         * lib/sys_stat.in.h (utimensat): Declare it.
58869         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58870         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58871         * modules/utimensat-tests: New test.
58872         * tests/test-utimensat.c: Likewise.
58874         utimens: let lutimens work on non-symlinks
58875         * lib/utimens.c (lutimens): Fall back to utimens rather than
58876         failing with ENOSYS, when file is not a symlink.
58877         (utimens): Reduce redirection.
58878         * tests/test-lutimens.h (test_lutimens): Update test to cover
58879         non-symlinks.
58880         * tests/test-utimens.h (test_utimens): Update test to cover
58881         symlinks.
58882         * tests/test-utimens.c (main): Update caller.
58884         utimens: cache whether utimensat syscall works
58885         * lib/utimens.c (utimensat_works_really): New cache variable.
58886         (fdutimens, lutimens): Use it to avoid failing syscall.
58888         test-stat-time, test-utimens: improve portability
58889         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
58890         ext4 on alpha, and for cygwin.
58891         * tests/test-utimens-common.h: New file.
58892         (nap): Factor delays into single function.
58893         * tests/test-lutimens.h (test_lutimens): Use new header.
58894         * tests/test-futimens.h (test_futimens): Likewise.
58895         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
58896         timestamps to occur from same machine, as was done previously for
58897         test_utimens.
58898         * modules/utimens-tests (Files): Ship new file.
58899         * modules/futimens-tests (Files): Likewise.
58900         Reported in part by Jim Meyering.
58902         sys_stat: sort replacement declarations
58903         * lib/sys_stat.in.h: Sort declarations.
58904         * lib/futimens.c (futimens): Fix typo.
58906 2009-10-15  Jim Meyering  <meyering@redhat.com>
58908         don't let environment settings perturb build
58909         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
58910         could cause a configure-time and/or build-time malfunction.
58911         Typically, a configure-time function-in-library test is performed
58912         via code like this:
58914           LIB_VAR=
58915           AC_SUBST([LIB_VAR])
58916           prefix_saved_LIBS=$LIBS
58917             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
58918                        [test "$ac_cv_search_FUNC" = "none required" ||
58919                         LIB_VAR=$ac_cv_search_FUNC])
58920           LIBS=$prefix_saved_LIBS
58922         However, in each of the files affected by this change, the LIB_VAR=
58923         initialization was omitted.  Thus, when set in the environment, its
58924         value would propagate into generated Makefiles when FUNC is not found
58925         in LIB_NAME.
58926         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
58927         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58930 2009-10-14  Eric Blake  <ebb9@byu.net>
58932         fchdir: avoid infinite recursion in mingw
58933         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
58934         recursing.
58936         test-stat-time: port to mingw
58937         * tests/test-stat-time.c (force_unlink): Return a value.
58938         (test_ctime) [W32]: Fix compilation error.
58939         (nap): Don't call usleep with too large an argument.  Use
58940         force_unlink.
58941         * doc/pastposix-functions/usleep.texi (usleep): Document the
58942         portability issue.
58944 2009-10-13  Jim Meyering  <meyering@redhat.com>
58946         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
58947         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
58948         * modules/pipe-filter-ii: Likewise.
58949         * modules/sys_socket-tests: Likewise.
58950         * modules/tsearch-tests: Likewise.
58951         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
58952         (check): Depend on it.
58954 2009-10-12  Eric Blake  <ebb9@byu.net>
58956         utimens-tests: port to NFS file systems
58957         * tests/test-utimens.h (test_utimens): Refactor utimecmp
58958         comparisons to avoid spurious failures from timestamp drift
58959         between NFS machines.
58961 2009-10-12  Eric Blake  <ebb9@byu.net>
58963         stat-time-tests: minor cleanups
58964         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
58965         * tests/test-stat-time.c (nap): Separate assignment from call.
58966         Suggested by Paolo Bonzini and Bruno Haible.
58968         sys_stat: guarantee struct timespec
58969         * lib/sys_stat.in.h (includes): Always include <time.h>
58970         * modules/sys_stat (Depends-on): Add time.
58971         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
58972         mode_t permission values.
58973         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
58974         get at subsecond timestamps.
58976 2009-10-10  Eric Blake  <ebb9@byu.net>
58978         futimens: new module
58979         * modules/futimens: New file.
58980         * lib/futimens.c (futimens): Likewise.
58981         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
58982         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
58983         we can work around Linux bugs.
58984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58985         * modules/sys_stat (Makefile.am): Substitute them.
58986         * lib/sys_stat.in.h (futimens): Declare it.
58987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58988         * doc/posix-functions/futimens.texi (futimens): Likewise.
58989         * modules/futimens-tests: New test.
58990         * tests/test-futimens.c: Likewise.
58992         utimens: introduce fdutimens
58993         * lib/utimens.h (fdutimens): New prototype.
58994         * lib/utimens.c (gl_futimens): Move guts...
58995         (fdutimens): ...to new interface.
58996         * tests/test-utimens.c (do_fdutimens): Use it.
58998         utimens: add UTIME_NOW and UTIME_OMIT support
58999         * lib/utimens.c (validate_timespec, update_timespec): New helper
59000         functions.
59001         (gl_futimens, lutimens): Use them.
59002         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
59003         stdbool, sys_stat.
59004         (Link): Mention resulting library dependency.
59005         * modules/utimecmp (Link): Likewise.
59006         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
59007         (Makefile.am): Pick up library dependency.
59008         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
59009         definition.
59010         * tests/test-sys_stat.c: Test the definitions.
59011         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
59012         * NEWS: Document library dependency.
59014         utimecmp: support symlink timestamps
59015         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
59016         hashing when possible.  Use pathconf when available.
59017         (SYSCALL_RESOLUTION): Recognize tighter resolution.
59018         * modules/utimecmp (Depends-on): Add lstat.
59020         utimens: add lutimens interface
59021         * lib/utimens.c (lutimens): New function.
59022         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
59023         * lib/utimens.h (lutimens): Declare new interface.
59024         * tests/test-utimens.c (main): Enhance test.
59025         * tests/test-lutimens.h (test_lutimens): New file.
59026         * modules/utimens-tests (Files): Distribute it.
59027         (Depends-on): Add symlink.
59028         (configure.ac): Check for usleep.
59030         utimens: validate futimens usage
59031         * lib/utimens.c (gl_futimens): Require valid fd up front, using
59032         fewer syscalls on failure later on.  Avoid compiler warning on
59033         mingw.
59034         * modules/utimens (Depends-on): Add dup2.
59036         utimens: add test
59037         * modules/utimens-tests: New test.
59038         * tests/test-utimens.h: New file.
59039         * tests/test-futimens.h: Likewise.
59040         * tests/test-utimens.c: Likewise.
59042         doc: mention timestamp portability issues
59043         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
59044         instead.
59045         * doc/posix-functions/utime.texi (utime): Likewise.
59046         * doc/posix-functions/utimes.texi (utimes): Likewise.
59047         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
59048         instead.
59049         * doc/posix-functions/futimens.texi (futimens): Mention utimens
59050         module.
59051         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59052         Mention weakness with symlink timestamps.
59053         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
59054         to utimensat/futimens instead.
59055         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
59057         test-dup2: enhance test
59058         * tests/test-dup2.c (main): Also check AT_FDCWD.
59060         test-stat-time: avoid more spurious failures
59061         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
59062         xfs; and avoid race if the two timestamps cross quantization edge.
59064         relocatable: prefer 'file system' over 'filesystem'
59065         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
59066         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
59067         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
59068         * doc/relocatable.texi (Enabling Relocatability): Likewise.
59069         * lib/relocatable.c (compute_curr_prefix): Likewise.
59071 2009-10-10  Jim Meyering  <meyering@redhat.com>
59073         stat-time-tests: check for the usleep function
59074         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
59076 2009-10-10  Bruno Haible  <bruno@clisp.org>
59078         * modules/xnanosleep: Put the Link section after the Include section.
59080 2009-10-09  Eric Blake  <ebb9@byu.net>
59082         dup2: work around FreeBSD 6.1 bug
59083         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
59084         * doc/posix-functions/dup2.texi (dup2): Document it.
59085         Reported by Nelson H. F. Beebe and Jim Meyering.
59087         test-stat-time: port to buggy NFS clients
59088         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
59089         (test_ctime): Also skip test if mtime and ctime are skewed.
59091         maint: prefer 'file system' over 'filesystem'
59092         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59093         * doc/posix-functions/lstat.texi (lstat): Likewise.
59094         * lib/file-has-acl.c (file_has_acl): Likewise.
59095         * lib/fwriteerror.c [TEST]: Likewise.
59096         * tests/test-areadlink.h (test_areadlink): Likewise.
59097         * tests/test-areadlinkat-with-size.c (main): Likewise.
59098         * tests/test-areadlinkat.c (main): Likewise.
59099         * tests/test-canonicalize-lgpl.c (main): Likewise.
59100         * tests/test-canonicalize.c (main): Likewise.
59101         * tests/test-fstatat.c (main): Likewise.
59102         * tests/test-linkat.c (main): Likewise.
59103         * tests/test-lstat.h (test_lstat_func): Likewise.
59104         * tests/test-mkdir.h (test_mkdir): Likewise.
59105         * tests/test-readlink.h (test_readlink): Likewise.
59106         * tests/test-remove.c (main): Likewise.
59107         * tests/test-rename.h (test_rename): Likewise.
59108         * tests/test-renameat.c (main): Likewise.
59109         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59110         * tests/test-symlink.h (test_symlink): Likewise.
59111         * tests/test-symlinkat.c (main): Likewise.
59112         * tests/test-unlink.h (test_unlink_func): Likewise.
59113         * tests/test-unlinkat.c (main): Likewise.
59115         maint: make realtime library usage explicit
59116         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
59117         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
59118         * modules/settime (Link): Likewise.
59119         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
59121         test-stat-time: speed up execution
59122         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
59123         warning on mingw.
59124         (nap): New helper function.
59125         (prepare_test): Use it to reduce sleep time.
59126         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
59127         execution.
59128         * modules/stat-time-tests (configure.ac): Check for usleep.
59130 2009-10-09  Jim Meyering  <meyering@redhat.com>
59132         selinux-h: always use getfilecon wrappers
59133         * lib/getfilecon.c: New file.
59134         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
59135         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
59136         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
59137         (fgetfilecon): Provide a stub.
59138         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
59139         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
59140         file unconditionally.
59141         When <selinux/selinux.h> is found, arrange to use wrappers.
59142         * modules/selinux-h (Files): Add getfilecon.c.
59143         (Makefile.am): Substitute include-next-related bits
59144         into the now-always-generated selinux/selinux.h file.
59145         * doc/glibc-functions/lgetfilecon.texi: New file.
59146         * doc/glibc-functions/fgetfilecon.texi: New file.
59147         * doc/glibc-functions/getfilecon.texi: New file.
59148         * doc/glibc-functions/getfilecon-desc.texi: New file.
59149         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
59150         which to pull in the new files.
59151         * MODULES.html.sh (Misc): Add selinux-h.
59153 2009-10-08  Jim Meyering  <meyering@redhat.com>
59155         unistd: fix comment typo
59156         * lib/unistd.in.h (euidaccess): Fix a comment typo.
59158 2009-10-08  Eric Blake  <ebb9@byu.net>
59160         areadlink: use SIZE_MAX consistently
59161         * modules/areadlink (Depends-on): Add stdint.
59162         * modules/areadlink-with-size (Depends-on): Likewise.
59163         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
59164         gives NULL; drop sys/types, since unistd gives size_t; and add
59165         stdint for SIZE_MAX.
59166         (SIZE_MAX): Rely on headers.
59167         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
59168         and add stdint.
59169         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
59170         (SIZE_MAX): Likewise.
59171         (INITIAL_BUF_SIZE): Turn into enum.
59172         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
59174 2009-10-08  Jim Meyering  <meyering@redhat.com>
59176         areadlinkat: avoid compilation failure
59177         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
59178         Fix typo in comment.
59180 2009-10-07  Eric Blake  <ebb9@byu.net>
59182         areadlinkat-with-size: new module
59183         * modules/areadlinkat-with-size: New module.
59184         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
59185         * lib/areadlink.h (areadlinkat): Declare it.
59186         * MODULES.html.sh (File system functions): Mention it.
59187         * modules/areadlinkat-with-size-tests: New test.
59188         * tests/test-areadlinkat-with-size.c: New file.
59190         xreadlinkat: new module
59191         * modules/xreadlinkat: New module.
59192         * lib/xreadlinkat.c (xreadlinkat): New file.
59193         * lib/xreadlink.h (xreadlinkat): Declare it.
59194         * MODULES.html.sh (File system functions): Mention it.
59196         areadlinkat: new module
59197         * lib/at-func.c (FUNC_FAIL): New define.
59198         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
59199         * modules/areadlinkat: New module.
59200         * lib/linkat.c (areadlinkat): Move...
59201         * lib/areadlinkat.c (areadlinkat): ...to new file.
59202         * lib/areadlink.h (areadlinkat): Declare it.
59203         * modules/linkat (Depends-on): Add areadlinkat.
59204         * MODULES.html.sh (File system functions): Mention it.
59205         * modules/areadlinkat-tests: New test.
59206         * tests/test-areadlinkat.c: New file.
59208         areadlink, areadlink-with-size: add tests
59209         * modules/areadlink-tests: New test.
59210         * modules/areadlink-with-size-tests: Likewise.
59211         * tests/test-areadlink.h: New file.
59212         * tests/test-areadlink.c: Likewise.
59213         * tests/test-areadlink-with-size.c: Likewise.
59215         maint: minor cleanups
59216         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
59217         _UNUSED_PARAMETER_ instead.
59218         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
59219         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
59220         * modules/linkat-tests (Files): Distribute test-link.h.
59222         openat, utimens: whitespace cleanup
59223         * lib/openat.c: Prefer space throughout, rather than mix of 8
59224         spaces vs. tabs.
59225         * lib/at-func.c: Likewise.
59226         * lib/utimens.c: Likewise.
59228         openat: avoid using wrong fd
59229         * lib/openat.c (openat_permissive): Reject user's fd if saving the
59230         working directory chooses same fd.
59231         * lib/at-func.c (AT_FUNC_NAME): Likewise.
59233         mkdir, mkdirat: fix cygwin 1.5.x bug
59234         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
59235         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
59236         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
59237         bug.
59238         (gl_PREREQ_MKDIR): Delete unused macro.
59239         * modules/mkdir (Files): Track file rename.
59240         (configure.ac): Update macro name.
59241         * modules/openat (Depends-on): Add mkdir.
59242         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
59244         mkdir, mkdirat: add tests
59245         * modules/mkdir-tests: New test.
59246         * tests/test-mkdir.h: New file.
59247         * tests/test-mkdir.c: Likewise.
59248         * tests/test-mkdirat.c: Likewise.
59249         * modules/openat-tests (Files): Add new files.
59250         (Makefile.am): Run new test.
59252 2009-10-06  Eric Blake  <ebb9@byu.net>
59254         doc: tweak *at function documentation
59255         * doc/posix-functions/faccessat.texi (faccessat): Mention
59256         known issue with replacement.
59257         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
59258         * doc/posix-functions/linkat.texi (linkat): Likewise.
59259         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
59260         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
59261         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59262         * doc/posix-functions/renameat.texi (renameat): Likewise.
59263         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59265         openat: fix GNU/Hurd bug in unlinkat
59266         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
59267         broken.
59268         * doc/posix-functions/unlink.texi (unlink): Document this.
59269         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
59271         fdopendir: fix GNU/Hurd bug
59272         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
59273         allowing non-directory fds.
59274         * lib/fdopendir.c (rpl_fdopendir): Work around it.
59275         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59276         * modules/dirent (Makefile.am): Substitute it.
59277         * lib/dirent.in.h (fdopendir): Declare replacement.
59278         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
59279         * tests/test-fdopendir.c (main): Test something other than
59280         /dev/null, since on Hurd that behaves like a directory.
59282         test-symlink: port to GNU/Hurd
59283         * tests/test-symlink.h (test_symlink): Relax expected errno.
59285         doc: tweak more cygwin information
59286         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
59287         now compatible with glibc.
59288         * doc/posix-functions/getopt.texi (getopt): Likewise.
59290         getopt-gnu: add another test
59291         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
59292         guarantee behavior relied on by m4.
59293         * tests/test-getopt.c (main): Use it.
59294         * modules/getopt-posix-tests (Depends-on): Add setenv.
59295         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
59297         getopt: fix compilation on darwin
59298         * lib/getopt.in.h (includes): Leave breadcrumbs during system
59299         include.
59300         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
59301         Reported by Ludovic Courtès.
59303 2009-10-06  Bruno Haible  <bruno@clisp.org>
59305         * modules/size_max (Description): Discourage its use.
59306         Reported by Simon Josefsson.
59308 2009-10-06  Jim Meyering  <meyering@redhat.com>
59310         linkat: avoid compilation failure
59311         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
59313 2009-10-05  Eric Blake  <ebb9@byu.net>
59315         linkat: support Linux 2.6.17
59316         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
59317         linkat on Linux, but allow cache variable override.
59318         * lib/linkat.c (rpl_linkat): Define override.
59319         * modules/linkat (Depends-on): Add symlinkat.
59320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
59321         * modules/unistd (Makefile.am): Substitute it.
59322         * lib/unistd.in.h (linkat): Declare replacement.
59323         Reported by Pádraig Brady.
59325         quotearg: port test to systems with C.UTF-8 locale
59326         * tests/test-quotearg.c (struct result_strings): Add another
59327         member, differentiating between C.ASCII and C.UTF-8 handling.
59328         (compare_strings): Add parameter.
59329         (main): Adjust all callers.
59331         getopt: avoid clash with FreeBSD _getopt_internal
59332         * lib/getopt.in.h (_getopt_internal): Override the name.
59333         * lib/getopt_int.h (includes): Pick up any overrides.
59334         Reported by Reuben Thomas.
59336         hash: allow C89 compilation
59337         * lib/hash.c (check_tuning): Move declaration before statement.
59338         Reported by Reuben Thomas.
59340 2009-10-05  Karl Berry  <karl@gnu.org>
59342         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
59344 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
59345             Bruno Haible  <bruno@clisp.org>
59347         * lib/uname.c (uname): Use a table-driven algorithm to compute
59348         Windows NT versions.
59350 2009-10-04  Bruno Haible  <bruno@clisp.org>
59352         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
59353         program_invocation_short_name.
59354         * modules/progname (configure.ac): Test for presence of
59355         program_invocation_short_name.
59356         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
59358 2009-10-04  Bruno Haible  <bruno@clisp.org>
59360         * lib/progname.c (set_program_name): Fix comment.
59361         Reported by Jim Meyering.
59363 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59364             Bruno Haible  <bruno@clisp.org>
59366         * lib/uname.c: Include <string.h>.
59367         (uname): Do only one call to GetVersionEx in the common case.
59369 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59370             Bruno Haible  <bruno@clisp.org>
59372         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
59373         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
59374         (uname): Add support for Windows CE and various non-x86 CPU types.
59376 2009-10-03  Bruno Haible  <bruno@clisp.org>
59378         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
59379         invocation to tests/configure.ac.
59380         Reported by Ian Beckwith <ianb@erislabs.net>.
59382 2009-10-02  Eric Blake  <ebb9@byu.net>
59384         fchdir: avoid compiler warning
59385         * lib/fchdir.c (canonicalize_file_name)
59386         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
59388         test-open: support mingw errno values
59389         * tests/test-open.h (test_open): Relax test.
59390         * tests/test-fopen.h (test_fopen): Likewise.
59391         * tests/test-openat-safer.c (main): Likewise.
59393         open: fix opening directory on mingw
59394         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
59396         test-open: on GNU/Hurd, /dev/null is a directory
59397         * tests/test-fopen.h (main): Rename...
59398         (test_fopen): ...to this.  Use a guaranteed non-directory when
59399         confirming open behavior on trailing slash.
59400         * tests/test-openat-safer.c (main): Likewise.
59401         * tests/test-open.h (main): Likewise....
59402         (test_open): ...to this.
59403         * tests/test-fopen.c (main): Adjust caller.
59404         * tests/test-fopen-safer.c (main): Likewise.
59405         * tests/test-open.c (main): Likewise.
59406         * tests/test-fcntl-safer.c (main): Likewise.
59407         Reported by Samuel Thibault.
59409         rename, fchdir: don't ignore chdir failure
59410         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
59411         * lib/rename.c (rpl_rename) [W32]: Likewise.
59412         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
59413         an empty destination directory if source cannot be renamed,
59414         although there is still possibility for failure.
59415         * doc/posix-functions/rename.texi (rename): Document the race.
59416         Reported by Jim Meyering.
59418         maint: cleanup whitespace in recent commits
59419         * lib/rename.c (rpl_rename): Remove tabs.
59420         * tests/test-link.h (test_link): Likewise.
59421         * lib/fchdir.c (get_name): Likewise.
59422         Reported by Jim Meyering.
59424 2009-10-02  Ben Pfaff  <blp@gnu.org>
59426         relocatable-prog-wrapper: Add missing dependency on
59427         double-slash-root.
59428         * modules/relocatable-prog-wrapper: Add dependency.
59429         Reported by Ian Beckwith <ianb@erislabs.net>.
59431 2009-10-02  Eric Blake  <ebb9@byu.net>
59433         renameat: fix Solaris bugs
59434         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
59435         needed fixing.
59436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
59437         * modules/stdio (Makefile.am): Substitute it.
59438         * lib/stdio.in.h (renameat): Declare replacement.
59439         * lib/renameat.c (rpl_renameat): Implement fix.
59441         renameat: new module
59442         * modules/renameat: New file.
59443         * lib/renameat.c (renameat): Likewise.
59444         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
59445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
59446         * modules/stdio (Makefile.am): Substitute them.
59447         * lib/stdio.in.h (renameat): Declare it.
59448         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59449         * doc/posix-functions/renameat.texi (renameat): Likewise.
59450         * modules/renameat-tests: New test.
59451         * tests/test-renameat.c: Likewise.
59453         rename: fix mingw bugs
59454         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
59455         directory overwrite bugs.
59457         rename: fix another cygwin 1.5 bug
59458         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
59459         checks.
59460         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
59461         unnecessary cygwin workarounds.  Also work around bug with moving
59462         full directory onto an empty one.
59463         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
59465         rename-dest-slash: merge into rename module
59466         * modules/rename-dest-slash (Status): Mark obsolete.
59467         (Depends-on): Add rename.
59468         (Files): Let rename do it all.
59469         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
59470         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
59471         * m4/rename-dest-slash.m4: ...so this file can be deleted.
59472         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
59473         * lib/rename.c (rpl_rename): Update comments.
59475         rename: fix cygwin 1.5.x bugs
59476         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
59477         * lib/rename.c (rpl_rename): Work around them.
59478         * modules/rename (Depends-on): Add same-inode.
59480         rename: fix Solaris 10 bug
59481         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
59482         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
59483         was the only bug.
59485         rename: fix Solaris 9 bug
59486         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
59487         on non-directory.  Avoid calling exit.
59488         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
59489         strdup.
59490         * modules/rename-tests (Depends-on): Drop lstat.
59491         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
59492         (gl_PREREQ_RENAME): Delete unused macro.
59494         rename-dest-slash: fix NetBSD bug
59495         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
59496         links.
59497         * modules/rename-dest-slash (Depends-on): Add same-inode.
59499         rename-tests: new test, exposes several platform bugs
59500         * modules/rename-tests: New file.
59501         * tests/test-rename.h: Likewise.
59502         * tests/test-rename.c: Likewise.
59503         * doc/posix-functions/rename.texi (rename): Improve documentation,
59504         including bugs that will eventually be fixed in gnulib.
59506 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
59508         * lib/uname.c: Include <stdlib.h>
59509         (uname): Assume version info is available.
59511 2009-10-02  Jim Meyering  <meyering@redhat.com>
59513         gnu-web-doc-update: correct --help output
59514         * build-aux/gnu-web-doc-update: Make --help output relevant.
59516         gnu-web-doc-update: add standard options
59517         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
59519         gnu-web-doc-update: New module.
59520         Use this script to automatically update the on-line web documentation
59521         for your GNU project at http://www.gnu.org/software/$pkg/manual/
59522         * modules/gnu-web-doc-update: New file, from coreutils.
59523         * build-aux/gnu-web-doc-update: New script.
59525 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
59527         link: LoadLibrary is not needed.
59528         * lib/link.c: Use GetModuleHandle.
59530 2009-10-01  Eric Blake  <ebb9@byu.net>
59532         getopt: bump serial number
59533         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
59534         change.
59536         tests: tighten link, rmdir, and remove tests
59537         * tests/test-link.h (includes): No need to use <config.h> here.
59538         Clean up if directory hard link was created, otherwise test for
59539         trailing '.'.
59540         * tests/test-linkat.c (main): Simplify.
59541         * tests/test-remove.c (main): Enhance test for trailing '.'.
59542         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59544 2009-10-01  Jim Meyering  <meyering@redhat.com>
59546         maint.mk: requiring "make major" was annoying, for a "minor" release.
59547         What is intended is "stable", to contrast with alpha and beta,
59548         so require "make stable", not "make major".
59549         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
59550         (get_tool_versions): Likewise.
59551         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
59553 2009-09-30  Ben Pfaff  <blp@gnu.org>
59555         Fix broken build of replacement for Windows tmpfile().
59556         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
59557         flags argument added along with the 'mkostemp' module.
59559 2009-09-28  Bruno Haible  <bruno@clisp.org>
59561         Avoid identifier clash with POSIX function 'remove' defined as a macro.
59562         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
59563         to 'remove_elt'.
59564         (gl_list_remove): Update.
59565         * lib/gl_list.c (gl_list_remove): Update.
59566         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
59567         to 'remove_elt'.
59568         (gl_oset_remove): Update.
59569         * lib/gl_list.c (gl_oset_remove): Update.
59570         Reported by Eric Blake.
59572 2009-09-28  Eric Blake  <ebb9@byu.net>
59574         doc: mention yet more cygwin 1.7 status
59575         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
59576         cygwin.
59577         * doc/glibc-functions/execvpe.texi (execvpe): New file.
59578         * doc/gnulib.texi (Glibc unistd.h): Mention it.
59580         argp: fix test failure
59581         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
59582         that are not upper-case.  Pass correct range to tolower.
59584 2009-09-27  Jim Meyering  <meyering@redhat.com>
59586         test-yesno: work around sparc-dash here-document infelicity
59587         Without this change, the literal \177 byte in a here document
59588         would make dash 0.5.5.1-3 access uninitialized memory.
59589         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
59590         Instead, use a marker, "@", and filter through tr to create the desired
59591         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
59593 2009-09-27  Bruno Haible  <bruno@clisp.org>
59595         Disable untested support for new flavours of ACLs on AIX.
59596         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
59597         progress.
59598         * lib/set-mode-acl.c (qset_acl): Likewise.
59600 2008-12-07  Bruno Haible  <bruno@clisp.org>
59602         Add support for new flavours of ACLs on AIX. (Untested.)
59603         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
59604         (file_has_acl): Add support for newer AIX.
59605         * lib/set-mode-acl.c (qset_acl): Likewise.
59606         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
59607         Rainer Tammer <tammer@tammer.net>.
59609 2009-09-26  Eric Blake  <ebb9@byu.net>
59611         argp: fix compilation of getopt
59612         * lib/getopt.in.h (includes): Use different guard than glibc.
59613         Reported by Sergey Poznyakoff.
59615         doc: mention more cygwin 1.7 status
59616         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
59617         bug.
59618         * doc/posix-functions/execl.texi (execl): Likewise.
59619         * doc/posix-functions/execle.texi (execle): Likewise.
59620         * doc/posix-functions/execlp.texi (execlp): Likewise.
59621         * doc/posix-functions/execv.texi (execv): Likewise.
59622         * doc/posix-functions/execve.texi (execve): Likewise.
59623         * doc/posix-functions/execvp.texi (execvp): Likewise.
59624         * doc/glibc-functions/canonicalize_file_name.texi
59625         (canonicalize_file_name): Cygwin 1.7 now provides this.
59626         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
59627         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
59628         on AT_SYMLINK_NOFOLLOW.
59630 2009-09-24  Eric Blake  <ebb9@byu.net>
59632         test-linkat: make test more robust
59633         * tests/test-linkat.c (main): Avoid collision with EEXIST.
59635         getopt: fix inclusion guards for cygwin
59636         * modules/getopt-posix (Depends-on): Add include-next.
59637         (Makefile.am): Substitute more items in replacement header.
59638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
59639         <getopt.h>.
59640         * lib/getopt.in.h (includes): Use split inclusion guard, and
59641         prefer <getopt.h> over include <unistd.h> when one is present.
59642         (option): Also override name of 'struct option'.
59644         same-inode: revert prior change; it is not yet ready
59645         * NEWS: Undo mention of this change.
59646         * lib/same-inode.h (same-inode.h): Undo tri-state change.
59647         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59648         * lib/cycle-check.c (cycle_check): Likewise.
59649         * lib/same.c (same_name): Likewise.
59650         * lib/at-func2.c (at_func2): Likewise.
59652 2009-09-23  Eric Blake  <ebb9@byu.net>
59654         linkat: new module
59655         * modules/linkat: New file.
59656         * lib/at-func2.c (at_func2): Likewise.
59657         * lib/linkat.c (linkat): Likewise.
59658         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59659         * lib/openat-priv.h (at_func2): Add declaration.
59660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59661         * modules/unistd (Makefile.am): Substitute them.
59662         * lib/unistd.in.h (linkat): Declare it.
59663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59664         * doc/posix-functions/linkat.texi (linkat): Likewise.
59665         * doc/posix-functions/link.texi (link): Tweak wording.
59666         * tests/test-link.c (main): Move guts...
59667         * tests/test-link.h (test_link): ...into new file.
59668         * modules/linkat-tests: New test.
59669         * tests/test-linkat.c: Likewise.
59670         * modules/link-tests (Files): Ship new file.
59671         (Depends-on): Add stdbool.
59673         dirname: add library-safe mdir_name
59674         * lib/dirname.h (mdir_name): New prototype.
59675         * lib/dirname.c (dir_name): Move guts...
59676         (mdir_name): ...to new function that avoids xalloc_die.
59678         fchdir: another mingw fix
59679         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
59680         * lib/fchdir.c (get_name): New helper method; skips canonicalize
59681         on mingw (where it has not yet been ported), and make it optional
59682         elsewhere.
59683         (_gl_register_fd): Use it.
59685         same-inode: make SAME_INODE tri-state, to port to mingw
59686         * NEWS: Mention this change.
59687         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
59688         st_ino always being 0.
59689         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59690         * lib/cycle-check.c (cycle_check): Likewise.
59691         * lib/same.c (same_name): Likewise.
59693         lstat: avoid mingw compilation error
59694         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
59695         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
59696         lstat ourselves.
59697         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
59698         was adequate.
59699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
59700         the checks for lstat.
59701         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
59703         link: fix test failure on Solaris 9
59704         * lib/link.c (rpl_link): Don't assume link will catch bogus
59705         trailing slash on source.
59707         test-symlinkat: enhance test
59708         * tests/test-readlink.c (main): Move guts...
59709         * tests/test-readlink.h (test_readlink): ...into new file.
59710         * tests/test-symlink.c (main): Move guts...
59711         * tests/test-symlink.h (test_symlink): ...into new file.
59712         * tests/test-symlinkat.c (main): Use new files for further
59713         coverage.
59714         (do_symlink, do_readlink): New helper functions.
59715         * modules/symlink-tests (Files): Ship new file.
59716         (Depends-on): Add stdbool.
59717         * modules/readlink-tests (Files): Ship new file.
59718         (Depends-on): Add stdbool.
59719         * modules/symlinkat-tests (Files): Use new files.
59721 2009-09-23  Eric Blake  <ebb9@byu.net>
59723         readlink: document portability issue with symlink length
59724         * doc/posix-functions/lstat.texi (lstat): Mention that some file
59725         systems have bogus st_size on symlinks, and mention the
59726         areadlink-with-size module.
59727         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59728         * doc/posix-functions/readlink.texi (readlink): Mention the
59729         areadlink module, and ERANGE failure.
59730         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59731         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
59733         readlink: fix Solaris 9 bug with trailing slash
59734         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
59735         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
59736         * doc/posix-functions/readlink.texi (readlink): Document this.
59737         * modules/readlink-tests: New test.
59738         * tests/test-readlink.c: Likewise.
59740         readlink: fix cygwin 1.5.x bug with return type
59741         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
59742         * lib/unistd.in.h (readlink): Use ssize_t.
59743         * lib/readlink.c (readlink): Likewise.
59744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59745         * modules/unistd (Makefile.am): Substitute it.
59746         * lib/unistd.in.h (readlink): Declare replacement.
59747         * doc/posix-functions/readlink.texi (readlink): Document this.
59749         symlink: use throughout gnulib
59750         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
59751         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
59752         symlink is not used.
59753         * modules/symlinkat (Depends-on): Add symlink.
59754         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
59755         * modules/canonicalize-tests (Depends-on): Likewise.
59756         * modules/lstat-tests (Depends-on): Likewise.
59757         * modules/openat-tests (Depends-on): Likewise.
59758         * modules/remove-tests (Depends-on): Likewise.
59759         * modules/rmdir-tests (Depends-on): Likewise.
59760         * modules/unlink-tests (Depends-on): Likewise.
59761         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
59762         * tests/test-canonicalize.c (symlink): Likewise.
59763         * tests/test-fstatat.c (symlink): Likewise.
59764         * tests/test-lstat.c (symlink): Likewise.
59765         * tests/test-remove.c (symlink): Likewise.
59766         * tests/test-rmdir.c (symlink): Likewise.
59767         * tests/test-unlink.c (symlink): Likewise.
59768         * tests/test-unlinkat.c (symlink): Likewise.
59770         symlink: new module, for Solaris 9 bug
59771         * modules/symlink: New file.
59772         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59773         * lib/symlink.c: Likewise.
59774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59775         * modules/unistd (Makefile.am): Substitute them.
59776         * lib/unistd.in.h (symlink): Declare replacement.
59777         * MODULES.html.sh (File system functions): Mention it.
59778         * doc/posix-functions/symlink.texi (symlink): Likewise.
59779         * modules/symlink-tests: New test.
59780         * tests/test-symlink.c: Likewise.
59782 2009-09-23  Bruno Haible  <bruno@clisp.org>
59784         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
59785         when needed.
59786         Test case: gnulib-tool --import --with-tests atexit inttypes.
59787         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
59789 2009-09-23  Bruno Haible  <bruno@clisp.org>
59791         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
59792         subcommand, not in a subshell.
59794 2009-09-22  Eric Blake  <ebb9@byu.net>
59796         unistd: sort replacement declarations
59797         * lib/unistd.in.h: Sort declarations.
59799         open, openat: minor optimization
59800         * lib/open.c (open): If open succeeded, len is non-zero.
59801         * lib/openat.c (rpl_openat): Likewise.
59803         link-follow: ensure correct result
59804         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
59805         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
59806         distinguish between possible failures.
59808 2009-09-21  Eric Blake  <ebb9@byu.net>
59810         fts: avoid compiler warning
59811         * lib/fts.c (dirent_inode_sort_may_be_useful)
59812         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
59814 2009-09-19  Bruno Haible  <bruno@clisp.org>
59816         * lib/progreloc.c (canonicalize_file_name): New declaration.
59818 2009-09-19  Eric Blake  <ebb9@byu.net>
59820         link: fix quoting
59821         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
59823         openat: fix openat bugs on Solaris 9
59824         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
59825         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
59826         * modules/openat (Depends-on): Add open.
59827         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
59828         * modules/fcntl-h (Makefile.am): Substitute it.
59829         * lib/fcntl.in.h (openat): Declare replacement.
59830         * doc/posix-functions/openat.texi (openat): Document this.
59832         openat: move fstatat and unlinkat into correct files
59833         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
59834         compiled.
59835         * lib/openat.c (fstatat, unlinkat): Move...
59836         * lib/fstatat.c (fstatat): ...into correct files.
59837         * lib/unlinkat.c (unlinkat): Likewise.
59839         openat: fix unlinkat bugs on Solaris 9
59840         * lib/unlinkat.c (unlinkat): New file.
59841         * modules/openat (Depends-on): Add unlink.
59842         (Files): Distribute it.
59843         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
59844         trailing slash behavior is broken.
59845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59846         * modules/unistd (Makefile.am): Substitute it.
59847         * lib/unistd.in.h (unlinkat): Declare replacement.
59848         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
59850         openat: fix fstatat bugs on Solaris 9
59851         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
59852         stat.
59853         * doc/posix-functions/fstatat.texi (fstatat): Document this.
59855         test-unlinkat: enhance test, to expose Solaris 9 bug
59856         * tests/test-unlink.c (main): Factor guts...
59857         * tests/test-unlink.h (test_rmdir_func): ...into new file.
59858         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
59859         * tests/test-rmdir.c (main): Adjust caller.
59860         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
59861         (unlinker): New helper function.
59862         (rmdirat): Enhance check.
59863         * modules/rmdir-tests (Depends-on): Add stdbool.
59864         * modules/unlink-tests (Depends-on): Likewise.
59865         (Files): Add test-unlink.h.
59866         * modules/openat-tests (Files): Likewise.
59867         (Depends-on): Add unlinkdir.
59869         test-fstatat: new test, to expose Solaris 9 bugs
59870         * tests/test-stat.c (main): Factor guts...
59871         * tests/test-stat.h (test_stat_func): ...into new file.
59872         * tests/test-lstat.c (main): Factor guts...
59873         * tests/test-lstat.h (test_lstat_func): ...into new file.
59874         * tests/test-fstatat.c: New file.
59875         * modules/stat-tests (Files): Add test-stat.h.
59876         * modules/lstat-tests (Files): Add test-lstat.h.
59877         (Depends-on): Add stdbool.
59878         * modules/openat-tests (Depends-on): Add pathmax.
59879         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
59880         (Makefile.am): Run new test.
59882         remove: new module, for mingw and Solaris 9 bugs
59883         * modules/remove: New file.
59884         * lib/remove.c: Likewise.
59885         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
59886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
59887         * modules/stdio (Makefile.am): Use them.
59888         * lib/stdio.in.h (remove): Declare replacement.
59889         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59890         * doc/posix-functions/remove.texi (remove): Likewise.
59891         * modules/remove-tests: New test.
59892         * tests/test-remove.c: Likewise.
59894         unlink: new module, for Solaris 9 bug
59895         * modules/unlink: New file.
59896         * lib/unlink.c: Likewise.
59897         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59899         * modules/unistd (Makefile.am): Use them.
59900         * lib/unistd.in.h (stat): Declare replacement.
59901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59902         * doc/posix-functions/unlink.texi (unlink): Likewise.
59903         * modules/unlink-tests: New test.
59904         * tests/test-unlink.c: Likewise.
59906         lstat: fix Solaris 9 bug
59907         * lib/lstat.c (lstat): Also check for trailing slash on
59908         non-symlink, non-directories.  Use stat module to simplify logic.
59909         * doc/posix-functions/lstat.texi (lstat): Document it.
59910         * modules/lstat-tests (Depends-on): Add errno, same-inode.
59911         (configure.ac): Check for symlink.
59912         * tests/test-lstat.c (main): Add more tests.
59914         stat: add as dependency to other modules
59915         * modules/chown (Depends-on): Add stat.
59916         * modules/euidaccess (Depends-on): Likewise.
59917         * modules/fchdir (Depends-on): Likewise.
59918         * modules/isdir (Depends-on): Likewise.
59919         * modules/link (Depends-on): Likewise.
59920         * modules/lstat (Depends-on): Likewise.
59921         * modules/mkdir-p (Depends-on): Likewise.
59922         * modules/modechange (Depends-on): Likewise.
59923         * modules/open (Depends-on): Likewise.
59924         * modules/readlink (Depends-on): Likewise.
59925         * modules/same (Depends-on): Likewise.
59927         stat: fix Solaris 9 bug
59928         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
59929         slash.
59930         * lib/stat.c (rpl_stat): Work around it.
59931         * doc/posix-functions/stat.texi (stat): Update documentation.
59933         stat: new module, for mingw bug
59934         * modules/stat: New file.
59935         * lib/stat.c: Likewise.
59936         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59938         * modules/sys_stat (Makefile.am): Use them.
59939         * lib/sys_stat.in.h (stat): Declare replacement.
59940         * lib/openat.c (fstatat): Deal with lstat and stat being function
59941         macros.
59942         * modules/openat (Depends-on): Add inline.
59943         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59944         * doc/posix-functions/stat.texi (stat): Likewise.
59945         * modules/stat-tests: New test.
59946         * tests/test-stat.c: Likewise.
59948 2009-09-19  Jim Meyering  <meyering@redhat.com>
59950         syntax-check: detect unnecessary inclusion of canonicalize.h
59951         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
59953 2009-09-19  Eric Blake  <ebb9@byu.net>
59955         canonicalize-lgpl: adjust clients to use correct header
59956         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
59957         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
59958         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
59959         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
59960         * lib/progreloc.c (includes): Likewise.
59962 2009-09-19  Jim Meyering  <meyering@redhat.com>
59964         test-posixtm.c: correct a comment
59965         * tests/test-posixtm.c: Correct first-line comment.
59966         Spotted by Eric Blake.
59968 2009-09-16  Jim Meyering  <meyering@redhat.com>
59970         posixtm-tests: make T const-correct; add a test case
59971         * tests/test-posixtm.c (T): Declare const.
59972         Add a test for -(2^31+1).
59973         Remove useless can-succeed-only-in-2002 test.
59975         posixtm-tests: adjust the sole failing test
59976         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
59977         expected output matches what mktime now produces.  Cross-checked via
59978         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
59980         posixtm: move #ifdef'd tests into a new module
59981         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
59982         * tests/test-posixtm.c: ... this new file.
59983         * modules/posixtm-tests: New module.
59985 2009-09-19  Eric Blake  <ebb9@byu.net>
59987         openat: simplify use of at-func.c
59988         * lib/at-func.c (includes): Include prerequisites here, to
59989         simplify requirements on client files.
59990         * lib/openat-priv.h: Add double-inclusion guard.
59991         * lib/faccessat.c (includes): Simplify.
59992         * lib/fchmodat.c (includes): Likewise.
59993         * lib/fchownat.c (includes): Likewise.
59994         * lib/mkdirat.c (includes): Likewise.
59995         * lib/mkfifoat.c (includes): Likewise.
59996         * lib/symlinkat.c (includes): Likewise.
59998         openat: allow return of fd 0
59999         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
60000         * modules/save-cwd (Depends-on): Replace fcntl-safer with
60001         unistd-safer.
60002         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
60003         <fcntl.h>; this module does not leak fds.
60004         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
60005         must be allowed to return 0, leaving openat_safer to add the
60006         safety.
60007         (openat_permissive): Avoid writing to just-opened fd 2 if
60008         restoring the current directory fails.
60009         * lib/openat-die.c (openat_restore_fail): Add comment.
60010         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
60011         (save_cwd): Guarantee safe fd, but without use of open_safer.
60012         * tests/test-openat.c: New test.
60013         * modules/openat-tests (Files, Makefile.am): Distribute and build
60014         new file.
60016         relocatable-prog-wrapper: fix build
60017         * modules/relocatable-prog-wrapper (Files): Update name of
60018         canonicalize m4 file, broken on 2009-09-17.
60019         Reported by emad hajjar <aleppos@hotmail.com>.
60021 2009-09-19  Bruno Haible  <bruno@clisp.org>
60023         * lib/safe-alloc.h: Use the standard header with GPL copyright.
60024         * lib/safe-alloc.c: Likewise.
60025         Reported by Ian Beckwith <ianb@erislabs.net>.
60027 2009-09-18  Bruno Haible  <bruno@clisp.org>
60029         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
60030         Reported by <erobles@sensacd.com.mx>.
60032 2009-09-17  Eric Blake  <ebb9@byu.net>
60034         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
60035         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
60036         slashes when checking if last component is missing.
60037         * tests/test-canonicalize.c (main): Test this.
60039         canonicalize, canonicalize-lgpl: honor // if distinct from /
60040         * modules/canonicalize (Files): Add double-slash-root.m4.
60041         * modules/canonicalize-lgpl (Files): Likewise.
60042         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60043         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
60044         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
60045         fallback definition.
60046         (canonicalize_filename_mode): Use it to protect //.
60047         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
60048         (__realpath): Likewise.
60049         * tests/test-canonicalize.c (main): Test this.
60050         * tests/test-canonicalize-lgpl.c (main): Likewise.
60051         * modules/canonicalize-tests (Depends-on): Add same-inode.
60052         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60054         canonicalize-lgpl: fix glibc bug with trailing slash
60055         * m4/canonicalize-lgpl.m4: Move contents...
60056         * m4/canonicalize.m4: ...here.
60057         (gl_CANONICALIZE_LGPL): Factor realpath check...
60058         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
60059         glibc 2.3.5 bug, fixed 2005-04-27.
60060         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
60061         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
60062         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
60063         * modules/canonicalize-lgpl (Files): Manage file rename.
60064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60065         * modules/stdlib (Makefile.am): Substitute witness.
60066         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
60067         is needed.
60068         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
60069         replacement is required.
60070         * lib/canonicalize.c (canonicalize_file_name): Likewise.
60071         * doc/glibc-functions/canonicalize_file_name.texi
60072         (canonicalize_file_name): Document this.
60073         * doc/posix-functions/realpath.texi (realpath): Likewise.
60075         canonicalize-lgpl: reject non-directory with trailing slash
60076         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
60077         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
60078         catches failures in glibc 2.3.5.
60079         * tests/test-canonicalize.c (main): Likewise.
60081         canonicalize-lgpl: use native realpath if it works
60082         * lib/canonicalize-lgpl.c (realpath): Guard with
60083         FUNC_REALPATH_WORKS.
60084         * lib/stdlib.in.h (realpath): Make declaration optional based on
60085         HAVE_REALPATH.
60086         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
60087         native realpath works.
60088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60089         * modules/stdlib (Makefile.am): Substitute witness.
60091         canonicalize, canonicalize-lgpl: use <stdlib.h>
60092         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
60093         (Include): Mention <stdlib.h>.
60094         (configure.ac): Mention functions we provide.
60095         * modules/canonicalize (configure.ac): Likewise.
60096         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
60097         realpath if canonicalize_file_name is missing.
60098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
60099         * modules/stdlib (Makefile.am): Substitute witnesses.
60100         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
60101         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
60102         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
60103         * NEWS: Document this.
60104         * doc/glibc-functions/canonicalize_file_name.texi
60105         (canonicalize_file_name): Likewise.
60106         * doc/posix-functions/realpath.texi (realpath): Likewise.
60107         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
60109         test-canonicalize: consolidate into single C program
60110         * tests/test-canonicalize.sh: Delete; move setup into...
60111         * tests/test-canonicalize.c (main): ...the program, making it
60112         easier to run in debugger.  Add some tests.
60113         * modules/canonicalize-tests (Files): Remove unused file.
60114         (Depends-on): Add progname.
60115         (configure.ac, Makefile.am): Simplify.
60117         test-canonicalize-lgpl: consolidate into single C program
60118         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
60119         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
60120         easier to run in debugger.  Add some tests.
60121         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
60122         (configure.ac, Makefile.am): Simplify.
60124         canonicalize: avoid resolvepath
60125         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
60126         unnecessary checks.
60127         * lib/canonicalize.c (includes): Simplify.
60128         (canonicalize_file_name): Drop resolvepath implementation.
60129         * modules/canonicalize (Depends-on): Drop filenamecat.
60131         canonicalize: don't lose errno
60132         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
60133         over calls to free.
60135         canonicalize: simplify errno handling
60136         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
60137         assignment.
60139         canonicalize, canonicalize-lgpl: update module dependencies
60140         * modules/canonicalize (Depends-on): Add extensions, lstat,
60141         pathmax, stdlib.
60142         (Files): Drop pathmax.h.
60143         (configure.ac): Adjust macro name.
60144         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
60145         lstat, stdlib, sys_stat.
60146         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
60147         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
60148         extensions.
60149         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
60150         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
60151         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
60152         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
60153         declaration, if available.
60154         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
60155         we can rely on the readlink module.
60156         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
60157         (includes): Use <unistd.h> unconditionally.
60159 2009-09-17  Eric Blake  <ebb9@byu.net>
60161         maint: make Include sections of modules consistent
60162         * modules/alloca: Use only header name; no need to list #include.
60163         * modules/alloca-opt: Likewise.
60164         * modules/arpa_inet: Likewise.
60165         * modules/canon-host: Likewise.
60166         * modules/configmake: Likewise.
60167         * modules/dirent: Likewise.
60168         * modules/eealloc: Likewise.
60169         * modules/environ: Likewise.
60170         * modules/fchdir: Likewise.
60171         * modules/fcntl: Likewise.
60172         * modules/fcntl-h: Likewise.
60173         * modules/gethrxtime: Likewise.
60174         * modules/gettime: Likewise.
60175         * modules/ignore-value: Likewise.
60176         * modules/inet_ntop: Likewise.
60177         * modules/inet_pton: Likewise.
60178         * modules/inttypes: Likewise.
60179         * modules/isnand-nolibm: Likewise.
60180         * modules/isnanf-nolibm: Likewise.
60181         * modules/mbchar: Likewise.
60182         * modules/mbfile: Likewise.
60183         * modules/mbiter: Likewise.
60184         * modules/mbuiter: Likewise.
60185         * modules/netdb: Likewise.
60186         * modules/netinet_in: Likewise.
60187         * modules/nproc: Likewise.
60188         * modules/pagealign_alloc: Likewise.
60189         * modules/poll: Likewise.
60190         * modules/printf-frexp: Likewise.
60191         * modules/pthread: Likewise.
60192         * modules/putenv: Likewise.
60193         * modules/random_r: Likewise.
60194         * modules/relocatable-prog: Likewise.
60195         * modules/search: Likewise.
60196         * modules/select: Likewise.
60197         * modules/selinux-h: Likewise.
60198         * modules/settime: Likewise.
60199         * modules/signal: Likewise.
60200         * modules/size_max: Likewise.
60201         * modules/socklen: Likewise.
60202         * modules/ssize_t: Likewise.
60203         * modules/stdarg: Likewise.
60204         * modules/stdbool: Likewise.
60205         * modules/stddef: Likewise.
60206         * modules/stdint: Likewise.
60207         * modules/stdio: Likewise.
60208         * modules/stdlib: Likewise.
60209         * modules/string: Likewise.
60210         * modules/strings: Likewise.
60211         * modules/sys_file: Likewise.
60212         * modules/sys_ioctl: Likewise.
60213         * modules/sys_select: Likewise.
60214         * modules/sys_socket: Likewise.
60215         * modules/sys_stat: Likewise.
60216         * modules/sys_time: Likewise.
60217         * modules/sys_times: Likewise.
60218         * modules/sys_utsname: Likewise.
60219         * modules/sys_wait: Likewise.
60220         * modules/sysexits: Likewise.
60221         * modules/time: Likewise.
60222         * modules/times: Likewise.
60223         * modules/tmpfile: Likewise.
60224         * modules/trim: Likewise.
60225         * modules/unistd: Likewise.
60226         * modules/wchar: Likewise.
60227         * modules/wctype: Likewise.
60229 2009-09-17  Bruno Haible  <bruno@clisp.org>
60231         Make getdate.y compile on QNX and NetBSD 5 / i386.
60232         * m4/getdate.m4 (gl_GETDATE): Conditionally define
60233         TIME_T_FITS_IN_LONG_INT.
60234         * lib/getdate.y (long_time_t): New type.
60235         (relative_time): Change type of 'seconds' field to long_time_t.
60236         (get_date): Update types of local variables. Check against overflow
60237         during conversion from long_time_t to time_t.
60238         Reported by Matt Kraai <kraai@ftbfs.org>
60239         and Hasso Tepper <hasso@netbsd.org>.
60241 2009-09-17  Bruno Haible  <bruno@clisp.org>
60243         * modules/COPYING: Update copyright years.
60244         * modules/README: Likeiwse.
60245         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
60246         Reported by Ian Beckwith <ianb@erislabs.net>.
60248 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60250         * users.txt: Update references for gnuit package.
60252 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60254         * m4/getdelim.m4: Fix typo in copyright line.
60256 2009-09-17  Bruno Haible  <bruno@clisp.org>
60258         * lib/atoll.c: Use the standard header with GPL copyright.
60259         * lib/argz.in.h: Likewise.
60260         * lib/glob.c: Likewise.
60261         * lib/glob-libc.h: Likewise.
60262         * lib/random_r.c: Likewise.
60263         * lib/siglist.h: Likewise.
60264         * lib/strsignal.c: Likewise.
60265         Reported by Ian Beckwith <ianb@erislabs.net>.
60267 2009-09-17  Eric Blake  <ebb9@byu.net>
60269         rmdir: ensure correct dependency order
60270         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
60272 2009-09-17  Bruno Haible  <bruno@clisp.org>
60274         Disable assertion that fails on NetBSD 5 / i386.
60275         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
60276         Reported by Sam Steingold <sds@gnu.org>
60277         and Hasso Tepper <hasso@netbsd.org>.
60279 2009-09-16  Eric Blake  <ebb9@byu.net>
60281         unlinkdir: port to mingw
60282         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
60283         on which no one can unlink a directory.
60285         stdlib: sort witness names
60286         * modules/stdlib (Makefile.am): Sort replacements.
60287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60288         * lib/stdlib.in.h: Likewise.
60290         parse-duration-tests: avoid link failure
60291         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
60292         LIBINTL.
60293         Reported by Tom G. Christensen.
60295         openat-tests: ensure unlinkat behaves like rmdir
60296         * tests/test-rmdir.c (main): Factor guts...
60297         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
60298         * modules/rmdir-tests (Files): Ship new file.
60299         * modules/openat-tests: New test.
60300         * tests/test-unlinkat.c: Likewise.
60302         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
60303         * modules/rmdir-errno (Status, Notice): Now obsolete.
60305         rmdir: work around cygwin 1.5.x and mingw bugs
60306         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
60307         * lib/rmdir.c (rmdir): Work around it.
60308         * modules/rmdir (Status, Notice): No longer obsolete.
60309         (Files): Add dos.m4.
60310         (Depends-on): Add unistd.
60311         (configure.ac): Set witnesses.
60312         (License): Relax to LGPLv2+.
60313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
60314         * modules/unistd (Makefile.am): Substitute witnesses.
60315         * lib/unistd.in.h (rmdir): Declare replacement.
60316         * doc/posix-functions/rmdir.texi (rmdir): Document this.
60317         * modules/rmdir-tests: New tests.
60318         * tests/test-rmdir.c: Likewise.
60320 2009-09-15  Eric Blake  <ebb9@byu.net>
60322         fchdir: improve use of replacement functions
60323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
60324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
60325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
60326         REPLACE_CLOSEDIR.
60327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
60328         * modules/sys_stat (Makefile.am): Substitute correct witness.
60329         * modules/dirent (Makefile.am): Likewise.
60330         * modules/unistd (Makefile.am): Likewise.
60331         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
60332         * lib/unistd.in.h (dup): Likewise.
60333         * lib/sys_stat.in.h (fstat): Likewise.
60335         maint: ignore gnulib-tool temp files
60336         * .gitignore: Ignore files created during gnulib-tool --test.
60338 2009-09-13  Jim Meyering  <meyering@redhat.com>
60340         posixtm: don't reject a time that specify "60" as the number of seconds
60341         * lib/posixtm.c (posixtime): The code to reject invalid dates
60342         would also reject a time specified with the .60 suffix.
60343         But POSIX allows that, in order to accommodate leap seconds.
60344         So don't reject it.
60345         (main): Adjust tests accordingly.
60346         * modules/posixtm (Depends-on): Add stpcpy.
60348 2009-09-11  Jim Meyering  <meyering@redhat.com>
60350         announce-gen: include [$release_type] in emitted Subject:
60351         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
60352         e.g., [stable] in the emitted Subject: line.
60354 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60356         Remove obsolete macros from several modules.
60357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
60358         obsolete Autoconf macros with their modern counterparts.
60359         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
60360         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
60361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
60362         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
60364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60366         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
60367         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
60368         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
60369         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
60370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
60371         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
60372         * m4/sockets.m4 (gl_SOCKETS): Likewise.
60373         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
60374         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
60375         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60376         * m4/time_r.m4 (gl_TIME_R): Likewise.
60377         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
60378         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
60379         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60381         Fix copyright header in build-aux scripts.
60382         * build-aux/git-version-gen: Fix copyright header to match GPLv3
60383         recommendation.
60384         * build-aux/ncftpput-ftp: Likewise.
60385         * build-aux/update-copyright: Likewise.
60387 2009-09-09  Eric Blake  <ebb9@byu.net>
60389         test-link: allow Linux choice of errno
60390         * tests/test-link.c (main): Relax test for alternate error.
60392         strndup: fix improper m4 caching
60393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
60394         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
60395         (gl_PREREQ_STRNDUP): Delete.
60396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
60397         * modules/string (Makefile.am): Substitute it.
60398         * lib/string.in.h (strndup): Modernize prototype.
60400         getcwd: port to mingw
60401         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
60402         different from the POSIX assumptions made throughout the getcwd
60403         module; fortunately, the mingw getcwd does not need replacement.
60404         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
60405         * modules/getcwd-tests: New test.
60406         * tests/test-getcwd.c: Likewise.
60408         link: fix platform bugs
60409         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
60410         * lib/link.c (link): Work around them.  Fix related mingw bug.
60411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
60412         * modules/unistd (Makefile.am): Substitute it.
60413         * lib/unistd.in.h (link): Declare replacement.
60414         * doc/posix-functions/link.texi (link): Document this.
60415         * modules/link (Depends-on): Add strdup-posix, sys_stat.
60417         test-link: consolidate into single C program, test more cases
60418         * tests/test-link.sh: Delete.
60419         * tests/test-link.c: Test more error conditions.  Exposes bugs on
60420         at least Cygwin and Solaris.
60421         * modules/link-tests (Files): Remove unused file.
60422         (Depends-on): Add errno, sys_stat.
60423         (Makefile.am): Simplify.
60425 2009-09-08  Bruno Haible  <bruno@clisp.org>
60427         Work around towlower, towupper bug on mingw.
60428         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
60429         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
60430         * doc/posix-functions/towlower.texi: Mention the mingw bug.
60431         * doc/posix-functions/towupper.texi: Likewise.
60432         Reported by Eric Blake.
60434 2009-09-08  Jim Meyering  <meyering@redhat.com>
60436         build: don't try to run autoheader if we don't use it
60437         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
60438         is not used in configure.ac.
60440 2009-09-08  Eric Blake  <ebb9@byu.net>
60442         euidaccess: fix compilation error
60443         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
60445         rawmemchr: relax license
60446         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
60447         okay.
60448         Reported by Jim Meyering.
60450         mkfifoat: new module
60451         * modules/mkfifoat: New file.
60452         * lib/mkfifoat.c: Likewise.
60453         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
60454         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60455         * modules/sys_stat (Makefile.am): Use them.
60456         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
60457         * MODULES.html.sh (File system functions): Mention module.
60458         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60459         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60460         * modules/mkfifoat-tests: New test.
60461         * tests/test-mkfifoat.c: Likewise.
60463         strchrnul: relax license
60464         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
60465         okay.
60466         Reported by Jim Meyering.
60468 2009-09-08  Eric Blake  <ebb9@byu.net>
60470         fstatat: fix compilation on Solaris
60471         * lib/fstatat.c (includes): Add fcntl.h.
60472         Reported by Pádraig Brady.
60474 2009-09-07  Eric Blake  <ebb9@byu.net>
60476         rename: modernize replacement
60477         * modules/rename (Depends-on): Add stdio.
60478         (configure.ac): Declare witness.
60479         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
60480         stdio take care of replacement.
60481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60482         * modules/stdio (Makefile.am): Substitute them.
60483         * lib/stdio.in.h (rename): Declare replacement.
60484         * lib/rename.c (includes): Allow cross-compilation to non-windows
60485         machines.
60486         * doc/posix-functions/rename.texi (rename): Improve
60487         documentation.
60489         stdio: sort witness names
60490         * modules/stdio (Makefile.am): Sort replacements.
60491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60492         * lib/stdio.in.h: Likewise.
60494         getcwd: minor cleanups
60495         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
60496         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
60498         openat: provide more convenience names
60499         * modules/faccessat (configure.ac): Add C witness.
60500         * lib/unistd.in.h (readlinkat): Fix typo.
60501         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
60502         convenience wrappers.
60503         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
60504         wrappers in syntax checks.
60506 2009-09-06  Eric Blake  <ebb9@byu.net>
60508         doc: fix comments in recent patches
60509         * lib/faccessat.c: Mention correct function.
60510         * lib/fchmodat.c: Likewise.
60511         * lib/fchownat.c: Likewise.
60512         * lib/symlinkat.c: Likewise.
60513         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
60514         constants.
60516         faccessat, symlinkat: continue cleanup of previous patch
60517         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
60518         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60519         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
60520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
60521         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
60522         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
60523         set.
60525 2009-09-06  Bruno Haible  <bruno@clisp.org>
60527         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
60528         (fstatat): Declare if GNULIB_FSTATAT is set.
60529         (mkdirat): Declare if GNULIB_MKDIRAT is set.
60530         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
60531         (unlinkat): Declare if GNULIB_UNLINKAT is set.
60532         * modules/fcntl-h (Files): Remove m4/openat.m4.
60533         * modules/sys_stat (Files): Remove m4/openat.m4.
60534         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
60535         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
60536         * modules/unistd (Files): Remove m4/openat.m4.
60537         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
60538         GNULIB_OPENAT.
60539         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
60540         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
60541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
60542         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
60543         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
60544         gl_OPENAT_DEFAULTS.
60545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
60546         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
60547         Don't require gl_OPENAT_DEFAULTS.
60548         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
60549         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
60550         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
60551         (gl_OPENAT_DEFAULTS): Remove macro.
60553 2009-09-06  Bruno Haible  <bruno@clisp.org>
60555         * modules/openat (configure.ac): Remove unneeded witness.
60557 2009-09-06  Bruno Haible  <bruno@clisp.org>
60559         Set errno to ENOSYS when a function is entirely unsupported.
60560         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
60561         EOPNOTSUPP.
60562         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
60563         * modules/chown (Depends-on): Remove errno.
60565 2009-09-06  Bruno Haible  <bruno@clisp.org>
60567         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
60569 2009-09-06  Bruno Haible  <bruno@clisp.org>
60571         * lib/sys_stat.in.h: Fix preprocessor command indentation.
60573 2009-09-06  Ben Pfaff  <blp@gnu.org>
60574             Bruno Haible  <bruno@clisp.org>
60576         Work around a glibc bug in strtok_r.
60577         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
60578         Undefine if UNDEFINE_STRTOK_R is set.
60579         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
60580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60581         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
60582         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
60583         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
60584         UNDEFINE_STRTOK_R.
60585         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
60587 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
60589         exclude: minor fix
60590         * lib/exclude.c: Include wctype.h
60592 2009-09-06  Akim Demaille  <demaille@gostai.com>
60594         bootstrap: improve error message
60595         * build-aux/bootstrap (find_tool): Upon failure, report the list
60596         of candidates.
60597         Honor the initial value of the envvar.
60599 2009-09-05  Eric Blake  <ebb9@byu.net>
60601         symlinkat: new module
60602         * modules/symlinkat: New file.
60603         * lib/symlinkat.c: Likewise.
60604         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
60605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60606         * modules/unistd (Makefile.am): Use them.
60607         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
60608         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
60609         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
60610         * MODULES.html.sh (File system functions): Mention module.
60611         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60612         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60613         * modules/symlinkat-tests: New test.
60614         * tests/test-symlinkat.c: Likewise.
60616         test-openat-safer: add more checks
60617         * tests/test-openat-safer.c (main): Check more code paths.
60619 2009-09-05  Jim Meyering  <meyering@redhat.com>
60621         syntax-check: detect unnecessary inclusion of openat.h
60622         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
60624 2009-09-05  Bruno Haible  <bruno@clisp.org>
60626         Support towlower, towupper.
60627         * doc/posix-functions/towlower.texi: Mention module wctype.
60628         * doc/posix-functions/towupper.texi: Likewise.
60629         * lib/wctype.in.h (towlower, towupper): New functions.
60630         * tests/test-wctype.c: Include stdio.h, stdlib.h.
60631         (ASSERT): New macro.
60632         (e): New variable.
60633         (main): Test also towlower, towupper. Test WEOF argument.
60634         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60636 2009-09-05  Bruno Haible  <bruno@clisp.org>
60638         Fix conversion behaviour when the input is invalid.
60639         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
60640         mark occurring in first pass of indirect conversion.
60641         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
60642         input.
60643         Found by clang's static analyzer.
60645 2009-09-05  Bruno Haible  <bruno@clisp.org>
60647         * tests/test-striconveh.c (main): Test indirect conversion on platforms
60648         where direct conversion is possible.
60650 2009-09-04  Eric Blake  <ebb9@byu.net>
60652         openat: fail with ENOENT on empty name
60653         * lib/openat-proc.c (openat_proc_name): Special-case the empty
60654         buffer.
60656         link-follow: fix logic bug in prior patch
60657         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
60658         reversed sense of yes and no in prior patch.  Avoid confusing
60659         compilation failure with desired semantics.
60661         link-follow: accommodate mingw and cross-compilation
60662         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
60663         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
60664         cross-compilation results to -1, to make linkat easier to
60665         implement when cross-compiling.  Trivially support mingw.
60666         * modules/link-follow (configure.ac): Call new name.
60667         * NEWS: Mention this.
60669 2009-09-03  Eric Blake  <ebb9@byu.net>
60671         faccessat: compile replacement
60672         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
60673         needed.
60675         fts: fix compilation error
60676         * lib/fts.c (includes): Re-add "openat.h", for
60677         openat_needs_fchdir.
60679         faccessat: new module
60680         * modules/faccessat: New file.
60681         * lib/faccessat.c: Likewise.
60682         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60684         * modules/unistd (Makefile.am): Use it.
60685         * lib/unistd.in.h (faccessat): Declare it.
60686         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
60687         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
60688         * MODULES.html.sh (File system functions): Mention it.
60689         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
60690         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60692         euidaccess: prefer POSIX over non-standard implementation
60693         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
60694         * lib/euidaccess.c (euidaccess): Use it if available.
60696         openat: make template easier to use
60697         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
60698         AT_FUNC_F2 to be undefined.
60699         (VALIDATE_FLAG): New macro; use it to reject bad flags.
60700         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
60701         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
60702         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
60703         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
60704         Likewise.
60705         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
60706         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
60707         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
60708         Likewise.
60710         openat: declare in POSIX headers
60711         * NEWS: Mention this.
60712         * modules/openat (configure.ac): Declare witnesses.
60713         (Depends-on): Add fcntl-h, sys_stat, unistd.
60714         (Include): Mention correct headers.
60715         * modules/fcntl-h (Depends-on): Add link-warning.
60716         (Files): Add openat.m4.
60717         (Makefile.am): Substitute witnesses.
60718         * modules/sys_stat (Files, Makefile.am): Likewise.
60719         * modules/unistd (Files, Makefile.am): Likewise.
60720         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
60721         (gl_OPENAT_DEFAULTS): New macro.
60722         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
60723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
60724         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
60725         (SYS_STAT_H): Remove unused variable.
60726         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
60727         * lib/fcntl--.h (includes): Remove unneeded header.
60728         * lib/openat-safer.c (includes): Likewise.
60729         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
60730         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
60731         appropriate headers.
60732         (__OPENAT_PREFIX): Delete.
60733         * lib/fcntl.in.h (openat): Provide declaration.
60734         (AT_FDCWD): Fix Solaris bug.
60735         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
60736         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
60737         * lib/fchmodat.c (includes):  Adjust to find declaration.
60738         * lib/fchownat.c (includes): Likewise.
60739         * lib/mkdirat.c (includes): Likewise.
60740         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
60741         still visible.
60743 2009-09-02  Eric Blake  <ebb9@byu.net>
60745         errno: use consistently
60746         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
60747         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
60748         * lib/canonicalize.c (ELOOP): Likewise.
60749         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
60750         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
60751         * lib/lchown.c (EOPNOTSUPP): Likewise.
60752         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
60753         * lib/savewd.c (ESTALE): Likewise.
60754         * lib/settime.c (ENOSYS): Likewise.
60755         * lib/utimens.c (ENOSYS): Likewise.
60756         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
60757         * lib/chdir-safer.c (ELOOP): Likewise.
60758         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
60759         * modules/c-stack (Depends-on): Add errno.
60760         * modules/canonicalize (Depends-on): Likewise.
60761         * modules/chdir-safer (Depends-on): Likewise.
60762         * modules/fdopendir (Depends-on): Likewise.
60763         * modules/inet_ntop (Depends-on): Likewise.
60764         * modules/inet_pton (Depends-on): Likewise.
60765         * modules/lchown (Depends-on): Likewise.
60766         * modules/openat (Depends-on): Likewise.
60767         * modules/savewd (Depends-on): Likewise.
60768         * modules/settime (Depends-on): Likewise.
60769         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
60771         fts: avoid leaking fds
60772         * modules/fts (Depends-on): Add cloexec.
60773         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
60774         flag.
60776         fts: make directory fds more robust
60777         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
60778         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
60780         backupfile, chdir-long, fts, savedir: make safer
60781         * lib/backupfile.c (includes): Use "dirent--.h", since
60782         numbered_backup can write to stderr during readdir.
60783         * lib/savedir.c (includes): Likewise.
60784         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
60785         emulation can write to stderr on failure.
60786         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
60787         * lib/getcwd.c: Document why opendir_safer is unused.
60788         * lib/glob.c: Likewise.
60789         * lib/scandir.c: Likewise.
60790         * lib/openat-proc.c: Likewise, for open_safer.
60791         * modules/backupfile (Depends-on): Add dirent-safer.
60792         * modules/savedir (Depends-on): Likewise.
60793         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
60794         * modules/chdir-long (Depends-on): Add openat-safer.
60796         openat-safer: new module
60797         * modules/openat-safer: New file.
60798         * lib/openat-safer.c: Likewise.
60799         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
60800         * lib/fcntl-safer.h (openat_safer): Declare.
60801         * lib/fcntl--.h (openat): Override.
60802         * MODULES.html.sh (File descriptor based I/O): Mention it.
60803         * lib/openat.h: Add double-inclusion guards.
60804         * lib/openat.c (includes): Only include "fcntl-safer.h", not
60805         "fcntl--.h", so we can implement openat.
60806         * modules/openat-safer-tests: New test.
60807         * tests/test-openat-safer.c: New file.
60809         dirent-safer: new module
60810         * modules/dirent-safer: New file.
60811         * lib/dirent--.h: Likewise.
60812         * lib/dirent-safer.h: Likewise.
60813         * lib/opendir-safer.c: Likewise.
60814         * m4/dirent-safer.m4: Likewise.
60815         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
60816         * modules/dirent-safer-tests: New test.
60817         * tests/test-dirent-safer.c: New file.
60818         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
60820         fdopendir: optimize on mingw
60821         * lib/unistd.in.h (_gl_directory_name): New prototype.
60822         * lib/fchdir.c (_gl_directory_name): Implement it.
60823         (fchdir): Use it to simplify implementation.
60824         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
60825         fchdir, when available, to avoid calling [f]chdir().
60827         fdopendir: split into its own module
60828         * lib/openat.c (fdopendir): Move...
60829         * lib/fdopendir.c: ...into new file.
60830         * modules/fdopendir: New module.
60831         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
60832         * modules/openat (Depends-on): Add fdopendir.
60833         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
60834         fdopendir here.
60835         * modules/savedir (Depends-on): Only need fdopendir, not full
60836         openat.
60837         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
60838         * lib/openat.h (fdopendir): Drop prototype.
60839         * lib/dirent.in.h (fdopendir): Provide prototype.
60840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
60841         * modules/dirent (Makefile.am): Substitute them.
60842         * MODULES.html.sh (File system functions): Mention it.
60843         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
60844         * modules/fdopendir-tests: New file.
60845         * tests/test-fdopendir.c: Likewise.
60847         fchdir: use more consistent macro convention
60848         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
60849         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
60850         REPLACE_FCHDIR, rather than relying on config.h macros.
60851         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
60852         inside a single make-time REPLACE_FCHDIR block, rather than using
60853         the config.h FCHDIR_REPLACEMENT.
60854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
60855         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
60856         Manage fstat replacement.
60857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
60858         REPLACE_FCHDIR.
60859         * modules/sys_stat (Files): Add m4/unistd_h.m4.
60860         (Makefile.am): Substitute REPLACE_FCHDIR.
60861         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
60862         FCHDIR_REPLACEMENT.
60863         * lib/dup-safer.c (dup_safer): Likewise.
60864         * lib/dup2.c (rpl_dup2): Likewise.
60865         * lib/dup3.c (rpl_dup3): Likewise.
60866         * lib/open.c (rpl_open): Likewise.
60868         fchdir: simplify error handling, and support dup3
60869         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
60870         stdbool, malloc-posix, realloc-posix.
60871         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
60872         (ensure_dirs_slot): Return false on allocation failure.
60873         (rpl_dup2): Delete.
60874         (_gl_register_dup): New function.
60875         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
60876         (_gl_register_fd): Close fd on allocation failure.
60877         * lib/fcntl.in.h (_gl_register_fd): Update signature.
60878         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
60879         prototype.
60880         (rpl_dup2_fchdir): Delete prototype.
60881         * lib/open.c (open): Update caller.
60882         * lib/dup2.c (dup2): Track fchdir metadata.
60883         * lib/dup3.c (dup3): Likewise.
60884         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
60885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
60887 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60889         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
60890         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
60891         don't pass arguments to AC_OUTPUT.
60893 2009-09-02  Bruno Haible  <bruno@clisp.org>
60895         * modules/mkdtemp (License): Relicense under LGPLv2+.
60896         Reported by Paolo Bonzini.
60898 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60900         Replace uses of obsolete autoconf macros in Jim's modules.
60901         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
60902         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
60903         can evoke a warning from autoconf when run with -Wobsolete
60904         enabled.  They were declared obsolete for good reasons (see
60905         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
60906         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
60907         should not continue using the deprecated macros.
60908         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
60909         obsolete Autoconf macros with modern counterparts.
60910         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60911         * m4/dos.m4 (gl_AC_DOS): Likewise.
60912         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
60913         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60914         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
60915         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
60916         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
60917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
60918         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
60919         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
60920         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60921         Likewise.
60922         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
60923         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60924         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
60925         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
60926         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60927         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60929 2009-09-01  Eric Blake  <ebb9@byu.net>
60931         fchdir: fix off-by-one bug in previous patch
60932         * lib/fchdir.c (rpl_fstat): Use correct bounds.
60933         (_gl_unregister_fd): Delete useless if.
60935 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
60937         maint.mk: sort the list of syntax-check rules
60938         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
60939         easier to get a sense of progress when the rules are run sequentially
60940         and take a long time.
60942 2009-09-01  Simon Josefsson  <simon@josefsson.org>
60944         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
60945         * modules/netinet_in: Likewise.
60946         * modules/sys_file: Likewise.
60947         * modules/sys_ioctl: Likewise.
60948         * modules/sys_select: Likewise.
60949         * modules/sys_socket: Likewise.
60950         * modules/sys_stat: Likewise.
60951         * modules/sys_time: Likewise.
60952         * modules/sys_times: Likewise.
60953         * modules/sys_utsname: Likewise.
60954         * modules/sys_wait: Likewise.
60956 2009-09-01  Jim Meyering  <meyering@redhat.com>
60958         fts: help ensure that return values are not ignored
60959         * lib/fts_.h (__GNUC_PREREQ): Define.
60960         (__attribute_warn_unused_result__): Define.
60961         (fts_children, fts_close, fts_open, fts_read): Declare with
60962         __attribute_warn_unused_result__.
60964         fts: fts_close now fails also when closing a dir file descriptor fails
60965         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
60966         and propagate to caller, along with errno.
60968         announce-gen: correct formatting in --help output
60969         * build-aux/announce-gen (usage): Move the one-line description in
60970         --help output "up", to where it belongs, just after Usage:.
60972 2009-08-31  Eric Blake  <ebb9@byu.net>
60974         fchdir: port to mingw
60975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
60976         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
60977         opened, then use a substitute.
60978         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
60979         replacement.
60980         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
60981         (_gl_register_fd): No need to check stat if open already filters
60982         all directories.
60983         (fchdir): Fix error condition to match POSIX.
60984         * modules/fchdir (Depends-on): Add sys_stat.
60985         * doc/posix-functions/open.texi (open): Document the limitation.
60986         * modules/fchdir-tests: New file.
60987         * tests/test-fchdir.c: Likewise.
60989         canonicalize: allow cross-testing from cygwin to mingw
60990         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
60991         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
60992         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
60993         Likewise.
60994         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
60995         target does not support symlinks.
60996         * tests/test-canonicalize-lgpl.sh: Likewise.
60998         chown: avoid compilation warning on mingw
60999         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
61000         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
61001         mingw.
61002         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61003         * modules/chown (Depends-on): Add errno.
61005 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61007         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
61008         command.
61010 2009-08-31  Jim Meyering  <meyering@redhat.com>
61012         canonicalize: remove useless initialization
61013         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
61014         initialization of local, "end".
61016 2009-08-30  Bruno Haible  <bruno@clisp.org>
61018         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
61019         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
61020         ENOSYS.
61022 2009-08-30  Bruno Haible  <bruno@clisp.org>
61024         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
61025         /usr/xpg4/bin/tr when it exists.
61026         * tests/test-pipe-filter-gi1.sh: Likewise.
61028 2009-08-30  Bruno Haible  <bruno@clisp.org>
61030         Work around deficient /usr/bin/id program on Solaris.
61031         * tests/test-file-has-acl.sh (ID): New variable.
61032         * tests/test-set-mode-acl.sh (ID): Likewise.
61033         * tests/test-copy-acl.sh (ID): Likewise.
61034         * tests/test-copy-file.sh (ID): Likewise.
61036 2009-08-30  Bruno Haible  <bruno@clisp.org>
61038         New module 'xstriconveh'.
61039         * lib/xstriconveh.h: New file.
61040         * lib/xstriconveh.c: New file.
61041         * modules/xstriconveh: New file.
61043 2009-08-30  Bruno Haible  <bruno@clisp.org>
61045         Make it easier to use mem_cd_iconveh.
61046         * lib/striconveh.h (iconveh_t): New type.
61047         (iconveh_open, iconveh_close): New declarations.
61048         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61049         with a single 'const iconveh_t *' argument.
61050         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
61051         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61052         with a single 'const iconveh_t *' argument.
61053         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
61054         * tests/test-striconveh.c (main): Update.
61055         * NEWS: Mention the change.
61057 2009-08-30  Bruno Haible  <bruno@clisp.org>
61059         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
61060         problem.
61062 2009-08-30  Bruno Haible  <bruno@clisp.org>
61064         Work around iconv_open problem on Solaris.
61065         * lib/iconv_open-solaris.gperf: New file.
61066         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
61067         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
61068         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
61069         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
61070         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
61071         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
61073 2009-08-29  Jim Meyering  <meyering@redhat.com>
61075         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
61076         * top/maint.mk (cvs-check): Remove target; it was just an alias
61077         to the better-named vc-diff-check.
61078         (maintainer-distcheck): Remove rule.  It was used only from
61079         the (alpha/beta/major) target, and all of its commands but one
61080         were coreutils-specific.
61081         (vc-dist): Remove rule.
61082         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
61083         Run vc-diff-check, not vc-dist.
61084         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
61086 2009-08-27  Bruno Haible  <bruno@clisp.org>
61088         * tests/test-bitrotate.c (main): Remove test that uses a shift count
61089         of 0.
61091 2009-08-27  Bruno Haible  <bruno@clisp.org>
61093         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
61094         compilers.
61095         * doc/func.texi: Document the SunPRO C bug.
61097 2009-08-27  Bruno Haible  <bruno@clisp.org>
61099         Fix link error on Solaris.
61100         * tests/test-parse-duration.c (xstrdup): Remove function.
61102 2009-08-26  Pádraig Brady  <P@draigbrady.com>
61104         ignore-value: handle pointer types, too
61105         * lib/ignore-value.h (__attribute__): Remove definition.
61106         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
61107         of a more concise and more-often effective "(void) i" statement.
61108         (ignore_ptr): New function to suppress warnings from functions that
61109         return pointers, and to make it explicit that one function doesn't
61110         handle all cases.
61112 2009-08-25  Bruno Haible  <bruno@clisp.org>
61114         dup2: work around a Linux bug.
61115         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
61116         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
61117         * doc/posix-functions/dup2.texi: Mention the Linux bug.
61118         Reported by Simon Josefsson.
61120 2009-08-25  Jim Meyering  <meyering@redhat.com>
61122         libguestfs uses gnulib
61123         * users.txt: Add libguestfs.
61125 2009-08-24  Eric Blake  <ebb9@byu.net>
61127         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
61128         * lib/pipe2.c (includes): Add binary-io.h.
61129         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
61131 2009-08-24  Bruno Haible  <bruno@clisp.org>
61133         Tolerate declared but missing accept4 syscall.
61134         * lib/accept4.c (accept4): Invoke original accept4 function first, if
61135         available.
61136         * lib/sys_socket.in.h (accept4): If the function is already present,
61137         override it.
61138         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
61139         * modules/accept4 (Makefile.am): Compile accept4.c always.
61140         Reported by Paolo Bonzini and Eric Blake.
61142 2009-08-23  Bruno Haible  <bruno@clisp.org>
61144         New module 'accept4'.
61145         * lib/sys_socket.in.h (accept4): New declaration.
61146         * lib/accept4.c: New file.
61147         * m4/accept4.m4: New file.
61148         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61149         GNULIB_ACCEPT4, HAVE_ACCEPT4.
61150         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
61151         HAVE_ACCEPT4.
61152         * modules/accept4: New file.
61153         * doc/glibc-functions/accept4.texi: Mention the new module.
61155 2009-08-24  Jim Meyering  <meyering@redhat.com>
61157         progname: also set global program_invocation_name, when possible
61158         Before this change, a libtool-enabled program that calls glibc's
61159         error function would report the program name as
61160         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
61161         * modules/progname (configure.ac): Check for a declaration of
61162         program_invocation_name.
61163         * lib/progname.c:  Include <errno.h>.
61164         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
61165         Set program_invocation_name.
61167 2009-08-23  Bruno Haible  <bruno@clisp.org>
61169         * lib/dup3.c: Include <string.h>.
61171 2009-08-23  Bruno Haible  <bruno@clisp.org>
61173         * lib/dup3.c (dup3): Test only once whether the system actually exists.
61174         * lib/pipe2.c (pipe2): Likewise.
61175         Suggested by Eric Blake.
61177 2009-08-23  Bruno Haible  <bruno@clisp.org>
61179         Tolerate declared but missing dup3 syscall.
61180         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
61181         * lib/unistd.in.h (dup3): If the function is already present,
61182         override it.
61183         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
61184         * modules/dup3 (Makefile.am): Compile dup3.c always.
61185         Reported by Paolo Bonzini.
61187 2009-08-23  Bruno Haible  <bruno@clisp.org>
61189         Tolerate declared but missing pipe2 syscall.
61190         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
61191         available.
61192         * lib/unistd.in.h (pipe2): If the function is already present,
61193         override it.
61194         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
61195         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
61196         Reported by Paolo Bonzini.
61198 2009-08-23  Bruno Haible  <bruno@clisp.org>
61200         * lib/pipe2.c (pipe2): Move #ifs inside function.
61202 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61204         quotearg: document limitations of quote_these_too
61205         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
61206         those limitations are created.
61207         * lib/quotearg.h (set_char_quoting): Document that digits and
61208         letters that are special after backslash are not permitted.
61209         (quotearg_char): Cross-reference set_char_quoting documentation.
61211 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
61213         quotearg: implement custom_quoting_style
61214         * lib/quotearg.c: (struct quoting_options): Add left_quote and
61215         right_quote fields.
61216         (set_custom_quoting): New public function.
61217         (quotearg_buffer_restyled): Add left_quote and right_quote
61218         arguments, handle them very much like locale quoting, and update
61219         all uses.
61220         (quotearg_n_custom): New public function.
61221         (quotearg_n_custom_mem): New public function.
61222         (quotearg_custom): New public function.
61223         (quotearg_custom_mem): New public function.
61224         * lib/quotearg.h: Prototype and document new public functions.
61225         (enum quoting_style): For escape_quoting_style and
61226         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
61227         ignored even though they're otherwise like c_quoting_style.
61228         Add custom_quoting_style member and document with comparison to
61229         clocale_quoting_style.
61230         * tests/test-quotearg.c (custom_quotes): New array.
61231         (custom_results): New array.
61232         (main): Extend to test custom quoting.
61234 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61236         quotearg: fix right quote escaping when it's in quote_these_too
61237         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
61238         quote, be sure to prepend only one backslash.
61239         * tests/test-quotearg.c (use_quote_double_quotes): New function.
61240         (main): Test it.
61242 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61244         quotearg-tests: test escaping of embedded locale quotes
61245         * tests/test-quotearg.c (struct result_strings): Add member for
61246         new input.
61247         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
61248         (inputs): Add new input.
61249         (results_g): Add expected results.
61250         (flag_results): Likewise.
61251         (locale_results): Likewise.
61252         (compare_strings): Check those.
61254 2009-08-23  Bruno Haible  <bruno@clisp.org>
61256         Tests for module 'dup3'.
61257         * modules/dup3-tests: New file.
61258         * tests/test-dup3.c: New file.
61260         New module 'dup3'.
61261         * lib/unistd.in.h (dup3): New declaration.
61262         * lib/dup3.c: New file.
61263         * m4/dup3.m4: New file.
61264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
61265         HAVE_DUP3.
61266         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
61267         * modules/dup3: New file.
61268         * doc/glibc-functions/dup3.texi: Mention the new module.
61270 2009-08-23  Bruno Haible  <bruno@clisp.org>
61272         Tweak the dup2 test.
61273         * tests/test-dup2.c (main): Create the test file empty. Verify that an
61274         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
61275         the test file is still empty. Fix argument order of lseek.
61277 2009-08-23  Bruno Haible  <bruno@clisp.org>
61279         Avoid test link errors when the modules getopt-gnu, gettext are used.
61280         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
61281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61283 2009-08-23  Bruno Haible  <bruno@clisp.org>
61285         Fix getdtablesize() on mingw.
61286         * lib/getdtablesize.c (getdtablesize): Implement differently.
61287         * lib/unistd.in.h (getdtablesize): Improve comment.
61289 2009-08-23  Bruno Haible  <bruno@clisp.org>
61291         New module 'mkostemp'.
61292         Based on Ulrich Drepper's 2007-08-10 change in glibc.
61293         * lib/stdlib.in.h (mksotemp): New declaration.
61294         * lib/mkostemp.c: New file, from glibc with modifications.
61295         * lib/tempname.h (GT_FILE): Remove outdated comment.
61296         (gen_tempname): Add flags argument.
61297         * lib/tempname.c (__GT_BIGFILE): Remove macro.
61298         (__GT_FILE): Map to 1.
61299         (small_open, large_open): Remove macros.
61300         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
61301         * lib/mkstemp.c (mkstemp): Update.
61302         * lib/mkdtemp.c (mkdtemp): Likewise.
61303         * m4/mkostemp.m4: New file.
61304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
61305         HAVE_MKOSTEMP.
61306         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
61307         HAVE_MKOSTEMP.
61308         * modules/mkostemp: New file, based on modules/mkstemp.
61309         * doc/glibc-functions/mkostemp.texi: Mention the new module.
61310         * NEWS: Mention the change.
61312 2009-08-23  Bruno Haible  <bruno@clisp.org>
61314         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
61315         Reported by Eric Blake.
61317 2009-08-23  Bruno Haible  <bruno@clisp.org>
61319         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
61320         Reported by Eric Blake.
61322 2009-08-23  Bruno Haible  <bruno@clisp.org>
61324         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
61325         * modules/pipe2 (Depends-on): Likewise.
61327 2009-08-23  Eric Blake  <ebb9@byu.net>
61329         fcntl-h: add O_TTY_INIT support
61330         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
61331         * tests/test-fcntl-h.c (o): Test it.
61332         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61334         fcntl-h: rename from fcntl, in preparation for fcntl(2)
61335         * modules/fcntl: Move <fcntl.h> header replacement...
61336         * modules/fcntl-h: ...to new name, so as not to collide with
61337         like-named function.
61338         * tests/test-fcntl.c: Rename...
61339         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
61340         * modules/fcntl-tests: Rename...
61341         * modules/fcntl-h-tests: ...to this.  Update test file name.
61342         * modules/chdir-long (Depends-on): Update clients.
61343         * modules/chdir-safer (Depends-on): Likewise.
61344         * modules/fcntl-safer (Depends-on): Likewise.
61345         * modules/fts (Depends-on): Likewise.
61346         * modules/mkancesdirs (Depends-on): Likewise.
61347         * modules/mkdir-p (Depends-on): Likewise.
61348         * modules/open (Depends-on): Likewise.
61349         * modules/savewd (Depends-on): Likewise.
61350         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
61351         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61353 2009-08-22  Bruno Haible  <bruno@clisp.org>
61355         * modules/binary-io (License): Relicense under LGPL.
61356         * modules/pipe2 (License): Likewise.
61358 2009-08-22  Bruno Haible  <bruno@clisp.org>
61360         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
61361         return value.
61362         * lib/pipe-filter-gi.c (filter_init): Likewise.
61363         Reported by Eric Blake.
61365 2009-08-22  Bruno Haible  <bruno@clisp.org>
61367         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
61368         * modules/pipe (Depends-on): Add pipe2.
61370 2009-08-22  Bruno Haible  <bruno@clisp.org>
61372         Tests for module 'pipe2'.
61373         * modules/pipe2-tests: New file.
61374         * tests/test-pipe2.c: New file.
61376         New module 'pipe2'.
61377         * lib/unistd.in.h (pipe2): New declaration.
61378         * lib/pipe2.c: New file.
61379         * m4/pipe2.m4: New file.
61380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
61381         HAVE_PIPE2.
61382         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
61383         * modules/pipe2: New file.
61384         * doc/glibc-functions/pipe2.texi: Mention the new module.
61386 2009-08-22  Bruno Haible  <bruno@clisp.org>
61388         Reference some new glibc functions.
61389         * doc/glibc-functions/accept4.texi: New file.
61390         * doc/glibc-functions/dup3.texi: New file.
61391         * doc/glibc-functions/mkostemp.texi: New file.
61392         * doc/glibc-functions/pipe2.texi: New file.
61393         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
61394         (Glibc sys/socket.h): Refer to accept4.
61395         (Glibc unistd.h): Refer to dup3, pipe2.
61396         Reported by Eric Blake.
61398 2009-08-22  Jim Meyering  <meyering@redhat.com>
61399             Bruno Haible  <bruno@clisp.org>
61401         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
61402         This makes it so packages using automake-1.11's silent-rules option
61403         can print e.g., a single "GEN    configmake.h" line, rather than
61404         the 30+ statements that perform the job.  If you want to see the
61405         actual commands, you can still run "make V=1".
61406         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
61407         so that make output is abbreviated when those variables are defined
61408         appropriately.
61409         * modules/argz: Likewise.
61410         * modules/arpa_inet: Likewise.
61411         * modules/byteswap: Likewise.
61412         * modules/configmake: Likewise.
61413         * modules/dirent: Likewise.
61414         * modules/errno: Likewise.
61415         * modules/fcntl: Likewise.
61416         * modules/float: Likewise.
61417         * modules/fnmatch: Likewise.
61418         * modules/getopt-posix: Likewise.
61419         * modules/glob: Likewise.
61420         * modules/iconv_open: Likewise.
61421         * modules/inttypes: Likewise.
61422         * modules/localcharset: Likewise.
61423         * modules/locale: Likewise.
61424         * modules/math: Likewise.
61425         * modules/netdb: Likewise.
61426         * modules/netinet_in: Likewise.
61427         * modules/poll: Likewise.
61428         * modules/posix_spawnp-tests: Likewise.
61429         * modules/sched: Likewise.
61430         * modules/search: Likewise.
61431         * modules/selinux-h: Likewise.
61432         * modules/signal: Likewise.
61433         * modules/spawn: Likewise.
61434         * modules/stdarg: Likewise.
61435         * modules/stdbool: Likewise.
61436         * modules/stddef: Likewise.
61437         * modules/stdint: Likewise.
61438         * modules/stdio: Likewise.
61439         * modules/stdlib: Likewise.
61440         * modules/string: Likewise.
61441         * modules/strings: Likewise.
61442         * modules/sys_file: Likewise.
61443         * modules/sys_ioctl: Likewise.
61444         * modules/sys_select: Likewise.
61445         * modules/sys_socket: Likewise.
61446         * modules/sys_stat: Likewise.
61447         * modules/sys_time: Likewise.
61448         * modules/sys_times: Likewise.
61449         * modules/sys_utsname: Likewise.
61450         * modules/sys_wait: Likewise.
61451         * modules/sysexits: Likewise.
61452         * modules/time: Likewise.
61453         * modules/unistd: Likewise.
61454         * modules/wchar: Likewise.
61455         * modules/wctype: Likewise.
61457 2009-08-22  Jim Meyering  <meyering@redhat.com>
61459         announce-gen: detect write failure
61460         * build-aux/announce-gen: Add Coda at end.
61461         Remove equivalent-but-more-verbose block at top.
61463 2009-08-19  Akim Demaille  <demaille@gostai.com>
61465         bootstrap: --help to stdout.
61466         * bootstrap (usage): Don't send --help to stderr.
61467         Use a here doc instead of a long string.
61469 2009-08-21  Eric Blake  <ebb9@byu.net>
61471         test-popen-safer: split from test-popen
61472         * tests/test-popen.c (main): Move...
61473         * tests/test-popen.h: ...into new file.
61474         * tests/test-popen-safer2.c: New file.
61475         * modules/popen-tests (Files): Add test-popen.h.
61476         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
61477         Suggested by Bruno Haible.
61479         test-fcntl-safer: split from test-open
61480         * tests/test-open.c (main): Move...
61481         * tests/test-open.h: ...into new file.
61482         * tests/test-fcntl-safer.c: New file.
61483         * modules/open-tests (Files): Add test-open.h.
61484         * modules/fcntl-safer-tests: New file.
61485         Suggested by Bruno Haible.
61487         test-fopen-safer: split from test-fopen
61488         * tests/test-fopen.c (main): Move...
61489         * tests/test-fopen.h: ...into new file.
61490         * tests/test-fopen-safer.c: New file.
61491         * modules/fopen-tests (Files): Add test-fopen.h.
61492         * modules/fopen-safer-tests: New file.
61493         Suggested by Bruno Haible.
61495 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
61497         popen-safer: test O_CLOEXEC at run-time.
61498         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
61500 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
61502         fcntl: move more flags to the header
61503         * lib/cloexec.c: Do not define FD_CLOEXEC here.
61504         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
61505         * lib/fcntl.in.h: Do both things here.
61507 2009-08-21  Jim Meyering  <meyering@redhat.com>
61509         consistently remove $@-t before redirecting to it
61510         * modules/argz: Remove $@-t and $@ before redirecting to the former.
61511         * modules/alloca-opt: Likewise.
61512         * modules/byteswap: Likewise.
61513         * modules/fnmatch: Likewise.
61514         * modules/getopt-posix: Likewise.
61515         * modules/glob: Likewise.
61516         * modules/poll: Likewise.
61517         * modules/posix_spawnp-tests: Likewise.
61518         * modules/sys_socket: Likewise.
61519         * modules/sysexits: Likewise.
61521 2009-08-21  Eric Blake  <ebb9@byu.net>
61523         popen: simplify access to original popen
61524         * lib/popen.c (rpl_popen): No need to worry about popen being a
61525         macro.
61526         Reported by Bruno Haible.
61528 2009-08-20  Eric Blake  <ebb9@byu.net>
61530         build: avoid some compiler warnings
61531         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
61532         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
61533         type.
61534         (new_exclude_segment, excluded_file_pattern_p)
61535         (excluded_file_name_p): Reduce scope.
61536         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
61537         old-style declaration.
61539 2009-08-20  Simon Josefsson  <simon@josefsson.org>
61541         * tests/test-exclude1.sh: Handle Windows EOL.
61542         * tests/test-exclude2.sh: Likewise.
61543         * tests/test-exclude3.sh: Likewise.
61544         * tests/test-exclude4.sh: Likewise.
61545         * tests/test-exclude5.sh: Likewise.
61546         * tests/test-exclude6.sh: Likewise.
61547         * tests/test-exclude7.sh: Likewise.
61549 2009-08-19  Akim Demaille  <demaille@gostai.com>
61551         bootstrap: find sha1sum when named gsha1sum.
61552         * bootstrap (find_tool): New.
61553         ($SHA1SUM): New.
61554         Use it.
61556 2009-08-20  Jim Meyering  <meyering@redhat.com>
61558         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
61559         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
61560         expression that converts "." in a file name to "\." in the resulting
61561         regexp.  Start with a dummy statement, so that prior shell variable
61562         definitions are expanded portably.  Reported by Simon Josefsson.
61564 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
61566         Fix polling for writeability of a screen buffer.
61567         * lib/poll.c: Distinguish input and screen buffers for the
61568         Win32 implementation.
61569         * lib/select.c: Likewise.
61571 2009-08-19  Eric Blake  <ebb9@byu.net>
61573         popen-safer: prevent popen from clobbering std descriptors
61574         * modules/popen-safer: New file.
61575         * lib/popen-safer.c: Likewise.
61576         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
61577         * lib/stdio--.h (popen): Provide override.
61578         * lib/stdio-safer.h (popen_safer): Provide declaration.
61579         * tests/test-popen.c (includes): Partially test this.
61580         * modules/popen-safer-tests: New file, for more tests.
61581         * tests/test-popen-safer.c: Likewise.
61582         * MODULES.html.sh (file stream based Input/Output): Mention it.
61584         tests: test some of the *-safer modules
61585         * modules/fopen-safer (Depends-on): Add fopen.
61586         * modules/fcntl-safer (Depends-on): Add fcntl.
61587         * modules/stdlib-safer (Depends-on): Add stdlib.
61588         (configure.ac): Set indicator.
61589         * modules/unistd-safer (configure.ac): Likewise.
61590         * modules/tmpfile-safer (configure.ac): Likewise.
61591         (Depends-on): Add tmpfile.
61592         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
61593         active.
61594         * tests/test-fopen.c (includes): Test safer versions when they are
61595         in use.
61596         * tests/test-open.c (includes): Likewise.
61598         popen: fix cygwin 1.5 bug when stdin closed
61599         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
61600         * modules/popen: New file.
61601         * modules/popen-tests: Likewise.
61602         * tests/test-popen.c: Likewise.
61603         * m4/popen.m4: Likewise.
61604         * lib/popen.c: Likewise.
61605         * lib/stdio.in.h (popen): New declaration.
61606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
61607         * modules/stdio (Makefile.am): Likewise.
61608         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
61610 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
61612         maint.mk: give full control over update-copyright exclusions
61613         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
61614         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
61615         (update-copyright): Don't force inclusion of top-level
61616         ChangeLog.  Don't force exclusion of all COPYING files, but make
61617         them the default exclusion instead.
61619 2009-08-16  Bruno Haible  <bruno@clisp.org>
61621         Fix test failures on Solaris 10.
61622         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
61623         tests when Solaris iconv() is used.
61624         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61625         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61626         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61627         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61628         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61630 2009-08-16  Bruno Haible  <bruno@clisp.org>
61632         Fix test failures on Solaris 10.
61633         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
61634         'tr' program and pass it as first argument.
61635         * tests/test-pipe-filter-gi1.sh: Likewise.
61636         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
61637         program as first argument.
61638         * tests/test-pipe-filter-gi1.c (main): Likewise.
61640 2009-08-16  Eric Blake  <ebb9@byu.net>
61642         fpurge: fix previous commits
61643         * modules/fpurge (Makefile.am): Make replacement conditional,
61644         partially reverting 2007-04-29 change; missed in previous
61645         attempt.
61646         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
61647         is missing.
61649 2009-08-16  Bruno Haible  <bruno@clisp.org>
61651         Clarify fpurge's effect on the file position.
61652         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
61653         * tests/test-fpurge.c (main): Make a second pass for checking the file
61654         position.
61656 2009-08-16  Bruno Haible  <bruno@clisp.org>
61658         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
61659         declaration of fpurge is missing.
61660         * tests/test-fpurge.c (main): Check that the file has not more contents
61661         than expected. Close the file before removing it.
61663 2009-08-15  Eric Blake  <ebb9@byu.net>
61665         fpurge: don't wrap working cygwin implementation
61666         * lib/fpurge.c (fpurge): Fix comment typo.
61667         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
61668         1.7 to avoid replacement.
61669         * tests/test-fpurge.c (main): Enhance test.
61671 2009-08-15  Eric Blake  <ebb9@byu.net>
61672         and Jim Meyering  <meyering@redhat.com>
61674         test-update-copyright: skip if perl is insufficient
61675         * tests/test-update-copyright.sh: Failure to run maintainer tool
61676         should not cause testsuite failure on cygwin 1.5.
61678 2009-08-14  Eric Blake  <ebb9@byu.net>
61680         doc: mention more functions added in cygwin 1.7.0
61681         * doc/posix-headers/limits.texi (limits.h): Update for recent
61682         cygwin additions.
61683         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
61684         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
61685         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
61686         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
61687         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
61689 2009-08-14  Eric Blake  <ebb9@byu.net>
61691         maint.mk: simplify update-copyright rule
61692         * top/maint.mk (update-copyright-local): Delete, and document how
61693         to do it in cfg.mk instead.
61694         (update-copyright-exclude-regexp): Delete, and document how to do
61695         it in .x-update-copyright instead.
61696         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
61697         exclude ChangeLog.
61699 2009-08-14  Bruno Haible  <bruno@clisp.org>
61701         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
61703 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61705         maint.mk: support update-copyright-env
61706         * top/maint.mk (update-copyright-env): Define place-holder.
61707         (update-copyright): Expand $(update-copyright-env) before
61708         invoking update-copyright.
61710 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61712         update-copyright: implement forced reformatting
61713         * build-aux/update-copyright: Implement and document
61714         UPDATE_COPYRIGHT_FORCE.
61715         * tests/test-update-copyright.sh: Test it.
61717 2009-08-14  Eric Blake  <ebb9@byu.net>
61718         and Bruno Haible  <bruno@clisp.org>
61720         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
61721         * tests/test-locale.c: Revert previous patch related to NULL.
61722         * tests/test-stdio.c: Likewise.
61723         * tests/test-stdlib.c: Likewise.
61724         * tests/test-string.c: Likewise.
61725         * tests/test-unistd.c: Likewise.
61726         * modules/time-tests (Depends-on): Add verify.
61727         * modules/wchar-tests (Depends-on): Likewise.
61728         * tests/test-time.c: Test for NULL compliance.
61729         * tests/test-wchar.c: Likewise.
61730         * modules/locale (Depends-on): Add stddef.
61731         * modules/stdio (Depends-on): Likewise.
61732         * modules/stdlib (Depends-on): Likewise.
61733         * modules/string (Depends-on): Likewise.
61734         * modules/time (Depends-on): Likewise.
61735         * modules/unistd (Depends-on): Likewise.
61736         * modules/wchar (Depends-on): Likewise.
61737         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
61738         * lib/stdlib.in.h (includes): Likewise.
61739         * lib/string.in.h (includes): Likewise.
61740         * lib/time.in.h (includes): Likewise.
61741         * lib/unistd.in.h (includes): Likewise.
61742         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
61743         replaced.
61744         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61745         * m4/stddef_h.m4: New file.
61746         * modules/stddef: Likewise.
61747         * lib/stddef.in.h: Likewise.
61748         * modules/stddef-tests: Likewise.
61749         * tests/test-stddef.c: Likewise.
61750         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
61751         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
61752         * doc/posix-headers/locale.texi (locale.h): Likewise.
61753         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
61754         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61755         * doc/posix-headers/string.texi (string.h): Likewise.
61756         * doc/posix-headers/time.texi (time.h): Likewise.
61757         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
61758         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
61760 2009-08-14  Eric Blake  <ebb9@byu.net>
61762         doc: improve git diff of texinfo files
61763         * .gitattributes: Add rule for *.texi files, with hint on how to
61764         use it.
61765         Copied from m4, and based on a report by Bruno Haible.
61767 2009-08-14  Bruno Haible  <bruno@clisp.org>
61769         Disable multithread support by default on Cygwin 1.5.x for real.
61770         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
61772 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61774         update-copyright: much ado about intervals
61775         * build-aux/update-copyright: Implement and document
61776         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
61777         of copyright year intervals.
61778         Also, document UPDATE_COPYRIGHT_YEAR.
61779         * tests/test-update-copyright.sh: Test it.
61781         update-copyright: convert 2-digit to 4-digit years
61782         * build-aux/update-copyright: Implement and document.
61783         * tests/test-update-copyright.sh: Update.
61785 2009-08-14  Jim Meyering  <meyering@redhat.com>
61787         test-exclude: avoid coreutils "make check" failure
61788         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
61789         just as in test-argmatch.c.
61791 2009-08-13  Eric Blake  <ebb9@byu.net>
61793         test-dup2: fix bad assumption
61794         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
61795         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
61797         test-version-etc: fix CRLF portability issue
61798         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
61799         recognize \r.
61800         * tests/test-argp-version-etc-1.sh: Likewise.
61802         getopt: update client modules
61803         * modules/argp (Depends-on): Use getopt-gnu.
61804         * modules/git-merge-changelog (Depends-on): Likewise.
61805         * modules/long-options (Depends-on): Likewise.
61806         * modules/xstrtol (Depends-on): Likewise.
61808 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61810         * tests/test-version-etc.sh: Don't fail on different
61811         project/version.  Don't fail on CRLF differences.  Rewrite to use
61812         multiple -e instead of multiple sed forks, suggested by Eric Blake
61813         <ebb9@byu.net>.
61814         * tests/test-argp-version-etc-1.sh: Likewise.
61816 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61818         * tests/test-version-etc.sh: Don't fail on different
61819         project/version.
61821 2009-08-12  Bruno Haible  <bruno@clisp.org>
61823         Tests for modules 'getopt-posix', 'getopt-gnu'.
61824         * modules/getopt-posix-tests: New file.
61825         * tests/test-getopt.c: New file.
61826         * tests/test-getopt.h: New file.
61827         * tests/test-getopt_long.h: New file.
61829         New modules 'getopt-posix', 'getopt-gnu'.
61830         * modules/getopt-gnu: New file, renamed from modules/getopt.
61831         * modules/getopt-posix: New file.
61832         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
61833         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
61834         (gl_GETOPT): Remove macro.
61835         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
61836         Disable the test against BSD systems that declare optreset. Test
61837         against mingw bug. Test against lack of support of optional arguments
61838         on many platforms.
61839         * doc/glibc-headers/getopt.texi: Update module name and list of
61840         relevant platforms.
61841         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
61842         'getopt-gnu' and more portability problems.
61843         * NEWS: Mention the changes.
61845 2009-08-12  Bruno Haible  <bruno@clisp.org>
61847         Ensure that optarg etc. get declared by <unistd.h>.
61848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
61849         AC_USE_SYSTEM_EXTENSIONS.
61850         * modules/getopt (Depends-on): Add 'extensions'.
61852 2009-08-12  Bruno Haible  <bruno@clisp.org>
61854         Avoid test link errors.
61855         * modules/pipe-filter-ii-tests (Makefile.am): Define
61856         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
61857         * modules/pipe-filter-gi-tests (Makefile.am): Define
61858         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
61859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61861 2009-08-12  Bruno Haible  <bruno@clisp.org>
61863         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
61864         gl_GETOPT_SUBSTITUTE before.
61865         (gl_GETOPT): Use it.
61866         * m4/argp.m4 (gl_ARGP): Update.
61867         Reported by Sergey Poznyakoff.
61869         * m4/getopt.m4: Reorder macros.
61870         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
61871         (gl_GETOPT_SUBSTITUTE): Remove macro.
61873 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61875         Minor improvement in gitlog-to-changelog
61877         * build-aux/gitlog-to-changelog: New option `--format' makes
61878         output format string configurable.
61880 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61882         Optimize exclude: use hash tables for non-wildcard patterns.
61884         * lib/exclude.c: Include hash.h and mbuiter.h
61885         (struct exclude_pattern, exclude_segment): New data types.
61886         (struct exclude): Rewrite.
61887         (fnmatch_pattern_has_wildcards): New function.
61888         (new_exclude_segment, free_exclude_segment): New functions.
61889         (excluded_file_pattern_p, excluded_file_name_p): New functions.
61890         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
61891         * lib/exclude.h (is_fnmatch_pattern): New prototype.
61892         * modules/exclude: Depend on hash and mbuiter.
61894         * modules/exclude-tests: New file.
61895         * tests/test-exclude.c: New file.
61896         * tests/test-exclude1.sh: New file.
61897         * tests/test-exclude2.sh: New file.
61898         * tests/test-exclude3.sh: New file.
61899         * tests/test-exclude4.sh: New file.
61900         * tests/test-exclude5.sh: New file.
61901         * tests/test-exclude6.sh: New file.
61902         * tests/test-exclude7.sh: New file.
61904 2009-08-12  Bruno Haible  <bruno@clisp.org>
61906         Ensure that getopt() gets declared by <unistd.h>.
61907         * lib/unistd.in.h: Conditionally include getopt.h.
61908         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
61909         Set GNULIB_UNISTD_H_GETOPT.
61910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61911         GNULIB_UNISTD_H_GETOPT.
61912         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
61914 2009-08-12  Bruno Haible  <bruno@clisp.org>
61916         Clarify logic.
61917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
61918         gl_replace_getopt instead of GETOPT_H.
61920 2009-08-12  Bruno Haible  <bruno@clisp.org>
61922         * m4/getopt.m4: Add comments.
61924 2009-08-12  Bruno Haible  <bruno@clisp.org>
61926         Disable multithread support by default on Cygwin 1.5.x.
61927         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
61928         set gl_use_threads=no if not specified otherwise.
61930 2009-08-11  Bruno Haible  <bruno@clisp.org>
61932         Avoid compilation error on NetBSD 5.0.
61933         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
61934         * tests/test-stdio.c: Likewise.
61935         * tests/test-stdlib.c: Likewise.
61936         * tests/test-string.c: Likewise.
61937         * tests/test-unistd.c: Likewise.
61938         Reported by Greg Troxel <gdt@ir.bbn.com>
61939         at <https://savannah.gnu.org/support/?106973>.
61941 2009-08-11  Bruno Haible  <bruno@clisp.org>
61943         * modules/dup2-tests (Depends-on): Remove close.
61945         Undo 2009-07-19 commit.
61946         * modules/acl-tests (Depends-on): Remove close.
61947         * modules/binary-io-tests (Depends-on): Likewise.
61948         * modules/closein-tests (Depends-on): Likewise.
61949         * modules/flock-tests (Depends-on): Likewise.
61950         * modules/fsync-tests (Depends-on): Likewise.
61951         * modules/lseek-tests (Depends-on): Likewise.
61952         * modules/pipe-tests (Depends-on): Likewise.
61953         * modules/posix_spawn-tests (Depends-on): Likewise.
61954         * modules/posix_spawnp-tests (Depends-on): Likewise.
61955         * modules/stat-time-tests (Depends-on): Likewise.
61956         * modules/yesno-tests (Depends-on): Likewise.
61958 2009-08-10  Bruno Haible  <bruno@clisp.org>
61960         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
61962 2009-08-10  Bruno Haible  <bruno@clisp.org>
61964         Fix a gcc warning.
61965         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
61967 2009-08-10  Bruno Haible  <bruno@clisp.org>
61969         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
61970         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
61971         not only the first time.
61972         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
61973         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
61974         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
61975         is 1, not only the first time.
61977 2009-08-10  Bruno Haible  <bruno@clisp.org>
61979         Make it possible to use module 'gethostname' without module 'close'.
61980         * lib/unistd.in.h (close): Evoke a link error only if
61981         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
61982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61983         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61984         * modules/unistd (Makefile.am): Substitute
61985         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61986         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
61987         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
61988         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
61989         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61990         * modules/sys_ioctl (Makefile.am): Substitute
61991         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61992         * modules/socket (configure.ac): On native Windows, set
61993         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
61994         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61995         Reported by Sam Steingold <sds@gnu.org>.
61997 2009-08-10  Bruno Haible  <bruno@clisp.org>
61999         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
62000         * modules/ioctl (configure.ac): Likewise.
62002 2009-08-10  Bruno Haible  <bruno@clisp.org>
62004         Avoid collision between gnulib wrapper and libintl wrapper.
62005         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
62006         already defined in intl/printf.c.
62007         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
62008         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
62010 2009-08-09  Bruno Haible  <bruno@clisp.org>
62012         Make <sys/select.h> really self-contained, also on Solaris 10.
62013         * lib/sys_select.in.h: Include <string.h>.
62014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
62015         Solaris 10 problem.
62016         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
62017         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
62018         Reported by Jim Meyering.
62020 2009-08-09  Bruno Haible  <bruno@clisp.org>
62022         Avoid warnings from 'aclocal' that are due to a use of macro name
62023         AM_XGETTEXT_OPTION that is not defined in automake.
62024         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
62025         automake.
62026         * modules/error (configure.ac): Likewise.
62027         * modules/propername (configure.ac): Likewise.
62028         * modules/vasprintf (configure.ac): Likewise.
62029         * modules/verror (configure.ac): Likewise.
62030         * modules/xprintf (configure.ac): Likewise.
62031         * modules/xvasprintf (configure.ac): Likewise.
62033 2009-08-08  Bruno Haible  <bruno@clisp.org>
62035         Avoid compilation error in C++ mode.
62036         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
62037         Reported by Sam Steingold <sds@gnu.org>.
62039 2009-08-08  Bruno Haible  <bruno@clisp.org>
62041         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
62042         for the various Unix platforms.
62043         * doc/posix-headers/limits.texi: Update platforms list regarding
62044         HOST_NAME_MAX.
62045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62047 2009-08-07  Jim Meyering  <meyering@redhat.com>
62049         selinux-at: fix typo in a comment
62050         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
62051         Spotted by Paolo Bonzini.
62053         selinux-at: remove redundant m4 code, add documentation
62054         * modules/selinux-at (configure.ac): Remove redundant code.
62055         LIB_SELINUX is already set via the dependent module, selinux-h.
62056         (Include): Add quotes around selinux-at.h.
62057         * lib/selinux-at.h: Add documentation.
62058         Reported by Bruno Haible in
62059         http://marc.info/?l=gnulib-bug&m=124958988300749
62061 2009-08-07  Bruno Haible  <bruno@clisp.org>
62063         Avoid link error on MacOS X 10.3 and 10.4.
62064         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
62065         on non-ELF systems.
62066         * lib/argp-pv.c (argp_program_version): Likewise.
62067         Reported by Simon Josefsson.
62069 2009-08-07  Simon Josefsson  <simon@josefsson.org>
62071         * tests/test-version-etc.sh: Use $EXEEXT.
62073 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
62075         update-copyright: update documentation to point to maint.mk
62076         * build-aux/update-copyright: Here.
62078 2009-08-06  Jim Meyering  <meyering@redhat.com>
62080         maint.mk: support update-copyright-local
62081         * top/maint.mk (update-copyright-local): Define place-holder.
62082         (update-copyright): Depend on $(update-copyright-local).
62084 2009-08-06  Jim Meyering  <meyering@redhat.com>
62086         selinux-at: new module
62087         Initially written for coreutils, this module will soon be
62088         used by findutils, too.
62089         * MODULES.html.sh [Misc]: Add selinux-at.
62090         * lib/selinux-at.h: New file, from coreutils.
62091         * lib/selinux-at.c: Likewise.
62092         * modules/selinux-at: Likewise.
62093         (License): Change from LGPL to GPL, since it depends
62094         on the GPL'd openat module.
62096         doc: update README
62097         * README: Remove references to cogito.
62098         Remove cvs-repo-updating instructions from 2007.
62099         Don't imply that CVS is better if you have limited disk space.
62101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62103         update-copyright: support C-style comments
62104         * build-aux/update-copyright: Implement and document.
62105         * tests/test-update-copyright.sh: Test.
62107 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62109         update-copyright: support omitted "(C)"
62110         * build-aux/update-copyright: Implement and document.  Also,
62111         allow variable whitespace before "(C)".
62112         * tests/test-update-copyright.sh: Test.
62114 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62116         update-copyright: don't trip on non-FSF copyright statements
62117         * build-aux/update-copyright: Fix so that the first correctly
62118         formatted FSF copyright statement is recognized no matter what
62119         appears before it.  Update documentation.
62120         * tests/test-update-copyright.sh: Test that.
62122 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62124         update-copyright: clean up code a little
62125         * build-aux/update-copyright: Append "_re" to the name of any
62126         variable holding a regular expression.
62127         Replace "old" and "new" with "stmt" in variable names.
62128         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
62129         handled correctly.
62130         Format code more consistently.
62132 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62134         update-copyright-tests: improve portability
62135         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
62136         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
62138 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62140         update-copyright: support @copyright{} and &copy;
62141         * build-aux/update-copyright: Implement and document.
62142         * tests/test-update-copyright.sh: Test.
62144 2009-08-04  Jim Meyering  <meyering@redhat.com>
62146         update-copyright-tests: correctly test EOL=\r\n handling
62147         * tests/test-update-copyright.sh: Put \r at the end of some lines
62148         for the dos-eol tests.  Based on a patch by Joel E. Denny.
62150         maint.mk: make update-copyright exclusion list more configurable
62151         * top/maint.mk (update-copyright): Default to excluding COPYING,
62152         but allow an override, in case someone does want to update that file.
62154         maint.mk: don't update copyright date in COPYING
62155         * top/maint.mk (update-copyright): Exclude COPYING.
62157         maint.mk: add a copyright-updating rule
62158         * top/maint.mk (update-copyright): New rule.
62159         Derived from coreutils/Makefile.am.
62161         update-copyright: rename some variables
62162         * build-aux/update-copyright: Rename a few variables for clarity.
62163         Tweak syntax.  List Joel E. Denny as coauthor.
62165 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62167         update-copyright: fix bug for 2-digit last year and add tests
62168         * build-aux/update-copyright: Fix bug.
62169         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
62170         specified.
62171         * modules/update-copyright-tests: New
62172         * tests/test-update-copyright.sh: New.
62174 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62176         update-copyright: handle leading tabs in line prefix
62177         * build-aux/update-copyright: Count leading tabs as 8 spaces
62178         when computing margin.  This helps with the formatting of
62179         ChangeLogs, for example.
62180         Fix documentation a little.
62182 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62184         update-copyright: support EOL=\r\n
62185         * build-aux/update-copyright: Implement that.
62187 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62189         update-copyright: automatically format copyright statements
62190         * build-aux/update-copyright: Implement that.
62191         Also, be a little more predictable and safer by always failing
62192         when the full copyright format is not perfectly recognized as an
62193         unbroken whole.  Discussed at
62194         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
62195         Rewrite documentation.
62197 2009-08-03  Bruno Haible  <bruno@clisp.org>
62199         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
62201 2009-08-02  Bruno Haible  <bruno@clisp.org>
62203         Tests for module 'uname'.
62204         * modules/uname-tests: New file.
62205         * tests/test-uname.c: New file.
62207         New module 'uname'.
62208         * lib/uname.c: New file.
62209         * m4/uname.m4: New file.
62210         * modules/uname: New file.
62211         * doc/posix-functions/uname.texi: Mention the new module.
62213 2009-08-02  Bruno Haible  <bruno@clisp.org>
62215         Tests for module 'sys_utsname'.
62216         * modules/sys_utsname-tests: New file.
62217         * tests/test-sys_utsname.c: New file.
62219         New module 'sys_utsname'.
62220         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
62221         * m4/sys_utsname_h.m4: New file.
62222         * modules/sys_utsname: New file.
62223         * doc/posix-headers/sys_utsname.texi: Mention the new module.
62225 2009-08-02  Bruno Haible  <bruno@clisp.org>
62227         Implicitly initialize the sockets library.
62228         * lib/gethostname.c: Include sockets.h.
62229         (rpl_gethostname): Invoke gl_sockets_startup.
62230         * lib/socket.c: Include sockets.h.
62231         (rpl_socket): Invoke gl_sockets_startup.
62232         * modules/gethostname (Depends-on): Add sockets.
62233         * modules/socket (Depends-on): Likewise.
62234         * tests/test-poll.c: Don't include sockets.h.
62235         (main): Don't invoke gl_sockets_startup.
62236         * tests/test-select.c: Don't include sockets.h.
62237         (main): Don't invoke gl_sockets_startup.
62239 2009-08-02  Bruno Haible  <bruno@clisp.org>
62241         Allow multiple calls to gl_sockets_startup.
62242         * lib/sockets.c (initialized_sockets_version): New variable.
62243         (gl_sockets_startup): Do nothing if already called for this or a higher
62244         version.
62245         (gl_sockets_cleanup): Reset initialized_sockets_version.
62247 2009-08-03  Simon Josefsson  <simon@josefsson.org>
62249         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
62250         different project/version.
62252 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
62253             Bruno Haible  <bruno@clisp.org>
62255         Tests for module 'pipe-filter-gi'.
62256         * modules/pipe-filter-gi-tests: New file.
62257         * tests/test-pipe-filter-gi1.sh: New file.
62258         * tests/test-pipe-filter-gi1.c: New file.
62259         * tests/test-pipe-filter-gi2.sh: New file.
62260         * tests/test-pipe-filter-gi2-main.c: New file.
62261         * tests/test-pipe-filter-gi2-child.c: New file.
62263         New module 'pipe-filter-gi'.
62264         * lib/pipe-filter-gi.c: New file.
62265         * modules/pipe-filter-gi: New file.
62267 2009-08-02  Bruno Haible  <bruno@clisp.org>
62268             Paolo Bonzini  <bonzini@gnu.org>
62270         Tests for module 'pipe-filter-ii'.
62271         * modules/pipe-filter-ii-tests: New file.
62272         * tests/test-pipe-filter-ii1.sh: New file.
62273         * tests/test-pipe-filter-ii1.c: New file.
62274         * tests/test-pipe-filter-ii2.sh: New file.
62275         * tests/test-pipe-filter-ii2-main.c: New file.
62276         * tests/test-pipe-filter-ii2-child.c: New file.
62278         New module 'pipe-filter-ii'.
62279         * lib/pipe-filter.h: New file.
62280         * lib/pipe-filter-ii.c: New file.
62281         * lib/pipe-filter-aux.h: New file.
62282         * modules/pipe-filter-ii: New file.
62284 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62286         * lib/gc-libgcrypt.c: Change copyright to FSF.
62287         * lib/gc-gnulib.c: Likewise.
62289 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
62291         * lib/gethostname.c: Include limits.h.
62293 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62294             Bruno Haible  <bruno@clisp.org>
62296         Ensure HOST_NAME_MAX as part of the gethostname module.
62297         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
62298         define also HOST_NAME_MAX.
62299         * tests/test-gethostname.c: Include <limits.h>.
62300         (main): Check also HOST_NAME_MAX.
62301         * doc/posix-headers/limits.texi: Document the mingw problem.
62303 2009-08-02  Bruno Haible  <bruno@clisp.org>
62305         * lib/gethostname.c (gethostname): Fix handling of large len argument.
62306         Add comments.
62308 2009-03-31  Simon Josefsson  <simon@josefsson.org>
62310         * lib/gethostname.c: Add Windows wrapper.
62311         * m4/gethostname.m4: Look for gethostname in -lws2_32.
62312         * modules/gethostname: Depend on sys_socket & errno, for also
62313         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
62314         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
62316 2009-07-31  Jim Meyering  <meyering@redhat.com>
62318         getloadavg: fix symbol name in comment
62319         * lib/getloadavg.c: Correct a typo I introduced when adding
62320         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
62321         Matt Kraai spotted the problem.
62323 2009-07-29  Matt Kraai  <mkraai@beckman.com>
62325         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
62326         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
62327         code also if ! defined N_NAME_POINTER.
62328         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
62329         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
62330         but the n_name member is a 12-byte array.
62332 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
62334         update-copyright: generalize comment handling
62335         * build-aux/update-copyright: Handle copyright statements
62336         within more comment styles.
62337         Document usage.
62338         Report any file with an external copyright holder or parse failure.
62340 2009-07-29  Jim Meyering  <meyering@redhat.com>
62342         mktime: correct setting of REPLACE_MKTIME
62343         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
62345         update-copyright: new module
62346         * modules/update-copyright: New file.
62347         * build-aux/update-copyright: New file.
62348         * MODULES.html.sh (maint+release support): Add update-copyright.
62350 2009-07-27  Bruno Haible  <bruno@clisp.org>
62352         Fix compilation error when <ctime> is used and mktime is replaced.
62353         * lib/time.in.h (mktime): New declaration.
62354         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
62355         REPLACE_MKTIME instead of defining mktime in config.h.
62356         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
62357         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
62358         Reported by Ross McFarland <rwmcfa1@neces.com>.
62360 2009-07-27  Bruno Haible  <bruno@clisp.org>
62362         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
62363         Reported by Matt Kraai <mkraai@beckman.com>.
62365 2009-07-25  Jim Meyering  <meyering@redhat.com>
62367         maint.mk: avoid warnings about missing files
62368         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
62369         diagnostic when .prev-version does not exist.
62370         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
62371         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
62372         nonexistent cfg.mk.
62373         Suggestions from Simon Josefsson.
62375 2009-07-25  Bruno Haible  <bruno@clisp.org>
62377         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
62378         defined as macros. Needed on QNX 6.4.1.
62379         Reported by Matt Kraai <mkraai@beckman.com>.
62381 2009-07-23  Jim Meyering  <meyering@redhat.com>
62383         maint.mk: invoke "make dist" with a working value of XZ_OPT
62384         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
62386 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
62388         Make fseeko.c compile on QNX.
62389         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
62391 2009-07-22  Peter Simons  <simons@cryp.to>
62393         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
62394         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
62395         * lib/md4.h: Likewise.
62396         * lib/md5.h: Likewise.
62397         * lib/sha1.h: Likewise.
62398         * lib/sha256.h: Likewise.
62399         * lib/sha512.h: Likewise.
62401         tests-sha1: don't assign literal string to 'char *' variable
62402         * tests/test-sha1.c (main): Declare locals with "const" to match
62403         attributes of the right hand side.
62405 2009-07-21  Eric Blake  <ebb9@byu.net>
62407         dup2: fix more mingw problems
62408         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
62409         fd to itself.
62410         * doc/posix-functions/dup2.texi (dup2): Document the bug.
62411         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
62412         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
62413         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
62414         care of mingw bugs.
62416 2009-07-21  Jim Meyering  <meyering@redhat.com>
62418         vc-list-files: avoid failure when /bin/sh is dash
62419         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
62420         On some Debian based systems, /bin/sh is a symlink to dash, and running
62421         this command would omit the "/" following each 'tests' prefix:
62422           dash -x build-aux/vc-list-files -C . tests
62423         That is because bash and dash work differently:
62424           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
62425           bash ok
62426           dash odd
62428 2009-07-21  Eric Blake  <ebb9@byu.net>
62430         dup2-tests: test previous patch
62431         * modules/dup2-tests: New file.
62432         * tests/test-dup2.c: Likewise.
62433         * tests/test-open.c (main): Avoid unspecified behavior.
62434         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
62435         test.
62437         dup2: work around mingw and cygwin 1.5 bug
62438         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
62439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62440         * modules/unistd (Makefile.am): Substitute it.
62441         * lib/unistd.in.h (dup2): Declare the replacement.
62442         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
62443         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
62444         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
62445         * modules/execute (Depends-on): Add dup2.
62446         * modules/fseterr (Depends-on): Likewise.
62447         * modules/pipe (Depends-on): Likewise.
62448         * modules/posix_spawn-internal (Depends-on): Likewise.
62450 2009-07-21  Bruno Haible  <bruno@clisp.org>
62452         * modules/.gitattributes: New file.
62454 2009-07-20  Bruno Haible  <bruno@clisp.org>
62456         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
62457         (main): Use it.
62459 2009-07-20  Eric Blake  <ebb9@byu.net>
62461         test-pipe: make a bit more robust.
62462         * tests/test-pipe.c (myerr): Allow error messages regardless of
62463         what we do to stderr.
62464         (test_pipe): Rearrange to avoid deadlock.
62465         (child_main): Try a larger read, to ensure we avoided deadlock.
62466         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
62467         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
62468         if misused.
62470 2009-07-19  Jim Meyering  <meyering@redhat.com>
62472         fts: avoid false-positive cycle-detection
62473         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
62474         for each new command line argument.
62476 2009-07-19  Bruno Haible  <bruno@clisp.org>
62478         Fix build error on mingw with the modules sys_select and unistd.
62479         * modules/acl-tests (Depends-on): Add close.
62480         * modules/binary-io-tests (Depends-on): Likewise.
62481         * modules/closein-tests (Depends-on): Likewise.
62482         * modules/flock-tests (Depends-on): Likewise.
62483         * modules/fsync-tests (Depends-on): Likewise.
62484         * modules/lseek-tests (Depends-on): Likewise.
62485         * modules/pipe-tests (Depends-on): Likewise.
62486         * modules/posix_spawn-tests (Depends-on): Likewise.
62487         * modules/posix_spawnp-tests (Depends-on): Likewise.
62488         * modules/stat-time-tests (Depends-on): Likewise.
62489         * modules/yesno-tests (Depends-on): Likewise.
62491 2009-07-19  Bruno Haible  <bruno@clisp.org>
62493         Unify conditionals.
62494         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
62495         macros, not at the compiler macros.
62496         * lib/pipe.c: Likewise.
62497         * lib/execute.c: Likewise.
62498         * lib/spawni.c: Likewise.
62500 2009-07-19  Bruno Haible  <bruno@clisp.org>
62502         Fix handling of closed stdin/stdout/stderr on mingw.
62503         * lib/w32spawn.h: Include unistd.h.
62504         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
62505         file descriptor with O_NOINHERIT flag.
62506         (fd_safer_noinherit): New function, based on fd-safer.c.
62507         (dup_safer_noinherit): New function, based on dup-safer.c.
62508         (undup_safer_noinherit): New function.
62509         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
62510         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
62511         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
62512         instead of fd_safer.
62513         * tests/test-pipe.c: Include <windows.h>.
62514         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
62515         result.
62517         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
62518         from main.
62519         (test_pipe): Pass an extra argument for disambiguation.
62520         (main): Invoke parent_main or child_main.
62522         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
62523         consistently.
62525 2009-07-18  Eric Blake  <ebb9@byu.net>
62527         test-pipe: fix mingw build
62528         * tests/test-pipe.c (main): Avoid fcntl on mingw.
62530 2009-07-18  Bruno Haible  <bruno@clisp.org>
62532         * modules/pipe-tests (Makefile.am): Fix typo.
62534 2009-07-18  Eric Blake  <ebb9@byu.net>
62536         error: fix mingw build
62537         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
62538         Reported by Bruno Haible.
62540         error: avoid undefined use of stdout
62541         * lib/error.c (error, error_at_line): Check that fd 1 is open
62542         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
62543         is handling faults and the close_stdout module wants to report the
62544         detection of closed stdout as an error.
62546 2009-07-17  Eric Blake  <ebb9@byu.net>
62548         pipe: be robust in face of closed fds
62549         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
62550         should cause child to misbehave.
62551         * modules/pipe-tests: New module.
62552         * tests/test-pipe.c: New file.
62553         * tests/test-pipe.sh: New file.
62554         Reported by Akim Demaille.
62556 2009-07-14  Bruno Haible  <bruno@clisp.org>
62558         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
62559         Reported by anonymous kc.
62561 2009-07-07  Jim Meyering  <meyering@redhat.com>
62563         maint.mk: don't look for translatable strings in *.m4 or *.mk
62564         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
62565         when searching for translatable strings.
62567 2009-07-05  Jim Meyering  <meyering@redhat.com>
62569         remove superfluous parentheses in STREQ definition
62570         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
62571         * lib/getugroups.c (STREQ): Likewise.
62572         * lib/fnmatch.c (STREQ): Likewise.
62573         Spotted by Bruno Haible.
62575 2009-07-04  Jim Meyering  <meyering@redhat.com>
62577         argv-iter: new module
62578         * MODULES.html.sh: Add argv-iter.
62579         * lib/argv-iter.c, lib/argv-iter.h: New files.
62580         * modules/argv-iter: New file.
62581         * modules/argv-iter-tests: New file.
62582         * tests/test-argv-iter.c: Test it.
62584 2009-07-04  Bruno Haible  <bruno@clisp.org>
62586         Fix assertion.
62587         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
62588         contains more exact copies of a given entry than file2, leave the extra
62589         copies unpaired rather than aborting.
62590         Reported by Eric Blake.
62592 2009-07-02  Bruno Haible  <bruno@clisp.org>
62594         Speedup git-merge-changelog for git cherry-pick.
62595         * lib/git-merge-changelog.c (struct entries_mapping): New type.
62596         (entries_mapping_get): New function, extracted from compute_mapping.
62597         (entries_mapping_reverse_get): New function.
62598         (compute_mapping): Add a 'full' argument. Return the result in a
62599         'struct entries_mapping'.
62600         (main): Update. Access the mappings through entries_mapping_get.
62601         Reported by Eric Blake.
62603 2009-07-02  Bruno Haible  <bruno@clisp.org>
62605         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
62606         best_i.
62608 2009-07-02  Bruno Haible  <bruno@clisp.org>
62610         Speed up approximate search for matching ChangeLog entries.
62611         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
62612         argument. Call fstrcmp_bounded instead of fstrcmp.
62613         (compute_mapping, try_split_merged_entry, main): Update callers.
62615 2009-07-02  Bruno Haible  <bruno@clisp.org>
62617         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
62619 2009-06-30  Bruno Haible  <bruno@clisp.org>
62621         Reduce the number of uc_is_cased calls.
62622         * lib/unicase.h (casing_suffix_context_t): Add
62623         'first_char_except_ignorable' field.
62624         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
62625         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
62626         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
62627         Update initializer.
62628         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
62629         case-ignorable characters.
62630         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
62631         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
62632         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
62633         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
62634         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
62636 2009-06-30  Bruno Haible  <bruno@clisp.org>
62638         Tests for module 'unicase/ignorable'.
62639         * modules/unicase/ignorable-tests: New file.
62640         * tests/unicase/test-ignorable.c: New file, generated by
62641         gen-uni-tables.
62643         Tests for module 'unicase/cased'.
62644         * modules/unicase/cased-tests: New file.
62645         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
62646         * tests/unicase/test-predicate-part1.h: New file, derived from
62647         tests/unictype/test-predicate-part1.h.
62648         * tests/unicase/test-predicate-part2.h: New file, same as
62649         tests/unictype/test-predicate-part2.h.
62651         Fix evaluation of "Before C" condition of FINAL_SIGMA.
62652         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
62653         (output_casing_properties): New function.
62654         (main): Call it.
62655         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
62656         * lib/unicase/cased.c: Include unictype/bitmap.h.
62657         (uc_is_cased): Define through a bitmap lookup.
62658         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
62659         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
62660         (uc_is_case_ignorable): Define through a bitmap lookup.
62661         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
62662         lib/unictype/bitmap.h.
62663         (Depends-on): Add inline. Clean up.
62664         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
62665         lib/unictype/bitmap.h.
62666         (Depends-on): Add inline. Clean up.
62667         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
62668         recognition.
62669         * tests/unicase/test-u16-tolower.c (main): Likewise.
62670         * tests/unicase/test-u32-tolower.c (main): Likewise.
62672 2009-06-30  Bruno Haible  <bruno@clisp.org>
62674         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
62675         * lib/unicase/u16-casemap.c: Likewise.
62676         * lib/unicase/u32-casemap.c: Likewise.
62678 2009-06-29  Bruno Haible  <bruno@clisp.org>
62680         Define u32_casefold as a wrapper around u32_ct_casefold.
62681         * lib/unicase/u32-casefold.c: Update.
62682         * modules/unicase/u32-casefold (Depends-on): Add
62683         unicase/u32-ct-casefold, unicase/empty-prefix-context,
62684         unicase/empty-suffix-context. Clean up.
62686         Define u16_casefold as a wrapper around u16_ct_casefold.
62687         * lib/unicase/u16-casefold.c: Update.
62688         * modules/unicase/u16-casefold (Depends-on): Add
62689         unicase/u16-ct-casefold, unicase/empty-prefix-context,
62690         unicase/empty-suffix-context. Clean up.
62692         Define u8_casefold as a wrapper around u8_ct_casefold.
62693         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
62694         * lib/unicase/u8-casefold.c: Update.
62695         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
62696         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62698         Define u32_totitle as a wrapper around u32_ct_totitle.
62699         * lib/unicase/u32-totitle.c: Update.
62700         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
62701         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62703         Define u16_totitle as a wrapper around u16_ct_totitle.
62704         * lib/unicase/u16-totitle.c: Update.
62705         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
62706         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62708         Define u8_totitle as a wrapper around u8_ct_totitle.
62709         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
62710         functions.
62711         (FUNC): Delegate to U_CT_TOTITLE.
62712         * lib/unicase/u8-totitle.c: Update.
62713         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
62714         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62716         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
62717         invocation.
62718         * modules/unicase/u32-tolower (Depends-on): Add
62719         unicase/empty-prefix-context, unicase/empty-suffix-context.
62721         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
62722         invocation.
62723         * modules/unicase/u16-tolower (Depends-on): Add
62724         unicase/empty-prefix-context, unicase/empty-suffix-context.
62726         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
62727         * modules/unicase/u8-tolower (Depends-on): Add
62728         unicase/empty-prefix-context, unicase/empty-suffix-context.
62730         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
62731         invocation.
62732         * modules/unicase/u32-toupper (Depends-on): Add
62733         unicase/empty-prefix-context, unicase/empty-suffix-context.
62735         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
62736         invocation.
62737         * modules/unicase/u16-toupper (Depends-on): Add
62738         unicase/empty-prefix-context, unicase/empty-suffix-context.
62740         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
62741         * modules/unicase/u8-toupper (Depends-on): Add
62742         unicase/empty-prefix-context, unicase/empty-suffix-context.
62744         New module 'unicase/u32-ct-casefold'.
62745         * lib/unicase/u32-ct-casefold.c: New file.
62746         * modules/unicase/u32-ct-casefold: New file.
62748         New module 'unicase/u16-ct-casefold'.
62749         * lib/unicase/u16-ct-casefold.c: New file.
62750         * modules/unicase/u16-ct-casefold: New file.
62752         New module 'unicase/u8-ct-casefold'.
62753         * lib/unicase/u8-ct-casefold.c: New file.
62754         * lib/unicase/u-ct-casefold.h: New file, derived from
62755         lib/unicase/u-casefold.h.
62756         * modules/unicase/u8-ct-casefold: New file.
62758         New module 'unicase/u32-ct-totitle'.
62759         * lib/unicase/u32-ct-totitle.c: New file.
62760         * modules/unicase/u32-ct-totitle: New file.
62762         New module 'unicase/u16-ct-totitle'.
62763         * lib/unicase/u16-ct-totitle.c: New file.
62764         * modules/unicase/u16-ct-totitle: New file.
62766         New module 'unicase/u8-ct-totitle'.
62767         * lib/unicase/u8-ct-totitle.c: New file.
62768         * lib/unicase/u-ct-totitle.h: New file, derived from
62769         lib/unicase/u-totitle.h.
62770         * modules/unicase/u8-ct-totitle: New file.
62772         New module 'unicase/u32-ct-tolower'.
62773         * lib/unicase/u32-ct-tolower.c: New file.
62774         * modules/unicase/u32-ct-tolower: New file.
62776         New module 'unicase/u16-ct-tolower'.
62777         * lib/unicase/u16-ct-tolower.c: New file.
62778         * modules/unicase/u16-ct-tolower: New file.
62780         New module 'unicase/u8-ct-tolower'.
62781         * lib/unicase/u8-ct-tolower.c: New file.
62782         * modules/unicase/u8-ct-tolower: New file.
62784         New module 'unicase/u32-ct-toupper'.
62785         * lib/unicase/u32-ct-toupper.c: New file.
62786         * modules/unicase/u32-ct-toupper: New file.
62788         New module 'unicase/u16-ct-toupper'.
62789         * lib/unicase/u16-ct-toupper.c: New file.
62790         * modules/unicase/u16-ct-toupper: New file.
62792         New module 'unicase/u8-ct-toupper'.
62793         * lib/unicase/u8-ct-toupper.c: New file.
62794         * modules/unicase/u8-ct-toupper: New file.
62796         Add context arguments to u*_casemap functions.
62797         * lib/unicase/unicasemap.h: Include unicase.h.
62798         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
62799         suffix_context arguments.
62800         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
62801         functions.
62802         (FUNC): Add prefix_context and suffix_context arguments. Use
62803         uc_is_cased and uc_is_case_ignorable.
62804         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
62805         * lib/unicase/u16-casemap.c: Likewise.
62806         * lib/unicase/u32-casemap.c: Likewise.
62807         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
62808         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62809         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
62810         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62811         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
62812         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62814         New module 'unicase/u32-suffix-context'.
62815         * lib/unicase/u32-suffix-context.c: New file.
62816         * modules/unicase/u32-suffix-context: New file.
62818         New module 'unicase/u16-suffix-context'.
62819         * lib/unicase/u16-suffix-context.c: New file.
62820         * modules/unicase/u16-suffix-context: New file.
62822         New module 'unicase/u8-suffix-context'.
62823         * lib/unicase/u8-suffix-context.c: New file.
62824         * lib/unicase/u-suffix-context.h: New file.
62825         * modules/unicase/u8-suffix-context: New file.
62827         New module 'unicase/empty-suffix-context'.
62828         * lib/unicase/empty-suffix-context.c: New file.
62829         * modules/unicase/empty-suffix-context: New file.
62831         New module 'unicase/u32-prefix-context'.
62832         * lib/unicase/u32-prefix-context.c: New file.
62833         * modules/unicase/u32-prefix-context: New file.
62835         New module 'unicase/u16-prefix-context'.
62836         * lib/unicase/u16-prefix-context.c: New file.
62837         * modules/unicase/u16-prefix-context: New file.
62839         New module 'unicase/u8-prefix-context'.
62840         * lib/unicase/u8-prefix-context.c: New file.
62841         * lib/unicase/u-prefix-context.h: New file.
62842         * lib/unicase/context.h: New file.
62843         * modules/unicase/u8-prefix-context: New file.
62845         New module 'unicase/empty-prefix-context'.
62846         * lib/unicase/empty-prefix-context.c: New file.
62847         * modules/unicase/empty-prefix-context: New file.
62849         New module 'unicase/ignorable'.
62850         * lib/unicase/ignorable.c: New file.
62851         * modules/unicase/ignorable: New file.
62853         New module 'unicase/cased'.
62854         * lib/unicase/caseprop.h: New file.
62855         * lib/unicase/cased.c: New file.
62856         * modules/unicase/cased: New file.
62858         New functions for case mapping of substrings.
62859         * lib/unicase.h (casing_prefix_context_t): New type.
62860         (unicase_empty_prefix_context): New variable.
62861         (u8_casing_prefix_context, u16_casing_prefix_context,
62862         u32_casing_prefix_context, u8_casing_prefixes_context,
62863         u16_casing_prefixes_context, u32_casing_prefixes_context): New
62864         declarations.
62865         (casing_suffix_context_t): New type.
62866         (unicase_empty_suffix_context): New variable.
62867         (u8_casing_suffix_context, u16_casing_suffix_context,
62868         u32_casing_suffix_context, u8_casing_suffixes_context,
62869         u16_casing_suffixes_context, u32_casing_suffixes_context,
62870         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
62871         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
62872         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
62873         declarations.
62875 2009-06-28  Jim Meyering  <meyering@redhat.com>
62877         boostrap: indent only with spaces
62878         * build-aux/bootstrap: Indent only with spaces, never TABs.
62880         bootstrap: split long lines
62881         * build-aux/bootstrap: Keep line length < 80.
62883         bootstrap: sync from coreutils
62884         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
62885         just as autoreconf does.  Verify a list of prerequisite
62886         package-name,version-number pairs if defined in bootstrap.conf.
62887         Refer to README-prereq, if prerequisites are not satisfied.
62889 2009-06-27  Eric Blake  <ebb9@byu.net>
62891         tests: add test for bogus NULL definition
62892         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
62893         * tests/test-stdlib.c: Likewise.
62894         * tests/test-string.c: Likewise.
62895         * tests/test-locale.c: Likewise.
62896         * tests/test-unistd.c: Likewise.
62897         * modules/stdio-tests (Depends-on): Add verify.
62898         * modules/stdlib-tests (Depends-on): Likewise.
62899         * modules/string-tests (Depends-on): Likewise.
62900         * modules/locale-tests (Depends-on): Likewise.
62901         * modules/unistd-tests (Depends-on): Likewise.
62903 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
62905         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
62906         self-explaining comment.
62907         * m4/selinux-selinux-h: Update serial.
62908         (gl_LIBSELINUX): New macro, adding a warning for missing development
62909         packages to code extracted from...
62910         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
62911         Add warning for missing development packages here, too.
62913 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
62915         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
62917 2009-06-25  Eric Blake  <ebb9@byu.net>
62919         version-etc: fix regression
62920         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
62921         gcc.
62922         (version_etc): Use it, to catch bugs with trailing NULL.
62923         * lib/version-etc.c (version_etc_arn): Delete unused argument.
62924         (version_etc_va): Fix logic bug.
62925         * modules/version-etc-tests: Add test.
62926         * tests/test-version-etc.c: New file.
62927         * tests/test-version-etc.sh: Likewise.
62929 2009-06-25  Sam Steingold  <sds@gnu.org>
62931         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
62932         mbtowc declaration.
62934 2009-06-25  Eric Blake  <ebb9@byu.net>
62936         fpurge: migrate into <stdio.h>
62937         * lib/fpurge.h: Delete...
62938         * lib/stdio.in.h (fpurge): ...and declare here, instead.
62939         * lib/fpurge.c (fpurge): Change declaring header.
62940         * modules/fpurge (Files): Drop deleted file.
62941         (Depends-on): Add stdio.
62942         (configure.ac): Set witness.
62943         * modules/stdio (Makefile.am): Support fpurge macros.
62944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62945         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
62946         * lib/fflush.c: Update client.
62947         * tests/test-fpurge.c: Likewise.
62948         * NEWS: Mention the change.
62950 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62952         * lib/argp-version-etc.c (program_authors): Add const
62953         qualifier.
62954         * lib/version-etc.c: Fix typos in the comments.
62955         * modules/argp-version-etc: Depends on version-etc.
62957 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62959         argp-version-etc: new module.
62961         * lib/argp-version-etc.c: New file.
62962         * lib/argp-version-etc.h: New file.
62963         * modules/argp-version-etc: New file.
62964         * modules/argp-version-etc-tests: New file.
62965         * tests/test-argp-version-etc.c: New test.
62966         * tests/test-argp-version-etc-1.sh: New test.
62968 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62970         Provide additional interfaces and documentation for version-etc
62971         module.
62973         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
62974         interfaces.
62975         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
62976         prototypes.
62978 2009-06-24  Bruno Haible  <bruno@clisp.org>
62980         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
62981         HAVE_LIB${NAME} macro.
62982         Reported by Sam Steingold <sds@gnu.org>.
62984 2009-06-23  Simon Josefsson  <simon@josefsson.org>
62986         * modules/hash-tests (test_hash_LDADD): Link to libintl when
62987         needed.
62989 2009-06-21  Bruno Haible  <bruno@clisp.org>
62991         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
62992         work.
62993         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
62994         together with LIB${NAME}, LTLIB${NAME}.
62995         Reported by Sam Steingold <sds@gnu.org>.
62997 2009-06-20  Jim Meyering  <meyering@redhat.com>
62999         tests: make sc_require_test_exit_idiom more generic
63000         * top/maint.mk (Exit_witness_file): New overridable variable.
63001         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
63002         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
63004 2009-06-19  Jim Meyering  <meyering@redhat.com>
63006         hash: reverse order of src/dst parameters in an internal interface
63007         * lib/hash.c (transfer_entries): Reverse order of parameters to
63008         put DST before SRC.  Adjust callers.
63010         tests: test-hash: avoid wholesale duplication
63011         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
63012         Instead, use a loop and add a single conditional.
63014         tests: test-hash: allow seed selection via a command line argument
63015         * tests/test-hash.c (get_seed): New function.
63016         (main): Use it.
63018 2009-06-19  Eric Blake  <ebb9@byu.net>
63020         hash: avoid memory leak on allocation failure
63021         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
63022         failure.  Factor repeated algorithm...
63023         (transfer_entries): ...into new helper routine.
63024         (hash_delete): React to hash_rehash return value.
63026         hash: reduce memory pressure in hash_rehash no-op case
63027         * lib/hash.c (next_prime): Avoid overflow.
63028         (hash_initialize): Factor bucket size computation...
63029         (compute_bucket_size): ...into new helper function.
63030         (hash_rehash): Use new function and open coding to reduce memory
63031         pressure, and avoid a memory leak in USE_OBSTACK code.
63032         Reported by Jim Meyering.
63034 2009-06-18  Eric Blake  <ebb9@byu.net>
63036         hash: make rotation more obvious
63037         * modules/hash (Depends-on): Add bitrotate and stdint.
63038         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
63039         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
63040         (SIZE_MAX): Rely on headers for definition.
63041         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
63042         (raw_hasher): Use rotr_sz.
63043         Suggested by Jim Meyering.
63045         hash: fix memory leak in last patch
63046         * lib/hash.c (hash_rehash): Avoid memory leak.
63048         hash: avoid no-op rehashing
63049         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
63051         hash: provide default callback functions
63052         * lib/hash.c (raw_hasher, raw_comparator): New functions.
63053         (hash_initialize): Use them as defaults.
63054         * tests/test-hash.c (main): Test this.
63056         hash: minor optimization
63057         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
63058         when possible.
63059         (hash_initialize): Document this promise.
63060         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
63061         * tests/test-hash.c (hash_compare_strings): Test this.
63063 2009-06-18  Bruno Haible  <bruno@clisp.org>
63065         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
63066         going to be replaced anyway.
63068 2009-06-18  Bruno Haible  <bruno@clisp.org>
63070         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
63071         in one place.
63072         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
63073         be replaced anyway.
63075 2009-06-18  Eric Blake  <ebb9@byu.net>
63077         hash: check for resize before insertion
63078         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
63079         threshold before insertion, so that a pathological hash_rehash
63080         that fills every bucket can still trigger another rehash.
63082 2009-06-18  Jim Meyering  <meyering@redhat.com>
63084         hash-tests: add a loop around the small tests
63085         * tests/test-hash.c (main): Repeat small tests with selected
63086         small initial table sizes.
63088 2009-06-17  Eric Blake  <ebb9@byu.net>
63090         hash: minor cleanups
63091         * lib/hash.h (hash_entry): Make opaque, by moving...
63092         * lib/hash.c (hash_entry): ...here.
63093         (hash_insert): Clarify restrictions on what can be inserted.
63094         (hash_get_next): Clarify when it is safe to remove an element
63095         during traversal.
63096         (check_tuning): Skip verification when tuning is known safe.
63097         (hash_initialize): Clarify restrictions on tuning.
63099 2009-06-17  Jim Meyering  <jim@meyering.net>
63100         and Eric Blake  <ebb9@byu.net>
63102         hash-tests: new module
63103         * modules/hash-tests: New file.
63104         * tests/test-hash.c: New file.
63106 2009-06-17  Eric Blake  <ebb9@byu.net>
63108         strstr-simple: document new module
63109         * MODULES.html.sh: Document new module.
63111         strstr, strcasestr: replace on platforms with broken memchr
63112         * modules/strstr: Split into...
63113         * modules/strstr-simple: ...new module that does not care about
63114         performance, but does care about glibc bug.
63115         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
63116         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
63117         if platform memchr is broken, per Debian bug 521737.
63118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
63119         memchr.
63120         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
63121         * doc/posix-functions/strstr.texi (strstr): Document the fix.
63122         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63123         * modules/mountlist (Depends-on): Add strstr-simple.
63124         * modules/gen-uni-tables (Depends-on): Likewise.
63125         * modules/argz (Depends-on): Add strstr.
63127 2009-06-17  Bruno Haible  <bruno@clisp.org>
63129         * modules/posix_spawn-internal (Depends-on): Add errno.
63131 2009-06-17  Bruno Haible  <bruno@clisp.org>
63133         Define missing ESTALE on Interix 3.5.
63134         * lib/errno.in.h (ESTALE): Assign a value if missing.
63135         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
63136         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
63137         missing.
63138         * doc/posix-headers/errno.texi: Mention the Interix bug.
63139         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
63141 2009-06-15  Eric Blake  <ebb9@byu.net>
63143         memchr, memchr2: add valgrind exception
63144         * lib/memchr.valgrind: New file.
63145         * lib/memchr2.valgrind: New file.
63146         * modules/memchr (Files): Distribute valgrind file.
63147         * modules/memchr2 (Files): Likewise.
63149         docs: memchr is no longer obsolete
63150         * MODULES.html.sh: Move memchr from obsolete to string.h section.
63151         * lib/string.in.h (memchr): Simplify logic.
63153 2009-06-14  Jim Meyering  <meyering@redhat.com>
63155         link-follow: fix the "checking..." message to not mention trailing slash
63156         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
63157         never considered trailing slashes.
63159 2009-06-14  Bruno Haible  <bruno@clisp.org>
63161         * m4/memchr.m4: Mention also the bug on IA-64.
63162         * doc/posix-functions/memchr.texi: Likewise.
63164 2009-06-12  Eric Blake  <ebb9@byu.net>
63166         memchr: detect broken x86_64 and alpha implementations
63167         * modules/memchr-tests (Depends-on): Move mmap detection...
63168         * modules/memchr (Depends-on): ...here.
63169         (configure.ac): Set indicator.
63170         * lib/string.in.h (memchr): Declare replacement.
63171         * modules/string (Makefile.am): Trigger replacement.
63172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63173         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
63174         bugs.
63175         * doc/posix-functions/memchr.texi (memchr): Document the bug.
63176         * modules/getpagesize (License): Relax license.
63178 2009-06-11  Bruno Haible  <bruno@clisp.org>
63180         * lib/idpriv.h: Add more references.
63182 2009-06-08  Bruno Haible  <bruno@clisp.org>
63184         Tests for module 'idpriv-droptemp'.
63185         * modules/idpriv-droptemp-tests: New file.
63186         * tests/test-idpriv-droptemp.sh: New file.
63187         * tests/test-idpriv-droptemp.su.sh: New file.
63188         * tests/test-idpriv-droptemp.c: New file.
63190         New module 'idpriv-droptemp'.
63191         * lib/idpriv-droptemp.c: New file.
63192         * modules/idpriv-droptemp: New file.
63194 2009-06-08  Bruno Haible  <bruno@clisp.org>
63196         Tests for module 'idpriv-drop'.
63197         * modules/idpriv-drop-tests: New file.
63198         * tests/test-idpriv-drop.sh: New file.
63199         * tests/test-idpriv-drop.su.sh: New file.
63200         * tests/test-idpriv-drop.c: New file.
63202         New module 'idpriv-drop'.
63203         * lib/idpriv.h: New file.
63204         * lib-idpriv-drop.c: New file.
63205         * m4/idpriv.m4: New file.
63206         * modules/idpriv-drop: New file.
63208 2009-06-08  Bruno Haible  <bruno@clisp.org>
63210         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
63211         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63212         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63213         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63214         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63215         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63216         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63218 2009-06-08  Eric Blake  <ebb9@byu.net>
63220         test-strstr: use memory fence, when possible
63221         * tests/test-strstr.c (main): Use memory fence, in order to be
63222         more likely to trigger Debian bug 521737.
63223         * modules/strstr-tests (Files): Pull in additional files.
63225         memchr: no longer obsolete, for wider field testing
63226         * modules/memchr (Status, Notice): Delete, this module is no
63227         longer obsolete.
63228         * modules/vasnprintf (Depends-on): Add memchr.
63230 2009-06-07  Jim Meyering  <meyering@redhat.com>
63232         hash: declare some functions with the warn_unused_result attribute
63233         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
63235 2009-06-07  Bruno Haible  <bruno@clisp.org>
63237         * tests/test-alignof.c: Don't test int64_t if it does not exist.
63238         Reported by Eric Blake.
63240 2009-06-06  Eric Blake  <ebb9@byu.net>
63242         test-alignof: fix typo with long double
63243         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
63244         compiler error.
63246 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
63248         Escape non-texinfo { and }s.
63249         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
63250         markup error.
63252 2009-06-04  Jim Meyering  <meyering@redhat.com>
63254         gitlog-to-changelog: don't infloop on an empty commit log
63255         * build-aux/gitlog-to-changelog: Warn about an empty log message.
63256         Reported by Boris Petersen <transacid@centerim.org>.
63258 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
63260         version-etc: extend for packagers
63261         Add three new configure options, intended for packagers:
63262           --with-packager="packager name"
63263           --with-packager-version="packager-specific version"
63264           --with-packager-bug-reports="packager bug reporting"
63265         An example with coreutils:
63266           $ ./configure \
63267             --with-packager=Gentoo \
63268             --with-packager-bug-report=http://bugs.gentoo.org/ \
63269             --with-packager-version="patchset 1.6"
63270           $ ./src/ls --version | head -n2
63271           ls (GNU coreutils) 7.1-dirty
63272           Packaged by Gentoo (patchset 1.6)
63273         Note that the bug reporting info via --help doesn't show up because
63274         coreutils uses its own custom emit_bug_reporting_address() implementation
63275         in src/system.h.  If it didn't, it'd look like:
63276           $ ./src/ls --help | tail -n4
63277           Report bugs to <bug-coreutils@gnu.org>.
63278           Report Gentoo bugs to <http://bugs.gentoo.org/>.
63279           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
63280           General help using GNU software: <http://www.gnu.org/gethelp/>.
63281         * lib/version-etc.c: Print new information, if provided.
63282         * m4/version-etc.m4: New file.
63283         * modules/version-etc (Files): Add m4/version-etc.m4.
63284         (configure.ac): Add gl_VERSION_ETC.
63286 2009-05-31  Bruno Haible  <bruno@clisp.org>
63288         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
63289         and 'int64_t'.
63290         * modules/alignof-tests (Dependencies): Add stdint.
63291         Reported by Eric Blake.
63293 2009-05-31  Bruno Haible  <bruno@clisp.org>
63295         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
63296         restriction due to compiler bugs.
63297         Reported by Eric Blake.
63299 2009-05-31  Simon Josefsson  <simon@josefsson.org>
63300             Bruno Haible  <bruno@clisp.org>
63302         Fix test-alignof failure.
63303         * lib/alignof.h (alignof_slot): New macro.
63304         (alignof_type): New macro, with the same semantics as the previous
63305         'alignof'.
63306         (alignof): Alias to alignof_slot.
63307         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
63308         check that the results are usable as constant expressions.
63310 2009-05-31  Bruno Haible  <bruno@clisp.org>
63312         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
63313         * tests/test-memchr.c (main): Check that memchr does not read past the
63314         first occurrence of the byte.
63315         * tests/test-strstr.c (main): Update comment.
63316         Suggested by Eric Blake.
63318 2009-05-30  Bruno Haible  <bruno@clisp.org>
63320         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
63321         detail how to use dumpbin.
63322         Reported by David Byron <dbyron@dbyron.com>.
63324 2009-06-02  Simon Josefsson  <simon@josefsson.org>
63326         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
63328 2009-06-02  Simon Josefsson  <simon@josefsson.org>
63330         * m4/manywarnings.m4: Add GCC 4.4 warnings.
63332 2009-05-28  Bruno Haible  <bruno@clisp.org>
63334         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
63335         build-aux/ files.
63337 2009-05-28  Simon Josefsson  <simon@josefsson.org>
63339         * gnulib-tool (func_import): Transform license on build-aux/ files too.
63341 2009-05-27  Simon Josefsson  <simon@josefsson.org>
63343         * gnulib-tool (sed_transform_main_lib_file)
63344         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
63345         regexps.
63347 2009-05-26  Simon Josefsson  <simon@josefsson.org>
63349         * tests/test-strstr.c: Add another self-test.
63350         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
63351         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
63353 2009-05-23  Bruno Haible  <bruno@clisp.org>
63355         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
63356         change.
63358 2009-05-21  Bruno Haible  <bruno@clisp.org>
63360         Simplify use of mode_t varargs.
63361         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
63362         uses 'mode_t' or 'int'.
63363         * lib/openat.c (openat): Likewise.
63364         * lib/open-safer.c (open_safer): Likewise.
63365         * m4/mode_t.m4: New file.
63366         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
63367         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
63368         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
63369         * modules/open (Files): Add m4/mode_t.m4.
63370         * modules/openat (Files): Likewise.
63371         * modules/fcntl-safer (Files): Likewise.
63372         Suggested by Eric Blake.
63374 2009-05-21  Pádraig Brady  <P@draigbrady.com>
63376         * doc/glibc-functions/fallocate.texi: New file.
63377         * doc/gnulib.texi: Include it.
63379 2009-05-21  Eric Blake  <ebb9@byu.net>
63380             Bruno Haible  <bruno@clisp.org>
63382         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
63383         invocations.
63384         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
63386 2009-05-21  Eric Blake  <ebb9@byu.net>
63387             Bruno Haible  <bruno@clisp.org>
63389         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
63390         include_next. Fix of 2008-11-20 commit.
63391         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
63392         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
63393         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
63394         NEXT_MATH_H.
63395         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
63396         instead of NEXT_MATH_H.
63398 2009-05-21  Bruno Haible  <bruno@clisp.org>
63400         Avoid redefinition warnings for SIZE_MAX.
63401         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
63402         Reported by Simon Josefsson.
63404 2009-05-21  Bruno Haible  <bruno@clisp.org>
63406         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
63407         AC_CACHE_VAL.
63409 2009-05-20  Bruno Haible  <bruno@clisp.org>
63411         Make zeroptr.h work on mingw.
63412         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
63413         mprotect.
63414         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
63415         * modules/memchr2-tests (configure.ac): Likewise.
63416         * modules/memcmp-tests (configure.ac): Likewise.
63417         * modules/memmem-tests (configure.ac): Likewise.
63418         * modules/memrchr-tests (configure.ac): Likewise.
63419         Reported by Simon Josefsson.
63421 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63423         * tests/test-glob.c: Include string.h for strcmp prototype.
63425 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63427         * modules/getdelim (Depends-on): Add explicit stdint, although it
63428         was implicitly already pulled in via realloc-posix.
63429         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
63431 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63433         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
63434         G. Christensen" <tgc@jupiterrise.com>.
63435         * m4/sys_socket_h.m4: Check for sa_family_t.
63436         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
63437         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
63438         * tests/test-sys_socket.c: Check that sa_family_t works.
63440 2009-05-18  Eric Blake  <ebb9@byu.net>
63442         maint.mk: allow gnulib_dir in VPATH build
63443         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
63445 2009-05-15  Jim Meyering  <meyering@redhat.com>
63447         maint.mk: Give gnulib_dir a default definition.
63448         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
63449         Thus, most packages no longer need to specify this variable in cfg.mk
63451 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
63453         rename.m4: fix typos that would make non-mingw cross-configure fail
63454         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
63456 2009-05-13  Eric Blake  <ebb9@byu.net>
63458         mmap-anon: avoid out-of-order autoconf expansion
63459         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
63460         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
63461         * modules/memchr-tests (Depends-on): Add extensions.
63462         * modules/memchr2-tests (Depends-on): Add extensions.
63463         * modules/memcmp-tests (Depends-on): Add extensions.
63464         * modules/memmem-tests (Depends-on): Add extensions.
63465         * modules/memrchr-tests (Depends-on): Add extensions.
63467 2009-05-13  Bruno Haible  <bruno@clisp.org>
63469         Make some tests ISO C 99 compliant.
63470         * tests/zerosize-ptr.h: New file.
63471         * tests/test-memchr.c: Include zerosize-ptr.h.
63472         (main): Use a zero-size object pointer instead of NULL.
63473         * tests/test-memchr2.c: Include zerosize-ptr.h.
63474         (main): Use a zero-size object pointer instead of NULL.
63475         * tests/test-memcmp.c: Include zerosize-ptr.h.
63476         (main): Use a zero-size object pointer instead of NULL.
63477         * tests/test-memmem.c: Include zerosize-ptr.h.
63478         (main): Use a zero-size object pointer instead of NULL.
63479         * tests/test-memrchr.c: Include zerosize-ptr.h.
63480         (main): Use a zero-size object pointer instead of NULL.
63481         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
63482         m4/mmap-anon.m4.
63483         (Depends-on): Add getpagesize.
63484         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63485         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
63486         m4/mmap-anon.m4.
63487         (Depends-on): Add getpagesize.
63488         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63489         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
63490         m4/mmap-anon.m4.
63491         (Depends-on): Add getpagesize.
63492         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63493         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
63494         m4/mmap-anon.m4.
63495         (Depends-on): Add getpagesize.
63496         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63497         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
63498         m4/mmap-anon.m4.
63499         (Depends-on): Add getpagesize.
63500         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63502 2009-05-12  Bruno Haible  <bruno@clisp.org>
63504         Tests for module 'alignof'.
63505         * modules/alignof-tests: New file.
63506         * tests/test-alignof.c: New file.
63508 2009-05-12  Bruno Haible  <bruno@clisp.org>
63510         Fix alignof macro.
63511         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
63512         vendor compilers that are always correct.
63514 2009-05-12  Bruno Haible  <bruno@clisp.org>
63516         Make the MAP_ANONYMOUS detection work on HP-UX 11.
63517         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
63518         not whether its fully works.
63520 2009-05-12  Bruno Haible  <bruno@clisp.org>
63522         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
63524 2009-05-12  Jim Meyering  <meyering@redhat.com>
63526         * top/maint.mk: Adjust backslash alignment.
63528 2009-05-11  Simon Josefsson  <simon@josefsson.org>
63530         * top/maint.mk: Make $(srcdir)/build-aux configurable.
63532 2009-05-11  Eric Blake  <ebb9@byu.net>
63534         argp: avoid undefined behavior
63535         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
63536         macros.
63538 2009-05-08  Simon Josefsson  <simon@josefsson.org>
63540         * tests/test-vc-list-files-git.sh: Do git config of user.email and
63541         user.name to prevent git commit from complaining.
63543 2009-05-10  Bruno Haible  <bruno@clisp.org>
63545         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
63546         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
63547         it rewrites every file name only once.
63548         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
63550 2009-05-08  Bruno Haible  <bruno@clisp.org>
63552         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
63553         instead of 'max'.
63555 2009-05-08  Simon Josefsson  <simon@josefsson.org>
63557         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
63558         sockaddr_storage test.
63560 2009-05-07  Simon Josefsson  <simon@josefsson.org>
63562         * modules/sys_socket (Makefile.am): Substitute
63563         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
63564         * m4/sys_socket_h.m4: Check for sockaddr_storage.
63565         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
63566         * tests/test-sys_socket.c: Check sockaddr_storage.
63568 2009-05-08  Bruno Haible  <bruno@clisp.org>
63570         New module 'alignof'.
63571         * lib/alignof.h: New file.
63572         * modules/alignof: New file.
63574 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63575             Bruno Haible  <bruno@clisp.org>
63577         Fix test-file-has-acl on FreeBSD.
63578         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
63579         mask is implicitly added.
63580         * tests/test-file-has-acl.c: Include <signal.h>.
63581         (main): Terminate the test after 5 seconds.
63582         * modules/acl-tests (configure.ac): Check for alarm function.
63584 2009-05-04  Bruno Haible  <bruno@clisp.org>
63586         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
63587         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
63588         * modules/errno (configure.ac): Drop AC_REQUIRE.
63589         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
63590         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
63592 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63594         * modules/glob-tests: New module.
63595         * tests/test-glob.c: Add.
63597 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63599         * modules/fnmatch-tests: New module.
63600         * tests/test-fnmatch.c: Add.
63602 2009-05-04  Eric Blake  <ebb9@byu.net>
63604         maint: make the new no-submodule-changes rule VPATH-safe
63605         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
63607 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63608             Bruno Haible  <bruno@clisp.org>
63610         acl: Fix infinite loop on FreeBSD.
63611         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
63612         of return value from acl_get_entry.
63613         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
63614         Likewise.
63616 2009-05-03  Bruno Haible  <bruno@clisp.org>
63618         * lib/acl-internal.h (acl_entries): Clarify return value.
63619         * lib/acl_entries.c (acl_entries): Likewise.
63621 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63623         Bug fix in acl module.
63624         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
63626 2009-05-03  Bruno Haible  <bruno@clisp.org>
63628         Create gperf-generated file in the source dir, not in the build dir.
63629         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
63630         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
63631         * modules/unicase/locale-language (unicase/locale-languages.h):
63632         Likewise.
63633         * modules/unicase/special-casing (unicase/special-casing-table.h):
63634         Likewise.
63635         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
63636         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
63637         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
63638         Reported by Ralf Wildenhues.
63640 2009-05-03  Bruno Haible  <bruno@clisp.org>
63642         * modules/fnmatch (Description, configure.ac): Taken from
63643         fnmatch-posix.
63644         * modules/fnmatch-posix: Turn into a symbolic reference to the
63645         'fnmatch' module, and deprecate.
63646         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
63648 2009-05-03  Bruno Haible  <bruno@clisp.org>
63650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
63651         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
63652         Reported by Ralf Wildenhues.
63654 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63656         * m4/fnmatch.m4: Fix fnmatch re-define.
63658 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63660         priv-set: new module and tests; adapt write-any-file
63661         * lib/priv-set.c: New file.
63662         * lib/priv-set.h: New file.
63663         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
63664         * lib/write-any-file.c: Simplify by using priv-set module.
63665         * m4/priv-set.m4: New file.
63666         * modules/priv-set: New file.
63667         * modules/unlinkdir: Add dependency on priv-set module.
63668         * modules/write-any-file: Likewise.
63670         Tests for module 'priv-set'.
63671         * modules/priv-set-tests: New file.
63672         * tests/test-priv-set.c: New file.
63674 2009-05-03  Jim Meyering  <meyering@redhat.com>
63675             Bruno Haible  <bruno@clisp.org>
63677         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
63678         use the converted UTF-8 variant of the name instead.
63680 2009-05-03  Jim Meyering  <meyering@redhat.com>
63682         tests: tighten some getdate tests
63683         * tests/test-getdate.c (main): Tighten tests: require equality,
63684         not just greater than.  Set TZ envvar to UTC0.
63686 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
63688         getdate: correctly interpret "next monday" when run on a Monday
63689         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
63690         that e.g., "next tues" (when run on a tuesday) results in a date
63691         that is one week in the future, and not today's date.
63692         I.e., add a week when the wday is the same as the current one.
63693         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
63694         and earlier by Martin Bernreuther and Jan Minář.
63695         * tests/test-getdate.c (main): Check that "next DAY" is always in
63696         the future and that "last DAY" is always in the past.
63698 2009-05-02  Jim Meyering  <meyering@redhat.com>
63700         build: ensure that a release build fails when a submodule is unclean
63701         * top/maint.mk (no-submodule-changes): New rule.
63702         (alpha beta major): Depend on it.
63704 2009-05-02  Bruno Haible  <bruno@clisp.org>
63706         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
63707         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
63708         shell variable gl_fnmatch_required to detect which variant is
63709         requested.
63710         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
63711         gl_FUNC_FNMATCH_POSIX.
63712         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
63713         exclude fnmatch-posix.
63715 2009-05-02  Bruno Haible  <bruno@clisp.org>
63717         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
63718         * modules/mbsrtowcs (License): Change to LGPLv2+.
63719         * modules/strnlen1 (License): Likewise.
63720         Reported by Simon Josefsson.
63722 2009-05-02  Bruno Haible  <bruno@clisp.org>
63724         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
63725         "cross".
63726         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
63727         gnulib-tool was called with option --source-base=lib.
63729 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63731         Use automake *-local hooks without commands, for extensibility.
63732         * modules/localcharset (Makefile.am): Rename install-exec-local
63733         rule to install-exec-localcharset, and make it a prerequisite of
63734         install-exec-local.  Likewise, rename the uninstall-local rule to
63735         uninstall-localcharset, and make it a prerequisite of the former.
63737 2009-05-01  Bruno Haible  <bruno@clisp.org>
63739         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
63740         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63741         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
63742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
63743         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
63744         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63745         m4/locale-zh.m4, m4/codeset.m4.
63747         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63748         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
63749         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63750         m4/locale-zh.m4.
63752         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
63753         REPLACE_WCRTOMB if mbstate_t must be replaced.
63754         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
63755         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
63757 2009-05-01  Bruno Haible  <bruno@clisp.org>
63759         Avoid compiler warnings when redefining macros defined by <libintl.h>.
63760         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
63761         dngettext, dcngettext, textdomain, bindtextdomain,
63762         bind_textdomain_codeset): Undefine before redefining.
63764 2009-04-30  Bruno Haible  <bruno@clisp.org>
63766         Fix bug introduced on 2009-04-25.
63767         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
63768         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
63769         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
63770         is defined.
63771         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
63772         is defined.
63773         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
63774         is defined.
63775         Reported by Elbert_Pol <elbert.pol@gmail.com>.
63777 2009-04-28  Bruno Haible  <bruno@clisp.org>
63779         Comment tweaks.
63780         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
63781         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
63782         * lib/unicase.h (u*_casexfrm): Likewise.
63783         Reported by Paolo Bonzini.
63785 2009-04-28  Bruno Haible  <bruno@clisp.org>
63787         Fix a compilation error.
63788         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
63789         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
63790         Reported by Jim Meyering.
63792 2009-04-27  Bruno Haible  <bruno@clisp.org>
63794         New module 'libunistring'.
63795         * modules/libunistring: New file.
63796         * m4/libunistring.m4: New file.
63797         * MODULES.html.sh (Unicode string functions): Add it.
63799 2009-04-27  Eric Blake  <ebb9@byu.net>
63801         maint.mk: allow package-specific header to provide <config.h>
63802         * top/maint.mk (sc_require_config_h): New variable.
63803         (sc_require_config_h, sc_require_config_h_first): Use it.
63805 2009-04-27  Simon Josefsson  <simon@josefsson.org>
63807         * top/maint.mk (sc_avoid_if_before_free): Except
63808         useless-if-before-free script.
63810 2009-04-27  Eric Blake  <ebb9@byu.net>
63812         maintainer-makefile: depend on all required helper scripts
63813         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
63814         useless-if-before-free.
63815         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
63816         version, rather than assuming gnulib checkout is available.
63817         Reported by Simen Josefsson.
63819 2009-04-26  Bruno Haible  <bruno@clisp.org>
63821         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
63822         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
63823         "../" or "..".
63825 2009-04-26  Bruno Haible  <bruno@clisp.org>
63827         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
63828         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
63829         AC_LIB_HAVE_LINKFLAGS.
63831 2009-04-26  Bruno Haible  <bruno@clisp.org>
63833         Simplify calling convention of u*_conv_from_encoding.
63834         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
63835         u32_conv_from_encoding): Expect a resultbuf argument and return the
63836         result directly as a pointer.
63837         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
63838         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
63839         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
63840         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
63841         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
63842         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
63843         Update.
63844         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
63845         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
63846         * lib/vasnprintf.c (VASNPRINTF): Update.
63847         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
63848         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
63849         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
63850         * NEWS: Mention the change.
63852 2009-04-26  Bruno Haible  <bruno@clisp.org>
63854         Simplify calling convention of u*_conv_to_encoding.
63855         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63856         u32_conv_to_encoding): Expect a resultbuf argument and return the
63857         result directly as a pointer.
63858         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
63859         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
63860         freeing scaled_offsets if mem_iconveha failed.
63861         * lib/unicase/u-casexfrm.h (FUNC): Update.
63862         * lib/uninorm/u-normxfrm.h (FUNC): Update.
63863         * lib/vasnprintf.c (VASNPRINTF): Update.
63864         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
63865         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
63866         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
63867         * NEWS: Mention the change.
63869 2009-04-26  Bruno Haible  <bruno@clisp.org>
63871         Avoid test failures on AIX and OSF/1.
63872         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
63873         malloc(0).
63874         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
63875         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
63876         Likewise.
63877         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
63878         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
63879         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
63880         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
63881         * doc/posix-functions/malloc.texi: Document the portability problem
63882         related to malloc(0).
63884 2009-04-26  Bruno Haible  <bruno@clisp.org>
63886         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
63887         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
63888         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
63890 2009-04-25  Bruno Haible  <bruno@clisp.org>
63892         Avoid link error when creating a namespace clean library.
63893         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
63894         as macro with arguments if already defined as an alias.
63895         * lib/signbitf.c (gl_signbitf): Don't undefine.
63896         * lib/signbitd.c (gl_signbitd): Don't undefine.
63897         * lib/signbitl.c (gl_signbitl): Don't undefine.
63899 2009-04-25  Jim Meyering  <meyering@redhat.com>
63901         vc-list-files: fix another quoting bug
63902         * build-aux/vc-list-files: Avoid sed backslash expansion
63903         of pathological directory names.
63905 2009-04-25  Eric Blake  <ebb9@byu.net>
63907         vc-list-files: fix shell quoting error
63908         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
63909         timestamp.
63911 2009-04-25  Jim Meyering  <meyering@redhat.com>
63913         vc-list-files: restore lost functionality with subdir argument
63914         * build-aux/vc-list-files: When given a non-"." sub-directory
63915         argument, substitute the $dir/ prefix back onto each resulting name.
63916         Otherwise, coreutils' root_tests check would fail.
63918 2009-04-24  Eric Blake  <ebb9@byu.net>
63920         vc-list-files: ignore git symlinks
63921         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
63922         than ls-files, to ignore git symlinks.
63924         maint.mk: import improvements from m4
63925         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
63926         (move_if_change): Delete unused macro.
63927         (news-date-check, vc-diff-check): Support VPATH builds.
63928         (announcement): Likewise.  Split --bootstrap-tools list...
63929         (boostrap-tools): ...into separate list, which can be overridden
63930         in cfg.mk.
63931         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
63932         requiring dependency on useless-if-before-free module.
63933         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
63934         Support VPATH builds.
63936 2009-04-24  Jim Meyering  <meyering@redhat.com>
63938         maint.mk: remove coreutils-specific rules and variables
63939         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
63940         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
63941         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
63943         maint.mk: remove obsolete rule
63944         * top/maint.mk (rel-check): Remove rule.
63945         (WGET, WGETFLAGS): Remove now-unused variables.
63947 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63949         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
63950         consistency.
63952         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
63953         '$(PATH_SEPARATOR)' instead of ':'.
63955 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63957         * lib/getopt1.c (main): Use 'const' for static array.
63959 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63961         * top/maint.mk: Sync with coreutils.
63962         * NEWS: Explain incompatibilities.
63964 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63965             Bruno Haible  <bruno@clisp.org>
63967         Fix cross-compilation results.
63968         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
63969         statement, as third argument of AC_TRY_RUN.
63970         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
63971         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
63972         Likewise.
63973         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63974         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
63975         Likewise.
63976         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63977         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
63978         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
63980 2009-04-20  Bruno Haible  <bruno@clisp.org>
63982         Avoid test failure on mingw.
63983         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
63985 2009-04-20  Bruno Haible  <bruno@clisp.org>
63987         Avoid compilation error on mingw.
63988         * modules/localename-tests (Depends-on): Add locale.
63990 2009-04-19  Bruno Haible  <bruno@clisp.org>
63992         Support for building a shared library on Windows platforms.
63993         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
63994         (main): Test the presence of UNINORM_NFC here.
63995         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
63996         (main): Test the presence of UNINORM_NFD here.
63997         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
63998         (main): Test the presence of UNINORM_NFKC here.
63999         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
64000         (main): Test the presence of UNINORM_NFKD here.
64002 2009-04-19  Bruno Haible  <bruno@clisp.org>
64004         Avoid a compiler warning.
64005         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
64006         Change type of variable 'sequence'.
64008 2009-04-19  Bruno Haible  <bruno@clisp.org>
64010         * modules/configmake (Makefile.am): When the contents of configmake.h
64011         does not change, arrange to preserve its modification time.
64013 2009-04-17  Simon Josefsson  <simon@josefsson.org>
64015         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
64016         gettext domain.
64018 2009-04-16  Jim Meyering  <meyering@redhat.com>
64020         useless-if-before-free: improve conversion code
64021         * build-aux/useless-if-before-free: Adjust code-in-comment to match
64022         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
64024 2009-04-14  Bruno Haible  <bruno@clisp.org>
64026         * modules/fcntl (Depends-on): Add extensions.
64027         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
64029 2009-04-12  Ben Pfaff  <blp@gnu.org>
64031         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
64032         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
64034 2009-03-20  Ben Pfaff  <blp@gnu.org>
64036         Make rename replace existing destinations on Windows.
64037         * m4/rename.m4: Add test for Mingw.
64038         * lib/rename.c: Add rename replacement that uses MoveFileEx with
64039         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
64040         * doc/posix-functions/rename.texi: Document.
64042 2009-04-10  Bruno Haible  <bruno@clisp.org>
64044         New include file "iconveh.h".
64045         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
64046         * lib/striconveh.h: Include it.
64047         (enum iconv_ilseq_handler): Remove definition.
64048         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
64049         striconveh.h.
64050         * lib/striconveha.c: Include striconveh.h.
64051         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
64052         * modules/striconveh (Files): Add lib/iconveh.h.
64053         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
64054         lib/striconveh.h.
64056 2009-04-10  Bruno Haible  <bruno@clisp.org>
64058         * lib/uniconv.h: Update comment.
64060 2009-04-10  Bruno Haible  <bruno@clisp.org>
64062         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
64063         always.
64064         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64065         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64066         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64067         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
64068         "unistring-notinline.h", so that the function gets defined always.
64069         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64070         * lib/unistr/u8-uctomb.c: Likewise.
64071         * lib/unistr/u16-mbtouc.c: Likewise.
64072         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64073         * lib/unistr/u16-uctomb.c: Likewise.
64074         * lib/unistr/u32-mbtouc.c: Likewise.
64075         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64076         * lib/unistr/u32-uctomb.c: Likewise.
64078 2009-04-10  Bruno Haible  <bruno@clisp.org>
64080         Mark 'utime' obsolete.
64081         * modules/utime (Status, Notice): New sections.
64082         Suggested by Jim Meyering.
64084         Fix cross-compile guess for utime test.
64085         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
64086         autoconf.
64087         * doc/posix-functions/utime.texi: Give more precisions.
64088         Reported by Jan <ipif@ymail.com>.
64090 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
64092         filevercmp: correct today's change
64093         * lib/filevercmp.c: Also handle coreutils' test inputs.
64094         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
64096         Fix regression in 'filevercmp' module. Thanks Sven Joachim
64097         for reporting it.
64098         * lib/filevercmp.c: Special handle for "", "." and "..".
64099         * tests/test-filevercmp.c: Enlarge the set suite.
64101 2009-04-07  Jim Meyering  <meyering@redhat.com>
64103         useless-if-before-free: show how to remove braced useless free, too
64104         * build-aux/useless-if-before-free: still only in a comment, though.
64106 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
64108         maint.mk: import changes to syntax-check macros from coreutils
64109         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
64110         Use them in the relevant macros.
64112 2009-04-06  Bruno Haible  <bruno@clisp.org>
64114         Fix unportable use of bit-fields.
64115         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
64116         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
64117         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
64119 2009-04-06  Bruno Haible  <bruno@clisp.org>
64121         Avoid test failures on AIX and OSF/1.
64122         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
64123         that malloc(0) = NULL.
64124         * tests/unicase/test-u8-tolower.c (check): Likewise.
64125         * tests/unicase/test-u8-totitle.c (check): Likewise.
64126         * tests/unicase/test-u8-toupper.c (check): Likewise.
64127         * tests/unicase/test-u16-casefold.c (check): Likewise.
64128         * tests/unicase/test-u16-tolower.c (check): Likewise.
64129         * tests/unicase/test-u16-totitle.c (check): Likewise.
64130         * tests/unicase/test-u16-toupper.c (check): Likewise.
64131         * tests/unicase/test-u32-casefold.c (check): Likewise.
64132         * tests/unicase/test-u32-tolower.c (check): Likewise.
64133         * tests/unicase/test-u32-totitle.c (check): Likewise.
64134         * tests/unicase/test-u32-toupper.c (check): Likewise.
64135         * tests/uninorm/test-u8-nfc.c (check): Likewise.
64136         * tests/uninorm/test-u8-nfd.c (check): Likewise.
64137         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
64138         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
64139         * tests/uninorm/test-u16-nfc.c (check): Likewise.
64140         * tests/uninorm/test-u16-nfd.c (check): Likewise.
64141         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
64142         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
64143         * tests/uninorm/test-u32-nfc.c (check): Likewise.
64144         * tests/uninorm/test-u32-nfd.c (check): Likewise.
64145         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
64146         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
64148 2009-04-05  Bruno Haible  <bruno@clisp.org>
64150         Work around an autoconf limitation.
64151         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
64152         comment line if it would be longer than 3 KB.
64154 2009-04-05  Bruno Haible  <bruno@clisp.org>
64156         Avoid test failure with libiconv-1.13.
64157         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
64158         of the expected test results.
64160 2009-04-05  Bruno Haible  <bruno@clisp.org>
64162         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
64163         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
64164         that it should be installed.
64166 2009-04-05  Bruno Haible  <bruno@clisp.org>
64168         * gnulib-tool: New option --copy-file.
64169         (func_usage): Document it.
64170         (func_dest_tmpfilename): Moved out of func_import.
64171         (func_add_file, func_update_file): New functions, extracted from
64172         func_import.
64173         (func_import): Update.
64175 2009-04-05  Karl Berry  <karl@gnu.org>
64177         * README: prominently mention gnulib-tool.
64178         Rearrange sections so getting the code is near the top.
64180 2009-04-05  Bruno Haible  <bruno@clisp.org>
64182         * lib/unicase.h: Mention u*_cmp2.
64183         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64184         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
64185         * lib/unicase/ulc-casecmp.c: Likewise.
64186         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
64187         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
64188         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
64189         unistr/u8-cmp.
64190         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
64191         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
64192         unistr/u16-cmp.
64193         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
64194         unistr/u32-cmp.
64196         * lib/uninorm.h: Mention u*_cmp2.
64197         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64198         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
64199         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
64200         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
64201         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
64202         unistr/u8-cmp.
64203         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
64204         unistr/u16-cmp.
64205         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
64206         unistr/u32-cmp.
64208         New module 'unistr/u32-cmp2'.
64209         * lib/unistr/u32-cmp2.c: New file.
64210         * modules/unistr/u32-cmp2: New file.
64212         New module 'unistr/u16-cmp2'.
64213         * lib/unistr/u16-cmp2.c: New file.
64214         * modules/unistr/u16-cmp2: New file.
64216         New module 'unistr/u8-cmp2'.
64217         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
64218         * lib/unistr/u8-cmp2.c: New file.
64219         * lib/unistr/u-cmp2.h: New file.
64220         * modules/unistr/u8-cmp2: New file.
64222 2009-04-05  Bruno Haible  <bruno@clisp.org>
64224         * lib/unictype.h (uc_property_is_valid): New macro.
64225         * tests/unictype/test-pr_byname.c (main): Use it.
64227         * lib/unistr.h: Doc fixes.
64228         * lib/uniconv.h: Doc fixes.
64229         * lib/unictype.h: Doc fixes.
64231 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
64233         Port coreutils 7.2 to Solaris 8.
64235         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
64236         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
64237         for Solaris 8.  This is a bit of a hack, as it means it's the
64238         caller's responsibility to add -lnsl if needed, but most likely it
64239         won't be needed since only getaddrinfo uses this and getaddrinfo
64240         isn't needed on Solaris 8.
64242         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
64243         problem to Solaris 8 encountered with coreutils 7.2, which
64244         resulted in a message "fnmatch.c:292: warning: passing argument 4
64245         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
64246         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
64248 2009-04-03  Simon Josefsson  <simon@josefsson.org>
64250         * m4/ld-version-script.m4: Add FIXME comment.
64252 2009-04-02  Simon Josefsson  <simon@josefsson.org>
64254         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
64255         SOVERSION variable.
64257 2009-04-02  Bruno Haible  <bruno@clisp.org>
64259         * Makefile (info, html, dvi, pdf): Combine the rules.
64260         Suggested by Jim Meyering.
64262 2009-04-01  Bruno Haible  <bruno@clisp.org>
64264         * Makefile (info, html, dvi, pdf): New targets.
64265         Reported by Reuben Thomas <rrt@sc3d.org>.
64267 2009-04-01  Bruno Haible  <bruno@clisp.org>
64269         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
64270         can be put into PATH.
64271         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
64273 2009-04-01  Bruno Haible  <bruno@clisp.org>
64275         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
64277 2009-04-01  Bruno Haible  <bruno@clisp.org>
64279         Rename module 'visibility'.
64280         * modules/lib-symbol-visibility: Renamed from modules/visibility.
64281         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
64282         * doc/gnulib.texi: Update.
64283         * MODULES.html.sh (Misc): Update.
64284         * NEWS: Mention the change.
64286 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64288         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
64289         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
64290         Eric Blake <ebb9@byu.net> for review.
64291         * MODULES.html.sh: Add lib-msvc-compat.
64292         * doc/gnulib.texi: Link to new section.
64293         * m4/ld-output-def.m4: New file.
64294         * doc/ld-output-def.texi: New file.
64296 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64298         Rename ld-version-script to lib-symbol-versions.  Suggested by
64299         Bruno Haible <bruno@clisp.org>.
64300         * modules/ld-version-script: Renamed to lib-symbol-versions.
64301         * doc/ld-version-script.texi: Fix module name.
64302         * MODULES.html.sh: Add lib-symbol-versions.
64304 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64306         * modules/u64-tests: New file.
64307         * tests/test-u64.c: New file.
64309 2009-03-04  Simon Josefsson  <simon@josefsson.org>
64311         * MODULES.html.sh: Mention u64.
64312         * modules/u64: New module.
64313         * modules/crypto/sha512: Depend on u64 module instead of providing
64314         u64.h.
64316 2009-03-27  Eric Blake  <ebb9@byu.net>
64318         test-strerror: make debugging EAI_SYSTEM easier
64319         * modules/getaddrinfo-tests (Depends-on): Add strerror.
64320         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
64321         failure was EAI_SYSTEM.
64323 2009-03-25  Bruno Haible  <bruno@clisp.org>
64325         Fix a problem with --enable-relocatable on Solaris 7.
64326         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
64327         since 2008-02-24.
64329 2009-03-25  Eric Blake  <ebb9@byu.net>
64331         test-sockets: avoid gcc warning
64332         * tests/test-sockets.c (main): Silence compiler warning.
64334 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64336         New modules nproc, pthread, contributed by Glen Lenker.
64338         * MODULES.html.sh: Add pthread, nproc.
64339         * lib/nproc.c: New file.
64340         * lib/nproc.h: New file.
64341         * lib/pthread.in.h: New file.
64342         * m4/pthread.m4: New file.
64343         * modules/nproc: New file.
64344         * modules/pthread: New file.
64346 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64348         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
64349         New variable.
64351 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
64353         filevercmp: handle simple~ and numbered.~3~ backup suffixes
64354         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
64355         * tests/test-filevercmp.c: Add tests for backup suffixes.
64357 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64359         * modules/stdlib (Depends-on): Add stdint, needed when defining
64360         struct random_data on, for example, HP-UX 10.20.  Reported by
64361         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64363 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64365         * lib/readline.c (readline): Call fflush on stdout after printing
64366         prompt.
64368 2009-03-20  Bruno Haible  <bruno@clisp.org>
64370         Remove dependency from 'close' module to -lws2_32 on native Windows.
64371         * lib/close-hook.h: New file.
64372         * lib/close-hook.c: New file.
64373         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
64374         w32sock.h.
64375         (_gl_close_fd_maybe_socket): Remove function.
64376         (rpl_close): Invoke execute_all_close_hooks instead of
64377         _gl_close_fd_maybe_socket.
64378         * lib/sockets.c: Include close-hook.h, w32sock.h.
64379         (close_fd_maybe_socket): New function, essentially from lib/close.c.
64380         (close_sockets_hook): New variable.
64381         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
64382         (gl_sockets_cleanup): Unregister it.
64383         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
64384         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
64385         * modules/close-hook: New file.
64386         * modules/close (Files): Remove lib/w32sock.h.
64387         (Depends-on): Add close-hook.
64388         (Link): Remove section.
64389         * modules/sockets (Files): Add lib/w32sock.h.
64390         (Depends-on): Add close-hook.
64391         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
64392         invocation.
64393         * NEWS: Mention that LIB_CLOSE is gone.
64395 2009-03-23  Eric Blake  <ebb9@byu.net>
64397         signal-tests: test previous patch
64398         * tests/test-signal.c: New file.
64399         * modules/signal-tests: Likewise.
64401         signal.h: always support 'volatile sig_atomic_t'
64402         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
64403         (gl_SIGNAL_H_DEFAULTS): Add a default.
64404         * modules/signal (Makefile.am): Substitute if needed.
64405         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
64406         users can blindly add volatile.
64407         * doc/posix-headers/signal.texi (signal.h): Document it.
64408         Reported by Matthew Woehlke.
64410 2009-03-23  Jim Meyering  <meyering@redhat.com>
64412         pathmax: PATH_MAX: use pathconf only when available
64413         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
64414         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
64415         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
64416         This avoids a link failure in a PSP cross-compilation environment
64417         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
64419         * lib/vasnprintf.c (divide): Fix typo in comment.
64421 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64423         * gnulib-tool (func_filter_filelist): Fix comment.
64425 2009-03-20  Bruno Haible  <bruno@clisp.org>
64427         Make sockets.h self-contained.
64428         * lib/sockets.c: Include sockets.h first.
64429         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
64431 2009-03-19  Eric Blake  <ebb9@byu.net>
64433         doc: mention more functions added in cygwin 1.7.0
64434         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
64435         addition.
64436         * doc/posix-functions/log2f.texi: Likewise.
64438 2009-03-19  Jim Meyering  <meyering@redhat.com>
64440         fsusage: avoid syntax error due to statement-before-declaration
64441         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
64442         after all declarations.  Reported by Matthew Woehlke in
64443         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
64445 2009-03-18  Eric Blake  <ebb9@byu.net>
64447         build-aux/compile: sync from automake
64448         * build-aux/compile: New file, from automake.
64449         * config/srclist.txt: Mention build-aux/compile.
64451 2009-03-17  Bruno Haible  <bruno@clisp.org>
64453         * lib/git-merge-changelog.c: Fix typo in comment.
64454         Reported by Reuben Thomas <rrt@sc3d.org>.
64456 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
64458         * m4/regex.m4: update and improve help for
64459         --without-included-regex.
64461 2009-03-17  Simon Josefsson  <simon@josefsson.org>
64463         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
64464         failure on missing include files.
64466 2009-03-17  Eric Blake  <ebb9@byu.net>
64468         doc: mention more functions added in cygwin 1.7.0
64469         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
64470         addition.
64471         * doc/posix-functions/fwscanf.texi: Likewise.
64472         * doc/posix-functions/swprintf.texi: Likewise.
64473         * doc/posix-functions/swscanf.texi: Likewise.
64474         * doc/posix-functions/vfwprintf.texi: Likewise.
64475         * doc/posix-functions/vfwscanf.texi: Likewise.
64476         * doc/posix-functions/vswprintf.texi: Likewise.
64477         * doc/posix-functions/vswscanf.texi: Likewise.
64478         * doc/posix-functions/vwprintf.texi: Likewise.
64479         * doc/posix-functions/vwscanf.texi: Likewise.
64480         * doc/posix-functions/wcscasecmp.texi: Likewise.
64481         * doc/posix-functions/wcsdup.texi: Likewise.
64482         * doc/posix-functions/wcsftime.texi: Likewise.
64483         * doc/posix-functions/wcsncasecmp.texi: Likewise.
64484         * doc/posix-functions/wprintf.texi: Likewise.
64485         * doc/posix-functions/wscanf.texi: Likewise.
64486         * doc/glibc-functions/gethostbyname2.texi: Likewise.
64488 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64490         maint.mk: really add $(AM_MAKEFLAGS)
64491         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
64492         was inadvertently omitted in the last commit.
64493         Spotted by Bruno Haible.
64495         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
64496         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
64497         $(AM_MAKEFLAGS)' rather than plain `make'.
64499         gnulib-tool: execute $MAKE not make
64500         * gnulib-tool: Default $MAKE to 'make'.
64501         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
64502         than make.  Initialize $MAKE in the do-autobuild script.
64504         gnulib-tool: use $MAKE not make in generated files
64505         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
64506         make, in generated files.  Initialize $MAKE in the do-autobuild
64507         script.
64509         * top/GNUmakefile (_have-git-version-gen): Fix typo.
64511         GNUmakefile: disable parallelism only for multiple, recursive targets
64512         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
64513         additions in the Makefile.
64514         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
64515         by Automake.
64516         (.NOTPARALLEL): Only disable parallel builds if multiple targets
64517         are listed on the command line and at least one of them is
64518         listed in $(ALL_RECURSIVE_TARGETS).
64520 2009-03-14  Bruno Haible  <bruno@clisp.org>
64522         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
64523         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
64524         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
64525         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
64526         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
64527         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
64528         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
64529         unistr/u8-uctomb.
64530         * modules/unistr/u8-strchr (Depends-on): Likewise.
64531         * modules/unistr/u8-strrchr (Depends-on): Likewise.
64532         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
64533         unistr/u16-uctomb.
64534         * modules/unistr/u16-strchr (Depends-on): Likewise.
64535         * modules/unistr/u16-strrchr (Depends-on): Likewise.
64537 2009-03-12  Bruno Haible  <bruno@clisp.org>
64539         Work around select() bug on Interix 3.5.
64540         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
64541         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
64542         * m4/select.m4: New file.
64543         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
64544         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
64545         * modules/select (Files): Add m4/select.m4.
64546         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
64547         * modules/nanosleep (Depends-on): Add select.
64548         * modules/poll (Depends-on): Likewise.
64549         * doc/posix-functions/select.texi: Mention the Interix bug.
64550         Reported by Markus Duft <mduft@gentoo.org>.
64552         * lib/select.c: Renamed from lib/winsock-select.c.
64553         * modules/select (Files): Add lib/select.c, remove
64554         lib/winsock-select.c.
64555         (configure.ac): Update.
64557 2009-03-12  Jim Meyering  <meyering@redhat.com>
64559         avoid gcc warnings about unused macro definitions
64560         * lib/readtokens.c (STREQ): Remove unused definition.
64561         * lib/xmalloc.c (SIZE_MAX): Likewise.
64562         * lib/openat-die.c (N_): Likewise.
64563         * lib/mountlist.c (SIZE_MAX): Remove definition.
64564         Instead, include <stdint.h>.
64565         * lib/readutmp.c: Likewise.
64566         * modules/readutmp (Depends-on): Add stdint.
64567         * modules/mountlist (Depends-on): Add stdint.
64568         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
64570 2009-03-10  Bruno Haible  <bruno@clisp.org>
64572         Tests for module 'mbmemcasecoll'.
64573         * modules/mbmemcasecoll-tests: New file.
64574         * tests/test-mbmemcasecoll1.sh: New file.
64575         * tests/test-mbmemcasecoll2.sh: New file.
64576         * tests/test-mbmemcasecoll3.sh: New file.
64577         * tests/test-mbmemcasecoll.c: New file.
64579         New module 'mbmemcasecoll'.
64580         * lib/mbmemcasecoll.h: New file.
64581         * lib/mbmemcasecoll.c: New file.
64582         * modules/mbmemcasecoll: New file.
64584         * tests/test-mbmemcasecmp.h: New file, extracted from
64585         tests/test-mbmemcasecmp.c.
64586         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
64587         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
64588         (main): Update.
64589         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
64591 2009-03-09  Bruno Haible  <bruno@clisp.org>
64593         Tests for module 'mbmemcasecmp'.
64594         * modules/mbmemcasecmp-tests: New file.
64595         * tests/test-mbmemcasecmp1.sh: New file.
64596         * tests/test-mbmemcasecmp2.sh: New file.
64597         * tests/test-mbmemcasecmp3.sh: New file.
64598         * tests/test-mbmemcasecmp.c: New file.
64600         New module 'mbmemcasecmp'.
64601         * lib/mbmemcasecmp.h: New file.
64602         * lib/mbmemcasecmp.c: New file.
64603         * modules/mbmemcasecmp: New file.
64605 2009-03-09  Bruno Haible  <bruno@clisp.org>
64607         Tests for module 'unicase/ulc-casecoll'.
64608         * modules/unicase/ulc-casecoll-tests: New file.
64609         * tests/unicase/test-ulc-casecoll1.sh: New file.
64610         * tests/unicase/test-ulc-casecoll2.sh: New file.
64611         * tests/unicase/test-ulc-casecoll.c: New file.
64613         New module 'unicase/ulc-casecoll'.
64614         * lib/unicase.h (ulc_casecoll): New declaration.
64615         * lib/unicase/ulc-casecoll.c: New file.
64616         * modules/unicase/ulc-casecoll: New file.
64618         New module 'unicase/ulc-casexfrm'.
64619         * lib/unicase.h (ulc_casexfrm): New declaration.
64620         * lib/unicase/ulc-casexfrm.c: New file.
64621         * modules/unicase/ulc-casexfrm: New file.
64623 2009-03-09  Bruno Haible  <bruno@clisp.org>
64625         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
64626         invocations.
64628         * m4/mbscasecmp.m4: Remove file.
64629         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
64630         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
64632         * m4/mbscasestr.m4: Remove file.
64633         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
64634         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
64636         * m4/mbschr.m4: Remove file.
64637         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
64638         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
64640         * m4/mbscspn.m4: Remove file.
64641         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
64642         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
64644         * m4/mbslen.m4: Remove file.
64645         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
64646         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
64648         * m4/mbsncasecmp.m4: Remove file.
64649         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
64650         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
64652         * m4/mbsnlen.m4: Remove file.
64653         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
64654         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
64656         * m4/mbspbrk.m4: Remove file.
64657         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
64658         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
64660         * m4/mbspcasecmp.m4: Remove file.
64661         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
64662         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
64664         * m4/mbsrchr.m4: Remove file.
64665         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
64666         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
64668         * m4/mbssep.m4: Remove file.
64669         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
64670         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
64672         * m4/mbsspn.m4: Remove file.
64673         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
64674         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
64676         * m4/mbsstr.m4: Remove file.
64677         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
64678         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
64680         * m4/mbstok_r.m4: Remove file.
64681         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
64682         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
64684         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
64686         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
64687         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
64689         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
64691 2009-03-08  Bruno Haible  <bruno@clisp.org>
64693         Tests for module 'unicase/ulc-casecmp'.
64694         * modules/unicase/ulc-casecmp-tests: New file.
64695         * tests/unicase/test-ulc-casecmp1.sh: New file.
64696         * tests/unicase/test-ulc-casecmp2.sh: New file.
64697         * tests/unicase/test-ulc-casecmp.c: New file.
64699         New module 'unicase/ulc-casecmp'.
64700         * lib/unicase.h (ulc_casecmp): New declaration.
64701         * lib/unicase/ulc-casecmp.c: New file.
64702         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
64703         'const SRC_UNIT *'.
64704         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
64705         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
64706         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
64707         * modules/unicase/ulc-casecmp: New file.
64709         Tests for module 'unicase/u32-is-cased'.
64710         * modules/unicase/u32-is-cased-tests: New file.
64711         * tests/unicase/test-u32-is-cased.c: New file.
64713         Tests for module 'unicase/u16-is-cased'.
64714         * modules/unicase/u16-is-cased-tests: New file.
64715         * tests/unicase/test-u16-is-cased.c: New file.
64717         Tests for module 'unicase/u8-is-cased'.
64718         * modules/unicase/u8-is-cased-tests: New file.
64719         * tests/unicase/test-u8-is-cased.c: New file.
64720         * tests/unicase/test-is-cased.h: New file.
64722         New module 'unicase/u32-is-cased'.
64723         * lib/unicase/u32-is-cased.c: New file.
64724         * modules/unicase/u32-is-cased: New file.
64726         New module 'unicase/u16-is-cased'.
64727         * lib/unicase/u16-is-cased.c: New file.
64728         * modules/unicase/u16-is-cased: New file.
64730         New module 'unicase/u8-is-cased'.
64731         * lib/unicase/u8-is-cased.c: New file.
64732         * lib/unicase/u-is-cased.h: New file.
64733         * modules/unicase/u8-is-cased: New file.
64735         Tests for module 'unicase/u32-is-casefolded'.
64736         * modules/unicase/u32-is-casefolded-tests: New file.
64737         * tests/unicase/test-u32-is-casefolded.c: New file.
64739         Tests for module 'unicase/u16-is-casefolded'.
64740         * modules/unicase/u16-is-casefolded-tests: New file.
64741         * tests/unicase/test-u16-is-casefolded.c: New file.
64743         Tests for module 'unicase/u8-is-casefolded'.
64744         * modules/unicase/u8-is-casefolded-tests: New file.
64745         * tests/unicase/test-u8-is-casefolded.c: New file.
64746         * tests/unicase/test-is-casefolded.h: New file.
64748         New module 'unicase/u32-is-casefolded'.
64749         * lib/unicase/u32-is-casefolded.c: New file.
64750         * modules/unicase/u32-is-casefolded: New file.
64752         New module 'unicase/u16-is-casefolded'.
64753         * lib/unicase/u16-is-casefolded.c: New file.
64754         * modules/unicase/u16-is-casefolded: New file.
64756         New module 'unicase/u8-is-casefolded'.
64757         * lib/unicase/u8-is-casefolded.c: New file.
64758         * modules/unicase/u8-is-casefolded: New file.
64760         Tests for module 'unicase/u32-is-titlecase'.
64761         * modules/unicase/u32-is-titlecase-tests: New file.
64762         * tests/unicase/test-u32-is-titlecase.c: New file.
64764         Tests for module 'unicase/u16-is-titlecase'.
64765         * modules/unicase/u16-is-titlecase-tests: New file.
64766         * tests/unicase/test-u16-is-titlecase.c: New file.
64768         Tests for module 'unicase/u8-is-titlecase'.
64769         * modules/unicase/u8-is-titlecase-tests: New file.
64770         * tests/unicase/test-u8-is-titlecase.c: New file.
64771         * tests/unicase/test-is-titlecase.h: New file.
64773         New module 'unicase/u32-is-titlecase'.
64774         * lib/unicase/u32-is-titlecase.c: New file.
64775         * modules/unicase/u32-is-titlecase: New file.
64777         New module 'unicase/u16-is-titlecase'.
64778         * lib/unicase/u16-is-titlecase.c: New file.
64779         * modules/unicase/u16-is-titlecase: New file.
64781         New module 'unicase/u8-is-titlecase'.
64782         * lib/unicase/u8-is-titlecase.c: New file.
64783         * modules/unicase/u8-is-titlecase: New file.
64785         Tests for module 'unicase/u32-is-lowercase'.
64786         * modules/unicase/u32-is-lowercase-tests: New file.
64787         * tests/unicase/test-u32-is-lowercase.c: New file.
64789         Tests for module 'unicase/u16-is-lowercase'.
64790         * modules/unicase/u16-is-lowercase-tests: New file.
64791         * tests/unicase/test-u16-is-lowercase.c: New file.
64793         Tests for module 'unicase/u8-is-lowercase'.
64794         * modules/unicase/u8-is-lowercase-tests: New file.
64795         * tests/unicase/test-u8-is-lowercase.c: New file.
64796         * tests/unicase/test-is-lowercase.h: New file.
64798         New module 'unicase/u32-is-lowercase'.
64799         * lib/unicase/u32-is-lowercase.c: New file.
64800         * modules/unicase/u32-is-lowercase: New file.
64802         New module 'unicase/u16-is-lowercase'.
64803         * lib/unicase/u16-is-lowercase.c: New file.
64804         * modules/unicase/u16-is-lowercase: New file.
64806         New module 'unicase/u8-is-lowercase'.
64807         * lib/unicase/u8-is-lowercase.c: New file.
64808         * modules/unicase/u8-is-lowercase: New file.
64810         Tests for module 'unicase/u32-is-uppercase'.
64811         * modules/unicase/u32-is-uppercase-tests: New file.
64812         * tests/unicase/test-u32-is-uppercase.c: New file.
64814         Tests for module 'unicase/u16-is-uppercase'.
64815         * modules/unicase/u16-is-uppercase-tests: New file.
64816         * tests/unicase/test-u16-is-uppercase.c: New file.
64818         Tests for module 'unicase/u8-is-uppercase'.
64819         * modules/unicase/u8-is-uppercase-tests: New file.
64820         * tests/unicase/test-u8-is-uppercase.c: New file.
64821         * tests/unicase/test-is-uppercase.h: New file.
64823         New module 'unicase/u32-is-uppercase'.
64824         * lib/unicase/u32-is-uppercase.c: New file.
64825         * modules/unicase/u32-is-uppercase: New file.
64827         New module 'unicase/u16-is-uppercase'.
64828         * lib/unicase/u16-is-uppercase.c: New file.
64829         * modules/unicase/u16-is-uppercase: New file.
64831         New module 'unicase/u8-is-uppercase'.
64832         * lib/unicase/u8-is-uppercase.c: New file.
64833         * modules/unicase/u8-is-uppercase: New file.
64835         New module 'unicase/u32-is-invariant'.
64836         * lib/unicase/u32-is-invariant.c: New file.
64837         * modules/unicase/u32-is-invariant: New file.
64839         New module 'unicase/u16-is-invariant'.
64840         * lib/unicase/u16-is-invariant.c: New file.
64841         * modules/unicase/u16-is-invariant: New file.
64843         New module 'unicase/u8-is-invariant'.
64844         * lib/unicase/u8-is-invariant.c: New file.
64845         * lib/unicase/invariant.h: New file.
64846         * lib/unicase/u-is-invariant.h: New file.
64847         * modules/unicase/u8-is-invariant: New file.
64849         Tests for module 'unicase/u32-casecoll'.
64850         * modules/unicase/u32-casecoll-tests: New file.
64851         * tests/unicase/test-u32-casecoll.c: New file.
64853         Tests for module 'unicase/u16-casecoll'.
64854         * modules/unicase/u16-casecoll-tests: New file.
64855         * tests/unicase/test-u16-casecoll.c: New file.
64857         Tests for module 'unicase/u8-casecoll'.
64858         * modules/unicase/u8-casecoll-tests: New file.
64859         * tests/unicase/test-u8-casecoll.c: New file.
64861         New module 'unicase/u32-casecoll'.
64862         * lib/unicase/u32-casecoll.c: New file.
64863         * modules/unicase/u32-casecoll: New file.
64865         New module 'unicase/u16-casecoll'.
64866         * lib/unicase/u16-casecoll.c: New file.
64867         * modules/unicase/u16-casecoll: New file.
64869         New module 'unicase/u8-casecoll'.
64870         * lib/unicase/u8-casecoll.c: New file.
64871         * lib/unicase/u-casecoll.h: New file.
64872         * modules/unicase/u8-casecoll: New file.
64874         New module 'unicase/u32-casexfrm'.
64875         * lib/unicase/u32-casexfrm.c: New file.
64876         * modules/unicase/u32-casexfrm: New file.
64878         New module 'unicase/u16-casexfrm'.
64879         * lib/unicase/u16-casexfrm.c: New file.
64880         * modules/unicase/u16-casexfrm: New file.
64882         New module 'unicase/u8-casexfrm'.
64883         * lib/unicase/u8-casexfrm.c: New file.
64884         * lib/unicase/u-casexfrm.h: New file.
64885         * modules/unicase/u8-casexfrm: New file.
64887         Tests for module 'unicase/u32-casecmp'.
64888         * modules/unicase/u32-casecmp-tests: New file.
64889         * tests/unicase/test-u32-casecmp.c: New file.
64891         Tests for module 'unicase/u16-casecmp'.
64892         * modules/unicase/u16-casecmp-tests: New file.
64893         * tests/unicase/test-u16-casecmp.c: New file.
64895         Tests for module 'unicase/u8-casecmp'.
64896         * modules/unicase/u8-casecmp-tests: New file.
64897         * tests/unicase/test-u8-casecmp.c: New file.
64898         * tests/unicase/test-casecmp.h: New file.
64900         New module 'unicase/u32-casecmp'.
64901         * lib/unicase/u32-casecmp.c: New file.
64902         * modules/unicase/u32-casecmp: New file.
64904         New module 'unicase/u16-casecmp'.
64905         * lib/unicase/u16-casecmp.c: New file.
64906         * modules/unicase/u16-casecmp: New file.
64908         New module 'unicase/u8-casecmp'.
64909         * lib/unicase/u8-casecmp.c: New file.
64910         * lib/unicase/u-casecmp.h: New file.
64911         * modules/unicase/u8-casecmp: New file.
64913         Tests for module 'unicase/u32-casefold'.
64914         * modules/unicase/u32-casefold-tests: New file.
64915         * tests/unicase/test-u32-casefold.c: New file.
64917         Tests for module 'unicase/u16-casefold'.
64918         * modules/unicase/u16-casefold-tests: New file.
64919         * tests/unicase/test-u16-casefold.c: New file.
64921         Tests for module 'unicase/u8-casefold'.
64922         * modules/unicase/u8-casefold-tests: New file.
64923         * tests/unicase/test-u8-casefold.c: New file.
64925         New module 'unicase/u32-casefold'.
64926         * lib/unicase/u32-casefold.c: New file.
64927         * modules/unicase/u32-casefold: New file.
64929         New module 'unicase/u16-casefold'.
64930         * lib/unicase/u16-casefold.c: New file.
64931         * modules/unicase/u16-casefold: New file.
64933         New module 'unicase/u8-casefold'.
64934         * lib/unicase/u8-casefold.c: New file.
64935         * lib/unicase/u-casefold.h: New file.
64936         * modules/unicase/u8-casefold: New file.
64938         New module 'unicase/tocasefold'.
64939         * lib/unicase/casefold.h: New file.
64940         * lib/unicase/tocasefold.c: New file.
64941         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
64942         * modules/unicase/tocasefold: New file.
64944         Tests for module 'unicase/u32-totitle'.
64945         * modules/unicase/u32-totitle-tests: New file.
64946         * tests/unicase/test-u32-totitle.c: New file.
64948         Tests for module 'unicase/u16-totitle'.
64949         * modules/unicase/u16-totitle-tests: New file.
64950         * tests/unicase/test-u16-totitle.c: New file.
64952         Tests for module 'unicase/u8-totitle'.
64953         * modules/unicase/u8-totitle-tests: New file.
64954         * tests/unicase/test-u8-totitle.c: New file.
64956         New module 'unicase/u32-totitle'.
64957         * lib/unicase/u32-totitle.c: New file.
64958         * modules/unicase/u32-totitle: New file.
64960         New module 'unicase/u16-totitle'.
64961         * lib/unicase/u16-totitle.c: New file.
64962         * modules/unicase/u16-totitle: New file.
64964         New module 'unicase/u8-totitle'.
64965         * lib/unicase/u8-totitle.c: New file.
64966         * lib/unicase/u-totitle.h: New file.
64967         * modules/unicase/u8-totitle: New file.
64969         Tests for module 'unicase/u32-tolower'.
64970         * modules/unicase/u32-tolower-tests: New file.
64971         * tests/unicase/test-u32-tolower.c: New file.
64973         Tests for module 'unicase/u16-tolower'.
64974         * modules/unicase/u16-tolower-tests: New file.
64975         * tests/unicase/test-u16-tolower.c: New file.
64977         Tests for module 'unicase/u8-tolower'.
64978         * modules/unicase/u8-tolower-tests: New file.
64979         * tests/unicase/test-u8-tolower.c: New file.
64981         New module 'unicase/u32-tolower'.
64982         * lib/unicase/u32-tolower.c: New file.
64983         * modules/unicase/u32-tolower: New file.
64985         New module 'unicase/u16-tolower'.
64986         * lib/unicase/u16-tolower.c: New file.
64987         * modules/unicase/u16-tolower: New file.
64989         New module 'unicase/u8-tolower'.
64990         * lib/unicase/u8-tolower.c: New file.
64991         * modules/unicase/u8-tolower: New file.
64993         Tests for module 'unicase/u32-toupper'.
64994         * modules/unicase/u32-toupper-tests: New file.
64995         * tests/unicase/test-u32-toupper.c: New file.
64997         Tests for module 'unicase/u16-toupper'.
64998         * modules/unicase/u16-toupper-tests: New file.
64999         * tests/unicase/test-u16-toupper.c: New file.
65001         Tests for module 'unicase/u8-toupper'.
65002         * modules/unicase/u8-toupper-tests: New file.
65003         * tests/unicase/test-u8-toupper.c: New file.
65005         New module 'unicase/u32-toupper'.
65006         * lib/unicase/u32-toupper.c: New file.
65007         * modules/unicase/u32-toupper: New file.
65009         New module 'unicase/u16-toupper'.
65010         * lib/unicase/u16-toupper.c: New file.
65011         * modules/unicase/u16-toupper: New file.
65013         New module 'unicase/u8-toupper'.
65014         * lib/unicase/u8-toupper.c: New file.
65015         * modules/unicase/u8-toupper: New file.
65017         New module 'unicase/u32-casemap'.
65018         * lib/unicase/u32-casemap.c: New file.
65019         * modules/unicase/u32-casemap: New file.
65021         New module 'unicase/u16-casemap'.
65022         * lib/unicase/u16-casemap.c: New file.
65023         * modules/unicase/u16-casemap: New file.
65025         New module 'unicase/u8-casemap'.
65026         * lib/unicase/unicasemap.h: New file.
65027         * lib/unicase/u8-casemap.c: New file.
65028         * lib/unicase/u-casemap.h: New file.
65029         * modules/unicase/u8-casemap: New file.
65031         New module 'unicase/special-casing'.
65032         * lib/unicase/special-casing.h: New file.
65033         * lib/unicase/special-casing.c: New file.
65034         * lib/unicase/special-casing-table.gperf: New file, generated by
65035         gen-uni-tables.c.
65036         * modules/unicase/special-casing: New file.
65038         Tests for module 'unicase/locale-language'.
65039         * modules/unicase/locale-language-tests: New file.
65040         * tests/unicase/test-locale-language.sh: New file.
65041         * tests/unicase/test-locale-language.c: New file.
65043         New module 'unicase/locale-language'.
65044         * lib/unicase/locale-language.c: New file.
65045         * lib/unicase/locale-languages.gperf: New file.
65046         * modules/unicase/locale-language: New file.
65048         Generate more tables for case conversion and case folding.
65049         * lib/gen-uni-tables.c (SCC_*): New enum items.
65050         (struct special_casing_rule): New type.
65051         (casing_rules, num_casing_rules, allocated_casing_rules): New
65052         variables.
65053         (add_casing_rule, fill_casing_rules): New functions.
65054         (struct casefold_rule): New type.
65055         (casefolding_rules, num_casefolding_rules,
65056         allocated_casefolding_rules): New variables.
65057         (fill_casefolding_rules): New function.
65058         (unicode_casefold): New variable.
65059         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
65060         sort_casing_rules, output_casing_rules): New functions.
65061         (main): Accept to more arguments: SpecialCasing.txt and
65062         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
65063         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
65064         Output mapping for casefolding.
65066         * lib/unicase.h: Include stdbool.h, uninorm.h.
65067         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
65068         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
65069         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
65070         arguments.
65071         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
65072         resultp arguments.
65073         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
65074         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
65075         resultp arguments.
65076         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
65077         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
65078         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
65079         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
65080         declarations.
65081         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
65083 2009-03-08  Bruno Haible  <bruno@clisp.org>
65085         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65086         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
65087         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
65088         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65090 2009-03-07  Bruno Haible  <bruno@clisp.org>
65092         Adjust u*_normcmp, u*_normcoll API.
65093         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65094         u16_normcoll, u32_normcoll): Change failure conventions.
65095         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
65096         errno and return -1.
65097         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65099 2009-03-07  Bruno Haible  <bruno@clisp.org>
65101         Tests for module 'uninorm/u32-normcoll'.
65102         * modules/uninorm/u32-normcoll-tests: New file.
65103         * tests/uninorm/test-u32-normcoll.c: New file.
65105         Tests for module 'uninorm/u16-normcoll'.
65106         * modules/uninorm/u16-normcoll-tests: New file.
65107         * tests/uninorm/test-u16-normcoll.c: New file.
65109         Tests for module 'uninorm/u8-normcoll'.
65110         * modules/uninorm/u8-normcoll-tests: New file.
65111         * tests/uninorm/test-u8-normcoll.c: New file.
65113 2009-03-07  Bruno Haible  <bruno@clisp.org>
65115         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
65116         tests/uninorm/test-u32-normcmp.c.
65117         * tests/uninorm/test-u32-normcmp.c: Include it.
65118         (test_nonascii): New function, extracted from main. Add some more
65119         tests.
65120         (main): Invoke test_ascii and test_nonascii.
65121         * modules/uninorm/u32-normcmp-tests (Files): Add
65122         tests/uninorm/test-u32-normcmp.h.
65123         (Depends-on): Remove uninorm/u32-normcmp.
65125         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
65126         tests/uninorm/test-u16-normcmp.c.
65127         * tests/uninorm/test-u16-normcmp.c: Include it.
65128         (test_nonascii): New function, extracted from main. Add some more
65129         tests.
65130         (main): Invoke test_ascii and test_nonascii.
65131         * modules/uninorm/u16-normcmp-tests (Files): Add
65132         tests/uninorm/test-u16-normcmp.h.
65133         (Depends-on): Remove uninorm/u16-normcmp.
65135         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
65136         tests/uninorm/test-u8-normcmp.c.
65137         * tests/uninorm/test-u8-normcmp.c: Include it.
65138         (test_nonascii): New function, extracted from main. Add some more
65139         tests.
65140         (main): Invoke test_ascii and test_nonascii.
65141         * modules/uninorm/u8-normcmp-tests (Files): Add
65142         tests/uninorm/test-u8-normcmp.h.
65143         (Depends-on): Remove uninorm/u8-normcmp.
65145 2009-03-07  Bruno Haible  <bruno@clisp.org>
65147         New module 'uninorm/u32-normcoll'.
65148         * lib/uninorm/u32-normcoll.c: New file.
65149         * modules/uninorm/u32-normcoll: New file.
65151         New module 'uninorm/u16-normcoll'.
65152         * lib/uninorm/u16-normcoll.c: New file.
65153         * modules/uninorm/u16-normcoll: New file.
65155         New module 'uninorm/u8-normcoll'.
65156         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
65157         declarations.
65158         * lib/uninorm/u8-normcoll.c: New file.
65159         * lib/uninorm/u-normcoll.h: New file.
65160         * modules/uninorm/u8-normcoll: New file.
65162         New module 'uninorm/u32-normxfrm'.
65163         * lib/uninorm/u32-normxfrm.c: New file.
65164         * modules/uninorm/u32-normxfrm: New file.
65166         New module 'uninorm/u16-normxfrm'.
65167         * lib/uninorm/u16-normxfrm.c: New file.
65168         * modules/uninorm/u16-normxfrm: New file.
65170         New module 'uninorm/u8-normxfrm'.
65171         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
65172         declarations.
65173         * lib/uninorm/u8-normxfrm.c: New file.
65174         * lib/uninorm/u-normxfrm.h: New file.
65175         * modules/uninorm/u8-normxfrm: New file.
65177 2009-03-07  Bruno Haible  <bruno@clisp.org>
65179         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
65180         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
65181         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
65183 2009-03-07  Bruno Haible  <bruno@clisp.org>
65185         New module 'memxfrm'.
65186         * lib/memxfrm.h: New file.
65187         * lib/memxfrm.c: New file.
65188         * modules/memxfrm: New file.
65190 2009-03-07  Bruno Haible  <bruno@clisp.org>
65192         New module 'memcmp2'.
65193         * lib/memcmp2.h: New file.
65194         * lib/memcmp2.c: New file.
65195         * modules/memcmp2: New file.
65197 2009-03-07  Bruno Haible  <bruno@clisp.org>
65199         Tests for module 'uninorm/decomposing-form'.
65200         * modules/uninorm/decomposing-form-tests: New file.
65201         * tests/uninorm/test-decomposing-form.c: New file.
65203         New module 'uninorm/decomposing-form'.
65204         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
65205         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
65206         Add 'decomposing_variant' field.
65207         * lib/uninorm/decomposing-form.c: New file.
65208         * lib/uninorm/nfc.c (uninorm_nfc): Update.
65209         * lib/uninorm/nfd.c (uninorm_nfd): Update.
65210         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
65211         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
65212         * modules/uninorm/decomposing-form: New file.
65213         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
65214         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
65216 2009-03-07  Bruno Haible  <bruno@clisp.org>
65218         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
65219         strings.
65221 2009-03-06  Bruno Haible  <bruno@clisp.org>
65223         Tests for module 'uninorm/u32-normcmp'.
65224         * tests/uninorm/test-u32-normcmp.c: New file.
65225         * modules/uninorm/u32-normcmp-tests: New file.
65227         Tests for module 'uninorm/u16-normcmp'.
65228         * tests/uninorm/test-u16-normcmp.c: New file.
65229         * modules/uninorm/u16-normcmp-tests: New file.
65231         Tests for module 'uninorm/u8-normcmp'.
65232         * tests/uninorm/test-u8-normcmp.c: New file.
65233         * modules/uninorm/u8-normcmp-tests: New file.
65235         New module 'uninorm/u32-normcmp'.
65236         * lib/uninorm/u32-normcmp.c: New file.
65237         * modules/uninorm/u32-normcmp: New file.
65239         New module 'uninorm/u16-normcmp'.
65240         * lib/uninorm/u16-normcmp.c: New file.
65241         * modules/uninorm/u16-normcmp: New file.
65243         New module 'uninorm/u8-normcmp'.
65244         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
65245         declarations.
65246         * lib/uninorm/u8-normcmp.c: New file.
65247         * lib/uninorm/u-normcmp.h: New file.
65248         * modules/uninorm/u8-normcmp: New file.
65250 2009-03-06  Bruno Haible  <bruno@clisp.org>
65252         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
65253         Reported by Eric Blake.
65255 2009-03-06  Eric Blake  <ebb9@byu.net>
65256             Bruno Haible  <bruno@clisp.org>
65258         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
65259         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
65260         condition.
65261         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65262         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
65263         condition.
65264         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65266 2009-03-06  Eric Blake  <ebb9@byu.net>
65268         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
65269         to avoid compiler warnings.
65270         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
65272 2009-03-05  Bruno Haible  <bruno@clisp.org>
65274         * tests/test-ftell.c (main): Disable test beyond end of file on
65275         FreeMiNT.
65276         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65278 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
65280         * lib/filevercmp.c: Move hidden files up in ordering.
65281         * tests/test-filevercmp.c: Add tests for hidden files.
65283 2009-03-04  Bruno Haible  <bruno@clisp.org>
65285         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
65286         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
65287         AM_CFLAGS.
65288         Reported by Simon Josefsson.
65290 2009-03-03  Bruno Haible  <bruno@clisp.org>
65292         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
65293         Reported by Simon Josefsson.
65295         * doc/ld-version-script.texi: Update node reference.
65297 2009-03-03  Bruno Haible  <bruno@clisp.org>
65299         * modules/visibility (License): Change to 'unlimited'.
65300         Suggested by Simon Josefsson.
65302 2009-03-03  Jim Meyering  <meyering@redhat.com>
65304         unlinkdir: cannot_unlink_dir may modify process state
65305         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
65306         it's neither thread-safe nor appropriate for use in a library.
65308 2009-03-03  Eric Blake  <ebb9@byu.net>
65310         test-closein: silence test under Darwin
65311         * tests/test-closein.sh: Ignore stderr from cat, since we don't
65312         care if it dies from EPIPE or EBADF.
65314 2009-03-03  Bruno Haible  <bruno@clisp.org>
65316         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
65317         earlier.
65318         * doc/visibility.texi: Fix @node and @section.
65320 2009-03-03  Simon Josefsson  <simon@josefsson.org>
65322         * doc/gnulib.texi: Link to sections for ld version script and
65323         visibility.
65324         * doc/visibility.texi: Add @node and @section.
65325         * modules/ld-version-script: New module.
65326         * m4/ld-version-script.m4: New file.
65327         * doc/ld-version-script.texi: New file.
65329 2009-03-02  David Lutterkort  <lutter@redhat.com>
65331         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
65332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65334 2009-03-02  Bruno Haible  <bruno@clisp.org>
65336         * doc/visibility.texi: Mention libtool's -export-symbols option.
65338 2009-03-02  Jim Meyering  <meyering@redhat.com>
65340         announce-gen: new option: --no-print-checksums
65341         * build-aux/announce-gen (usage): Describe it.
65342         (print_checksums): Print a newline here, not in the [*] footnote.
65343         (main): Honor it.
65345 2009-03-01  Bruno Haible  <bruno@clisp.org>
65347         Use socklen_t in the native Windows replacements prototypes.
65348         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
65349         instead of 'int'.
65350         * lib/getsockopt.c (rpl_getsockopt): Likewise.
65351         * lib/setsockopt.c (rpl_setsockopt): Likewise.
65352         * modules/getsockopt (Depends-on): Add socklen.
65353         * modules/setsockopt (Depends-on): Add socklen.
65355 2009-03-01  Bruno Haible  <bruno@clisp.org>
65357         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
65358         least 4.2.
65360 2009-03-01  Eric Blake  <ebb9@byu.net>
65361             Bruno Haible  <bruno@clisp.org>
65363         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
65364         error messages.
65365         * lib/wait-process.c (wait_subprocess): Omit error message about
65366         deadly signal sent to the child of termsigp != NULL.
65368 2009-03-01  Eric Blake  <ebb9@byu.net>
65370         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
65372 2009-03-01  Bruno Haible  <bruno@clisp.org>
65374         Avoid a gcc warning.
65375         * tests/test-sched.c (b): Make global.
65376         Reported by Eric Blake.
65378 2009-01-19  Martin Lambers  <marlam@marlam.de>
65380         Provide POSIX semantics for socket timeout options on W32.
65381         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
65382         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
65383         * modules/setsockopt: Depend on sys_time module for struct timeval.
65384         * modules/getsockopt: Depend on sys_time module for struct timeval.
65386 2009-03-01  Simon Josefsson  <simon@josefsson.org>
65388         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
65389         __USE_GNU, for consistency with netdb.in.h.
65390         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65392 2009-03-01  Bruno Haible  <bruno@clisp.org>
65394         More support for FreeMiNT.
65395         * lib/fseeko.c (rpl_fseeko): Complete last commit.
65396         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65398 2009-03-01  Bruno Haible  <bruno@clisp.org>
65400         More support for FreeMiNT.
65401         * lib/fpurge.c (fpurge): Correct last commit.
65402         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65404 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65406         Fix unportable awk script in vc-list-files.
65407         * build-aux/vc-list-files: In the replacement awk script, use
65408         substr with a second argument of 1, not zero.
65409         Report by Simon Josefsson.
65411 2009-02-28  Bruno Haible  <bruno@clisp.org>
65413         More support for FreeMiNT.
65414         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
65415         to FreeMiNT today.
65416         * lib/fwriting.c (fwriting): Likewise.
65417         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
65419 2009-02-28  Bruno Haible  <bruno@clisp.org>
65421         * tests/test-freadseek.c (main): Disable test beyond end of file on
65422         FreeMiNT.
65423         * tests/test-ftello.c (main): Likewise.
65424         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65426 2009-02-28  Bruno Haible  <bruno@clisp.org>
65428         Add tentative support for FreeMiNT.
65429         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
65430         * lib/fpurge.c (fpurge): Likewise.
65431         * lib/freadable.c (freadable): Likewise.
65432         * lib/freading.c (freading): Likewise.
65433         * lib/freadptr.c (freadptr): Likewise.
65434         * lib/freadseek.c (freadptrinc): Likewise.
65435         * lib/fseeko.c (rpl_fseeko): Likewise.
65436         * lib/fseterr.c (fseterr): Likewise.
65437         * lib/fwritable.c (fwritable): Likewise.
65438         * lib/fwriting.c (fwriting): Likewise.
65439         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
65440         Hourihane.
65441         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65443 2009-02-28  Bruno Haible  <bruno@clisp.org>
65445         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
65446         SIGCHLD.
65447         Reported by Jim Meyering.
65449 2009-02-28  Bruno Haible  <bruno@clisp.org>
65451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
65452         Mention the results of these tests on various platforms.
65453         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
65454         order.
65455         * doc/posix-functions/printf.texi: Likewise.
65456         * doc/posix-functions/snprintf.texi: Likewise.
65457         * doc/posix-functions/sprintf.texi: Likewise.
65458         * doc/posix-functions/vfprintf.texi: Likewise.
65459         * doc/posix-functions/vprintf.texi: Likewise.
65460         * doc/posix-functions/vsnprintf.texi: Likewise.
65461         * doc/posix-functions/vsprintf.texi: Likewise.
65462         * doc/glibc-functions/obstack_printf.texi: Likewise.
65463         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
65465 2009-02-28  Bruno Haible  <bruno@clisp.org>
65467         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
65468         Reported by Loïc Minier <lool@dooz.org>.
65470 2009-02-27  Bruno Haible  <bruno@clisp.org>
65472         * gnulib-tool (func_import): Make the sed expression used to create the
65473         sed script for updating the .gitignore file POSIX compliant.
65474         Reported by Eric Blake.
65476 2009-02-27  Bruno Haible  <bruno@clisp.org>
65478         * gnulib-tool (sed): Don't alias as "sed --posix".
65479         Reported by Eric Blake.
65481 2009-02-27  Bruno Haible  <bruno@clisp.org>
65483         Avoid test link errors.
65484         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
65485         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
65486         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
65487         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
65488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65490 2009-02-27  Bruno Haible  <bruno@clisp.org>
65492         Avoid spurious "(cached)" in configure output.
65493         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
65494         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
65495         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65496         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65497         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65498         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65499         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65500         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65501         Reported by Eric Blake.
65503 2009-02-27  Eric Blake  <ebb9@byu.net>
65505         printf: fix regression in previous patch
65506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
65508 2009-02-27  Bruno Haible  <bruno@clisp.org>
65510         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
65511         value.
65512         * lib/stdint.in.h: Likewise.
65513         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
65515 2009-02-27  Eric Blake  <ebb9@byu.net>
65517         doc: mention more functions added in cygwin 1.7.0
65518         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
65519         addition.
65520         * doc/posix-functions/open_wmemstream.texi: Likewise.
65521         * doc/posix-functions/wcsnlen.texi: Likewise.
65522         * doc/posix-functions/wcsnrtombs.texi: Likewise.
65523         * doc/posix-functions/wcstod.texi: Likewise.
65524         * doc/posix-functions/wcstof.texi: Likewise.
65525         * doc/posix-functions/wcstoimax.texi: Likewise.
65526         * doc/posix-functions/wcstok.texi: Likewise.
65527         * doc/posix-functions/wcstoumax.texi: Likewise.
65529         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
65530         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
65531         * doc/posix-functions/fprintf.texi: Update.
65532         * doc/posix-functions/printf.texi: Update.
65533         * doc/posix-functions/snprintf.texi: Update.
65534         * doc/posix-functions/sprintf.texi: Update.
65535         * doc/posix-functions/vfprintf.texi: Update.
65536         * doc/posix-functions/vprintf.texi: Update.
65537         * doc/posix-functions/vsnprintf.texi: Update.
65538         * doc/posix-functions/vsprintf.texi: Update.
65539         * doc/glibc-functions/obstack_printf.texi: Update.
65540         * doc/glibc-functions/obstack_vprintf.texi: Update.
65542 2009-02-26  Eric Blake  <ebb9@byu.net>
65544         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
65545         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
65546         compilation bug by using runtime conversion.
65547         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65548         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
65549         * modules/ceill-tests (Files): Use nan.h.
65550         * modules/floorl-tests (Files): Likewise.
65551         * modules/frexpl-tests (Files): Likewise.
65552         * modules/isnanl-tests (Files): Likewise.
65553         * modules/ldexpl-tests (Files): Likewise.
65554         * modules/roundl-tests (Files): Likewise.
65555         * modules/truncl-tests (Files): Likewise.
65556         * tests/test-ceill.c (main): Use a working NaN.
65557         * tests/test-floorl.c (main): Likewise.
65558         * tests/test-frexpl.c (main): Likewise.
65559         * tests/test-isnan.c (test_long_double): Likewise.
65560         * tests/test-isnanl.h (main): Likewise.
65561         * tests/test-ldexpl.h (main): Likewise.
65562         * tests/test-roundl.h (main): Likewise.
65563         * tests/test-truncl.h (main): Likewise.
65564         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
65566 2009-02-26  Eric Blake  <ebb9@byu.net>
65567             Bruno Haible  <bruno@clisp.org>
65569         Work around a *printf bug with %ls on Solaris.
65570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
65571         precision is specified, sprintf stops converting the wide string
65572         argument when the number of bytes that have been produced by this
65573         conversion equals or exceeds the precision.
65574         * doc/posix-functions/fprintf.texi: Update.
65575         * doc/posix-functions/printf.texi: Update.
65576         * doc/posix-functions/snprintf.texi: Update.
65577         * doc/posix-functions/sprintf.texi: Update.
65578         * doc/posix-functions/vfprintf.texi: Update.
65579         * doc/posix-functions/vprintf.texi: Update.
65580         * doc/posix-functions/vsnprintf.texi: Update.
65581         * doc/posix-functions/vsprintf.texi: Update.
65582         * doc/glibc-functions/obstack_printf.texi: Update.
65583         * doc/glibc-functions/obstack_vprintf.texi: Update.
65585 2009-02-26  Eric Blake  <ebb9@byu.net>
65587         stdlib: favor compiler check of random.h
65588         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
65589         to avoid an ObjC random.h installed by Swarm.
65591 2009-02-26  Bruno Haible  <bruno@clisp.org>
65593         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
65594         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
65595         Reported by Gary V. Vaughan <gary@gnu.org>.
65597 2009-02-26  Bruno Haible  <bruno@clisp.org>
65599         Fix *printf behaviour regarding the %ls directive.
65600         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
65601         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
65602         NEED_PRINTF_DIRECTIVE_LS.
65603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
65604         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65606         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
65607         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
65608         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
65609         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
65610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65614         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
65615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65617         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65618         * doc/posix-functions/fprintf.texi: Update.
65619         * doc/posix-functions/printf.texi: Update.
65620         * doc/posix-functions/snprintf.texi: Update.
65621         * doc/posix-functions/sprintf.texi: Update.
65622         * doc/posix-functions/vfprintf.texi: Update.
65623         * doc/posix-functions/vprintf.texi: Update.
65624         * doc/posix-functions/vsnprintf.texi: Update.
65625         * doc/posix-functions/vsprintf.texi: Update.
65626         * doc/glibc-functions/obstack_printf.texi: Update.
65627         * doc/glibc-functions/obstack_vprintf.texi: Update.
65628         Reported by Eric Blake.
65630 2009-02-25  Bruno Haible  <bruno@clisp.org>
65632         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
65633         with known value.
65634         Reported by Gary V. Vaughan <gary@gnu.org>.
65636 2009-02-25  Bruno Haible  <bruno@clisp.org>
65638         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
65639         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
65640         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
65641         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
65642         Reported by Gary V. Vaughan <gary@gnu.org>.
65644 2009-02-25  Bruno Haible  <bruno@clisp.org>
65646         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
65647         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
65648         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
65649         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
65650         Reported by Gary V. Vaughan <gary@gnu.org>.
65652 2009-02-25  Eric Blake  <ebb9@byu.net>
65654         tests: skip fseek/ftell tests if ungetc is broken
65655         * m4/ungetc.m4: New file.
65656         * modules/fseek-tests: Split test, so ungetc dependency is
65657         separate from rest of test.
65658         * modules/fseeko-tests: Likewise.
65659         * modules/ftell-tests: Likewise.
65660         * modules/ftello-tests: Likewise.
65661         * tests/test-fseek.c (main): Isolate ungetc dependency.
65662         * tests/test-fseeko.c (main): Likewise.
65663         * tests/test-ftell.c (main): Likewise.
65664         * tests/test-ftello.c (main): Likewise.
65665         * tests/test-fseek2.sh: New file.
65666         * tests/test-fseeko2.sh: Likewise.
65667         * tests/test-ftell2.sh: Likewise.
65668         * tests/test-ftello2.sh: Likewise.
65670 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
65672         test-getaddrinfo: fix usage of skip return code 77
65673         * tests/test-gettaddrinfo.c: Return skip code 77 only
65674         for first occurrence of skip (4x77 is not 77)
65676 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
65678         strtod: avoid C99 decl-after-statement
65679         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
65681 2009-02-24  Eric Blake  <ebb9@byu.net>
65683         strtod: detect HP-UX 11.31 bug
65684         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
65685         Reported by Gary V. Vaughan.
65687 2009-02-23  Bruno Haible  <bruno@clisp.org>
65689         Fix invalid read past end of memory block.
65690         * lib/vasnprintf.c (DCHAR_SET): Define.
65691         (local_wcslen): Define only when needed.
65692         (local_strnlen, local_wcsnlen): New functions.
65693         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
65694         directives that involve a conversion ourselves.
65695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
65696         wcsnlen, mbrtowc, wcrtomb.
65697         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
65698         * tests/test-vasprintf-posix.c (test_function): Likewise.
65699         * tests/test-snprintf-posix.h (test_function): Likewise.
65700         * tests/test-sprintf-posix.h (test_function): Likewise.
65701         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65703 2009-02-22  Bruno Haible  <bruno@clisp.org>
65705         Implement new clarified decomposition of Hangul syllables.
65706         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
65707         of type LTV, return only a pairwise decomposition.
65708         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
65709         Likewise.
65710         * tests/uninorm/test-decomposition.c (main): Updated expected result.
65711         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
65712         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
65714 2009-02-22  Bruno Haible  <bruno@clisp.org>
65716         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
65717         zero-length results and shrink excess allocated memory.
65718         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
65719         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
65720         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
65721         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
65722         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
65723         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
65724         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
65725         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
65726         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
65727         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
65728         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
65729         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
65731 2009-02-21  Bruno Haible  <bruno@clisp.org>
65733         * doc/gnulib.texi: Include safe-alloc.texi earlier.
65734         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
65735         spaces after a period. Put a space between a macro name and its
65736         argument list. Trivial rewordings.
65737         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
65738         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
65739         (main): Return 0 explicitly.
65741 2009-02-21  Bruno Haible  <bruno@clisp.org>
65743         Tests for module 'uninorm/filter'.
65744         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
65745         * modules/uninorm/filter-tests: New file.
65747         New module 'uninorm/filter'.
65748         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
65749         uninorm_filter_flush, uninorm_filter_free): New declarations.
65750         * lib/uninorm/uninorm-filter.c: New file.
65751         * modules/uninorm/filter: New file.
65753 2009-02-21  Bruno Haible  <bruno@clisp.org>
65755         Tests for module 'uninorm/nfkc'.
65756         * tests/uninorm/test-nfkc.c: New file.
65757         * tests/uninorm/test-u8-nfkc.c: New file.
65758         * tests/uninorm/test-u16-nfkc.c: New file.
65759         * tests/uninorm/test-u32-nfkc.c: New file.
65760         * tests/uninorm/test-u32-nfkc-big.sh: New file.
65761         * tests/uninorm/test-u32-nfkc-big.c: New file.
65762         * modules/uninorm/nfkc-tests: New file.
65764         New module 'uninorm/nfkc'.
65765         * lib/uninorm/nfkc.c: New file.
65766         * modules/uninorm/nfkc: New file.
65768         Tests for module 'uninorm/nfkd'.
65769         * tests/uninorm/test-nfkd.c: New file.
65770         * tests/uninorm/test-u8-nfkd.c: New file.
65771         * tests/uninorm/test-u16-nfkd.c: New file.
65772         * tests/uninorm/test-u32-nfkd.c: New file.
65773         * tests/uninorm/test-u32-nfkd-big.sh: New file.
65774         * tests/uninorm/test-u32-nfkd-big.c: New file.
65775         * modules/uninorm/nfkd-tests: New file.
65777         New module 'uninorm/nfkd'.
65778         * lib/uninorm/nfkd.c: New file.
65779         * modules/uninorm/nfkd: New file.
65781         Tests for module 'uninorm/nfc'.
65782         * tests/uninorm/test-nfc.c: New file.
65783         * tests/uninorm/test-u8-nfc.c: New file.
65784         * tests/uninorm/test-u16-nfc.c: New file.
65785         * tests/uninorm/test-u32-nfc.c: New file.
65786         * tests/uninorm/test-u32-nfc-big.sh: New file.
65787         * tests/uninorm/test-u32-nfc-big.c: New file.
65788         * modules/uninorm/nfc-tests: New file.
65790         New module 'uninorm/nfc'.
65791         * lib/uninorm/nfc.c: New file.
65792         * modules/uninorm/nfc: New file.
65794         Tests for module 'uninorm/nfd'.
65795         * tests/uninorm/test-nfd.c: New file.
65796         * tests/uninorm/test-u8-nfd.c: New file.
65797         * tests/uninorm/test-u16-nfd.c: New file.
65798         * tests/uninorm/test-u32-nfd.c: New file.
65799         * tests/uninorm/test-u32-nfd-big.sh: New file.
65800         * tests/uninorm/test-u32-nfd-big.c: New file.
65801         * tests/uninorm/test-u32-normalize-big.h: New file.
65802         * tests/uninorm/test-u32-normalize-big.c: New file.
65803         * tests/uninorm/NormalizationTest.txt: New file, created from
65804         Unicode 5.1.0 NormalizationTest.txt.
65805         * modules/uninorm/nfd-tests: New file.
65807         New module 'uninorm/nfd'.
65808         * lib/uninorm/nfd.c: New file.
65809         * modules/uninorm/nfd: New file.
65811         New module 'uninorm/u32-normalize'.
65812         * lib/uninorm/u32-normalize.c: New file.
65813         * modules/uninorm/u32-normalize: New file.
65815         New module 'uninorm/u16-normalize'.
65816         * lib/uninorm/u16-normalize.c: New file.
65817         * modules/uninorm/u16-normalize: New file.
65819         New module 'uninorm/u8-normalize'.
65820         * lib/uninorm/u8-normalize.c: New file.
65821         * lib/uninorm/normalize-internal.h: New file.
65822         * lib/uninorm/u-normalize-internal.h: New file.
65823         * modules/uninorm/u8-normalize: New file.
65825         New module 'uninorm/decompose-internal'.
65826         * lib/uninorm/decompose-internal.c: New file.
65827         * modules/uninorm/decompose-internal: New file.
65829         Tests for module 'uninorm/composition'.
65830         * tests/uninorm/test-composition.c: New file.
65831         * modules/uninorm/composition-tests: New file.
65833         New module 'uninorm/composition'.
65834         * lib/uninorm/composition.c: New file.
65835         * lib/uninorm/composition-table.gperf: New file, generated by
65836         gen-uni-tables.
65837         * modules/uninorm/composition: New file.
65839         Tests for module 'uninorm/compat-decomposition'.
65840         * tests/uninorm/test-compat-decomposition.c: New file.
65841         * modules/uninorm/compat-decomposition-tests: New file.
65843         New module 'uninorm/compat-decomposition'.
65844         * lib/uninorm/decompose-internal.h: New file.
65845         * lib/uninorm/compat-decomposition.c: New file.
65846         * modules/uninorm/compat-decomposition: New file.
65848         Tests for module 'uninorm/canonical-decomposition'.
65849         * tests/uninorm/test-canonical-decomposition.c: New file.
65850         * modules/uninorm/canonical-decomposition-tests: New file.
65852         New module 'uninorm/canonical-decomposition'.
65853         * lib/uninorm/canonical-decomposition.c: New file.
65854         * modules/uninorm/canonical-decomposition: New file.
65856         Tests for module 'uninorm/decomposition'.
65857         * tests/uninorm/test-decomposition.c: New file.
65858         * modules/uninorm/decomposition-tests: New file.
65860         New module 'uninorm/decomposition'.
65861         * lib/uninorm/decomposition.c: New file.
65862         * modules/uninorm/decomposition: New file.
65864         New module 'uninorm/decomposition-table'.
65865         * lib/uninorm/decomposition-table.h: New file.
65866         * lib/uninorm/decomposition-table.c: New file.
65867         * lib/uninorm/decomposition-table1.h: New file, generated by
65868         gen-uni-tables.
65869         * lib/uninorm/decomposition-table2.h: New file, generated by
65870         gen-uni-tables.
65871         * modules/uninorm/decomposition-table: New file.
65873         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
65874         (UC_DECOMP_*): New enumeration items.
65875         (get_decomposition): New function.
65876         (struct decomp_table): New type.
65877         (output_decomposition, output_decomposition_tables): New functions.
65878         (unicode_composition_exclusions): New variable.
65879         (fill_composition_exclusions, debug_output_composition_tables): New
65880         functions.
65881         (main): Accept one more argument. Invoke fill_composition_exclusions.
65882         Output decomposition and composition tables.
65884         New module 'uninorm/base'.
65885         * lib/uninorm.h: New file.
65886         * lib/unictype.h: Update comment.
65887         * modules/uninorm/base: New file.
65889 2009-02-21  David Lutterkort  <lutter@redhat.com>
65891         Tests for module 'safe-alloc'.
65892         * tests/test-safe-alloc.c: New file.
65893         * modules/safe-alloc-tests: New file.
65895         New module 'safe-alloc'.
65896         * lib/safe-alloc.h: New file.
65897         * lib/safe-alloc.c: New file.
65898         * m4/safe-alloc.m4: New file.
65899         * modules/safe-alloc: New file.
65900         * doc/safe-alloc.texi: New file.
65901         * doc/gnulib.texi: Include it.
65902         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65903         safe-alloc.
65905 2009-02-18  Bruno Haible  <bruno@clisp.org>
65907         Fix link error on non-glibc systems.
65908         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
65909         variable.
65910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65912 2009-02-18  Jim Meyering  <meyering@redhat.com>
65914         fts: avoid used-uninitialized error due to recent change
65915         * lib/fts.c (fts_read): Guard uses of the new member,
65916         parent->fts_n_dirs_remaining, since it's not relevant for
65917         the parent of a directory specified on the command-line.
65919 2009-02-17  James Youngman  <jay@gnu.org>
65920             Bruno Haible  <bruno@clisp.org>
65922         * m4/include_next.m4: Reformulate comment.
65924 2009-02-16  Jim Meyering  <meyering@redhat.com>
65926         fts: add #if guards so that the fts_lgpl module still builds
65927         * lib/fts.c: Guard just-added hash-table-using parts with
65928         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
65929         Reported by Simon Josefsson.
65931 2009-02-15  Bruno Haible  <bruno@clisp.org>
65933         * modules/array-mergesort-tests: New file.
65934         * tests/test-array-mergesort.c: New file.
65936         New module 'array-mergesort'.
65937         * modules/array-mergesort: New file.
65938         * lib/array-mergesort.h: New file.
65940 2009-02-15  Bruno Haible  <bruno@clisp.org>
65942         Fix 2009-02-07 commit.
65943         * lib/gen-uni-tables.c (output_predicate, output_category,
65944         output_combclass, output_bidi_category, output_decimal_digit,
65945         output_digit, output_numeric, output_mirror, output_scripts,
65946         output_ident_category, output_simple_mapping): Fix format directives.
65947         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
65949 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
65951         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
65952         fixes are available from IBM.
65954 2009-02-13  Jim Meyering  <meyering@redhat.com>
65956         fts: arrange not to stat non-directories in more cases
65957         This makes GNU find (when it doesn't need to stat each file)
65958         *much* more efficient at traversing reiserfs file systems.
65959         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
65960         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
65961         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
65962         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
65963         (leaf_optimization_applies): New function.
65964         (LCO_hash, LCO_compare): New helper functions.
65965         (link_count_optimize_ok): New function.
65966         (fts_stat): Initialize new member (if dir).
65967         (fts_read): Decrement parent's fts_n_dirs_remaining count if
65968         we've just stat'ed a directory.  Skip the stat call when possible.
65969         ---
65970         Note this AFS-related exchange:
65971         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
65972         and note find's pioctl call in find/fstype.c.
65973         But that is necessary only if you want to enable the
65974         optimization for AFS, and for now, I don't.
65976         fts: move a function definition "up" (no semantic change)
65977         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
65978         "up" to precede upcoming use of a related function.
65980 2009-02-11  Jim Meyering  <meyering@redhat.com>
65982         fts: correct internal computation of nlinks (optimization-related)
65983         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
65984         whether the current entry is a directory, so don't test it.
65986 2009-02-10  Bruno Haible  <bruno@clisp.org>
65988         Tests for module 'uniwbrk/ulc-wordbreaks'.
65989         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
65990         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
65991         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
65993         Tests for module 'uniwbrk/u32-wordbreaks'.
65994         * modules/uniwbrk/u32-wordbreaks-tests: New file.
65995         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
65997         Tests for module 'uniwbrk/u16-wordbreaks'.
65998         * modules/uniwbrk/u16-wordbreaks-tests: New file.
65999         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
66001         Tests for module 'uniwbrk/u8-wordbreaks'.
66002         * modules/uniwbrk/u8-wordbreaks-tests: New file.
66003         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
66005 2009-02-10  Bruno Haible  <bruno@clisp.org>
66007         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
66008         property.
66009         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
66010         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
66011         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
66013 2009-02-10  Simon Josefsson  <simon@josefsson.org>
66015         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
66016         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
66018 2009-02-10  Bruno Haible  <bruno@clisp.org>
66020         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
66021         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
66022         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
66023         * lib/unilbrk/u8-possible-linebreaks.c: Update.
66024         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
66025         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
66027 2009-02-09  Simon Josefsson  <simon@josefsson.org>
66029         * lib/sockets.h (gl_fd_to_handle): New function.
66031         * tests/test-sockets.c: Call gl_fd_to_handle.
66033 2009-02-09  Bruno Haible  <bruno@clisp.org>
66035         * doc/havelib.texi: Document the conventions on bi-arch systems.
66037 2009-02-08  Bruno Haible  <bruno@clisp.org>
66039         Document the AC_LIB_LINKFLAGS macro.
66040         * doc/havelib.texi: New file, mostly written on 2005-05-24.
66041         * doc/gnulib.texi: Include it.
66043 2009-02-08  Bruno Haible  <bruno@clisp.org>
66045         Fix wrong order of sections, compared to TOC.
66046         * doc/gnulib.texi: Include relocatable-maint.texi after the
66047         "Regular expressions" node, not before.
66049 2009-02-08  Bruno Haible  <bruno@clisp.org>
66051         Tests for module 'unicase/totitle'.
66052         * modules/unicase/totitle-tests: New file.
66054         Tests for module 'unicase/tolower'.
66055         * modules/unicase/tolower-tests: New file.
66057         Tests for module 'unicase/toupper'.
66058         * modules/unicase/toupper-tests: New file.
66059         * tests/unicase/test-mapping-part1.h: New file.
66060         * tests/unicase/test-mapping-part2.h: New file.
66062         New module 'unicase/totitle'.
66063         * modules/unicase/totitle: New file.
66064         * lib/unicase/totitle.c: New file.
66066         New module 'unicase/tolower'.
66067         * modules/unicase/tolower: New file.
66068         * lib/unicase/tolower.c: New file.
66070         New module 'unicase/toupper'.
66071         * modules/unicase/toupper: New file.
66072         * lib/unicase/toupper.c: New file.
66073         * lib/unicase/simple-mapping.h: New file.
66075         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
66076         (mapping_table): New structure.
66077         (output_simple_mapping): New function.
66078         (main): Invoke output_simple_mapping_test and output_simple_mapping.
66079         * modules/gen-uni-tables (Description): Update.
66080         * lib/unicase/toupper.h: New file, automatically generated by
66081         gen-uni-tables.
66082         * lib/unicase/tolower.h: New file, automatically generated by
66083         gen-uni-tables.
66084         * lib/unicase/totitle.h: New file, automatically generated by
66085         gen-uni-tables.
66086         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
66087         gen-uni-tables.
66088         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
66089         gen-uni-tables.
66090         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
66091         gen-uni-tables.
66093         New module 'unicase/base'.
66094         * modules/unicase/base: New file.
66095         * lib/unicase.h: New file.
66097 2009-02-08  Bruno Haible  <bruno@clisp.org>
66099         New module 'uniwbrk/ulc-wordbreaks'.
66100         * modules/uniwbrk/ulc-wordbreaks: New file.
66101         * lib/uniwbrk/ulc-wordbreaks.c: New file.
66103         New module 'uniwbrk/u32-wordbreaks'.
66104         * modules/uniwbrk/u32-wordbreaks: New file.
66105         * lib/uniwbrk/u32-wordbreaks.c: New file.
66107         New module 'uniwbrk/u16-wordbreaks'.
66108         * modules/uniwbrk/u16-wordbreaks: New file.
66109         * lib/uniwbrk/u16-wordbreaks.c: New file.
66111         New module 'uniwbrk/u8-wordbreaks'.
66112         * modules/uniwbrk/u8-wordbreaks: New file.
66113         * lib/uniwbrk/u8-wordbreaks.c: New file.
66114         * lib/uniwbrk/u-wordbreaks.h: New file.
66116         New module 'uniwbrk/table'.
66117         * modules/uniwbrk/table: New file.
66118         * lib/uniwbrk/wbrktable.h: New file.
66119         * lib/uniwbrk/wbrktable.c: New file.
66121         New module 'uniwbrk/wordbreak-property'.
66122         * modules/uniwbrk/wordbreak-property: New file.
66123         * lib/uniwbrk/wordbreak-property.c: New file.
66125         * lib/gen-uni-tables.c (WBP_*): New enum items.
66126         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
66127         (unicode_org_wbp): New variable.
66128         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
66129         New functions.
66130         (wbp_table): New structure.
66131         (output_wbp, output_wbrk_tables): New functions.
66132         (main): Accept additional argument. Invoke fill_org_wbp,
66133         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
66134         output_wbrk_tables.
66135         * modules/gen-uni-tables (Description): Update.
66136         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
66137         gen-uni-tables.
66139         New module 'uniwbrk/base'.
66140         * modules/uniwbrk/base: New file.
66141         * lib/uniwbrk.h: New file.
66143 2009-02-08  Bruno Haible  <bruno@clisp.org>
66145         Update to Unicode 5.1.0.
66146         * lib/gen-uni-tables.c (is_property_alphabetic): Include
66147         U+2185..U+2188.
66148         (is_property_default_ignorable_code_point): Don't include characters
66149         of category Cc or Cs and not-a-characters.
66150         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
66151         U+0D79, U+109E, U+109F, U+A60C.
66152         * lib/unictype/bidi_of.h: Regenerated.
66153         * lib/unictype/blocks.h: Regenerated.
66154         * lib/unictype/categ_C.h: Regenerated.
66155         * lib/unictype/categ_Cf.h: Regenerated.
66156         * lib/unictype/categ_Cn.h: Regenerated.
66157         * lib/unictype/categ_L.h: Regenerated.
66158         * lib/unictype/categ_Ll.h: Regenerated.
66159         * lib/unictype/categ_Lm.h: Regenerated.
66160         * lib/unictype/categ_Lo.h: Regenerated.
66161         * lib/unictype/categ_Lu.h: Regenerated.
66162         * lib/unictype/categ_M.h: Regenerated.
66163         * lib/unictype/categ_Mc.h: Regenerated.
66164         * lib/unictype/categ_Me.h: Regenerated.
66165         * lib/unictype/categ_Mn.h: Regenerated.
66166         * lib/unictype/categ_N.h: Regenerated.
66167         * lib/unictype/categ_Nd.h: Regenerated.
66168         * lib/unictype/categ_Nl.h: Regenerated.
66169         * lib/unictype/categ_No.h: Regenerated.
66170         * lib/unictype/categ_P.h: Regenerated.
66171         * lib/unictype/categ_Pd.h: Regenerated.
66172         * lib/unictype/categ_Pe.h: Regenerated.
66173         * lib/unictype/categ_Pf.h: Regenerated.
66174         * lib/unictype/categ_Pi.h: Regenerated.
66175         * lib/unictype/categ_Po.h: Regenerated.
66176         * lib/unictype/categ_Ps.h: Regenerated.
66177         * lib/unictype/categ_S.h: Regenerated.
66178         * lib/unictype/categ_Sk.h: Regenerated.
66179         * lib/unictype/categ_Sm.h: Regenerated.
66180         * lib/unictype/categ_So.h: Regenerated.
66181         * lib/unictype/categ_of.h: Regenerated.
66182         * lib/unictype/combining.h: Regenerated.
66183         * lib/unictype/ctype_alnum.h: Regenerated.
66184         * lib/unictype/ctype_alpha.h: Regenerated.
66185         * lib/unictype/ctype_graph.h: Regenerated.
66186         * lib/unictype/ctype_lower.h: Regenerated.
66187         * lib/unictype/ctype_print.h: Regenerated.
66188         * lib/unictype/ctype_punct.h: Regenerated.
66189         * lib/unictype/ctype_upper.h: Regenerated.
66190         * lib/unictype/decdigit.h: Regenerated.
66191         * lib/unictype/digit.h: Regenerated.
66192         * lib/unictype/mirror.h: Regenerated.
66193         * lib/unictype/numeric.h: Regenerated.
66194         * lib/unictype/pr_alphabetic.h: Regenerated.
66195         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
66196         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
66197         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
66198         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
66199         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
66200         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
66201         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
66202         * lib/unictype/pr_combining.h: Regenerated.
66203         * lib/unictype/pr_dash.h: Regenerated.
66204         * lib/unictype/pr_decimal_digit.h: Regenerated.
66205         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
66206         * lib/unictype/pr_deprecated.h: Regenerated.
66207         * lib/unictype/pr_diacritic.h: Regenerated.
66208         * lib/unictype/pr_extender.h: Regenerated.
66209         * lib/unictype/pr_format_control.h: Regenerated.
66210         * lib/unictype/pr_grapheme_base.h: Regenerated.
66211         * lib/unictype/pr_grapheme_extend.h: Regenerated.
66212         * lib/unictype/pr_grapheme_link.h: Regenerated.
66213         * lib/unictype/pr_id_continue.h: Regenerated.
66214         * lib/unictype/pr_id_start.h: Regenerated.
66215         * lib/unictype/pr_ideographic.h: Regenerated.
66216         * lib/unictype/pr_ignorable_control.h: Regenerated.
66217         * lib/unictype/pr_lowercase.h: Regenerated.
66218         * lib/unictype/pr_math.h: Regenerated.
66219         * lib/unictype/pr_numeric.h: Regenerated.
66220         * lib/unictype/pr_other_alphabetic.h: Regenerated.
66221         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
66222         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
66223         * lib/unictype/pr_other_id_continue.h: Regenerated.
66224         * lib/unictype/pr_other_lowercase.h: Regenerated.
66225         * lib/unictype/pr_other_math.h: Regenerated.
66226         * lib/unictype/pr_punctuation.h: Regenerated.
66227         * lib/unictype/pr_sentence_terminal.h: Regenerated.
66228         * lib/unictype/pr_soft_dotted.h: Regenerated.
66229         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
66230         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
66231         * lib/unictype/pr_unified_ideograph.h: Regenerated.
66232         * lib/unictype/pr_uppercase.h: Regenerated.
66233         * lib/unictype/pr_xid_continue.h: Regenerated.
66234         * lib/unictype/pr_xid_start.h: Regenerated.
66235         * lib/unictype/pr_zero_width.h: Regenerated.
66236         * lib/unictype/scripts.h: Regenerated.
66237         * lib/unictype/scripts_byname.gperf: Regenerated.
66238         * lib/unictype/sy_java_ident.h: Regenerated.
66239         * lib/unilbrk/lbrkprop1.h: Regenerated.
66240         * lib/unilbrk/lbrkprop2.h: Regenerated.
66241         * tests/unictype/test-categ_C.c: Regenerated.
66242         * tests/unictype/test-categ_Cf.c: Regenerated.
66243         * tests/unictype/test-categ_Cn.c: Regenerated.
66244         * tests/unictype/test-categ_L.c: Regenerated.
66245         * tests/unictype/test-categ_Ll.c: Regenerated.
66246         * tests/unictype/test-categ_Lm.c: Regenerated.
66247         * tests/unictype/test-categ_Lo.c: Regenerated.
66248         * tests/unictype/test-categ_Lu.c: Regenerated.
66249         * tests/unictype/test-categ_M.c: Regenerated.
66250         * tests/unictype/test-categ_Mc.c: Regenerated.
66251         * tests/unictype/test-categ_Me.c: Regenerated.
66252         * tests/unictype/test-categ_Mn.c: Regenerated.
66253         * tests/unictype/test-categ_N.c: Regenerated.
66254         * tests/unictype/test-categ_Nd.c: Regenerated.
66255         * tests/unictype/test-categ_Nl.c: Regenerated.
66256         * tests/unictype/test-categ_No.c: Regenerated.
66257         * tests/unictype/test-categ_P.c: Regenerated.
66258         * tests/unictype/test-categ_Pd.c: Regenerated.
66259         * tests/unictype/test-categ_Pe.c: Regenerated.
66260         * tests/unictype/test-categ_Pf.c: Regenerated.
66261         * tests/unictype/test-categ_Pi.c: Regenerated.
66262         * tests/unictype/test-categ_Po.c: Regenerated.
66263         * tests/unictype/test-categ_Ps.c: Regenerated.
66264         * tests/unictype/test-categ_S.c: Regenerated.
66265         * tests/unictype/test-categ_Sk.c: Regenerated.
66266         * tests/unictype/test-categ_Sm.c: Regenerated.
66267         * tests/unictype/test-categ_So.c: Regenerated.
66268         * tests/unictype/test-ctype_alnum.c: Regenerated.
66269         * tests/unictype/test-ctype_alpha.c: Regenerated.
66270         * tests/unictype/test-ctype_graph.c: Regenerated.
66271         * tests/unictype/test-ctype_lower.c: Regenerated.
66272         * tests/unictype/test-ctype_print.c: Regenerated.
66273         * tests/unictype/test-ctype_punct.c: Regenerated.
66274         * tests/unictype/test-ctype_upper.c: Regenerated.
66275         * tests/unictype/test-decdigit.h: Regenerated.
66276         * tests/unictype/test-digit.h: Regenerated.
66277         * tests/unictype/test-numeric.h: Regenerated.
66278         * tests/unictype/test-pr_alphabetic.c: Regenerated.
66279         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
66280         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
66281         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
66282         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
66283         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
66284         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
66285         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
66286         * tests/unictype/test-pr_combining.c: Regenerated.
66287         * tests/unictype/test-pr_dash.c: Regenerated.
66288         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
66289         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
66290         * tests/unictype/test-pr_deprecated.c: Regenerated.
66291         * tests/unictype/test-pr_diacritic.c: Regenerated.
66292         * tests/unictype/test-pr_extender.c: Regenerated.
66293         * tests/unictype/test-pr_format_control.c: Regenerated.
66294         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
66295         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
66296         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
66297         * tests/unictype/test-pr_id_continue.c: Regenerated.
66298         * tests/unictype/test-pr_id_start.c: Regenerated.
66299         * tests/unictype/test-pr_ideographic.c: Regenerated.
66300         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
66301         * tests/unictype/test-pr_lowercase.c: Regenerated.
66302         * tests/unictype/test-pr_math.c: Regenerated.
66303         * tests/unictype/test-pr_numeric.c: Regenerated.
66304         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
66305         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
66306         Regenerated.
66307         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
66308         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
66309         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
66310         * tests/unictype/test-pr_other_math.c: Regenerated.
66311         * tests/unictype/test-pr_punctuation.c: Regenerated.
66312         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
66313         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
66314         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
66315         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
66316         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
66317         * tests/unictype/test-pr_uppercase.c: Regenerated.
66318         * tests/unictype/test-pr_xid_continue.c: Regenerated.
66319         * tests/unictype/test-pr_xid_start.c: Regenerated.
66320         * tests/unictype/test-pr_zero_width.c: Regenerated.
66322         Update to Unicode 5.1.0.
66323         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
66324         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
66325         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
66326         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
66327         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
66328         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
66329         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
66330         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
66331         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
66332         (nonspacing_table_ind): Update.
66333         * tests/uniwidth/test-uc_width2.sh: Update expected result.
66335         Update to Unicode 5.1.0.
66336         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
66337         code transform.
66338         * lib/uniname/uniname.c (unicode_character_name,
66339         unicode_name_character): Add the range 0x1Fxxx to the code transform.
66340         * lib/uniname/uninames.h: Regenerated.
66341         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
66343 2009-02-07  Bruno Haible  <bruno@clisp.org>
66345         Merge gen-ctype and gen-lbrk into a single program.
66346         * lib/gen-uni-tables.c: New file, incorporating
66347         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
66348         Add directory prefixes to the names of the generated files.
66349         * lib/unictype/gen-ctype.c: Remove file.
66350         * lib/unilbrk/gen-lbrk.c: Remove file.
66351         * modules/gen-uni-tables: New file.
66352         * modules/unictype/gen-ctype: Remove file.
66353         * modules/unilbrk/gen-lbrk: Remove file.
66355 2009-02-07  Bruno Haible  <bruno@clisp.org>
66357         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
66359         New module 'unistr/u32-strcoll'.
66360         * modules/unistr/u32-strcoll: New file.
66361         * lib/unistr/u32-strcoll.c: New file.
66363         New module 'unistr/u16-strcoll'.
66364         * modules/unistr/u16-strcoll: New file.
66365         * lib/unistr/u16-strcoll.c: New file.
66367         New module 'unistr/u8-strcoll'.
66368         * modules/unistr/u8-strcoll: New file.
66369         * lib/unistr/u8-strcoll.c: New file.
66370         * lib/unistr/u-strcoll.h: New file.
66372 2009-02-07  Bruno Haible  <bruno@clisp.org>
66374         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
66375         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66376         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66377         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
66378         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
66379         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
66381 2009-02-07  Bruno Haible  <bruno@clisp.org>
66383         Make 64-bit clean.
66384         * lib/unictype/gen-ctype.c (output_predicate, output_category,
66385         output_combclass, output_bidi_category, output_decimal_digit,
66386         output_digit, output_numeric, output_mirror, output_scripts,
66387         output_ident_category): Use proper width specifier in format strings.
66389 2009-02-07  Bruno Haible  <bruno@clisp.org>
66391         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
66392         failure behaviour.
66394 2009-02-07  Jim Meyering  <meyering@redhat.com>
66396         regex: avoid compilation failure with upcoming gcc-4.4
66397         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
66398         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
66399         "... error: integer overflow in preprocessor expression".
66401 2009-02-05  Ben Pfaff  <blp@gnu.org>
66403         Fix link errors on Windows when close module is used.
66404         * modules/close: Add $(LIB_CLOSE) to Link section.
66405         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
66406         $(LIB_CLOSE) on Windows.
66408 2009-02-05  Jim Meyering  <meyering@redhat.com>
66410         still avoid unused-parameter warnings, but do it cleanly
66411         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
66412         (get_fs_usage): Cast to void instead.
66413         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
66414         (dev_from_mount_options, read_file_system_list): Cast to void.
66415         Prompted by Bruno Haible.
66417 2009-02-04  Jim Meyering  <meyering@redhat.com>
66419         fsusage.c: correct copyright year
66420         * lib/fsusage.c: Reflect year in which the change is pushed into
66422         avoid misc. warnings
66423         * lib/fsusage.c (UNUSED_PARAM): Define.
66424         (get_fs_usage): Mark parameter "disk" as unused.
66425         * lib/getugroups.c (getgrent): Use "void" in prototype.
66426         * lib/mountlist.c: Mark unused parameters.
66427         (read_file_system_list): Declare a local with "const".
66428         * lib/nanosleep.c (getnow): Declare static.
66429         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
66431         dirfd: set errno upon failure
66432         * lib/dirfd.c: Include <errno.h>.
66433         Set errno to ENOTSUP when returning -1.
66434         * modules/dirfd (Depends-on): Add errno.
66435         Suggested by John Kodis <kodis@comcast.net>.
66437 2009-02-01  Bruno Haible  <bruno@clisp.org>
66439         Don't assume sizeof (long) >= sizeof (void *).
66440         * lib/memcmp.c: Include stdint.h.
66441         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
66442         srcp2 to 'const byte *'.
66443         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
66444         types to uintptr_t.
66445         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
66446         * modules/memcmp (Depends-on): Add stdint.
66447         Reported by Ozkan Sezer <sezeroz@gmail.com>.
66449 2009-01-30  Eric Blake  <ebb9@byu.net>
66451         fix more require-before-expand issues
66452         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
66453         expand, AC_PROG_AWK.
66454         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
66456 2009-01-28  Eric Blake  <ebb9@byu.net>
66458         version-etc: use consistent URL formatting
66459         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
66460         Improve formatting.  Use fputs for string without %.
66462 2009-01-28  Jim Meyering  <meyering@redhat.com>
66464         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
66465         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
66466         "underquoted definition of NAME" from autoconf-2.59.
66468 2009-01-28  Bruno Haible  <bruno@clisp.org>
66470         * doc/gnulib.texi: Add "Obsolete modules" to index.
66472 2009-01-28  Jim Meyering  <meyering@redhat.com>
66474         useless-if-before-free: recognize more variants
66475         * build-aux/useless-if-before-free: Also recognize e.g.,
66476         if (NULL != p) free (p);
66478 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
66480         test-getaddrinfo: skip (don't fail) this test when there's no network
66481         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
66482         on the presumption that it means you lack network access.
66484 2009-01-26  Jim Meyering  <meyering@redhat.com>
66486         fflush: avoid warnings on modern systems
66487         * lib/fflush.c (rpl_fflush): Move declarations of locals,
66488         pos and result, into scopes where they're used.
66490 2009-01-26  Eric Blake  <ebb9@byu.net>
66492         Silence warning reintroduced by recent extensions patch.
66493         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
66494         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
66495         autoconf.
66497         Backport improved autoconf semantics of AC_DEFUN_ONCE.
66498         * m4/00gnulib.m4: New file.
66499         * gnulib-tool (func_get_filelist): Always use it.
66500         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
66501         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
66503 2009-01-25  Bruno Haible  <bruno@clisp.org>
66505         Make test-quotearg work on MacOS X and AIX.
66506         * tests/test-quotearg.sh: New file.
66507         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
66508         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
66509         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
66510         include <libintl.h>.
66511         (fake_locale): Remove variable.
66512         (gettext, dgettext, dcgettext): Remove functions.
66513         (main): Instead of setting a fake locale, set a real locale. Call
66514         textdomain and bindtextdomain.
66515         * modules/quotearg-tests (Files): Add the new files.
66516         (Depends-on): Add gettext, setenv, unsetenv.
66517         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66518         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
66519         Augment TESTS_ENVIRONMENT.
66521 2009-01-25  Bruno Haible  <bruno@clisp.org>
66523         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
66524         fr_FR.ISO8859-1 locale on MacOS X.
66525         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
66526         ja_JP.eucJP locale on MacOS X.
66527         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
66528         zh_CN.GB18030 locale on MacOS X.
66530 2009-01-25  Bruno Haible  <bruno@clisp.org>
66532         Avoid link errors on MacOS X 10.3.
66533         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
66534         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
66536 2009-01-25  Bruno Haible  <bruno@clisp.org>
66538         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
66539         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
66540         * modules/pipe (Files): Remove m4/posix_spawn.m4.
66541         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
66542         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
66543         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
66544         posix_spawnattr_init, posix_spawnattr_setsigmask,
66545         posix_spawnattr_setflags, posix_spawnattr_destroy.
66547         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
66548         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
66549         * modules/execute (Files): Remove m4/posix_spawn.m4.
66550         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
66551         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
66552         posix_spawnattr_init, posix_spawnattr_setsigmask,
66553         posix_spawnattr_setflags, posix_spawnattr_destroy.
66555 2009-01-25  Bruno Haible  <bruno@clisp.org>
66557         * lib/glthread/threadlib.c: Include <stdlib.h>.
66559 2009-01-25  Bruno Haible  <bruno@clisp.org>
66561         * lib/glthread/threadlib.c (dummy): New declaration.
66563 2009-01-25  Bruno Haible  <bruno@clisp.org>
66565         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
66566         multibyte characters also for the GB18030 encoding. Don't crash when
66567         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
66569 2009-01-25  Bruno Haible  <bruno@clisp.org>
66571         Avoid redefining 'struct random_data' on OSF/1 5.1.
66572         * lib/stdlib.in.h: Include <random.h> if it exists.
66573         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
66574         HAVE_RANDOM_H. Include <random.h> when testing whether
66575         'struct random_data' exists.
66576         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
66578 2009-01-25  Bruno Haible  <bruno@clisp.org>
66580         Don't install charset.alias on MacOS X >= 10.3.
66581         * lib/localcharset.c (DARWIN7): New macro.
66582         (get_charset_aliases): Hardcode the result for Darwin7.
66583         * modules/localcharset (install-exec-local): Don't install
66584         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
66586 2009-01-25  Bruno Haible  <bruno@clisp.org>
66588         Don't install charset.alias on mingw and Cygwin.
66589         * modules/localcharset (install-exec-local): Don't install
66590         charset.alias on mingw and Cygwin, if the file does not yet exist.
66591         The result for these platforms is hardcoded in localcharset.c.
66593 2009-01-25  Bruno Haible  <bruno@clisp.org>
66595         Make it possible again to use AC_GNU_SOURCE together with gnulib.
66596         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
66597         before requiring AC_USE_SYSTEM_EXTENSIONS.
66599 2009-01-25  Jim Meyering  <meyering@redhat.com>
66601         c-strtod: avoid warnings
66602         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
66603         "assignment discards qualifiers from pointer target type" warnings.
66605 2009-01-24  Bruno Haible  <bruno@clisp.org>
66607         Add support for non-UTF-8 locales on MacOS X.
66608         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
66609         canonical encodings. For Darwin 7 and newer, don't map traditional
66610         encodings to UTF-8.
66611         Reported by Vincent Lefevre <vincent@vinc17.org>
66612         at <http://savannah.gnu.org/bugs/?25235>.
66614 2009-01-24  Bruno Haible  <bruno@clisp.org>
66616         * doc/gnulib.texi (Obsolete modules): New section.
66617         Reported by Mike Frysinger <vapier@gentoo.org>.
66619 2009-01-24  Bruno Haible  <bruno@clisp.org>
66621         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
66622         (%.dvi): New rule.
66624 2009-01-24  Bruno Haible  <bruno@clisp.org>
66626         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
66627         Reported by Eric Blake.
66629 2009-01-24  Bruno Haible  <bruno@clisp.org>
66631         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
66632         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
66633         Reported by Gary V. Vaughan <gary@gnu.org>.
66635 2009-01-24  Bruno Haible  <bruno@clisp.org>
66637         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
66639 2009-01-23  Bruno Haible  <bruno@clisp.org>
66641         Make c-strtod, c-strtold usable in libraries.
66642         * lib/c-strtod.c: Include string.h instead of xalloc.h.
66643         (C_STRTOD): Call strdup instead of xstrdup.
66644         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
66645         * modules/c-strtold (Depends-on): Likewise.
66646         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
66647         * NEWS: Mention the change.
66648         Reported by Michael Gold <mgold@ncf.ca>.
66650 2009-01-23  Jim Meyering  <meyering@redhat.com>
66652         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
66653         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
66654         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
66656 2009-01-23  Simon Josefsson  <simon@josefsson.org>
66658         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
66659         GNU CoreUtils.
66660         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
66661         * modules/version-etc (Description): Update.
66663 2009-01-22  Bruno Haible  <bruno@clisp.org>
66665         Cache the C locale object.
66666         * lib/c-strtod.c (c_locale_cache): New variable.
66667         (c_locale): New function.
66668         (C_STRTOD): Use it, and don't call freelocale.
66669         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
66670         Suggested by Paolo Bonzini.
66672 2009-01-21  Bruno Haible  <bruno@clisp.org>
66674         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
66675         conditions other than overflow.
66677 2009-01-21  Bruno Haible  <bruno@clisp.org>
66679         * lib/c-strtod.c: Include errno.h.
66680         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
66681         value from STRTOD_L and STRTOD.
66683 2009-01-21  Bruno Haible  <bruno@clisp.org>
66684         and Jim Meyering  <meyering@redhat.com>
66686         nanosleep: skip configure test (fail it) for apple universal builds
66687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
66688         universal builds, assume that nanosleep does not work.
66689         * modules/nanosleep (Depends-on): Add multiarch.
66691         mktime: skip configure test (fail it) for apple universal builds
66692         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
66693         universal builds, assume that mktime does not work.
66694         * modules/mktime (Depends-on): Add multiarch.
66696 2009-01-21  Eric Blake  <ebb9@byu.net>
66698         multiarch: avoid expand-before-require warning
66699         * modules/multiarch (configure.ac): Require, rather than expand,
66700         gl_MULTIARCH.
66701         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
66702         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
66703         enforce that all clients require it.  Partial reversion of
66704         2008-12-29 patch.
66706         error: avoid expand-before-require warning
66707         * modules/errno (configure.ac): Require, rather than expand,
66708         gl_HEADER_ERRNO_H.
66709         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
66710         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
66711         enforce that all clients require it.
66713         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
66714         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
66715         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
66716         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
66718 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
66720         Revert:
66721         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66723         regex: do not depend on obsolete modules.
66724         * modules/regex: Remove memcmp and memmove.
66726 2009-01-20  Bruno Haible  <bruno@clisp.org>
66728         Make the 'link' module link on Windows NT 4.
66729         * lib/link.c (_WIN32_WINNT): Don't define.
66730         (CreateHardLinkFuncType): New type.
66731         (CreateHardLinkFunc, initialized): New variables.
66732         (initialize): New function.
66733         (link): Invoke CreateHardLink indirectly through the function pointer.
66735 2009-01-20  Bruno Haible  <bruno@clisp.org>
66737         Fix compilation failure on mingw.
66738         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
66740 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
66742         * doc/c-strtod.texi: Mention a couple of restrictions.
66744 2009-01-20  Jim Meyering  <meyering@redhat.com>
66746         gettimeofday: move more declarations out of functions
66747         * lib/gettimeofday.c: Move extern declarations of tzset and
66748         gmtime out of containing functions.  Prompted by Bruno Haible.
66750 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66752         regex: do not depend on obsolete modules.
66753         * modules/regex: Remove memcmp and memmove.
66755 2009-01-19  Bruno Haible  <bruno@clisp.org>
66757         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66758         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
66759         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66760         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
66761         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
66763 2009-01-19  Bruno Haible  <bruno@clisp.org>
66765         * tests/test-link.c: Include <errno.h>.
66766         (main): Exit with code 77 when a hard link cannot be created due to
66767         the file system.
66768         * tests/test-link.sh: Skip test when a hard link cannot be created due
66769         to the file system.
66770         Suggested by Eric Blake.
66772 2009-01-19  Martin Lambers  <marlam@marlam.de>
66774         * modules/link-tests: New file.
66775         * tests/test-link.sh: New file.
66776         * tests/test-link.c: New file.
66778 2009-01-19  Eric Blake  <ebb9@byu.net>
66780         doc: mention another function added in cygwin 1.7.0
66781         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
66782         Another new function in cygwin 1.7.
66784 2009-01-19  Bruno Haible  <bruno@clisp.org>
66786         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66787         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
66788         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
66789         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66790         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
66791         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
66792         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66793         * m4/md4.m4 (gl_MD4): Likewise.
66794         * m4/md5.m4 (gl_MD5): Likewise.
66795         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
66796         * m4/sha1.m4 (gl_SHA1): Likewise.
66797         * m4/sha256.m4 (gl_SHA256): Likewise.
66798         * m4/sha512.m4 (gl_SHA512): Likewise.
66800 2009-01-19  Bruno Haible  <bruno@clisp.org>
66802         * modules/uniname/uniname-tests (Depends-on): Add progname.
66803         * tests/uniname/test-uninames.c: Include progname.h.
66804         (main): Call set_program_name.
66806         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
66807         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
66808         (main): Call set_program_name.
66810         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
66811         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
66812         (main): Call set_program_name.
66814         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
66815         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
66816         (main): Call set_program_name.
66818         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
66819         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
66820         (main): Call set_program_name.
66822         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
66823         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
66824         (main): Call set_program_name.
66826         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
66827         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
66828         (main): Call set_program_name.
66830         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
66831         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
66832         (main): Call set_program_name.
66834         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
66835         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
66836         (main): Call set_program_name.
66838 2009-01-19  Eric Blake  <ebb9@byu.net>
66840         test-unistd: test previous patch
66841         * tests/test-unistd.c: Test *_FILENO macros.
66843         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
66844         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66845         Guarantee a definition.
66846         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
66847         * modules/unistd-safer (Depends-on): Add dependency on unistd.
66848         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
66849         * lib/dup-safer.c (STDERR_FILENO): Likewise.
66850         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66851         Likewise.
66852         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
66853         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
66854         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66855         Likewise.
66856         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
66857         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
66858         (STDERR_FILENO): Likewise.
66859         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
66860         (STDERR_FILENO): Likewise.
66861         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
66862         (STDERR_FILENO): Likewise.
66863         Reported by Elbert Pol.
66865 2009-01-19  Eric Blake  <ebb9@byu.net>
66867         doc: mention more functions added in cygwin 1.7.0
66868         * doc/posix-functions/abort.texi (abort): Update wording related
66869         to cygwin.
66870         * doc/posix-functions/daylight.texi (daylight): Likewise.
66871         * doc/posix-functions/optarg.texi (optarg): Likewise.
66872         * doc/posix-functions/optarg.texi (opterr): Likewise.
66873         * doc/posix-functions/optarg.texi (optind): Likewise.
66874         * doc/posix-functions/optarg.texi (optopt): Likewise.
66875         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
66876         worked in 1.5.x, and was withdrawn in 1.7.
66877         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
66878         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
66879         cygwin versions.
66880         * doc/posix-functions/perror.texi (perror): Likewise.
66881         * doc/posix-functions/printf.texi (printf): Likewise.
66882         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
66883         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
66884         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
66885         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
66886         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
66887         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
66888         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
66889         Likewise.
66890         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
66891         Likewise.
66892         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
66893         this function.
66894         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
66895         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
66896         Likewise.
66897         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
66898         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
66899         * doc/posix-functions/confstr.texi (confstr): Likewise.
66900         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
66901         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
66902         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
66903         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
66904         * doc/posix-functions/fputws.texi (fputws): Likewise.
66905         * doc/posix-functions/fwide.texi (fwide): Likewise.
66906         * doc/posix-functions/getwc.texi (getwc): Likewise.
66907         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
66908         * doc/posix-functions/putwc.texi (putwc): Likewise.
66909         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
66910         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
66911         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
66912         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
66913         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
66914         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
66915         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
66916         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
66917         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
66918         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
66919         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
66921 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
66923         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
66924         * lib/ioctl.c: Include <sys/ioctl.h>.
66926 2009-01-19  Simon Josefsson  <simon@josefsson.org>
66928         * modules/getdate-tests (Depends-on): Add progname.
66929         * tests/test-getdate.c: Use progname module, to avoid link errors
66930         on non-glibc systems.
66932 2009-01-18  Simon Josefsson  <simon@josefsson.org>
66934         * modules/filenamecat-tests (Depends-on): Add progname.
66935         * modules/fstrcmp-tests (Depends-on): Likewise.
66937         * tests/test-filenamecat.c: Use progname module, to avoid link
66938         errors on non-glibc systems.
66939         * tests/test-fstrcmp.c: Likewise.
66941 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
66943         gettimeofday: avoid warning: nested extern declaration of 'localtime'
66944         * lib/gettimeofday.c: Move extern declaration out of function.
66946 2009-01-18  Bruno Haible  <bruno@clisp.org>
66948         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
66949         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
66950         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
66952 2009-01-18  Bruno Haible  <bruno@clisp.org>
66954         * lib/strftime.c (MEMPCPY): Remove unused macro.
66955         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
66957 2009-01-18  Martin Lambers  <marlam@marlam.de>
66959         New module 'link'.
66960         * lib/unistd.in.h (link): New declaration.
66961         * lib/link.c: New file.
66962         * m4/link.m4: New file.
66963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
66964         HAVE_LINK.
66965         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
66966         * modules/link: New file.
66967         * doc/posix-functions/link.texi: Mention the new module.
66969 2009-01-18  Bruno Haible  <bruno@clisp.org>
66971         * tests/test-avltree_list.c (main): Call set_program_name.
66972         * tests/test-avltree_oset.c (main): Likewise.
66973         * tests/test-obstack-printf.c: Include progname.h.
66974         (main): Call set_program_name.
66975         * tests/test-quotearg.c: Include progname.h.
66976         (main): Call set_program_name.
66977         * tests/test-xmemdup0.c: Include progname.h.
66978         (main): Call set_program_name.
66980 2009-01-18  Bruno Haible  <bruno@clisp.org>
66982         New module 'alphasort'.
66983         * lib/dirent.in.h (alphasort): New declaration.
66984         * lib/alphasort.c: New file, from glibc with modifications.
66985         * m4/alphasort.m4: New file.
66986         * modules/alphasort: New file.
66987         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
66988         HAVE_ALPHASORT.
66989         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
66990         HAVE_ALPHASORT.
66991         * doc/posix-functions/alphasort.texi: Mention the new module and the
66992         portability problems.
66994 2009-01-18  Bruno Haible  <bruno@clisp.org>
66996         New module 'scandir'.
66997         * lib/dirent.in.h (scandir): New declaration.
66998         * lib/scandir.c: New file, from glibc with modifications.
66999         * m4/scandir.m4: New file.
67000         * modules/scandir: New file.
67001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
67002         HAVE_SCANDIR.
67003         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
67004         HAVE_SCANDIR.
67005         * doc/posix-functions/scandir.texi: Mention the new module and the
67006         portability problems.
67008 2009-01-17  Bruno Haible  <bruno@clisp.org>
67010         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
67011         Update documentation.
67012         (func_remove_suffix): Escape all dots in the suffix. Update
67013         documentation.
67014         (func_filter_filelist): Update documentation.
67015         Reported by Ralf Wildenhues.
67017 2009-01-17  Bruno Haible  <bruno@clisp.org>
67019         * modules/dprintf-posix-tests: New file.
67020         * tests/test-dprintf-posix.sh: New file.
67021         * tests/test-dprintf-posix.c: New file.
67023         New modules 'dprintf', 'dprintf-posix'.
67024         * lib/stdio.in.h (dprintf): New declaration.
67025         * lib/dprintf.c: New file.
67026         * m4/dprintf.m4: New file.
67027         * m4/dprintf-posix.m4: New file.
67028         * modules/dprintf: New file.
67029         * modules/dprintf-posix: New file.
67030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
67031         HAVE_DPRINTF, REPLACE_DPRINTF.
67032         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
67033         HAVE_DPRINTF, REPLACE_DPRINTF.
67034         * doc/posix-functions/dprintf.texi: Mention the new modules.
67036 2009-01-17  Bruno Haible  <bruno@clisp.org>
67038         * modules/vdprintf-posix-tests: New file.
67039         * tests/test-vdprintf-posix.sh: New file.
67040         * tests/test-vdprintf-posix.c: New file.
67042         New modules 'vdprintf', 'vdprintf-posix'.
67043         * lib/stdio.in.h (vdprintf): New declaration.
67044         * lib/vdprintf.c: New file.
67045         * m4/vdprintf.m4: New file.
67046         * m4/vdprintf-posix.m4: New file.
67047         * modules/vdprintf: New file.
67048         * modules/vdprintf-posix: New file.
67049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
67050         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67051         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
67052         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67053         * doc/posix-functions/vdprintf.texi: Mention the new modules.
67055 2009-01-17  Bruno Haible  <bruno@clisp.org>
67057         Fix replacement of fopen on mingw.
67058         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
67059         mingw.
67061 2009-01-17  Bruno Haible  <bruno@clisp.org>
67063         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
67064         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
67066 2009-01-17  Bruno Haible  <bruno@clisp.org>
67068         Avoid test-fflush2.sh failure on mingw.
67069         * tests/test-fflush2.c: Include binary-io.h.
67070         (main): Put standard input into binary mode.
67071         * modules/fflush-tests (Depends-on): Add binary-io.
67073 2009-01-17  Bruno Haible  <bruno@clisp.org>
67075         * lib/wchar.in.h: In another particular situation, include only the
67076         system's <wchar.h> file.
67077         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
67078         Reported by Albert Chin-A-Young <china@thewrittenword.com>
67079         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
67081 2009-01-17  Bruno Haible  <bruno@clisp.org>
67083         Support for stripping executables in --enable-relocatable.
67084         * build-aux/install-reloc: Expect one more argument, or an environment
67085         variable RELOC_STRIP_PROG. If set, strip the destination program and
67086         its wrapper.
67087         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
67088         RELOC_STRIP_PROG.
67089         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
67090         to set RELOCATABLE_STRIP.
67091         * NEWS: Mention the new Makefile requirement.
67093 2009-01-17  Bruno Haible  <bruno@clisp.org>
67095         * build-aux/install-reloc: Remove debugging information left over by
67096         C compiler on MacOS X.
67098 2009-01-17  Bruno Haible  <bruno@clisp.org>
67100         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
67101         * lib/progreloc.c (find_executable): Fix type of pointer passed to
67102         _NSGetExecutablePath.
67104 2009-01-16  Jim Meyering  <meyering@redhat.com>
67106         strerror: avoid warnings about discarding "const"
67107         * lib/strerror.c (rpl_strerror): Instead of returning a const
67108         string from each and every "case", use a variable, and add a single
67109         cast after the switch.
67111 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
67113         * lib/arpa_inet.in.h: Add extern "C" block for C++.
67115 2009-01-16  Bruno Haible  <bruno@clisp.org>
67117         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
67118         array initializer syntax that also works in C++ mode.
67119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67121 2009-01-16  Jim Meyering  <meyering@redhat.com>
67123         poll: suppress a warning
67124         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
67125         to ignore "...unsigned expression < 0 is always false" warnings.
67127 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
67129         poll: remove declarations of unused variables
67130         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
67131         sockbuf and optlen.
67133 2009-01-15  Bruno Haible  <bruno@clisp.org>
67135         Make fflush-after-ungetc POSIX compliant on BSD systems.
67136         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
67137         (clear_ungetc_buffer): Implement also for other systems.
67138         (rpl_fflush): On glibc systems, invoke
67139         clear_ungetc_buffer_preserving_position. Otherwise, invoke
67140         clear_ungetc_buffer after fetching the stream's position, not before.
67142 2009-01-15  Bruno Haible  <bruno@clisp.org>
67144         Make fflush-after-ungetc POSIX compliant on glibc systems.
67145         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
67146         after ungetc.
67147         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
67148         (rpl_fflush): On glibc systems, simply call the system's fflush
67149         function after clearing the ungetc buffer.
67150         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
67151         Instead, lseek only to the end of file, then use the system's fseeko
67152         for the rest. On glibc systems, reset the EOF indicator bit.
67154 2009-01-15  Jim Meyering  <meyering@redhat.com>
67156         openmp.m4: revert quote-adding change, for portability to older autoconf
67157         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
67158         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
67159         Simon Josefsson noticed the problem when using autoconf-2.61.
67161 2009-01-15  Bruno Haible  <bruno@clisp.org>
67163         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
67164         * tests/test-fflush2.c (ASSERT): Always fail.
67165         (main): Add two tests for fflush() after ungetc(), taking into account
67166         the Austin Group's clarification.
67167         Suggested by Eric Blake.
67169 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
67171         mktime.m4: remove K&R-style function prototypes
67172         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
67173         for the Sun C++ compiler.
67175 2009-01-14  Bruno Haible  <bruno@clisp.org>
67177         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
67178         while including <wchar.h>.
67179         * lib/wchar.in.h: In two particular situations on HP-UX, include only
67180         the system's <wchar.h> file.
67181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67183 2009-01-14  Bruno Haible  <bruno@clisp.org>
67185         * m4/csharp.m4: Don't mention gettext on the serial number line.
67186         * m4/csharpexec.m4: Likewise.
67187         * m4/eaccess.m4: Likewise.
67188         * m4/javaexec.m4: Likewise.
67189         * m4/sig_atomic_t.m4: Likewise.
67190         * m4/tmpdir.m4: Likewise.
67191         * m4/intldir.m4: Bump gettext version.
67192         * m4/lib-ld.m4: Likewise.
67194 2009-01-14  Bruno Haible  <bruno@clisp.org>
67196         * lib/progname.c (set_program_name): Add more comments.
67197         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
67199 2009-01-14  Simon Josefsson  <simon@josefsson.org>
67201         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
67202         were sys/stat.h does not define it.
67204 2009-01-14  Jim Meyering  <meyering@redhat.com>
67206         many *.m4 files: improve m4 quoting
67207         99% of this change was performed by running the following commands:
67208         git ls-files | grep '\.m4$' | xargs perl -pi \
67209           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
67210           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67211           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67212           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
67213         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
67214         The remainder were to add Copyright dates, increment serial numbers,
67215         undo some changes in comments, exclude m4/intl.m4, and add quotes
67216         around the "1" in ",1" where the unusual spacing prohibited the
67217         above regexps from doing the job.  For more details, see
67218         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
67219         * m4/acl.m4: Modified.
67220         * m4/afs.m4: Likewise.
67221         * m4/alloca.m4: Likewise.
67222         * m4/argp.m4: Likewise.
67223         * m4/argz.m4: Likewise.
67224         * m4/atexit.m4: Likewise.
67225         * m4/bison-i18n.m4: Likewise.
67226         * m4/bison.m4: Likewise.
67227         * m4/byteswap.m4: Likewise.
67228         * m4/c-stack.m4: Likewise.
67229         * m4/c-strtod.m4: Likewise.
67230         * m4/calloc.m4: Likewise.
67231         * m4/canonicalize-lgpl.m4: Likewise.
67232         * m4/chown.m4: Likewise.
67233         * m4/clock_time.m4: Likewise.
67234         * m4/codeset.m4: Likewise.
67235         * m4/copy-file.m4: Likewise.
67236         * m4/csharp.m4: Likewise.
67237         * m4/csharpcomp.m4: Likewise.
67238         * m4/csharpexec.m4: Likewise.
67239         * m4/d-ino.m4: Likewise.
67240         * m4/d-type.m4: Likewise.
67241         * m4/dirfd.m4: Likewise.
67242         * m4/double-slash-root.m4: Likewise.
67243         * m4/eaccess.m4: Likewise.
67244         * m4/eealloc.m4: Likewise.
67245         * m4/environ.m4: Likewise.
67246         * m4/errno_h.m4: Likewise.
67247         * m4/euidaccess.m4: Likewise.
67248         * m4/execute.m4: Likewise.
67249         * m4/fatal-signal.m4: Likewise.
67250         * m4/fchdir.m4: Likewise.
67251         * m4/fcntl_h.m4: Likewise.
67252         * m4/fileblocks.m4: Likewise.
67253         * m4/filenamecat.m4: Likewise.
67254         * m4/findprog.m4: Likewise.
67255         * m4/flexmember.m4: Likewise.
67256         * m4/fnmatch.m4: Likewise.
67257         * m4/fopen.m4: Likewise.
67258         * m4/fpending.m4: Likewise.
67259         * m4/fprintf-posix.m4: Likewise.
67260         * m4/free.m4: Likewise.
67261         * m4/frexp.m4: Likewise.
67262         * m4/frexpl.m4: Likewise.
67263         * m4/fsusage.m4: Likewise.
67264         * m4/ftruncate.m4: Likewise.
67265         * m4/gc-camellia.m4: Likewise.
67266         * m4/gc-random.m4: Likewise.
67267         * m4/gc.m4: Likewise.
67268         * m4/getaddrinfo.m4: Likewise.
67269         * m4/getcwd-abort-bug.m4: Likewise.
67270         * m4/getcwd-path-max.m4: Likewise.
67271         * m4/getdate.m4: Likewise.
67272         * m4/getdomainname.m4: Likewise.
67273         * m4/getgroups.m4: Likewise.
67274         * m4/gethostname.m4: Likewise.
67275         * m4/gethrxtime.m4: Likewise.
67276         * m4/getline.m4: Likewise.
67277         * m4/getloadavg.m4: Likewise.
67278         * m4/getndelim2.m4: Likewise.
67279         * m4/getpass.m4: Likewise.
67280         * m4/gettext.m4: Likewise.
67281         * m4/gettime.m4: Likewise.
67282         * m4/gettimeofday.m4: Likewise.
67283         * m4/gnulib-common.m4: Likewise.
67284         * m4/group-member.m4: Likewise.
67285         * m4/host-os.m4: Likewise.
67286         * m4/iconv.m4: Likewise.
67287         * m4/iconv_open.m4: Likewise.
67288         * m4/inet_ntop.m4: Likewise.
67289         * m4/inet_pton.m4: Likewise.
67290         * m4/inline.m4: Likewise.
67291         * m4/intldir.m4: Likewise.
67292         * m4/intlmacosx.m4: Likewise.
67293         * m4/intmax.m4: Likewise.
67294         * m4/intmax_t.m4: Likewise.
67295         * m4/inttypes.m4: Likewise.
67296         * m4/inttypes_h.m4: Likewise.
67297         * m4/inttypes-pri.m4: Likewise.
67298         * m4/isapipe.m4: Likewise.
67299         * m4/isnand.m4: Likewise.
67300         * m4/isnanf.m4: Likewise.
67301         * m4/isnanl.m4: Likewise.
67302         * m4/javacomp.m4: Likewise.
67303         * m4/javaexec.m4: Likewise.
67304         * m4/jm-winsz1.m4: Likewise.
67305         * m4/jm-winsz2.m4: Likewise.
67306         * m4/lchown.m4: Likewise.
67307         * m4/lcmessage.m4: Likewise.
67308         * m4/ldexpl.m4: Likewise.
67309         * m4/lib-ld.m4: Likewise.
67310         * m4/lib-link.m4: Likewise.
67311         * m4/libsigsegv.m4: Likewise.
67312         * m4/link-follow.m4: Likewise.
67313         * m4/localcharset.m4: Likewise.
67314         * m4/locale-fr.m4: Likewise.
67315         * m4/locale-ja.m4: Likewise.
67316         * m4/locale-tr.m4: Likewise.
67317         * m4/locale-zh.m4: Likewise.
67318         * m4/lock.m4: Likewise.
67319         * m4/longlong.m4: Likewise.
67320         * m4/ls-mntd-fs.m4: Likewise.
67321         * m4/lstat.m4: Likewise.
67322         * m4/malloc.m4: Likewise.
67323         * m4/mathl.m4: Likewise.
67324         * m4/mbrtowc.m4: Likewise.
67325         * m4/mbstate_t.m4: Likewise.
67326         * m4/mbswidth.m4: Likewise.
67327         * m4/memchr.m4: Likewise.
67328         * m4/memcmp.m4: Likewise.
67329         * m4/memcpy.m4: Likewise.
67330         * m4/memmem.m4: Likewise.
67331         * m4/memmove.m4: Likewise.
67332         * m4/mempcpy.m4: Likewise.
67333         * m4/memrchr.m4: Likewise.
67334         * m4/memset.m4: Likewise.
67335         * m4/minmax.m4: Likewise.
67336         * m4/mkdir-slash.m4: Likewise.
67337         * m4/mkdtemp.m4: Likewise.
67338         * m4/mktime.m4: Likewise.
67339         * m4/mmap-anon.m4: Likewise.
67340         * m4/mountlist.m4: Likewise.
67341         * m4/nanosleep.m4: Likewise.
67342         * m4/nls.m4: Likewise.
67343         * m4/nocrash.m4: Likewise.
67344         * m4/open.m4: Likewise.
67345         * m4/openat.m4: Likewise.
67346         * m4/openmp.m4: Likewise.
67347         * m4/pathmax.m4: Likewise.
67348         * m4/perl.m4: Likewise.
67349         * m4/physmem.m4: Likewise.
67350         * m4/pipe.m4: Likewise.
67351         * m4/po.m4: Likewise.
67352         * m4/poll.m4: Likewise.
67353         * m4/posixtm.m4: Likewise.
67354         * m4/posixver.m4: Likewise.
67355         * m4/printf-frexp.m4: Likewise.
67356         * m4/printf-frexpl.m4: Likewise.
67357         * m4/printf-posix.m4: Likewise.
67358         * m4/printf-posix-rpl.m4: Likewise.
67359         * m4/printf.m4: Likewise.
67360         * m4/progtest.m4: Likewise.
67361         * m4/putenv.m4: Likewise.
67362         * m4/readline.m4: Likewise.
67363         * m4/readlink.m4: Likewise.
67364         * m4/readutmp.m4: Likewise.
67365         * m4/realloc.m4: Likewise.
67366         * m4/regex.m4: Likewise.
67367         * m4/relocatable.m4: Likewise.
67368         * m4/relocatable-lib.m4: Likewise.
67369         * m4/rename-dest-slash.m4: Likewise.
67370         * m4/rename.m4: Likewise.
67371         * m4/rmdir-errno.m4: Likewise.
67372         * m4/rmdir.m4: Likewise.
67373         * m4/roundf.m4: Likewise.
67374         * m4/roundl.m4: Likewise.
67375         * m4/rpmatch.m4: Likewise.
67376         * m4/save-cwd.m4: Likewise.
67377         * m4/selinux-selinux-h.m4: Likewise.
67378         * m4/setenv.m4: Likewise.
67379         * m4/settime.m4: Likewise.
67380         * m4/sig2str.m4: Likewise.
67381         * m4/sig_atomic_t.m4: Likewise.
67382         * m4/signalblocking.m4: Likewise.
67383         * m4/signbit.m4: Likewise.
67384         * m4/sigpipe.m4: Likewise.
67385         * m4/sockets.m4: Likewise.
67386         * m4/sockpfaf.m4: Likewise.
67387         * m4/st_dm_mode.m4: Likewise.
67388         * m4/stat-time.m4: Likewise.
67389         * m4/stdbool.m4: Likewise.
67390         * m4/stdint.m4: Likewise.
67391         * m4/stdint_h.m4: Likewise.
67392         * m4/stpcpy.m4: Likewise.
67393         * m4/stpncpy.m4: Likewise.
67394         * m4/strcase.m4: Likewise.
67395         * m4/strchrnul.m4: Likewise.
67396         * m4/strcspn.m4: Likewise.
67397         * m4/strdup.m4: Likewise.
67398         * m4/strftime.m4: Likewise.
67399         * m4/strndup.m4: Likewise.
67400         * m4/strnlen.m4: Likewise.
67401         * m4/strpbrk.m4: Likewise.
67402         * m4/strptime.m4: Likewise.
67403         * m4/strsep.m4: Likewise.
67404         * m4/strtod.m4: Likewise.
67405         * m4/strtoimax.m4: Likewise.
67406         * m4/strtok_r.m4: Likewise.
67407         * m4/strtol.m4: Likewise.
67408         * m4/strtoll.m4: Likewise.
67409         * m4/strtoul.m4: Likewise.
67410         * m4/strtoull.m4: Likewise.
67411         * m4/strtoumax.m4: Likewise.
67412         * m4/strverscmp.m4: Likewise.
67413         * m4/threadlib.m4: Likewise.
67414         * m4/timegm.m4: Likewise.
67415         * m4/tm_gmtoff.m4: Likewise.
67416         * m4/tmpdir.m4: Likewise.
67417         * m4/tmpfile.m4: Likewise.
67418         * m4/tzset.m4: Likewise.
67419         * m4/uintmax_t.m4: Likewise.
67420         * m4/unlinkdir.m4: Likewise.
67421         * m4/unlocked-io.m4: Likewise.
67422         * m4/uptime.m4: Likewise.
67423         * m4/userspec.m4: Likewise.
67424         * m4/utimbuf.m4: Likewise.
67425         * m4/utime.m4: Likewise.
67426         * m4/utimes-null.m4: Likewise.
67427         * m4/utimes.m4: Likewise.
67428         * m4/vararrays.m4: Likewise.
67429         * m4/vasnprintf.m4: Likewise.
67430         * m4/vfprintf-posix.m4: Likewise.
67431         * m4/vprintf-posix.m4: Likewise.
67432         * m4/wait-process.m4: Likewise.
67433         * m4/wchar_t.m4: Likewise.
67434         * m4/wint_t.m4: Likewise.
67435         * m4/write-any-file.m4: Likewise.
67436         * m4/yield.m4: Likewise.
67438 2009-01-13  Bruno Haible  <bruno@clisp.org>
67440         Avoid test-copy-file.sh failures when ACL support insufficient.
67441         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
67442         TESTS_ENVIRONMENT.
67443         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
67444         Reported by Jim Meyering.
67446 2009-01-13  Bruno Haible  <bruno@clisp.org>
67448         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
67449         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
67450         * modules/unistdio/u8-printf-parse (Files): Likewise.
67451         * modules/unistdio/u32-printf-parse (Files): Likewise.
67452         * modules/unistdio/ulc-printf-parse (Files): Likewise.
67454 2009-01-13  Simon Josefsson  <simon@josefsson.org>
67456         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
67457         and m4/inttypes_h.m4 too.
67459 2009-01-12  Eric Blake  <ebb9@byu.net>
67461         tests: IRIX 6.2 cc can't compile -0.0 into .data
67462         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
67463         rather than at compile-time.
67464         * tests/test-floorl.c (minus_zero): Likewise.
67465         * tests/test-frexpl.c (minus_zero): Likewise.
67466         * tests/test-isnan.c (minus_zerol): Likewise.
67467         * tests/test-isnanl.h (minus_zero): Likewise.
67468         * tests/test-ldexpl.c (minus_zero): Likewise.
67469         * tests/test-roundl.c (minus_zero): Likewise.
67470         * tests/test-signbit.c (minus_zerol): Likewise.
67471         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
67472         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
67473         * tests/test-truncl.c (minus_zero): Likewise.
67474         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
67475         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
67476         Reported by Tom G. Christensen and Nelson H. F. Beebe.
67478 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67480         regex: fix glibc bug 9697
67481         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
67482         handling.
67484 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67486         regex: fix glibc bug 697
67487         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
67488         being NULL also if there are no backreferences.
67490 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67492         regex: merge glibc changes
67493         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
67494         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
67495         re_string_skip_chars, re_string_reconstruct): Likewise.
67496         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
67498 2009-01-07  Jim Meyering  <meyering@redhat.com>
67500         poll: filter through cppi
67501         * lib/poll.c: Indent cpp directives to reflect nesting.
67503 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
67505         poll: don't return uninitialized
67506         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
67508 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
67510         avoid compile failure on AIX 6.1
67511         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
67512         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
67514 2009-01-04  Jim Meyering  <meyering@redhat.com>
67516         remove duplicate inclusion of <stdio.h>
67517         * tests/test-fprintf-posix.c: Likewise.
67518         * tests/test-printf-posix.c: Likewise.
67519         * tests/test-snprintf-posix.c: Likewise.
67520         * tests/test-sprintf-posix.c: Likewise.
67521         * tests/test-vasprintf-posix.c: Likewise.
67522         * tests/test-vfprintf-posix.c: Likewise.
67523         * tests/test-vprintf-posix.c: Likewise.
67524         * tests/test-vsnprintf-posix.c: Likewise.
67525         * tests/test-vsprintf-posix.c: Likewise.
67527 2009-01-03  Jim Meyering  <meyering@redhat.com>
67529         gnulib-tool: fix sed-based filtering
67530         * gnulib-tool (func_filter_filelist): Remove extra backslash
67531         in sed_fff_filter definition.
67533 2009-01-02  Jim Meyering  <meyering@redhat.com>
67535         strftime: avoid compilation failure on Solaris 2.6
67536         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
67537         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
67538         Don't #define mbrlen or mbsinit, since now they're guaranteed to
67539         be available.  Reported by Tom G. Christensen.  Details in
67540         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
67542 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67543             Bruno Haible  <bruno@clisp.org>
67545         Speed up gnulib-tool by doing more string processing through shell
67546         built-ins.
67547         * gnulib-tool (fast_func_append): New variable.
67548         (func_remove_prefix, func_remove_suffix): New functions.
67549         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
67550         (func_filter_filelist): New function.
67551         (func_get_dependencies): Use func_remove_suffix instead of sed.
67552         (func_get_automake_snippet): Use func_filter_filelist instead of a
67553         subshell and sed invocation.
67555 2009-01-01  Bruno Haible  <bruno@clisp.org>
67557         Fix a security bug.
67558         * gnulib-tool (func_import, import, update): Don't allow the characters
67559         '"', '$', '`', '\' in macro arguments that become part of commands that
67560         are evaluated.
67562 2009-01-01  Bruno Haible  <bruno@clisp.org>
67564         * gnulib-tool (func_reset_sigpipe): Add more comments.
67566 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67568         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
67569         func_emit_tests_Makefile_am, func_import): Abort loops early if we
67570         already know the answer.
67572 2009-01-01  Jim Meyering  <meyering@redhat.com>
67574         * lib/version-etc.c (version_etc_va): Update copyright year.
67576 2008-12-30  Bruno Haible  <bruno@clisp.org>
67578         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
67579         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
67580         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
67582 2008-12-29  Eric Blake  <ebb9@byu.net>
67584         multiarch: avoid autoconf AC_REQUIRE bug
67585         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
67586         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
67587         2.63 and older.
67588         Reported by Bruno Haible, and analyzed in
67589         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
67591 2008-12-29  Bruno Haible  <bruno@clisp.org>
67593         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
67594         files in subdirectories correctly.
67595         Reported by Ralf Wildenhues.
67597 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67599         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
67600         rather than 'join FILE -', for Solaris join.
67602 2008-12-29  Bruno Haible  <bruno@clisp.org>
67604         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
67605         quoting.
67606         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67607         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
67608         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
67609         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
67610         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
67611         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
67612         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
67613         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
67614         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67615         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
67616         * m4/nls.m4 (AM_NLS): Likewise.
67617         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
67618         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
67619         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67620         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
67621         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
67622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
67623         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
67624         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
67625         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
67626         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67627         * m4/xsize.m4 (gl_XSIZE): Likewise.
67628         Suggested by Jim Meyering.
67630 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67632         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
67633         * lib/parse-duration.c: use a switch instead of cascading if's.
67635 2008-12-29  Eric Blake  <ebb9@byu.net>
67637         wchar.h: supply WEOF on Irix 5.3
67638         * lib/wchar.in.h (wint_t): Also supply WEOF.
67639         * lib/wctype.in.h (wint_t): Likewise.
67640         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
67641         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
67642         Reported by Tom G. Christensen.
67644 2008-12-26  Bruno Haible  <bruno@clisp.org>
67646         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
67647         i486, i586, i686.
67649 2008-12-26  Bruno Haible  <bruno@clisp.org>
67651         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
67653 2008-12-26  Bruno Haible  <bruno@clisp.org>
67655         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
67656         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
67657         not __STDC_CONSTANT_MACROS.
67658         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
67660 2008-12-25  Bruno Haible  <bruno@clisp.org>
67662         Add support for universal builds to vasnprintf.
67663         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
67664         universal builds, guess no.
67665         * modules/vasnprintf-posix (Depends-on): Add multiarch.
67666         * modules/vasprintf-posix (Depends-on): Likewise.
67667         * modules/fprintf-posix (Depends-on): Likewise.
67668         * modules/vfprintf-posix (Depends-on): Likewise.
67669         * modules/snprintf-posix (Depends-on): Likewise.
67670         * modules/vsnprintf-posix (Depends-on): Likewise.
67671         * modules/sprintf-posix (Depends-on): Likewise.
67672         * modules/vsprintf-posix (Depends-on): Likewise.
67673         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
67674         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67675         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67676         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67677         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67678         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67679         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67681         Add support for universal builds to <inttypes.h>.
67682         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
67683         _SCNu64_PREFIX): In Apple
67684         universal builds, define directly, using _LP64.
67685         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
67686         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
67687         * modules/inttypes (Depends-on): Add multiarch.
67688         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67690         Add support for universal builds to <stdint.h>.
67691         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
67692         universal builds, define directly, using _LP64.
67693         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
67694         Apple universal builds, don't test for the size and suffix of ptrdiff_t
67695         and size_t.
67696         * modules/stdint (Depends-on): Add multiarch.
67697         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67699         New module 'multiarch'.
67700         * modules/multiarch: New file.
67701         * m4/multiarch.m4: New file.
67703 2008-12-25  Bruno Haible  <bruno@clisp.org>
67705         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
67707 2008-12-25  Bruno Haible  <bruno@clisp.org>
67709         * modules/btowc (License): Relicense under LGPLv2+.
67710         * modules/mbsinit (License): Likewise.
67711         * modules/mbrtowc (License): Likewise.
67712         * modules/wcrtomb (License): Likewise.
67713         * modules/streq (License): Likewise.
67714         Reported by David Lutterkort <lutter@redhat.com>.
67716 2008-12-23  Bruno Haible  <bruno@clisp.org>
67718         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
67720 2008-12-23  Bruno Haible  <bruno@clisp.org>
67722         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
67723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
67724         GETADDRINFO_LIB, not in LIBS.
67725         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
67726         * modules/canon-host (Link): Likewise.
67727         * NEWS: Mention the change.
67728         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
67729         GETADDRINFO_LIB.
67731 2008-12-22  Bruno Haible  <bruno@clisp.org>
67733         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
67734         * doc/posix-functions/iswalpha_l.texi: Likewise.
67735         * doc/posix-functions/iswblank_l.texi: Likewise.
67736         * doc/posix-functions/iswcntrl_l.texi: Likewise.
67737         * doc/posix-functions/iswctype_l.texi: Likewise.
67738         * doc/posix-functions/iswdigit_l.texi: Likewise.
67739         * doc/posix-functions/iswgraph_l.texi: Likewise.
67740         * doc/posix-functions/iswlower_l.texi: Likewise.
67741         * doc/posix-functions/iswprint_l.texi: Likewise.
67742         * doc/posix-functions/iswpunct_l.texi: Likewise.
67743         * doc/posix-functions/iswspace_l.texi: Likewise.
67744         * doc/posix-functions/iswupper_l.texi: Likewise.
67745         * doc/posix-functions/iswxdigit_l.texi: Likewise.
67746         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
67747         * doc/posix-functions/open_wmemstream.texi: Likewise.
67748         * doc/posix-functions/swscanf.texi: Likewise.
67749         * doc/posix-functions/towctrans_l.texi: Likewise.
67750         * doc/posix-functions/towlower.texi: Likewise.
67751         * doc/posix-functions/towlower_l.texi: Likewise.
67752         * doc/posix-functions/towupper.texi: Likewise.
67753         * doc/posix-functions/towupper_l.texi: Likewise.
67754         * doc/posix-functions/vfwprintf.texi: Likewise.
67755         * doc/posix-functions/vfwscanf.texi: Likewise.
67756         * doc/posix-functions/vswscanf.texi: Likewise.
67757         * doc/posix-functions/vwprintf.texi: Likewise.
67758         * doc/posix-functions/vwscanf.texi: Likewise.
67759         * doc/posix-functions/wcpcpy.texi: Likewise.
67760         * doc/posix-functions/wcpncpy.texi: Likewise.
67761         * doc/posix-functions/wcscasecmp.texi: Likewise.
67762         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
67763         * doc/posix-functions/wcscoll_l.texi: Likewise.
67764         * doc/posix-functions/wcsdup.texi: Likewise.
67765         * doc/posix-functions/wcsncasecmp.texi: Likewise.
67766         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
67767         * doc/posix-functions/wcsnlen.texi: Likewise.
67768         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67769         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
67770         * doc/posix-functions/wctrans_l.texi: Likewise.
67771         * doc/posix-functions/wctype_l.texi: Likewise.
67772         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
67773         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
67774         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
67775         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
67776         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
67777         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
67778         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
67779         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
67780         * doc/glibc-functions/wcschrnul.texi: Likewise.
67781         * doc/glibc-functions/wcsftime_l.texi: Likewise.
67782         * doc/glibc-functions/wcstod_l.texi: Likewise.
67783         * doc/glibc-functions/wcstof_l.texi: Likewise.
67784         * doc/glibc-functions/wcstol_l.texi: Likewise.
67785         * doc/glibc-functions/wcstold_l.texi: Likewise.
67786         * doc/glibc-functions/wcstoll_l.texi: Likewise.
67787         * doc/glibc-functions/wcstoq.texi: Likewise.
67788         * doc/glibc-functions/wcstoul_l.texi: Likewise.
67789         * doc/glibc-functions/wcstoull_l.texi: Likewise.
67790         * doc/glibc-functions/wcstouq.texi: Likewise.
67791         * doc/glibc-functions/wmempcpy.texi: Likewise.
67793 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
67794             Eric Blake  <ebb9@byu.net>
67795             Paolo Bonzini  <bonzini@gnu.org>
67796             Bruno Haible  <bruno@clisp.org>
67798         Make c-stack work on Haiku.
67799         * lib/c-stack.c (SA_ONSTACK): Define fallback.
67800         (c_stack_action): Use SA_ONSTACK flag.
67802 2008-12-22  Bruno Haible  <bruno@clisp.org>
67804         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
67806 2008-12-22  Bruno Haible  <bruno@clisp.org>
67808         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
67809         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
67810         being overridden.
67811         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
67812         New macros.
67813         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
67814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
67815         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
67816         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
67818 2008-12-22  Bruno Haible  <bruno@clisp.org>
67820         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
67821         from test code.
67823 2008-12-22  Eric Blake  <ebb9@byu.net>
67825         Avoid gcc warnings on cygwin.
67826         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
67827         Avoid unused variable.
67828         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
67829         Likewise.
67831 2008-12-22  Bruno Haible  <bruno@clisp.org>
67833         Remove HAVE_MBRTOWC conditionals.
67834         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
67835         (mbscasecmp): Assume mbrtowc function.
67836         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
67837         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
67838         * lib/mbschr.c: Include mbuiter.h unconditionally.
67839         (mbschr): Assume mbrtowc function.
67840         * lib/mbscspn.c: Include mbuiter.h unconditionally.
67841         (mbscspn): Assume mbrtowc function.
67842         * lib/mbslen.c: Include mbuiter.h unconditionally.
67843         (mbslen): Assume mbrtowc function.
67844         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
67845         (mbsncasecmp): Assume mbrtowc function.
67846         * lib/mbsnlen.c: Include mbiter.h unconditionally.
67847         (mbsnlen): Assume mbrtowc function.
67848         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
67849         (mbspbrk): Assume mbrtowc function.
67850         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
67851         (mbspcasecmp): Assume mbrtowc function.
67852         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
67853         (mbsrchr): Assume mbrtowc function.
67854         * lib/mbssep.c: Include mbuiter.h unconditionally.
67855         (mbssep): Assume mbrtowc function.
67856         * lib/mbsspn.c: Include mbuiter.h unconditionally.
67857         (mbsspn): Assume mbrtowc function.
67858         * lib/mbsstr.c: Include mbuiter.h unconditionally.
67859         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
67860         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
67861         (mbstok_r): Assume mbrtowc function.
67862         * lib/propername.c: Include mbuiter.h unconditionally.
67863         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
67864         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
67865         (trim2): Assume mbrtowc function.
67866         * lib/mbswidth.c (mbsinit): Remove fallback definition.
67867         (mbsnwidth): Assume mbrtowc function.
67868         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
67869         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
67870         fallback definitions.
67871         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
67873 2008-12-22  Bruno Haible  <bruno@clisp.org>
67875         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
67877 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
67879         * modules/regex: Request emulations for the mb*/wc* functions we need.
67880         * m4/regex.m4: Don't look for those functions here.
67881         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
67883 2008-12-22  Bruno Haible  <bruno@clisp.org>
67885         * modules/fnmatch (Depends-on): Remove duplicated dependency.
67887 2008-12-21  Bruno Haible  <bruno@clisp.org>
67889         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
67890         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
67891         (Include): Remove conditionalization.
67892         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
67893         (Include): Remove conditionalization.
67894         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
67895         (Include): Remove conditionalization.
67896         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
67897         * m4/mbfile.m4 (gl_MBFILE): Likewise.
67898         * NEWS: Mention the change.
67899         Reported by Alan Hourihane <alanh@fairlite.co.uk>
67900         via Sergey Poznyakoff <gray@gnu.org.ua>.
67902 2008-12-21  Bruno Haible  <bruno@clisp.org>
67904         * MODULES.html.sh (Extended multibyte and wide character utilities
67905         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
67906         wcrtomb, wcsrtombs.
67907         (Support for systems lacking POSIX:2008): Add accept, bind, close,
67908         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
67909         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
67910         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
67912 2008-12-21  Bruno Haible  <bruno@clisp.org>
67914         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
67916 2008-12-21  Bruno Haible  <bruno@clisp.org>
67918         * modules/wcsnrtombs-tests: New file.
67919         * tests/test-wcsnrtombs1.sh: New file.
67920         * tests/test-wcsnrtombs2.sh: New file.
67921         * tests/test-wcsnrtombs3.sh: New file.
67922         * tests/test-wcsnrtombs4.sh: New file.
67923         * tests/test-wcsnrtombs.c: New file.
67925         New module 'wcsnrtombs'.
67926         * lib/wchar.in.h (wcsnrtombs): New declaration.
67927         * lib/wcsnrtombs.c: New file.
67928         * lib/wcsrtombs-state.c: New file.
67929         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
67930         (internal_state): Remove variable.
67931         * m4/wcsnrtombs.m4: New file.
67932         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
67933         compilation units.
67934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
67935         HAVE_WCSNRTOMBS.
67936         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
67937         HAVE_WCSNRTOMBS.
67938         * modules/wcsnrtombs: New file.
67939         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
67940         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
67942 2008-12-21  Bruno Haible  <bruno@clisp.org>
67944         * modules/wcsrtombs-tests: New file.
67945         * tests/test-wcsrtombs1.sh: New file.
67946         * tests/test-wcsrtombs2.sh: New file.
67947         * tests/test-wcsrtombs3.sh: New file.
67948         * tests/test-wcsrtombs4.sh: New file.
67949         * tests/test-wcsrtombs.c: New file.
67951         New module 'wcsrtombs'.
67952         * lib/wchar.in.h (wcsrtombs): New declaration.
67953         * lib/wcsrtombs.c: New file.
67954         * m4/wcsrtombs.m4: New file.
67955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
67956         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
67957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
67958         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
67959         * modules/wcsrtombs: New file.
67960         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
67961         bugs.
67963 2008-12-21  Bruno Haible  <bruno@clisp.org>
67965         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
67966         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
67967         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
67968         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
67969         if not correct.
67970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
67971         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
67972         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67973         m4/locale-zh.m4, m4/codeset.m4.
67974         * doc/posix-functions/wcrtomb.texi: Document the bug.
67976 2008-12-21  Bruno Haible  <bruno@clisp.org>
67978         Work around a btowc() bug on IRIX 6.5.
67979         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
67980         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
67981         REPLACE_WTOBC if not.
67982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
67983         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
67984         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
67986 2008-12-21  Bruno Haible  <bruno@clisp.org>
67988         * modules/wcrtomb-tests: New file.
67989         * tests/test-wcrtomb.sh: New file.
67990         * tests/test-wcrtomb.c: New file.
67992         New module 'wcrtomb'.
67993         * lib/wchar.in.h (wcrtomb): New declaration.
67994         * lib/wcrtomb.c: New file.
67995         * m4/wcrtomb.m4: New file.
67996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
67997         HAVE_WCRTOMB.
67998         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
67999         HAVE_WCRTOMB.
68000         * modules/wcrtomb: New file.
68001         * doc/posix-functions/wcrtomb.texi: Mention the new module.
68003 2008-12-21  Bruno Haible  <bruno@clisp.org>
68005         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
68006         * modules/mbsrtowcs (Files): Likewise.
68007         * modules/wctob (Files): Likewise.
68008         * modules/c-strcase-tests (Files): Likewise.
68009         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
68010         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
68011         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
68012         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
68013         * modules/vasnprintf-posix-tests (Files): Likewise.
68015 2008-12-21  William Pursell  <bill.pursell@gmail.com>
68017         gitlog-to-changelog: pass all command-line arguments to git-log
68018         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
68019         it is sometimes convenient to filter the commits in various ways.
68020         gitlog-to-changelog only allows --since to specify a start date,
68021         but git-log itself supports many other filtering mechanisms.
68022         At the moment, I want to filter by branch name.  Rather than
68023         adding a --branch option to gitlog-to-changelog, it seems more
68024         flexible to simply pass all options directly to git-log and let
68025         git do the work.  Notice that this effectively makes --since a
68026         redundant option for gitlog-to-changelog, but removing it would
68027         require current usage to change since calls would then require
68028         an additional '--'.
68030 2008-12-21  Bruno Haible  <bruno@clisp.org>
68032         * modules/mbsnrtowcs-tests: New file.
68033         * tests/test-mbsnrtowcs1.sh: New file.
68034         * tests/test-mbsnrtowcs2.sh: New file.
68035         * tests/test-mbsnrtowcs3.sh: New file.
68036         * tests/test-mbsnrtowcs4.sh: New file.
68037         * tests/test-mbsnrtowcs.c: New file.
68039         New module 'mbsnrtowcs'.
68040         * lib/wchar.in.h (mbsnrtowcs): New declaration.
68041         * lib/mbsnrtowcs.c: New file.
68042         * lib/mbsrtowcs-state.c: New file.
68043         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
68044         (internal_state): Remove variable.
68045         * m4/mbsnrtowcs.m4: New file.
68046         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
68047         compilation units.
68048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
68049         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68050         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
68051         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68052         * modules/mbsnrtowcs: New file.
68053         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
68054         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
68055         portability problem.
68057 2008-12-21  Bruno Haible  <bruno@clisp.org>
68059         Work around mbsrtowcs bug.
68060         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
68061         (gl_FUNC_MBSRTOWCS): Invoke it.
68062         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68063         m4/locale-zh.m4.
68064         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
68066 2008-12-21  Bruno Haible  <bruno@clisp.org>
68068         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
68070 2008-12-21  Bruno Haible  <bruno@clisp.org>
68072         Update doc for AIX.
68073         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
68074         16-bit wchar_t type.
68075         * doc/posix-functions/btowc.texi: Likewise.
68076         * doc/posix-functions/fgetwc.texi: Likewise.
68077         * doc/posix-functions/fgetws.texi: Likewise.
68078         * doc/posix-functions/fputwc.texi: Likewise.
68079         * doc/posix-functions/fputws.texi: Likewise.
68080         * doc/posix-functions/fwide.texi: Likewise.
68081         * doc/posix-functions/fwprintf.texi: Likewise.
68082         * doc/posix-functions/fwscanf.texi: Likewise.
68083         * doc/posix-functions/getwchar.texi: Likewise.
68084         * doc/posix-functions/getwc.texi: Likewise.
68085         * doc/posix-functions/iswalnum.texi: Likewise.
68086         * doc/posix-functions/iswalpha.texi: Likewise.
68087         * doc/posix-functions/iswblank.texi: Likewise.
68088         * doc/posix-functions/iswcntrl.texi: Likewise.
68089         * doc/posix-functions/iswctype.texi: Likewise.
68090         * doc/posix-functions/iswdigit.texi: Likewise.
68091         * doc/posix-functions/iswgraph.texi: Likewise.
68092         * doc/posix-functions/iswlower.texi: Likewise.
68093         * doc/posix-functions/iswprint.texi: Likewise.
68094         * doc/posix-functions/iswpunct.texi: Likewise.
68095         * doc/posix-functions/iswspace.texi: Likewise.
68096         * doc/posix-functions/iswupper.texi: Likewise.
68097         * doc/posix-functions/iswxdigit.texi: Likewise.
68098         * doc/posix-functions/mbrtowc.texi: Likewise.
68099         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68100         * doc/posix-functions/mbstowcs.texi: Likewise.
68101         * doc/posix-functions/mbtowc.texi: Likewise.
68102         * doc/posix-functions/putwchar.texi: Likewise.
68103         * doc/posix-functions/putwc.texi: Likewise.
68104         * doc/posix-functions/swprintf.texi: Likewise.
68105         * doc/posix-functions/tolower.texi: Likewise.
68106         * doc/posix-functions/toupper.texi: Likewise.
68107         * doc/posix-functions/towctrans.texi: Likewise.
68108         * doc/posix-functions/ungetwc.texi: Likewise.
68109         * doc/posix-functions/vswprintf.texi: Likewise.
68110         * doc/posix-functions/wcrtomb.texi: Likewise.
68111         * doc/posix-functions/wcscat.texi: Likewise.
68112         * doc/posix-functions/wcschr.texi: Likewise.
68113         * doc/posix-functions/wcscmp.texi: Likewise.
68114         * doc/posix-functions/wcscoll.texi: Likewise.
68115         * doc/posix-functions/wcscpy.texi: Likewise.
68116         * doc/posix-functions/wcscspn.texi: Likewise.
68117         * doc/posix-functions/wcsftime.texi: Likewise.
68118         * doc/posix-functions/wcslen.texi: Likewise.
68119         * doc/posix-functions/wcsncat.texi: Likewise.
68120         * doc/posix-functions/wcsncmp.texi: Likewise.
68121         * doc/posix-functions/wcsncpy.texi: Likewise.
68122         * doc/posix-functions/wcspbrk.texi: Likewise.
68123         * doc/posix-functions/wcsrchr.texi: Likewise.
68124         * doc/posix-functions/wcsrtombs.texi: Likewise.
68125         * doc/posix-functions/wcsspn.texi: Likewise.
68126         * doc/posix-functions/wcsstr.texi: Likewise.
68127         * doc/posix-functions/wcstod.texi: Likewise.
68128         * doc/posix-functions/wcstof.texi: Likewise.
68129         * doc/posix-functions/wcstoimax.texi: Likewise.
68130         * doc/posix-functions/wcstok.texi: Likewise.
68131         * doc/posix-functions/wcstold.texi: Likewise.
68132         * doc/posix-functions/wcstoll.texi: Likewise.
68133         * doc/posix-functions/wcstol.texi: Likewise.
68134         * doc/posix-functions/wcstombs.texi: Likewise.
68135         * doc/posix-functions/wcstoull.texi: Likewise.
68136         * doc/posix-functions/wcstoul.texi: Likewise.
68137         * doc/posix-functions/wcstoumax.texi: Likewise.
68138         * doc/posix-functions/wcswidth.texi: Likewise.
68139         * doc/posix-functions/wcsxfrm.texi: Likewise.
68140         * doc/posix-functions/wctob.texi: Likewise.
68141         * doc/posix-functions/wctomb.texi: Likewise.
68142         * doc/posix-functions/wctrans.texi: Likewise.
68143         * doc/posix-functions/wctype.texi: Likewise.
68144         * doc/posix-functions/wcwidth.texi: Likewise.
68145         * doc/posix-functions/wmemchr.texi: Likewise.
68146         * doc/posix-functions/wmemcmp.texi: Likewise.
68147         * doc/posix-functions/wmemcpy.texi: Likewise.
68148         * doc/posix-functions/wmemmove.texi: Likewise.
68149         * doc/posix-functions/wmemset.texi: Likewise.
68150         * doc/posix-functions/wprintf.texi: Likewise.
68151         * doc/posix-functions/wscanf.texi: Likewise.
68153 2008-12-21  Bruno Haible  <bruno@clisp.org>
68155         Update doc for HP-UX 11.11.
68156         * doc/posix-functions/btowc.texi: Clarify that the function is missing
68157         in HP-UX version 11.00, not in all versions of HP-UX 11.
68158         * doc/posix-functions/fwide.texi: Likewise.
68159         * doc/posix-functions/fwprintf.texi: Likewise.
68160         * doc/posix-functions/fwscanf.texi: Likewise.
68161         * doc/posix-functions/inet_ntop.texi: Likewise.
68162         * doc/posix-functions/inet_pton.texi: Likewise.
68163         * doc/posix-functions/mbrlen.texi: Likewise.
68164         * doc/posix-functions/mbrtowc.texi: Likewise.
68165         * doc/posix-functions/mbsinit.texi: Likewise.
68166         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68167         * doc/posix-functions/swprintf.texi: Likewise.
68168         * doc/posix-functions/swscanf.texi: Likewise.
68169         * doc/posix-functions/towctrans.texi: Likewise.
68170         * doc/posix-functions/vfwprintf.texi: Likewise.
68171         * doc/posix-functions/vswprintf.texi: Likewise.
68172         * doc/posix-functions/vwprintf.texi: Likewise.
68173         * doc/posix-functions/wcrtomb.texi: Likewise.
68174         * doc/posix-functions/wcsrtombs.texi: Likewise.
68175         * doc/posix-functions/wcsstr.texi: Likewise.
68176         * doc/posix-functions/wctob.texi: Likewise.
68177         * doc/posix-functions/wctrans.texi: Likewise.
68178         * doc/posix-functions/wmemchr.texi: Likewise.
68179         * doc/posix-functions/wmemcmp.texi: Likewise.
68180         * doc/posix-functions/wmemcpy.texi: Likewise.
68181         * doc/posix-functions/wmemmove.texi: Likewise.
68182         * doc/posix-functions/wmemset.texi: Likewise.
68183         * doc/posix-functions/wprintf.texi: Likewise.
68184         * doc/posix-functions/wscanf.texi: Likewise.
68186 2008-12-21  Bruno Haible  <bruno@clisp.org>
68188         Work around a portability problem.
68189         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
68190         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
68192 2008-12-20  Bruno Haible  <bruno@clisp.org>
68194         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
68195         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
68196         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
68197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
68198         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
68200         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
68201         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
68202         set.
68203         (GNULIB_defined_mbstate_t): New macro.
68204         (mbsinit): Redefine if REPLACE_MBSINIT is set.
68205         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
68206         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
68207         reuses the system's mbrtowc function but works around the bugs.
68208         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
68209         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
68210         macros.
68211         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
68212         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
68213         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
68214         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
68215         REPLACE_MBSINIT if mbsinit needs to be overridden.
68216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
68217         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68218         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
68219         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68220         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68221         m4/locale-zh.m4.
68222         (Depends): Add mbsinit.
68223         * modules/mbsinit (Depends): Add mbrtowc.
68224         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
68226 2008-12-20  Bruno Haible  <bruno@clisp.org>
68228         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
68229         so that there are no conversion errors on AIX.
68230         * tests/test-mbsrtowcs.c (main): LIkewise.
68232 2008-12-20  Bruno Haible  <bruno@clisp.org>
68234         Work around wctob bug on Solaris <= 9.
68235         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
68236         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
68237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
68238         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
68239         * modules/wctob (Files): Add m4/locale-fr.m4.
68240         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
68242 2008-12-20  Bruno Haible  <bruno@clisp.org>
68244         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
68245         /dev/null.
68246         * tests/test-select-in.sh: Likewise.
68247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68249 2008-12-20  Bruno Haible  <bruno@clisp.org>
68251         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
68252         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
68253         Cygwin 1.5.x.
68255 2008-12-20  Bruno Haible  <bruno@clisp.org>
68257         Ensure mbstate_t is defined on HP-UX 11.11.
68258         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
68259         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
68260         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
68261         AC_USE_SYSTEM_EXTENSIONS.
68262         * modules/fnmatch (Depends-on): Add extensions.
68263         * modules/mbrlen (Depends-on): Likewise.
68264         * modules/mbrtowc (Depends-on): Likewise.
68265         * modules/mbsinit (Depends-on): Likewise.
68266         * modules/mbsrtowcs (Depends-on): Likewise.
68267         * modules/mbswidth (Depends-on): Likewise.
68268         * modules/quotearg (Depends-on): Likewise.
68269         * modules/strftime (Depends-on): Likewise.
68271 2008-12-20  Bruno Haible  <bruno@clisp.org>
68273         Ensure wctob is declared on IRIX 6.5.
68274         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
68275         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
68276         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
68277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
68278         of HAVE_WCTOB.
68279         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
68280         HAVE_WCTOB.
68281         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
68283 2008-12-19  Bruno Haible  <bruno@clisp.org>
68285         * modules/mbsrtowcs-tests: New file.
68286         * tests/test-mbsrtowcs1.sh: New file.
68287         * tests/test-mbsrtowcs2.sh: New file.
68288         * tests/test-mbsrtowcs3.sh: New file.
68289         * tests/test-mbsrtowcs4.sh: New file.
68290         * tests/test-mbsrtowcs.c: New file.
68292         New module 'mbsrtowcs'.
68293         * lib/wchar.in.h (mbsrtowcs): New declaration.
68294         * lib/mbsrtowcs.c: New file.
68295         * m4/mbsrtowcs.m4: New file.
68296         * modules/mbsrtowcs: New file.
68297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
68298         HAVE_MBSRTOWCS.
68299         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
68300         HAVE_MBSRTOWCS.
68301         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
68303 2008-12-19  Bruno Haible  <bruno@clisp.org>
68305         New module 'mbrlen'.
68306         * lib/wchar.in.h (mbrlen): New declaration.
68307         * lib/mbrlen.c: New file.
68308         * m4/mbrlen.m4: New file.
68309         * modules/mbrlen: New file.
68310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
68311         HAVE_MBRLEN.
68312         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
68313         HAVE_MBRLEN.
68314         * doc/posix-functions/mbrlen.texi: Document the new module.
68316 2008-12-19  Bruno Haible  <bruno@clisp.org>
68318         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
68319         * modules/mbrtowc (Depends-on): Add verify.
68320         Suggested by Paul Eggert.
68322 2008-12-18  Bruno Haible  <bruno@clisp.org>
68324         * modules/mbsinit-tests: New file.
68325         * tests/test-mbsinit.sh: New file.
68326         * tests/test-mbsinit.c: New file.
68328 2008-12-18  Bruno Haible  <bruno@clisp.org>
68330         * modules/mbrtowc-tests: New file.
68331         * tests/test-mbrtowc1.sh: New file.
68332         * tests/test-mbrtowc2.sh: New file.
68333         * tests/test-mbrtowc3.sh: New file.
68334         * tests/test-mbrtowc4.sh: New file.
68335         * tests/test-mbrtowc.c: New file.
68337         New module 'mbrtowc'.
68338         * lib/wchar.in.h (mbstate_t): Override when the system does not have
68339         mbsinit and mbrtowc.
68340         (mbrtowc): New declaration.
68341         * lib/mbrtowc.c: New file.
68342         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
68343         * modules/mbrtowc: New file.
68344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
68345         HAVE_MBRTOWC.
68346         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
68347         HAVE_MBRTOWC.
68348         * doc/posix-functions/mbrtowc.texi: Document the new module.
68350 2008-12-18  Bruno Haible  <bruno@clisp.org>
68352         New module 'wctob'.
68353         * lib/wchar.in.h (wctob): New declaration.
68354         * lib/wctob.c: New file.
68355         * m4/wctob.m4: New file.
68356         * modules/wctob: New file.
68357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
68358         HAVE_WCTOB.
68359         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
68360         * doc/posix-functions/wctob.texi: Document the new module.
68362 2008-12-18  Bruno Haible  <bruno@clisp.org>
68364         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
68365         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
68367 2008-12-18  Simon Josefsson  <simon@josefsson.org>
68369         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
68370         G. Christensen" <tgc@jupiterrise.com>.
68372         * lib/flock.c: Need to include errno.h.  Reported by "Tom
68373         G. Christensen" <tgc@jupiterrise.com>.
68375         * lib/flock.c: Need to include string.h.  Reported by "Tom
68376         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
68377         <ebb9@byu.net>.
68379 2008-12-18  Bruno Haible  <bruno@clisp.org>
68381         * m4/locale-ja.m4: New file, from GNU gettext.
68383 2008-12-17  Bruno Haible  <bruno@clisp.org>
68385         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
68386         Suggested by Eric Blake.
68388 2008-12-17  Bruno Haible  <bruno@clisp.org>
68390         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
68392 2008-12-17  Bruno Haible  <bruno@clisp.org>
68394         * lib/mbsinit.c: Include verify.h. Verify an assumption.
68395         * modules/mbsinit (Depends-on): Add verify.
68396         Suggested by Paul Eggert.
68398 2008-12-17  Bruno Haible  <bruno@clisp.org>
68400         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
68401         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
68402         gl_FUNC_MBRTOWC.
68403         * m4/mbiter.m4 (gl_MBITER): LIkewise.
68404         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
68405         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
68406         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
68407         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
68408         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
68409         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
68410         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
68411         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
68412         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
68413         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
68414         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
68415         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
68416         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
68417         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
68418         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68419         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
68420         * modules/trim (configure.ac): Likewise.
68422 2008-12-17  Bruno Haible  <bruno@clisp.org>
68424         * modules/btowc-tests: New file.
68425         * tests/test-btowc1.sh: New file.
68426         * tests/test-btowc2.sh: New file.
68427         * tests/test-btowc.c: New file.
68429         New module 'btowc'.
68430         * lib/wchar.in.h (btowc): New declaration.
68431         * lib/btowc.c: New file.
68432         * m4/btowc.m4: New file.
68433         * modules/btowc: New file.
68434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
68435         HAVE_BTOWC.
68436         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
68437         * doc/posix-functions/btowc.texi: Document the new module.
68439 2008-12-17  Bruno Haible  <bruno@clisp.org>
68441         New module 'mbsinit'.
68442         * lib/wchar.in.h (mbsinit): New declaration.
68443         * lib/mbsinit.c: New file.
68444         * m4/mbsinit.m4: New file.
68445         * modules/mbsinit: New file.
68446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
68447         HAVE_MBSINIT.
68448         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
68449         HAVE_MBSINIT.
68450         * doc/posix-functions/mbsinit.texi: Document the new module.
68452 2008-12-16  Bruno Haible  <bruno@clisp.org>
68454         * lib/unistd.in.h: Add comment.
68455         * tests/test-environ.c: Don't include <stdlib.h>.
68457 2008-12-16  Bruno Haible  <bruno@clisp.org>
68459         * lib/parse-duration.h (parse_duration): Document return value
68460         convention.
68461         * lib/parse-duration.c: Include specification header first. Add
68462         comments.
68463         (_): Remove macro.
68464         (parse_year_month_day, parse_hour_minute_second): Move side effects
68465         outside of strchr call.
68466         (parse_non_iso8601): Move side effects outside of isspace call.
68467         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
68468         call.
68470 2008-12-16  Bruno Haible  <bruno@clisp.org>
68472         * tests/test-parse-duration.sh: Produce no output when the test
68473         succeeds.
68475 2008-12-16  Bruno Haible  <bruno@clisp.org>
68477         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
68478         expressions.
68480 2008-12-15  Bruno Haible  <bruno@clisp.org>
68482         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
68483         * doc/glibc-functions/flistxattr.texi: Likewise.
68484         * doc/glibc-functions/fopencookie.texi: Likewise.
68485         * doc/glibc-functions/fremovexattr.texi: Likewise.
68486         * doc/glibc-functions/fsetxattr.texi: Likewise.
68487         * doc/glibc-functions/getxattr.texi: Likewise.
68488         * doc/glibc-functions/lgetxattr.texi: Likewise.
68489         * doc/glibc-functions/listxattr.texi: Likewise.
68490         * doc/glibc-functions/llistxattr.texi: Likewise.
68491         * doc/glibc-functions/lremovexattr.texi: Likewise.
68492         * doc/glibc-functions/lsetxattr.texi: Likewise.
68493         * doc/glibc-functions/removexattr.texi: Likewise.
68494         * doc/glibc-functions/setxattr.texi: Likewise.
68495         * doc/posix-functions/open_memstream.texi: Likewise.
68497 2008-12-15  Eric Blake  <ebb9@byu.net>
68499         Update doc for cygwin 1.7.
68500         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
68501         functions.
68502         * doc/posix-functions/fchmodat.texi: Likewise.
68503         * doc/posix-functions/fchownat.texi: Likewise.
68504         * doc/posix-functions/fdopendir.texi: Likewise.
68505         * doc/posix-functions/fmemopen.texi: Likewise.
68506         * doc/posix-functions/freeaddrinfo.texi: Likewise.
68507         * doc/posix-functions/fstatat.texi: Likewise.
68508         * doc/posix-functions/futimens.texi: Likewise.
68509         * doc/posix-functions/gai_strerror.texi: Likewise.
68510         * doc/posix-functions/getaddrinfo.texi: Likewise.
68511         * doc/posix-functions/getnameinfo.texi: Likewise.
68512         * doc/posix-functions/if_freenameindex.texi: Likewise.
68513         * doc/posix-functions/if_indextoname.texi: Likewise.
68514         * doc/posix-functions/if_nameindex.texi: Likewise.
68515         * doc/posix-functions/if_nametoindex.texi: Likewise.
68516         * doc/posix-functions/insque.texi: Likewise.
68517         * doc/posix-functions/linkat.texi: Likewise.
68518         * doc/posix-functions/llrint.texi: Likewise.
68519         * doc/posix-functions/llrintf.texi: Likewise.
68520         * doc/posix-functions/llrintl.texi: Likewise.
68521         * doc/posix-functions/lockf.texi: Likewise.
68522         * doc/posix-functions/lrintl.texi: Likewise.
68523         * doc/posix-functions/mkdirat.texi: Likewise.
68524         * doc/posix-functions/mkfifoat.texi: Likewise.
68525         * doc/posix-functions/mknodat.texi: Likewise.
68526         * doc/posix-functions/mq_close.texi: Likewise.
68527         * doc/posix-functions/mq_getattr.texi: Likewise.
68528         * doc/posix-functions/mq_notify.texi: Likewise.
68529         * doc/posix-functions/mq_open.texi: Likewise.
68530         * doc/posix-functions/mq_receive.texi: Likewise.
68531         * doc/posix-functions/mq_send.texi: Likewise.
68532         * doc/posix-functions/mq_setattr.texi: Likewise.
68533         * doc/posix-functions/mq_timedreceive.texi: Likewise.
68534         * doc/posix-functions/mq_timedsend.texi: Likewise.
68535         * doc/posix-functions/mq_unlink.texi: Likewise.
68536         * doc/posix-functions/open_memstream.texi: Likewise.
68537         * doc/posix-functions/openat.texi: Likewise.
68538         * doc/posix-functions/posix_fadvise.texi: Likewise.
68539         * doc/posix-functions/posix_fallocate.texi: Likewise.
68540         * doc/posix-functions/posix_madvise.texi: Likewise.
68541         * doc/posix-functions/posix_memalign.texi: Likewise.
68542         * doc/posix-functions/posix_openpt.texi: Likewise.
68543         * doc/posix-functions/readlinkat.texi: Likewise.
68544         * doc/posix-functions/remque.texi: Likewise.
68545         * doc/posix-functions/renameat.texi: Likewise.
68546         * doc/posix-functions/rintl.texi: Likewise.
68547         * doc/posix-functions/sem_unlink.texi: Likewise.
68548         * doc/posix-functions/shm_open.texi: Likewise.
68549         * doc/posix-functions/shm_unlink.texi: Likewise.
68550         * doc/posix-functions/signgam.texi: Likewise.
68551         * doc/posix-functions/sigset.texi: Likewise.
68552         * doc/posix-functions/stpcpy.texi: Likewise.
68553         * doc/posix-functions/stpncpy.texi: Likewise.
68554         * doc/posix-functions/strerror.texi: Likewise.
68555         * doc/posix-functions/strtod.texi: Likewise.
68556         * doc/posix-functions/symlinkat.texi: Likewise.
68557         * doc/posix-functions/unlinkat.texi: Likewise.
68558         * doc/posix-functions/utimensat.texi: Likewise.
68559         * doc/glibc-functions/bindresvport.texi: Likewise.
68560         * doc/glibc-functions/dn_expand.texi: Likewise.
68561         * doc/glibc-functions/exp10.texi: Likewise.
68562         * doc/glibc-functions/exp10f.texi: Likewise.
68563         * doc/glibc-functions/fgetxattr.texi: Likewise.
68564         * doc/glibc-functions/flistxattr.texi: Likewise.
68565         * doc/glibc-functions/fopencookie.texi: Likewise.
68566         * doc/glibc-functions/freeifaddrs.texi: Likewise.
68567         * doc/glibc-functions/fremovexattr.texi: Likewise.
68568         * doc/glibc-functions/fsetxattr.texi: Likewise.
68569         * doc/glibc-functions/getifaddrs.texi: Likewise.
68570         * doc/glibc-functions/getxattr.texi: Likewise.
68571         * doc/glibc-functions/lgetxattr.texi: Likewise.
68572         * doc/glibc-functions/listxattr.texi: Likewise.
68573         * doc/glibc-functions/llistxattr.texi: Likewise.
68574         * doc/glibc-functions/lremovexattr.texi: Likewise.
68575         * doc/glibc-functions/lsetxattr.texi: Likewise.
68576         * doc/glibc-functions/pow10.texi: Likewise.
68577         * doc/glibc-functions/pow10f.texi: Likewise.
68578         * doc/glibc-functions/rcmd_af.texi: Likewise.
68579         * doc/glibc-functions/removexattr.texi: Likewise.
68580         * doc/glibc-functions/res_init.texi: Likewise.
68581         * doc/glibc-functions/res_mkquery.texi: Likewise.
68582         * doc/glibc-functions/res_query.texi: Likewise.
68583         * doc/glibc-functions/res_querydomain.texi: Likewise.
68584         * doc/glibc-functions/res_send.texi: Likewise.
68585         * doc/glibc-functions/rresvport_af.texi: Likewise.
68586         * doc/glibc-functions/setxattr.texi: Likewise.
68587         * doc/glibc-functions/strcasestr.texi: Likewise.
68589 2008-12-15  Bruno Haible  <bruno@clisp.org>
68591         Fix compilation error on OSF/1 4.0.
68592         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
68593         <sys/time.h>, simply delegate to the system header.
68594         Reported by Daniel Richard G. <oss@teragram.com>.
68596 2008-12-15  Bruno Haible  <bruno@clisp.org>
68598         * doc/posix-functions/openat.texi: Mention the 'openat' module.
68599         * doc/posix-functions/fchmodat.texi: Likewise.
68600         * doc/posix-functions/fchownat.texi: Likewise.
68601         * doc/posix-functions/fdopendir.texi: Likewise.
68602         * doc/posix-functions/fstatat.texi: Likewise.
68603         * doc/posix-functions/mkdirat.texi: Likewise.
68604         * doc/posix-functions/unlinkat.texi: Likewise.
68606 2008-12-14  Bruno Haible  <bruno@clisp.org>
68608         Update doc for POSIX:2008.
68609         * doc/posix-functions/faccessat.texi: New file.
68610         * doc/posix-functions/fchmodat.texi: New file.
68611         * doc/posix-functions/fchownat.texi: New file.
68612         * doc/posix-functions/fdopendir.texi: New file.
68613         * doc/posix-functions/fstatat.texi: New file.
68614         * doc/posix-functions/futimens.texi: New file.
68615         * doc/posix-functions/linkat.texi: New file.
68616         * doc/posix-functions/mkdirat.texi: New file.
68617         * doc/posix-functions/mkfifoat.texi: New file.
68618         * doc/posix-functions/mknodat.texi: New file.
68619         * doc/posix-functions/open_wmemstream.texi: New file.
68620         * doc/posix-functions/openat.texi: New file.
68621         * doc/posix-functions/psiginfo.texi: New file.
68622         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
68623         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
68624         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
68625         * doc/posix-functions/readlinkat.texi: New file.
68626         * doc/posix-functions/renameat.texi: New file.
68627         * doc/posix-functions/strerror_l.texi: New file.
68628         * doc/posix-functions/symlinkat.texi: New file.
68629         * doc/posix-functions/unlinkat.texi: New file.
68630         * doc/posix-functions/utimensat.texi: New file.
68631         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68633 2008-12-14  Bruno Haible  <bruno@clisp.org>
68635         Update doc for POSIX:2008.
68636         * doc/posix-functions/alphasort.texi: Renamed from
68637         doc/glibc-functions/alphasort.texi.
68638         * doc/posix-functions/dirfd.texi: Renamed from
68639         doc/glibc-functions/dirfd.texi.
68640         * doc/posix-functions/dprintf.texi: Renamed from
68641         doc/glibc-functions/dprintf.texi.
68642         * doc/posix-functions/duplocale.texi: Renamed from
68643         doc/glibc-functions/duplocale.texi.
68644         * doc/posix-functions/fexecve.texi: Renamed from
68645         doc/glibc-functions/fexecve.texi.
68646         * doc/posix-functions/fmemopen.texi: Renamed from
68647         doc/glibc-functions/fmemopen.texi.
68648         * doc/posix-functions/freelocale.texi: Renamed from
68649         doc/glibc-functions/freelocale.texi.
68650         * doc/posix-functions/getdate_err.texi: Renamed from
68651         doc/glibc-functions/getdate_err.texi.
68652         * doc/posix-functions/isalnum_l.texi: Renamed from
68653         doc/glibc-functions/isalnum_l.texi.
68654         * doc/posix-functions/isalpha_l.texi: Renamed from
68655         doc/glibc-functions/isalpha_l.texi.
68656         * doc/posix-functions/isblank_l.texi: Renamed from
68657         doc/glibc-functions/isblank_l.texi.
68658         * doc/posix-functions/iscntrl_l.texi: Renamed from
68659         doc/glibc-functions/iscntrl_l.texi.
68660         * doc/posix-functions/isdigit_l.texi: Renamed from
68661         doc/glibc-functions/isdigit_l.texi.
68662         * doc/posix-functions/isgraph_l.texi: Renamed from
68663         doc/glibc-functions/isgraph_l.texi.
68664         * doc/posix-functions/islower_l.texi: Renamed from
68665         doc/glibc-functions/islower_l.texi.
68666         * doc/posix-functions/isprint_l.texi: Renamed from
68667         doc/glibc-functions/isprint_l.texi.
68668         * doc/posix-functions/ispunct_l.texi: Renamed from
68669         doc/glibc-functions/ispunct_l.texi.
68670         * doc/posix-functions/isspace_l.texi: Renamed from
68671         doc/glibc-functions/isspace_l.texi.
68672         * doc/posix-functions/isupper_l.texi: Renamed from
68673         doc/glibc-functions/isupper_l.texi.
68674         * doc/posix-functions/iswalnum_l.texi: Renamed from
68675         doc/glibc-functions/iswalnum_l.texi.
68676         * doc/posix-functions/iswalpha_l.texi: Renamed from
68677         doc/glibc-functions/iswalpha_l.texi.
68678         * doc/posix-functions/iswblank_l.texi: Renamed from
68679         doc/glibc-functions/iswblank_l.texi.
68680         * doc/posix-functions/iswcntrl_l.texi: Renamed from
68681         doc/glibc-functions/iswcntrl_l.texi.
68682         * doc/posix-functions/iswctype_l.texi: Renamed from
68683         doc/glibc-functions/iswctype_l.texi.
68684         * doc/posix-functions/iswdigit_l.texi: Renamed from
68685         doc/glibc-functions/iswdigit_l.texi.
68686         * doc/posix-functions/iswgraph_l.texi: Renamed from
68687         doc/glibc-functions/iswgraph_l.texi.
68688         * doc/posix-functions/iswlower_l.texi: Renamed from
68689         doc/glibc-functions/iswlower_l.texi.
68690         * doc/posix-functions/iswprint_l.texi: Renamed from
68691         doc/glibc-functions/iswprint_l.texi.
68692         * doc/posix-functions/iswpunct_l.texi: Renamed from
68693         doc/glibc-functions/iswpunct_l.texi.
68694         * doc/posix-functions/iswspace_l.texi: Renamed from
68695         doc/glibc-functions/iswspace_l.texi.
68696         * doc/posix-functions/iswupper_l.texi: Renamed from
68697         doc/glibc-functions/iswupper_l.texi.
68698         * doc/posix-functions/iswxdigit_l.texi: Renamed from
68699         doc/glibc-functions/iswxdigit_l.texi.
68700         * doc/posix-functions/isxdigit_l.texi: Renamed from
68701         doc/glibc-functions/isxdigit_l.texi.
68702         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
68703         doc/glibc-functions/mbsnrtowcs.texi.
68704         * doc/posix-functions/mkdtemp.texi: Renamed from
68705         doc/glibc-functions/mkdtemp.texi.
68706         * doc/posix-functions/newlocale.texi: Renamed from
68707         doc/glibc-functions/newlocale.texi.
68708         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
68709         doc/glibc-functions/nl_langinfo_l.texi.
68710         * doc/posix-functions/open_memstream.texi: Renamed from
68711         doc/glibc-functions/open_memstream.texi.
68712         * doc/posix-functions/opterr.texi: Renamed from
68713         doc/glibc-functions/opterr.texi.
68714         * doc/posix-functions/optind.texi: Renamed from
68715         doc/glibc-functions/optind.texi.
68716         * doc/posix-functions/optopt.texi: Renamed from
68717         doc/glibc-functions/optopt.texi.
68718         * doc/posix-functions/psignal.texi: Renamed from
68719         doc/glibc-functions/psignal.texi.
68720         * doc/posix-functions/scandir.texi: Renamed from
68721         doc/glibc-functions/scandir.texi.
68722         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
68723         doc/glibc-functions/sched_get_priority_min.texi.
68724         * doc/posix-functions/signgam.texi: Renamed from
68725         doc/glibc-functions/signgam.texi.
68726         * doc/posix-functions/stpcpy.texi: Renamed from
68727         doc/glibc-functions/stpcpy.texi.
68728         * doc/posix-functions/stpncpy.texi: Renamed from
68729         doc/glibc-functions/stpncpy.texi.
68730         * doc/posix-functions/strcasecmp_l.texi: Renamed from
68731         doc/glibc-functions/strcasecmp_l.texi.
68732         * doc/posix-functions/strcoll_l.texi: Renamed from
68733         doc/glibc-functions/strcoll_l.texi.
68734         * doc/posix-functions/strfmon_l.texi: Renamed from
68735         doc/glibc-functions/strfmon_l.texi.
68736         * doc/posix-functions/strftime_l.texi: Renamed from
68737         doc/glibc-functions/strftime_l.texi.
68738         * doc/posix-functions/strncasecmp_l.texi: Renamed from
68739         doc/glibc-functions/strncasecmp_l.texi.
68740         * doc/posix-functions/strndup.texi: Renamed from
68741         doc/glibc-functions/strndup.texi.
68742         * doc/posix-functions/strnlen.texi: Renamed from
68743         doc/glibc-functions/strnlen.texi.
68744         * doc/posix-functions/strsignal.texi: Renamed from
68745         doc/glibc-functions/strsignal.texi.
68746         * doc/posix-functions/strxfrm_l.texi: Renamed from
68747         doc/glibc-functions/strxfrm_l.texi.
68748         * doc/posix-functions/timer_gettime.texi: Renamed from
68749         doc/glibc-functions/timer_gettime.texi.
68750         * doc/posix-functions/tolower_l.texi: Renamed from
68751         doc/glibc-functions/tolower_l.texi.
68752         * doc/posix-functions/toupper_l.texi: Renamed from
68753         doc/glibc-functions/toupper_l.texi.
68754         * doc/posix-functions/towctrans_l.texi: Renamed from
68755         doc/glibc-functions/towctrans_l.texi.
68756         * doc/posix-functions/towlower_l.texi: Renamed from
68757         doc/glibc-functions/towlower_l.texi.
68758         * doc/posix-functions/towupper_l.texi: Renamed from
68759         doc/glibc-functions/towupper_l.texi.
68760         * doc/posix-functions/uselocale.texi: Renamed from
68761         doc/glibc-functions/uselocale.texi.
68762         * doc/posix-functions/vdprintf.texi: Renamed from
68763         doc/glibc-functions/vdprintf.texi.
68764         * doc/posix-functions/wcpcpy.texi:
68765         Renamed from doc/glibc-functions/wcpcpy.texi.
68766         * doc/posix-functions/wcpncpy.texi: Renamed from
68767         doc/glibc-functions/wcpncpy.texi.
68768         * doc/posix-functions/wcscasecmp.texi: Renamed from
68769         doc/glibc-functions/wcscasecmp.texi.
68770         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
68771         doc/glibc-functions/wcscasecmp_l.texi.
68772         * doc/posix-functions/wcscoll_l.texi: Renamed from
68773         doc/glibc-functions/wcscoll_l.texi.
68774         * doc/posix-functions/wcsdup.texi: Renamed from
68775         doc/glibc-functions/wcsdup.texi.
68776         * doc/posix-functions/wcsncasecmp.texi: Renamed from
68777         doc/glibc-functions/wcsncasecmp.texi.
68778         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
68779         doc/glibc-functions/wcsncasecmp_l.texi.
68780         * doc/posix-functions/wcsnlen.texi: Renamed from
68781         doc/glibc-functions/wcsnlen.texi.
68782         * doc/posix-functions/wcsnrtombs.texi: Renamed from
68783         doc/glibc-functions/wcsnrtombs.texi.
68784         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
68785         doc/glibc-functions/wcsxfrm_l.texi.
68786         * doc/posix-functions/wctrans_l.texi: Renamed from
68787         doc/glibc-functions/wctrans_l.texi.
68788         * doc/posix-functions/wctype_l.texi: Renamed from
68789         doc/glibc-functions/wctype_l.texi.
68790         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68791         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
68792         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
68793         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
68794         these subsections.
68795         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
68796         Remove sections.
68798 2008-12-14  Bruno Haible  <bruno@clisp.org>
68800         Update doc for POSIX:2008.
68801         * doc/posix-functions/*.texi: Update URL of POSIX specification.
68803 2008-12-14  Bruno Haible  <bruno@clisp.org>
68805         Update doc for POSIX:2008.
68806         * doc/pastposix-functions/bcmp.texi: Renamed from
68807         doc/posix-functions/bcmp.texi.
68808         * doc/pastposix-functions/bcopy.texi: Renamed from
68809         doc/posix-functions/bcopy.texi.
68810         * doc/pastposix-functions/bsd_signal.texi: Renamed from
68811         doc/posix-functions/bsd_signal.texi.
68812         * doc/pastposix-functions/bzero.texi: Renamed from
68813         doc/posix-functions/bzero.texi.
68814         * doc/pastposix-functions/ecvt.texi: Renamed from
68815         doc/posix-functions/ecvt.texi.
68816         * doc/pastposix-functions/fcvt.texi: Renamed from
68817         doc/posix-functions/fcvt.texi.
68818         * doc/pastposix-functions/ftime.texi: Renamed from
68819         doc/posix-functions/ftime.texi.
68820         * doc/pastposix-functions/gcvt.texi: Renamed from
68821         doc/posix-functions/gcvt.texi.
68822         * doc/pastposix-functions/getcontext.texi: Renamed from
68823         doc/posix-functions/getcontext.texi.
68824         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
68825         doc/posix-functions/gethostbyaddr.texi.
68826         * doc/pastposix-functions/gethostbyname.texi: Renamed from
68827         doc/posix-functions/gethostbyname.texi.
68828         * doc/pastposix-functions/getwd.texi: Renamed from
68829         doc/posix-functions/getwd.texi.
68830         * doc/pastposix-functions/h_errno.texi: Renamed from
68831         doc/posix-functions/h_errno.texi.
68832         * doc/pastposix-functions/index.texi: Renamed from
68833         doc/posix-functions/index.texi.
68834         * doc/pastposix-functions/makecontext.texi: Renamed from
68835         doc/posix-functions/makecontext.texi.
68836         * doc/pastposix-functions/mktemp.texi: Renamed from
68837         doc/posix-functions/mktemp.texi.
68838         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
68839         doc/posix-functions/pthread_attr_getstackaddr.texi.
68840         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
68841         doc/posix-functions/pthread_attr_setstackaddr.texi.
68842         * doc/pastposix-functions/rindex.texi: Renamed from
68843         doc/posix-functions/rindex.texi.
68844         * doc/pastposix-functions/scalb.texi: Renamed from
68845         doc/posix-functions/scalb.texi.
68846         * doc/pastposix-functions/setcontext.texi: Renamed from
68847         doc/posix-functions/setcontext.texi.
68848         * doc/pastposix-functions/swapcontext.texi: Renamed from
68849         doc/posix-functions/swapcontext.texi.
68850         * doc/pastposix-functions/ualarm.texi: Renamed from
68851         doc/posix-functions/ualarm.texi.
68852         * doc/pastposix-functions/usleep.texi: Renamed from
68853         doc/posix-functions/usleep.texi.
68854         * doc/pastposix-functions/vfork.texi: Renamed from
68855         doc/posix-functions/vfork.texi.
68856         * doc/pastposix-functions/wcswcs.texi: Renamed from
68857         doc/posix-functions/wcswcs.texi.
68858         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
68859         (Function Substitutes): Update.
68861 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68863         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
68864         m4/strerror.m4.
68866 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68867             Bruno Haible  <bruno@clisp.org>
68869         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
68871 2008-12-13  Bruno Haible  <bruno@clisp.org>
68873         * modules/strtoull (Depends-on): Remove unistd.
68875 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68877         * modules/strtoull (Depends-on): Add stdlib.
68879 2008-12-11  Simon Josefsson  <simon@josefsson.org>
68881         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
68883 2008-12-10  Jim Meyering  <meyering@redhat.com>
68885         gl_ASSERT: don't say assertions are disabled when they're not
68886         * m4/assert.m4 (gl_ASSERT): Do not make configure report
68887         "checking whether to enable assertions... no", when they are in
68888         fact enabled.  This is solely a bug in the output of configure.
68889         In spite of saying "no", NDEBUG was not defined in that case.
68890         Also, as noted by Eric Blake, leave assertions enabled upon
68891         --enable-assert=INVALID.
68893 2008-12-10  Bruno Haible  <bruno@clisp.org>
68895         Change MODULES.html to refer to POSIX:2008 where possible.
68896         * MODULES.html.sh (POSIX2008_URL): New variable.
68897         (posix_headers): Remove sys/timeb, ucontext.
68898         (posix2001_headers): New variable.
68899         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
68900         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
68901         index, makecontext, mktemp, pthread_attr_getstackaddr,
68902         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
68903         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
68904         (posix2001_functions): New variable.
68905         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
68906         otherwise.
68908 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68910         add missing include to parse-duration.c
68911         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
68912         * modules/parse-duration (Depends-on): Add xalloc.
68914         fix sed script reading maint.mk
68915         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
68916         (syntax-check-rules): Use it.
68918 2008-12-09  Bruno Haible  <bruno@clisp.org>
68920         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
68921         MacOS X 10.4/PowerPC.
68922         Reported by Simon Josefsson.
68924 2008-12-08  Jim Meyering  <meyering@redhat.com>
68926         work around mingw's lack of some S_IF definitions
68927         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
68928         Reported by Simon Josefsson.
68930 2008-12-08  Bruno Haible  <bruno@clisp.org>
68932         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
68933         applied to variables. Needed on MacOS X 10.4/PowerPC.
68934         Reported by Simon Josefsson.
68936 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
68937         and Eric Blake  <ebb9@byu.net>
68939         assert: honor --enable-assert
68940         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
68941         order to honor --enable-assert, rather than treating it as a
68942         synonym for --disable-assert.
68944 2008-12-08  Jim Meyering  <meyering@redhat.com>
68946         * lib/posixtm.c: Remove now-useless declaration of mktime.
68948         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
68950 2008-12-07  Bruno Haible  <bruno@clisp.org>
68952         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
68953         test_once): Mark functions as static.
68954         * tests/test-tls.c (test_tls): Likewise.
68956 2008-12-07  Bruno Haible  <bruno@clisp.org>
68958         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
68959         iconv_register_autodetect.
68961 2008-12-07  Jim Meyering  <meyering@redhat.com>
68963         posixtm.c: avoid a warning
68964         * lib/posixtm.c (posixtime): Don't initialize tm0.
68965         It's no longer needed to placate gcc4's -Wuninitialized,
68966         and the attempt to placate would elicit a new warning.
68968         unicodeio.c: mark unused parameters
68969         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
68970         (fallback_failure_callback): Likewise.
68972 2008-12-07  Bruno Haible  <bruno@clisp.org>
68974         * gnulib-tool (func_create_testdir): When building the tests
68975         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
68976         Reported by Simon Josefsson.
68978 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68980         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
68982 2008-12-06  Bruno Haible  <bruno@clisp.org>
68984         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
68985         Suggested by Eric Blake.
68987 2008-12-06  Bruno Haible  <bruno@clisp.org>
68989         Fix a c-stack test failure on MacOS X.
68990         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
68991         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
68992         handler for SIGBUS as well.
68993         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
68994         install a signal handler for SIGBUS as well.
68995         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
68997 2008-12-06  Bruno Haible  <bruno@clisp.org>
68999         Advocacy documentation.
69000         * doc/gnulib-intro.texi (Benefits): New section.
69001         * doc/gnulib.texi: Update.
69003 2008-12-06  Bruno Haible  <bruno@clisp.org>
69005         Document the 'manywarnings' module.
69006         * doc/manywarnings.texi: New file.
69007         * doc/gnulib.texi: Include it.
69009 2008-12-05  Eric Blake  <ebb9@byu.net>
69011         tests: silence some gcc warnings
69012         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
69013         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
69014         type mismatches.
69016 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69017             Bruno Haible  <bruno@clisp.org>
69019         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
69021 2008-11-29  Jim Meyering  <meyering@redhat.com>
69023         unicodeio.c: mark unused parameters
69024         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69025         (fallback_failure_callback): Likewise.
69027         fts: fix a thinko
69028         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
69029         (set_stat_type): Return S_IF*-valued "type" directly.
69030         Prompted by James Youngman's spotting a related bug.
69031         Confirmed by further testing through find.
69033         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
69034         * lib/fts.c (D_TYPE): Define.
69035         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
69036         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
69037         (s_ifmt_shift_bits): New function.
69038         (set_stat_type): New function.
69039         (fts_build): When not calling fts_stat, call set_stat_type
69040         to propagate dirent.d_type info to fts_read caller.
69041         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
69042         fts_statp->st_mode type information may be valid.
69044 2008-11-28  Simon Josefsson  <simon@josefsson.org>
69046         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
69047         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
69048         <sds@gnu.org>.
69050 2008-11-20  Bruno Haible  <bruno@clisp.org>
69052         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
69053         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
69054         INCLUDE_NEXT.
69055         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
69056         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
69057         * modules/math (Makefile.am): Substitute
69058         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
69059         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69061 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
69062             Bruno Haible  <bruno@clisp.org>
69064         * lib/stdint.in.h: Define all type macros so that their expansion is
69065         a single typedef'ed token. Fixes a compilation failure in Boost which
69066         does "using ::int8_t;".
69068 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69070         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
69071         gl_MANYWARN_ALL_GCC.
69072         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
69073         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
69074         * modules/manywarnings: New file.
69075         * MODULES.html.sh: Mention manywarnings module.
69077 2008-11-18  Bruno Haible  <bruno@clisp.org>
69079         * doc/gnulib-tool.texi (Unit tests): New section.
69081 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69083         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
69084         paths like 'lib/po/foo.po'.
69086 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69088         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
69089         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
69091 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69093         * m4/warnings.m4: Use CPPFLAGS to really check whether the
69094         parameter works.
69096 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69098         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
69100 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69102         * modules/parse-duration-tests: New file.
69103         * tests/test-parse-duration.sh: New file.
69104         * tests/test-parse-duration.c: New file.
69106         New module 'parse-duration'.
69107         * lib/parse-duration.h: New file.
69108         * lib/parse-duration.c: New file.
69109         * modules/parse-duration: New file.
69111 2008-11-17  Bruno Haible  <bruno@clisp.org>
69113         * tests/test-select-out.sh: Comment out the first pipe test.
69114         Reported by Simon Josefsson.
69116 2008-11-17  Bruno Haible  <bruno@clisp.org>
69118         * modules/getaddrinfo (Depends-on): Add servent, hostent.
69119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
69120         gl_HOSTENT.
69122 2008-11-17  Bruno Haible  <bruno@clisp.org>
69124         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
69125         -lnetwork and -lnet. Needed for Haiku and BeOS.
69127 2008-11-16  Bruno Haible  <bruno@clisp.org>
69129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
69131 2008-11-16  Bruno Haible  <bruno@clisp.org>
69133         Avoid test failure on Haiku.
69134         * tests/test-fsync.c: Include <errno.h>.
69135         (main): Don't require that fsync (0) fails.
69137 2008-11-15  Bruno Haible  <bruno@clisp.org>
69139         New module 'hostent'.
69140         * modules/hostent: New file.
69141         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
69143 2008-11-15  Bruno Haible  <bruno@clisp.org>
69145         New module 'servent'.
69146         * modules/servent: New file.
69147         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
69149 2008-11-15  Bruno Haible  <bruno@clisp.org>
69151         Avoid generating same test program with two different rules.
69152         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
69153         test-frexp to test-frexp-nolibm.
69154         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
69155         test-frexpl to test-frexpl-nolibm.
69157 2008-11-15  Bruno Haible  <bruno@clisp.org>
69159         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
69160         $(FREXPL_LIBM).
69162 2008-11-15  Bruno Haible  <bruno@clisp.org>
69164         * lib/netdb.in.h: Activate the definitions also when the system's
69165         <netdb.h> has 'struct addrinfo'.
69166         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
69167         EAI_OVERFLOW or AI_NUMERICSERV.
69168         * doc/posix-headers/netdb.texi: Document the problem.
69170 2008-11-15  Bruno Haible  <bruno@clisp.org>
69172         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
69174         Make the 'sched' module work on platforms where <sched.h> exists but
69175         is incomplete (such as Haiku).
69176         * lib/sched.in.h; Include the system's <sched.h> if it exists.
69177         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
69178         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
69179         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
69180         HAVE_STRUCT_SCHED_PARAM.
69181         * modules/sched (Depends-on): Add include_next.
69182         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
69183         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
69184         * doc/posix-headers/sched.texi: Document the issue.
69186 2008-11-13  Jim Meyering  <meyering@redhat.com>
69188         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
69189         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
69190         test would fail due to the difference in the Report bugs to ...
69191         line.  The expected address is empty, "<>", while the actual
69192         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
69194 2008-11-12  Bruno Haible  <bruno@clisp.org>
69196         lstat: don't compile lstat.c on systems lacking lstat
69197         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
69198         which don't have lstat; this is handled by lib/sys_stat.in.h already.
69199         Reported by Daniel P. Berrange via Jim Meyering.
69201 2008-11-12  Jim Meyering  <meyering@redhat.com>
69203         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
69205 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69207         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
69208         instead.
69210 2008-11-12  Bruno Haible  <bruno@clisp.org>
69212         * lib/unicodeio.c: Include unistr.h.
69213         (utf8_wctomb): Remove function.
69214         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
69216 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69218         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
69219         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
69220         <bruno@clisp.org>.
69221         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
69223 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69225         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
69226         * doc/gnulib.texi: Add section for warnings.
69228 2008-11-11  Bruno Haible  <bruno@clisp.org>
69230         * lib/sockets.h: Add a comment.
69232 2008-11-11  Karl Berry  <karl@gnu.org>
69234         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
69236 2008-11-11  Eric Blake  <ebb9@byu.net>
69238         fdl.texi: avoid git symlinks
69239         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
69241 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69243         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
69245 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69247         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
69248         (gl_WARN_ADD): Substitute $2 if literal.
69250 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69252         * m4/warning.m4: Remove.
69254 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69256         * m4/warnings.m4: Almost complete rewrite. :-)
69258 2008-11-10  Simon Josefsson  <simon@josefsson.org>
69260         * modules/warnings: New module.
69261         * m4/warnings.m4: New file.
69262         * MODULES.html.sh: Mention warnings module.
69263         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
69264         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69266 2008-11-10  Eric Blake  <ebb9@byu.net>
69268         fdl.texi: make a symlink to the latest version
69269         * doc/standards.texi: Revert today's earlier change.
69270         * doc/fdl-1.2.texi: Rename from old fdl.texi...
69271         * doc/fdl.texi: ...and replace this with a symlink to the newer
69272         fdl-1.3.texi.
69274 2008-11-10  Bruno Haible  <bruno@clisp.org>
69276         * tests/test-select-fd.c (main): Accept the result file name as fourth
69277         argument.
69278         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
69279         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
69281 2008-11-10  Bruno Haible  <bruno@clisp.org>
69283         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
69284         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
69285         as autoconf-substituted macros.
69286         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
69287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
69288         gl_NETDB_H_DEFAULTS. Set these variables.
69289         * modules/netdb (Makefile.am): Substitute these variables.
69291 2008-11-10  Eric Blake  <ebb9@byu.net>
69293         standards.texi: include correct file for FDL 1.3
69294         * doc/standards.texi (GNU Free Documentation License): Change
69295         include file to pull in FDL 1.3, not 1.2.
69297         fdl.texi: revert accidental change to license
69298         * doc/fdl.texi: This is FDL 1.2, not 1.3.
69300 2008-11-10  Bruno Haible  <bruno@clisp.org>
69302         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
69303         cross-compiling guesses also when the native compile gives no result.
69305 2008-11-10  Bruno Haible  <bruno@clisp.org>
69307         * lib/spawni.c (__spawni): Force variable into the stack.
69309 2008-11-10  Bruno Haible  <bruno@clisp.org>
69311         Add support for Haiku.
69312         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
69313         glibc and BeOS, but also on Haiku.
69314         * lib/fpurge.c (fpurge): Likewise.
69315         * lib/freadable.c (freadable): Likewise.
69316         * lib/freadahead.c (freadahead): Likewise.
69317         * lib/freading.c (freading): Likewise.
69318         * lib/freadptr.c (freadptr): Likewise.
69319         * lib/freadseek.c (freadptrinc): Likewise.
69320         * lib/fseeko.c (rpl_fseeko): Likewise.
69321         * lib/fseterr.c (fseterr): Likewise.
69322         * lib/fwritable.c (fwritable): Likewise.
69323         * lib/fwriting.c (fwriting): Likewise.
69324         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
69326 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
69328         * lib/config.charset: Treat Haiku like BeOS.
69330 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
69332         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
69333         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
69335 2008-11-08  Bruno Haible  <bruno@clisp.org>
69337         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
69338         AC_CACHE_CHECK.
69340 2008-11-08  Bruno Haible  <bruno@clisp.org>
69342         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
69344 2008-11-08  Bruno Haible  <bruno@clisp.org>
69346         * tests/test-select-fd.c: New file.
69347         * tests/test-select-in.sh: New file.
69348         * tests/test-select-out.sh: New file.
69349         * tests/test-select-stdin.c: New file.
69350         * modules/select-tests (Files): Add the new files.
69351         (Depends-on): Add gettimeofday.
69352         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
69353         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
69354         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
69356 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
69357             Bruno Haible  <bruno@clisp.org>
69359         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
69361 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
69363         * build-aux/pmccabe2html: Added support for C++ source files.
69365 2008-11-05  Ben Pfaff  <blp@gnu.org>
69367         Fix lib/close.c build on Windows.
69368         * modules/close (Files): Add lib/w32sock.h.
69370 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
69372         Accept Bison's NEWS format.
69373         * build-aux/announce-gen (print_news_deltas): Tweak
69374         $re_prefix.
69376 2008-11-04  Bruno Haible  <bruno@clisp.org>
69378         * modules/random_r (Maintainer): Add glibc.
69380 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69382         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
69383         by karl@freefriends.org (Karl Berry).
69384         * doc/alloca.texi: Likewise.
69385         * doc/c-ctype.texi: Likewise.
69386         * doc/c-strcase.texi: Likewise.
69387         * doc/c-strcaseeq.texi: Likewise.
69388         * doc/c-strcasestr.texi: Likewise.
69389         * doc/c-strstr.texi: Likewise.
69390         * doc/c-strtod.texi: Likewise.
69391         * doc/c-strtold.texi: Likewise.
69392         * doc/ctime.texi: Likewise.
69393         * doc/error.texi: Likewise.
69394         * doc/fdl.texi: Likewise.
69395         * doc/gcd.texi: Likewise.
69396         * doc/getdate.texi: Likewise.
69397         * doc/gnulib-intro.texi: Likewise.
69398         * doc/gnulib-tool.texi: Likewise.
69399         * doc/gnulib.texi: Likewise.
69400         * doc/inet_ntoa.texi: Likewise.
69401         * doc/maintain.texi: Likewise.
69402         * doc/make-stds.texi: Likewise.
69403         * doc/quote.texi: Likewise.
69404         * doc/regexprops-generic.texi: Likewise.
69405         * doc/standards.texi: Likewise.
69406         * doc/verify.texi: Likewise.
69407         * doc/visibility.texi: Likewise.
69408         * doc/gnulib.texi (GNU Free Documentation License): Include
69409         fdl-1.3.texi instead of fdl.texi.
69411 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69413         * doc/fdl-1.3.texi: New file, from
69414         <http://www.gnu.org/licenses/fdl-1.3.texi>.
69415         * modules/fdl-1.3: Add.
69416         * MODULES.html.sh: Add fdl-1.3.
69418 2008-11-03  Bruno Haible  <bruno@clisp.org>
69420         Make determination of absolute name of header file work with AIX xlc.
69421         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
69422         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
69423         preprocessing.
69424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
69425         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
69427 2008-11-03  Simon Josefsson  <simon@josefsson.org>
69429         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
69430         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
69431         <ludo@gnu.org>.
69433 2008-11-02  Bruno Haible  <bruno@clisp.org>
69435         Mark 'strpbrk' obsolete.
69436         * modules/strpbrk (Status, Notice): New sections.
69437         * modules/strtok_r (Depends-on): Add strpbrk.
69439 2008-11-02  Bruno Haible  <bruno@clisp.org>
69441         Mark 'strdup' obsolete.
69442         * modules/strdup (Status, Notice): New sections.
69443         * modules/findprog (Depends-on): Add strdup.
69444         * modules/getaddrinfo (Depends-on): Likewise.
69445         * modules/localename (Depends-on): Likewise.
69446         * modules/relocatable-lib (Depends-on): Likewise.
69447         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
69448         * modules/relocatable-prog (Depends-on): Likewise.
69449         * modules/trim (Depends-on): Likewise.
69450         * modules/unictype/gen-ctype (Depends-on): Likewise.
69451         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
69453 2008-11-02  Bruno Haible  <bruno@clisp.org>
69455         Mark 'strcspn' obsolete.
69456         * modules/strcspn (Status, Notice): New sections.
69458 2008-11-02  Bruno Haible  <bruno@clisp.org>
69460         Mark 'rmdir' obsolete.
69461         * modules/rmdir (Status, Notice): New sections.
69462         * modules/clean-temp (Depends-on): Add rmdir.
69463         * modules/openat (Depends-on): Likewise.
69465 2008-11-02  Bruno Haible  <bruno@clisp.org>
69467         Mark 'raise' obsolete.
69468         * modules/raise (Status, Notice): New sections.
69469         (Include): Specify <signal.h>.
69470         * modules/stdio (Depends-on): Add raise.
69471         * modules/write (Depends-on): Likewise.
69473 2008-11-02  Bruno Haible  <bruno@clisp.org>
69475         Mark 'memset' obsolete.
69476         * modules/memset (Status, Notice): New sections.
69478 2008-11-02  Bruno Haible  <bruno@clisp.org>
69480         Mark 'memmove' obsolete.
69481         * modules/memmove (Status, Notice): New sections.
69482         * modules/argp (Depends-on): Add memmove.
69483         * modules/argz (Depends-on): Likewise.
69484         * modules/canonicalize (Depends-on): Likewise.
69485         * modules/canonicalize-lgpl (Depends-on): Likewise.
69486         * modules/fts (Depends-on): Likewise.
69487         * modules/getcwd (Depends-on): Likewise.
69488         * modules/human (Depends-on): Likewise.
69489         * modules/regex (Depends-on): Likewise.
69490         * modules/striconveh (Depends-on): Likewise.
69491         * modules/trim (Depends-on): Likewise.
69492         * modules/unistr/u8-move (Depends-on): Likewise.
69493         * modules/unistr/u16-move (Depends-on): Likewise.
69494         * modules/unistr/u32-move (Depends-on): Likewise.
69496 2008-11-02  Bruno Haible  <bruno@clisp.org>
69498         Mark 'memcpy' obsolete.
69499         * modules/memcpy (Status, Notice): New sections.
69501 2008-11-02  Bruno Haible  <bruno@clisp.org>
69503         Mark 'memcmp' obsolete.
69504         * modules/memcmp (Status, Notice): New sections.
69505         * modules/argmatch (Depends-on): Add memchr.
69506         * modules/backupfile (Depends-on): Likewise.
69507         * modules/c-strcasestr (Depends-on): Likewise.
69508         * modules/crypto/des (Depends-on): Likewise.
69509         * modules/csharpcomp (Depends-on): Likewise.
69510         * modules/fnmatch (Depends-on): Likewise.
69511         * modules/git-merge-changelog (Depends-on): Likewise.
69512         * modules/isnand (Depends-on): Likewise.
69513         * modules/isnand-nolibm (Depends-on): Likewise.
69514         * modules/isnanf (Depends-on): Likewise.
69515         * modules/isnanf-nolibm (Depends-on): Likewise.
69516         * modules/isnanl (Depends-on): Likewise.
69517         * modules/isnanl-nolibm (Depends-on): Likewise.
69518         * modules/mbchar (Depends-on): Likewise.
69519         * modules/memcoll (Depends-on): Likewise.
69520         * modules/quotearg (Depends-on): Likewise.
69521         * modules/regex (Depends-on): Likewise.
69522         * modules/relocatable-prog (Depends-on): Likewise.
69523         * modules/same (Depends-on): Likewise.
69524         * modules/signbit (Depends-on): Likewise.
69525         * modules/strcasestr-simple (Depends-on): Likewise.
69526         * modules/unictype/gen-ctype (Depends-on): Likewise.
69527         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
69528         * modules/uniname/uniname (Depends-on): Likewise.
69529         * modules/unistr/u8-cmp (Depends-on): Likewise.
69531 2008-11-02  Bruno Haible  <bruno@clisp.org>
69533         Mark 'memchr' obsolete.
69534         * modules/memchr (Status, Notice): New sections.
69535         * modules/argp (Depends-on): Add memchr.
69536         * modules/base64 (Depends-on): Likewise.
69537         * modules/c-strcasestr (Depends-on): Likewise.
69538         * modules/chdir-long (Depends-on): Likewise.
69539         * modules/fnmatch (Depends-on): Likewise.
69540         * modules/getsubopt (Depends-on): Likewise.
69541         * modules/git-merge-changelog (Depends-on): Likewise.
69542         * modules/glob (Depends-on): Likewise.
69543         * modules/strcasestr-simple (Depends-on): Likewise.
69544         * modules/strnlen (Depends-on): Likewise.
69546 2008-11-02  Bruno Haible  <bruno@clisp.org>
69548         Mark 'atexit' obsolete.
69549         * modules/atexit (Status, Notice): New sections.
69550         * modules/chdir-long (Depends-on): Add atexit.
69551         * modules/wait-process (Depends-on): Likewise.
69553 2008-11-02  Bruno Haible  <bruno@clisp.org>
69555         * gnulib-tool: New option --with-obsolete.
69556         (func_usage): Document it.
69557         (func_modules_transitive_closure): Drop obsolete dependencies if
69558         incobsolete is not true.
69559         (func_import): Read and save the incobsolete variable to the cache.
69561 2008-11-02  Bruno Haible  <bruno@clisp.org>
69563         * modules/TEMPLATE-EXTENDED: New field 'Status'.
69564         * gnulib-tool: New option --extract-status.
69565         (func_usage): Document it.
69566         (sed_extract_prog): Recognize it.
69567         (func_get_status): New function.
69569 2008-10-30  Simon Josefsson  <simon@josefsson.org>
69571         * modules/sockets (License): Change from LGPL to LGPLv2+.
69573 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69575         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
69577 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69579         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69580         Mention times and sys_times.
69581         * modules/sys_times, modules/sys_times-tests: New modules.
69582         * modules/times, modules/times-tests: Likewise
69583         * m4/sys_times_h.m4: New file.
69584         * lib/sys_times.in.h: Likewise
69585         * lib/times.c: Likewise.
69586         * tests/test-sys_times.c: Likewise.
69587         * tests/test-times.c: Likewise.
69588         * doc/posix-headers/sys_times.texi: Update.
69589         * doc/posix-functions/times.texi: Update.
69591 2008-10-28  Jim Meyering  <meyering@redhat.com>
69593         * modules/tempname (Depends-on): Add lstat.
69595         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
69597 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69599         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
69600         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
69601         using idiom used elsewhere in gnulib.
69603 2008-10-27  Jim Meyering  <meyering@redhat.com>
69605         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
69607 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69609         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
69610         TESTS_ENVIRONMENT, for shell scripts that needs to call built
69611         programs.
69612         * tests/test-argp-2.sh: Use $EXEEXT when needed.
69614 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69616         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
69618 2008-10-27  Bruno Haible  <bruno@clisp.org>
69620         * tests/test-lstat.c: Include <stdio.h>.
69622 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69624         * modules/lstat-tests: New module.
69625         * tests/test-lstat.c: New file.
69627 2008-10-26  Jim Meyering  <meyering@redhat.com>
69629         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
69631 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69632             Bruno Haible  <bruno@clisp.org>
69634         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
69635         * modules/configmake (Include): Add a note that the include must come
69636         after all system headers.
69637         * lib/javaversion.c: Include configmake.h after all other includes.
69639 2008-10-26  Bruno Haible  <bruno@clisp.org>
69641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
69642         HAVE_STRUCT_RANDOM_DATA to 1.
69643         (gl_STDLIB_H): Simplify.
69645 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69647         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
69648         substitute HAVE_STRUCT_RANDOM_DATA.
69649         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
69650         random_data.
69651         * modules/stdlib (Makefile.am): Substitute
69652         HAVE_STRUCT_RANDOM_DATA.
69654 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69656         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
69657         * doc/gnulib-intro.texi (Copyright): Likewise.
69659 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69661         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
69662         findings.
69664 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
69665             Bruno Haible  <bruno@clisp.org>
69667         * lib/unistd.in.h: Include <winsock2.h>.
69668         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
69669         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
69670         Provide dummy declarations.
69671         (gethostname): Override.
69672         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
69673         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
69674         gl_PREREQ_SYS_H_WINSOCK2.
69675         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
69676         * doc/posix-functions/gethostname.texi: More details.
69678 2008-10-25  Bruno Haible  <bruno@clisp.org>
69680         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
69681         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
69682         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
69684         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
69685         here ...
69686         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
69687         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
69688         gl_UNISTD_H_DEFAULTS.
69690 2008-10-25  Eric Blake  <ebb9@byu.net>
69692         signbit: avoid spurious compiler failure
69693         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
69694         declarations inside function.
69696 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69697             Bruno Haible  <bruno@clisp.org>
69699         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
69700         * modules/random_r (Depends-on): Add stdint.
69702 2008-10-24  Bruno Haible  <bruno@clisp.org>
69704         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
69705         Eggert.
69706         * modules/strerror (License): Likewise.
69708 2008-10-24  Jim Meyering  <meyering@redhat.com>
69710         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
69711         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
69713 2008-10-24  Eric Blake  <ebb9@byu.net>
69715         getgroups: fix compilation when getgroups is available
69716         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
69717         but with <config.h> override of getgroups disabled.
69719 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69721         * doc/gnulib.texi (Header files): Add note about C++ problems.
69722         Explained by Bruno Haible <bruno@clisp.org>.
69724 2008-10-23  Bruno Haible  <bruno@clisp.org>
69726         Define a dummy SA_NODEFER macro on Interix.
69727         * lib/signal.in.h (SA_NODEFER): Define fallback.
69728         Reported by Aleksey Cheusov <cheusov@tut.by> via
69729         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
69731 2008-10-23  Bruno Haible  <bruno@clisp.org>
69733         * modules/freadahead (License): Change to LGPLv2+.
69734         Suggested by Simon Josefsson.
69736 2008-10-23  Jim Meyering  <meyering@redhat.com>
69738         random_r: new module
69739         * modules/random_r: New file.
69740         * m4/random_r.m4: New file.
69741         * lib/random_r.c: New file, from glibc.
69742         * modules/random_r-tests: New file.
69743         * tests/test-random_r.c: New file.
69744         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
69745          Declare.
69746         (RAND_MAX): Define.
69747         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
69748         * modules/stdlib: Substitute them, too.
69749         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
69750         * doc/glibc-functions/initstate_r.texi: Mention the new module.
69751         * doc/glibc-functions/random_r.texi: Likewise.
69752         * doc/glibc-functions/setstate_r.texi: Likewise.
69753         * doc/glibc-functions/srandom_r.texi: Likewise.
69754         * config/srclist.txt: Mention it.
69756 2008-10-23  David Lutterkort  <lutter@redhat.com>
69758         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
69759         link requirement
69761 2008-10-23  Jim Meyering  <meyering@redhat.com>
69763         selinux-h: mark parameters of stub functions as intentionally unused
69764         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
69765         * lib/se-context.in.h: Likewise.
69767 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69769         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
69771 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69773         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
69775 2008-10-22  Eric Blake  <ebb9@byu.net>
69777         glthread/thread: avoid compiler warning
69778         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
69779         Add unreachable abort to silence compiler.
69781 2008-10-22  Eric Blake  <ebb9@byu.net>
69783         netdb: also supply struct addrinfo for cygwin 1.5.x
69784         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
69785         older cygwin.
69786         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
69787         cygwin.
69788         * doc/posix-headers/netdb.texi (netdb.h): Document this.
69790 2008-10-22  Bruno Haible  <bruno@clisp.org>
69792         * users.txt: Update entry about pspp.
69794 2008-10-21  Bruno Haible  <bruno@clisp.org>
69796         Simplification.
69797         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
69798         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
69800         Simplification.
69801         * lib/ioctl.c (ioctl): Don't undefine.
69802         * lib/socket.c (socket): Don't undefine.
69804         Remove unused module indicator macros.
69805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
69806         GNULIB_$1 as a C macro.
69808         * doc/posix-functions/close.texi: Undo last change.
69809         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
69810         Windows platforms.
69812 2008-10-21  Bruno Haible  <bruno@clisp.org>
69814         Add gethostname() declaration to <unistd.h>.
69815         * lib/unistd.in.h (gethostname): New declaration.
69816         * lib/gethostname.c: Include <unistd.h>.
69817         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
69818         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
69819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
69820         and HAVE_GETHOSTNAME.
69821         * modules/gethostname (Depends-on): Add unistd.
69822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69823         (Include): Specify <unistd.h>.
69824         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
69825         HAVE_GETHOSTNAME.
69826         * tests/test-gethostname.c: Include <unistd.h> first.
69828 2008-10-21  Bruno Haible  <bruno@clisp.org>
69830         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
69831         * modules/select-tests (Depends-on): Likewise.
69832         Reported by Simon Josefsson.
69834 2008-10-21  Simon Josefsson  <simon@josefsson.org>
69836         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
69837         * lib/accept.c: New file, based on winsock.c.
69838         * lib/bind.c: New file, based on winsock.c.
69839         * lib/connect.c: New file, based on winsock.c.
69840         * lib/getpeername.c: New file, based on winsock.c.
69841         * lib/getsockname.c: New file, based on winsock.c.
69842         * lib/getsockopt.c: New file, based on winsock.c.
69843         * lib/ioctl.c: New file, based on winsock.c.
69844         * lib/listen.c: New file, based on winsock.c.
69845         * lib/recv.c: New file, based on winsock.c.
69846         * lib/recvfrom.c: New file, based on winsock.c.
69847         * lib/send.c: New file, based on winsock.c.
69848         * lib/sendto.c: New file, based on winsock.c.
69849         * lib/setsockopt.c: New file, based on winsock.c.
69850         * lib/shutdown.c: New file, based on winsock.c.
69851         * lib/socket.c: New file, based on winsock.c.
69852         * lib/w32sock.h: New file, based on winsock.c.
69853         * lib/winsock.c: Remove file.
69854         * modules/accept: Likewise.
69855         * modules/bind: Likewise.
69856         * modules/connect: Likewise.
69857         * modules/getpeername: Likewise.
69858         * modules/getsockname: Likewise.
69859         * modules/getsockopt: Likewise.
69860         * modules/ioctl: Likewise.
69861         * modules/listen: Likewise.
69862         * modules/recv: Likewise.
69863         * modules/recvfrom: Likewise.
69864         * modules/send: Likewise.
69865         * modules/sendto: Likewise.
69866         * modules/setsockopt: Likewise.
69867         * modules/shutdown: Likewise.
69868         * modules/socket: Use socket.c instead of winsock.c.
69869         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
69870         * doc/posix-functions/accept.texi: Doc fix.
69871         * doc/posix-functions/bind.texi: Doc fix.
69872         * doc/posix-functions/close.texi: Doc fix.
69873         * doc/posix-functions/connect.texi: Doc fix.
69874         * doc/posix-functions/getpeername.texi: Doc fix.
69875         * doc/posix-functions/getsockname.texi: Doc fix.
69876         * doc/posix-functions/getsockopt.texi: Doc fix.
69877         * doc/posix-functions/ioctl.texi: Doc fix.
69878         * doc/posix-functions/listen.texi: Doc fix.
69879         * doc/posix-functions/recv.texi: Doc fix.
69880         * doc/posix-functions/recvfrom.texi: Doc fix.
69881         * doc/posix-functions/send.texi: Doc fix.
69882         * doc/posix-functions/sendto.texi: Doc fix.
69883         * doc/posix-functions/setsockopt.texi: Doc fix.
69884         * doc/posix-functions/shutdown.texi: Doc fix.
69885         * doc/posix-functions/socket.texi: Doc fix.
69887 2008-10-20  Bruno Haible  <bruno@clisp.org>
69889         Take into account the role of SIGABRT_COMPAT on Windows 2008.
69890         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
69891         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
69892         as an alias for SIGABRT.
69893         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
69894         (sigaction): Map it to SIGABRT.
69895         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
69897 2008-10-20  Bruno Haible  <bruno@clisp.org>
69899         * lib/fts.c: Don't include lstat.h.
69900         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
69902         Move the lstat() declaration to <sys/stat.h>.
69903         * lib/lstat.h: Remove file.
69904         * lib/sys_stat.in.h: Add special invocation convention.
69905         (lstat): New declaration.
69906         * lib/lstat.c (orig_lstat): New function.
69907         (rpl_lstat): Use orig_lstat instead of lstat.
69908         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
69909         AC_C_INLINE. Set REPLACE_LSTAT.
69910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
69911         and REPLACE_LSTAT.
69912         * modules/lstat (Files): Remove lib/lstat.h.
69913         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
69914         (Include): Specify <sys/stat.h> instead of lstat.h.
69915         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
69916         REPLACE_LSTAT.
69917         * NEWS: Mention the change.
69919 2008-10-20  Bruno Haible  <bruno@clisp.org>
69921         * modules/posix_spawn-tests: New file.
69922         * tests/test-posix_spawn3.c: New file.
69924 2008-10-20  Bruno Haible  <bruno@clisp.org>
69926         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
69927         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
69928         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
69929         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
69930         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
69932 2008-10-20  Bruno Haible  <bruno@clisp.org>
69934         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
69935         of posix_spawn on AIX 5.3.
69937 2008-10-20  Bruno Haible  <bruno@clisp.org>
69939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
69941 2008-10-20  Bruno Haible  <bruno@clisp.org>
69943         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
69944         of AC_LANG_PROGRAM.
69946 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69948         * lib/netdb.in.h: Don't define GNU specific constants until they
69949         are supported or needed.  Reported by Bruno Haible
69950         <bruno@clisp.org>.
69952 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69954         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
69956 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69958         * lib/getaddrinfo.h: Remove file.
69959         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
69960         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
69961         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
69962         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
69963         * modules/netdb: Substitute GNULIB_GETADDRINFO.
69964         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
69965         * tests/test-getaddrinfo.c: Likewise.
69966         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
69967         * NEWS: Mention change.
69969 2008-10-19  Bruno Haible  <bruno@clisp.org>
69971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
69973 2008-10-19  Bruno Haible  <bruno@clisp.org>
69975         * lib/wait-process.c: Include simply <sys/wait.h>.
69976         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
69977         WIFSTOPPED): Remove fallback definitions.
69978         * modules/wait-process (Depends-on): Add sys_wait.
69980         New module 'sys_wait'.
69981         * modules/sys_wait: New file.
69982         * lib/sys_wait.in.h: New file, partially copied from
69983         lib/wait-process.c.
69984         * m4/sys_wait_h.m4: New file.
69985         * doc/posix-headers/sys_wait.texi: Mention the new module.
69987 2008-10-19  Bruno Haible  <bruno@clisp.org>
69989         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
69991 2008-10-19  Bruno Haible  <bruno@clisp.org>
69993         Assume that waitpid() fills an 'int' status, not a 'union wait'.
69994         * lib/wait-process.c (WAIT_T): Remove type.
69995         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
69996         (wait_subprocess): Update.
69998 2008-10-19  Bruno Haible  <bruno@clisp.org>
70000         New module 'atoll'.
70001         * modules/atoll: New file.
70002         * lib/stdlib.in.h (atoll): New declaration.
70003         * lib/atoll.c: New file, from glibc with modifications.
70004         * m4/atoll.m4: New file.
70005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
70006         HAVE_ATOLL.
70007         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
70008         * doc/posix-functions/atoll.texi: Mention the new module.
70010 2008-10-19  Bruno Haible  <bruno@clisp.org>
70012         Add strtoull() declaration to <stdlib.h>.
70013         * lib/stdlib.in.h (strtoull): New declaration.
70014         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70015         Set HAVE_STRTOULL.
70016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
70017         HAVE_STRTOULL.
70018         * modules/strtoull (Depends-on): Add stdlib.
70019         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70020         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
70021         HAVE_STRTOULL.
70023 2008-10-19  Bruno Haible  <bruno@clisp.org>
70025         Add strtoll() declaration to <stdlib.h>.
70026         * lib/stdlib.in.h (strtoll): New declaration.
70027         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70028         Set HAVE_STRTOLL.
70029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
70030         HAVE_STRTOLL.
70031         * modules/strtoll (Depends-on): Add stdlib.
70032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70033         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
70035 2008-10-19  Bruno Haible  <bruno@clisp.org>
70037         * modules/bcopy (Depends-on): Add strings.
70038         (Include): Specify <strings.h>.
70040 2008-10-19  Bruno Haible  <bruno@clisp.org>
70042         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
70044 2008-10-19  Bruno Haible  <bruno@clisp.org>
70046         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
70047         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
70048         mingw.
70050 2008-10-19  Bruno Haible  <bruno@clisp.org>
70052         * lib/atanl.c: Don't include isnanl.h.
70053         * lib/cosl.c: Likewise.
70054         * lib/ldexpl.c: Likewise.
70055         * lib/logl.c: Likewise.
70056         * lib/sinl.c: Likewise.
70057         * lib/sqrtl.c: Likewise.
70058         * lib/tanl.c: Likewise.
70060         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
70061         * lib/isnanf.h: Remove file.
70062         * lib/isnand.h: Remove file.
70063         * lib/isnanl.h: Remove file.
70064         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
70065         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
70066         macros.
70067         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
70068         HAVE_ISNANF, don't define it as a C macro.
70069         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
70070         HAVE_ISNAND, don't define it as a C macro.
70071         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
70072         HAVE_ISNANL, don't define it as a C macro.
70073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
70074         HAVE_ISNAN[FDL].
70075         * modules/isnanf (Files): Remove lib/isnanf.h.
70076         (Depends-on): Add math.
70077         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70078         (Include): Specify <math.h> instead of isnanf.h.
70079         * modules/isnand (Files): Remove lib/isnand.h.
70080         (Depends-on): Add math.
70081         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70082         (Include): Specify <math.h> instead of isnand.h.
70083         * modules/isnanl (Files): Remove lib/isnanl.h.
70084         (Depends-on): Add math.
70085         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70086         (Include): Specify <math.h> instead of isnanl.h.
70087         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
70088         HAVE_ISNAN[FDL].
70089         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
70090         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
70091         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
70092         * NEWS: Mention the change.
70094 2008-10-18  Bruno Haible  <bruno@clisp.org>
70096         Add getusershell(), setusershell(), endusershell() declarations to
70097         <unistd.h>.
70098         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
70099         declarations.
70100         * lib/getusershell.c: Include unistd.h.
70101         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
70102         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70103         HAVE_GETUSERSHELL.
70104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
70105         and HAVE_GETUSERSHELL.
70106         * modules/getusershell (Depends-on): Add unistd, extensions.
70107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70108         (Include): Specify <unistd.h>.
70109         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
70110         HAVE_GETUSERSHELL.
70112 2008-10-18  Bruno Haible  <bruno@clisp.org>
70114         Add a getloadavg() declaration to <stdlib.h>.
70115         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
70116         getloadavg declaration.
70117         (getloadavg): New declaration.
70118         * lib/getloadavg.c: Include <stdlib.h> first.
70119         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
70120         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
70121         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
70122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
70123         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70124         * modules/getloadavg (Depends-on): Add stdlib, extensions.
70125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70126         (Include): Specify <stdlib.h>.
70127         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
70128         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70130 2008-10-18  Bruno Haible  <bruno@clisp.org>
70132         * lib/dirchownmod.c: Don't include lchmod.h.
70134         Move the lchmod() declaration to <sys/stat.h>.
70135         * lib/lchmod.h: Remove file.
70136         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
70137         (lchmod): New declaration, moved here from lib/lchown.h.
70138         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
70139         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
70140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
70141         and HAVE_LCHMOD.
70142         * modules/lchmod (Files): Remove lib/lchmod.h.
70143         (Depends-on): Add sys_stat, extensions.
70144         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70145         (Include): Specify <sys/stat.h> instead of lchmod.h.
70146         * modules/sys_stat (Depends-on): Add link-warning.
70147         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
70148         definition of GL_LINK_WARNING.
70149         * NEWS: Mention the change.
70151 2008-10-18  Bruno Haible  <bruno@clisp.org>
70153         * lib/fchdir.c: Don't include dirfd.h.
70154         * lib/fts.c: Likewise.
70155         * lib/getcwd.c: Likewise.
70156         * lib/glob.c: Likewise.
70158         Move the dirfd() declaration to <dirent.h>.
70159         * lib/dirfd.h: Remove file.
70160         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
70161         (dirfd): New declaration.
70162         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
70163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
70164         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
70165         HAVE_DECL_DIRFD.
70166         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
70167         HAVE_DECL_DIRFD.
70168         * modules/dirfd (Files): Remove lib/dirfd.h.
70169         (Depends-on): Add dirent, extensions.
70170         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
70171         (Include): Specify <dirent.h> instead of dirfd.h.
70172         * modules/dirent (Depends-on): Add link-warning.
70173         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
70174         definition of GL_LINK_WARNING.
70175         * NEWS: Mention the change.
70177 2008-10-18  Bruno Haible  <bruno@clisp.org>
70179         Move the euidaccess() declaration to <unistd.h>.
70180         * lib/euidaccess.h: Remove file.
70181         * lib/unistd.in.h (euidaccess): New declaration.
70182         * lib/euidaccess.c: Don't include euidaccess.h.
70183         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
70184         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
70185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
70186         and HAVE_EUIDACCESS.
70187         * modules/euidaccess (Files): Remove lib/euidaccess.h.
70188         (Depends-on): Add unistd.
70189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70190         (Include): Specify <unistd.h> instead of euidaccess.h.
70191         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
70192         HAVE_EUIDACCESS.
70193         * NEWS: Mention the change.
70195 2008-10-18  Bruno Haible  <bruno@clisp.org>
70197         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
70199         Move the getdomainname() declaration to <unistd.h>.
70200         * lib/getdomainname.h: Remove file.
70201         * lib/unistd.in.h (getdomainname): New declaration.
70202         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
70203         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
70204         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70205         HAVE_GETDOMAINNAME.
70206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70207         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
70208         * modules/getdomainname (Files): Remove lib/getdomainname.h.
70209         (Depends-on): Add unistd, extensions.
70210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70211         (Includes): Specify <unistd.h> instead of getdomainname.h.
70212         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
70213         HAVE_GETDOMAINNAME.
70214         * NEWS: Mention the change.
70216 2008-10-18  Bruno Haible  <bruno@clisp.org>
70218         * modules/dirent: New file.
70219         * m4/dirent_h.m4: New file.
70220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
70221         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
70222         * modules/fchdir (Files): Remove lib/dirent.in.h.
70223         (Depends-on): Add dirent.
70224         (Makefile.am): Move rules to modules/dirent.
70225         * doc/posix-headers/dirent.texi: Mention the new module.
70227 2008-10-18  Bruno Haible  <bruno@clisp.org>
70229         Avoid -Wunused-parameter warnings in public gnulib header files.
70230         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
70231         macro.
70232         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
70234 2008-10-18  Bruno Haible  <bruno@clisp.org>
70236         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
70237         * doc/glibc-functions/error.texi: Mention the module 'error'.
70238         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
70239         * doc/glibc-functions/getdomainname.texi: Mention the module
70240         'getdomainname'.
70241         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
70242         * doc/glibc-functions/getpagesize.texi: Mention the module
70243         'getpagesize'.
70244         * doc/glibc-functions/getusershell.texi: Mention the module
70245         'getusershell'.
70246         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
70247         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
70248         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
70249         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
70250         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
70251         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
70252         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
70253         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
70254         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
70255         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
70256         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
70257         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
70258         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
70259         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
70261 2008-10-17  Bruno Haible  <bruno@clisp.org>
70263         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
70264         HP-UX and IRIX, use -0.0L.
70265         * tests/test-ceill.c (minus_zero): Likewise.
70266         * tests/test-floorl.c (minus_zero): Likewise.
70267         * tests/test-frexpl.c (minus_zero): Likewise.
70268         * tests/test-isnan.c (minus_zerol): Likewise.
70269         * tests/test-isnanl.h (minus_zero): Likewise.
70270         * tests/test-ldexpl.c (minus_zero): Likewise.
70271         * tests/test-roundl.c (minus_zero): Likewise.
70272         * tests/test-signbit.c (minus_zerol): Likewise.
70273         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
70274         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
70275         * tests/test-truncl.c (minus_zero): Likewise.
70276         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
70277         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
70278         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
70279         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
70281 2008-10-17  Bruno Haible  <bruno@clisp.org>
70283         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
70284         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
70285         that it gets activated only for gcc >= 3.0.
70286         * lib/dirent.in.h: Likewise.
70287         * lib/errno.in.h: Likewise.
70288         * lib/fcntl.in.h: Likewise.
70289         * lib/float.in.h: Likewise.
70290         * lib/iconv.in.h: Likewise.
70291         * lib/inttypes.in.h: Likewise.
70292         * lib/locale.in.h: Likewise.
70293         * lib/math.in.h: Likewise.
70294         * lib/netdb.in.h: Likewise.
70295         * lib/netinet_in.in.h: Likewise.
70296         * lib/search.in.h: Likewise.
70297         * lib/signal.in.h: Likewise.
70298         * lib/spawn.in.h: Likewise.
70299         * lib/stdarg.in.h: Likewise.
70300         * lib/stdint.in.h: Likewise.
70301         * lib/stdio.in.h: Likewise.
70302         * lib/stdlib.in.h: Likewise.
70303         * lib/string.in.h: Likewise.
70304         * lib/strings.in.h: Likewise.
70305         * lib/sys_file.in.h: Likewise.
70306         * lib/sys_ioctl.in.h: Likewise.
70307         * lib/sys_select.in.h: Likewise.
70308         * lib/sys_socket.in.h: Likewise.
70309         * lib/sys_stat.in.h: Likewise.
70310         * lib/sys_time.in.h: Likewise.
70311         * lib/sysexits.in.h: Likewise.
70312         * lib/time.in.h: Likewise.
70313         * lib/unistd.in.h: Likewise.
70314         * lib/wchar.in.h: Likewise.
70315         * lib/wctype.in.h: Likewise.
70316         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70318 2008-10-17  Jim Meyering  <meyering@redhat.com>
70320         ignore-value: don't depend on inline module
70321         * modules/ignore-value (Depends-on): Remove 'inline'.
70322         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
70323         Suggestion from Bruno Haible.
70325 2008-10-17  Bruno Haible  <bruno@clisp.org>
70327         New implementation of condition variables for Win32.
70328         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
70329         (gl_linked_waitqueue_t): New type.
70330         (gl_cond_t): Use it.
70331         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
70332         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
70333         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
70334         (glthread_cond_init_func, glthread_cond_wait_func,
70335         glthread_cond_timedwait_func, glthread_cond_signal_func,
70336         glthread_cond_broadcast_func, glthread_cond_destroy_func):
70337         Reimplemented on the basis of gl_linked_waitqueue_t.
70338         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
70339         gl_waitqueue_t.
70340         (gl_rwlock_t): Update.
70341         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
70343 2008-10-17  Simon Josefsson  <simon@josefsson.org>
70345         * modules/recvfrom (Depends-on): Add dependency on getpeername.
70346         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70348 2008-10-17  Jim Meyering  <meyering@redhat.com>
70350         ignore-value: new module
70351         * modules/ignore-value: New file.
70352         * lib/ignore-value.h: New file.
70353         * MODULES.html.sh (Compiler warning management): New section,
70354         just for this module.  More to come.
70356 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70358         open-safer.c: avoid 'signed and unsigned in conditional...' warning
70359         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
70360         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
70362 2008-10-16  Jim Meyering  <meyering@redhat.com>
70364         openat-die.c: avoid 'no previous prototype' warning
70365         * lib/openat-die.c: Include "openat.h".
70366         Reported by Reuben Thomas <rrt@sc3d.org>.
70368 2008-10-16  Simon Josefsson  <simon@josefsson.org>
70370         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
70371         * lib/netdb.in.h: Fix typo.
70372         Reported by Bruno Haible  <bruno@clisp.org>
70374         * lib/netdb.in.h: Include sys/socket.h for platforms without
70375         netdb.h, to get structures like hostent on MinGW.
70376         * modules/netdb (Depends-on): Add sys_socket.
70378 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70380         * modules/netdb, modules/netdb-tests: New file.
70381         * m4/netdb_h.m4: New file.
70382         * lib/netdb.in.h: Add, currently just an empty file pending
70383         definitions.
70384         * tests/test-netdb.c: New file.
70385         * doc/posix-headers/netdb.texi: Mention that we replace it if
70386         needed.
70387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70388         netdb.
70390 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70392         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
70393         with code.
70395 2008-10-13  Bruno Haible  <bruno@clisp.org>
70397         * lib/glthread/cond.c (glthread_cond_wait_func,
70398         glthread_cond_timedwait_func): Add a comment.
70400 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70402         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
70403         * tests/test-select.c: Likewise,
70405 2008-10-13  Bruno Haible  <bruno@clisp.org>
70407         * lib/glthread/cond.c (glthread_cond_wait_func,
70408         glthread_cond_timedwait_func): Fix variable name.
70409         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70411 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
70413         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
70414         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
70415         struct sockaddr.sa_len.
70416         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
70418 2008-10-13  Simon Josefsson  <simon@josefsson.org>
70420         * build-aux/pmccabe2html: Add css and css_url parameters.
70422 2008-10-12  Bruno Haible  <bruno@clisp.org>
70424         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
70425         calling aclx_get.
70426         Reported by Rainer Tammer <tammer@tammer.net>.
70428 2008-10-12  Bruno Haible  <bruno@clisp.org>
70430         Use msvcrt aware primitives for creation/termination of Win32 threads.
70431         * lib/glthread/thread.c: Include <process.h>.
70432         (glthread_create_func): Use _beginthreadex instead of CreateThread.
70433         (wrapper_func): Update signature.
70434         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
70436 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70437             Bruno Haible  <bruno@clisp.org>
70439         Provide a Win32 implementation of the 'cond' module.
70440         * lib/glthread/cond.h [USE_WIN32]: New implementation.
70441         * lib/glthread/cond.c (glthread_cond_init_func,
70442         glthread_cond_wait_func, glthread_cond_timedwait_func,
70443         glthread_cond_signal_func, glthread_cond_broadcast_func,
70444         glthread_cond_destroy_func) [USE_WIN32]: New functions.
70445         * modules/cond (Dependencies): Add gettimeofday.
70447 2008-10-11  Bruno Haible  <bruno@clisp.org>
70449         Make sleep work on older versions of mingw.
70450         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
70451         only whether it exists.
70452         * doc/posix-functions/sleep.texi: Mention the problem with older
70453         versions of mingw.
70455 2008-10-11  Bruno Haible  <bruno@clisp.org>
70457         New module 'shutdown'.
70458         * modules/shutdown: New file.
70459         * lib/sys_socket.in.h (shutdown): New declaration.
70460         * lib/winsock.c (shutdown): New function.
70461         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
70462         GNULIB_SHUTDOWN.
70463         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
70464         * doc/posix-functions/shutdown.texi: Document the new module.
70466 2008-10-11  Jim Meyering  <meyering@redhat.com>
70468         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
70470 2008-10-11  Bruno Haible  <bruno@clisp.org>
70472         New module 'fclose'.
70473         * modules/fclose: New file.
70474         * lib/stdio.in.h (fclose): New declaration.
70475         * lib/fclose.c: New file.
70476         * m4/fclose.m4: New file.
70477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
70478         REPLACE_FCLOSE.
70479         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
70480         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
70481         REPLACE_FCLOSE.
70482         * modules/close (Depends-on): fclose.
70483         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
70485 2008-10-11  Bruno Haible  <bruno@clisp.org>
70487         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
70488         set errno and don't call _close.
70490 2008-10-10  Bruno Haible  <bruno@clisp.org>
70492         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
70493         ACL, not afterwards. Fixes test failure on Cygwin.
70495 2008-10-09  Ben Pfaff  <blp@gnu.org>
70497         * build-aux/announce-gen: Fix gnulib version related part of usage
70498         message.  Die with a useful error message if no tarballs are
70499         found.
70501 2008-10-10  Jim Meyering  <meyering@redhat.com>
70503         bootstrap: use git's --depth=N option only if it's supported
70504         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
70505         recognize the --depth option.  Reported by Pádraig Brady.
70507 2008-10-09  Bruno Haible  <bruno@clisp.org>
70509         New module 'ioctl'.
70510         * modules/ioctl: New file.
70511         * lib/sys_socket.in.h (ioctl): Remove declaration.
70512         * lib/winsock.c: Include <sys/ioctl.h>.
70513         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
70514         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
70515         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
70516         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
70517         * doc/posix-functions/ioctl.texi: Mention the new module.
70519 2008-10-09  Bruno Haible  <bruno@clisp.org>
70521         New module 'sys_ioctl'.
70522         * lib/sys_ioctl.in.h: New file.
70523         * m4/sys_ioctl_h.m4: New file.
70524         * modules/sys_ioctl: New file.
70525         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
70527 2008-10-09  Bruno Haible  <bruno@clisp.org>
70529         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
70530         * lib/winsock.c: Include <stdarg.h>.
70531         (rpl_ioctl): Change to second argument 'int' and then varargs.
70533 2008-10-09  Bruno Haible  <bruno@clisp.org>
70535         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
70536         when the sys_socket module is present and the system has <winsock2.h>.
70538 2008-10-09  Bruno Haible  <bruno@clisp.org>
70540         * doc/posix-functions/close.texi: Mention module 'close' instead of
70541         module 'sys_socket'.
70543 2008-10-09  Bruno Haible  <bruno@clisp.org>
70545         * doc/glibc-headers/sys_ioctl.texi: New file.
70546         * doc/gnulib.texi: Include it.
70548 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70549             Bruno Haible  <bruno@clisp.org>
70551         Combine the two replacements of 'close'.
70552         * lib/sys_socket.in.h (close): Define to a reminder to include
70553         <unistd.h>.
70554         (_gl_close_fd_maybe_socket): New declaration.
70555         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
70556         * lib/winsock.c (close): Remove undefinition.
70557         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
70558         needed for the gnulib module 'close'.
70559         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
70560         define to an error symbol or to a warning, if suitable.
70561         * lib/close.c: Include <sys/socket.h>.
70562         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
70563         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
70564         UNISTD_H_HAVE_WINSOCK2_H.
70565         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
70566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70567         UNISTD_H_HAVE_WINSOCK2_H.
70568         * modules/sys_socket (Files): Add m4/unistd_h.m4.
70569         (configure.ac): Set a module indicator.
70570         (Makefile.am): Substitute GNULIB_CLOSE.
70571         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
70572         * modules/poll-tests (Depends-on): Add close.
70573         * modules/select-tests (Depends-on): Likewise.
70575 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70576             Bruno Haible  <bruno@clisp.org>
70578         New module 'close'.
70579         * modules/close: New file.
70580         * lib/unistd.in.h (close): Move declaration out of the
70581         FCHDIR_REPLACEMENT scope.
70582         (_gl_unregister_fd): New declaration.
70583         * lib/close.c: New file.
70584         * lib/fchdir.c (rpl_close): Remove function.
70585         * m4/close.m4: New file.
70586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70587         close.
70588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
70589         REPLACE_CLOSE.
70590         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
70591         REPLACE_CLOSE.
70592         * modules/fchdir (Depends-on): Add close.
70594 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70595             Bruno Haible  <bruno@clisp.org>
70597         * lib/fcntl.in.h (open): Simplify conditionals.
70598         (_gl_register_fd): New declaration.
70599         * lib/fchdir.c (rpl_open): Remove function.
70600         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
70601         also.
70602         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
70603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70604         open.
70606 2008-10-09  Jim Meyering  <meyering@redhat.com>
70608         GNUmakefile: use the more name-space-friendly "_version"
70609         * top/GNUmakefile (_dummy): Update.
70610         (_version): Rename from "version".
70612 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70613             Bruno Haible  <bruno@clisp.org>
70615         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
70616         rpl_close.
70617         (_gl_register_fd): New function, extracted from rpl_open.
70618         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
70619         (rpl_open, rpl_opendir): Use _gl_register_fd.
70621 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70623         Fix organization of 'open' replacement.
70624         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
70625         (gl_FUNC_OPEN): Use it.
70626         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
70628 2008-10-08  Bruno Haible  <bruno@clisp.org>
70630         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
70632 2008-10-08  Simon Josefsson  <simon@josefsson.org>
70634         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
70635         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
70636         listen).
70638 2008-10-08  Eric Blake  <ebb9@byu.net>
70640         GNUmakefile: add 'make version' target
70641         * top/GNUmakefile (_curr-ver): Split version update rules...
70642         (version): ...into a target.
70644 2008-10-07  Bruno Haible  <bruno@clisp.org>
70646         Use a more portable replacement expression for -0.0L.
70647         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
70648         instead of -0.0L. Fix m4 quotation.
70650         * tests/test-signbit.c: Include <float.h>.
70651         (minus_zero): New variable.
70652         (test_signbitl): Use minus_zero instead of -zero.
70653         * modules/signbit-tests (Depends-on): Add float.
70655         * tests/test-ceill.c: Include <float.h>.
70656         (zero): Remove variable.
70657         (minus_zero): New variable.
70658         (main): Use minus_zero instead of -zero.
70659         * modules/ceill-tests (Depends-on): Add float.
70661         * tests/test-floorl.c: Include <float.h>.
70662         (zero): Remove variable.
70663         (minus_zero): New variable.
70664         (main): Use minus_zero instead of -zero.
70665         * modules/floorl-tests (Depends-on): Add float.
70667         * tests/test-roundl.c: Include <float.h>.
70668         (zero): Remove variable.
70669         (minus_zero): New variable.
70670         (main): Use minus_zero instead of -zero.
70671         * modules/roundl-tests (Depends-on): Add float.
70673         * tests/test-truncl.c: Include <float.h>.
70674         (zero): Remove variable.
70675         (minus_zero): New variable.
70676         (main): Use minus_zero instead of -zero.
70677         * modules/truncl-tests (Depends-on): Add float.
70679         * tests/test-frexpl.c (zero): Remove variable.
70680         (minus_zero): New variable.
70681         (main): Use minus_zero instead of -zero.
70682         * modules/frexpl-tests (Depends-on): Add float.
70684         * tests/test-isnan.c (zerol): Remove variable.
70685         (minus_zerol): New variable.
70686         (test_long_double): Use minus_zerol instead of -zerol.
70687         * modules/isnan-tests (Depends-on): Add float.
70689         * tests/test-isnanl.h (zero): Remove variable.
70690         (minus_zero): New variable.
70691         (main): Use minus_zero instead of -zero.
70692         * modules/isnanl-nolibm-tests (Depends-on): Add float.
70693         * modules/isnanl-tests (Depends-on): Add float.
70695         * tests/test-ldexpl.c (zero): Remove variable.
70696         (minus_zero): New variable.
70697         (main): Use minus_zero instead of -zero.
70698         * modules/ldexpl-tests (Depends-on): Add float.
70700         * tests/test-snprintf-posix.h (zerol): Remove variable.
70701         (minus_zerol): New variable.
70702         (test_function): Use minus_zerol instead of -zerol.
70703         * modules/snprintf-posix-tests (Depends-on): Add float.
70704         * modules/vsnprintf-posix-tests (Depends-on): Add float.
70706         * tests/test-sprintf-posix.h (zerol): Remove variable.
70707         (minus_zerol): New variable.
70708         (test_function): Use minus_zerol instead of -zerol.
70709         * modules/sprintf-posix-tests (Depends-on): Add float.
70710         * modules/vsprintf-posix-tests (Depends-on): Add float.
70712         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
70713         (minus_zerol): New variable.
70714         (test_function): Use minus_zerol instead of -zerol.
70715         * modules/vasnprintf-posix-tests (Depends-on): Add float.
70717         * tests/test-vasprintf-posix.c (zerol): Remove variable.
70718         (minus_zerol): New variable.
70719         (test_function): Use minus_zerol instead of -zerol.
70720         * modules/vasprintf-posix-tests (Depends-on): Add float.
70722 2008-10-07  Simon Josefsson  <simon@josefsson.org>
70724         * MODULES.html.sh (Support for building documentation): Mention
70725         pmccabe2html.  Sort entries.
70727         Add pmccabe2html module, from gnupdf.
70728         * build-aux/pmccabe.css: New file.
70729         * build-aux/pmccabe2html: New file.
70730         * m4/pmccabe2html.m4: New file.
70731         * modules/pmccabe2html: New file.
70733 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
70735         flock: new module
70736         * MODULES.html.sh: Add to list of modules.
70737         * lib/flock.c: flock implementation for Windows and Unix systems
70738         which have fcntl.
70739         * doc/glibc-functions/flock.texi: Update documentation.
70740         * lib/sys_file.in.h: <sys/file.h> header file.
70741         * m4/flock.m4: M4 macros.
70742         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
70743         * modules/flock: flock module.
70744         * modules/flock-tests: flock tests module.
70745         * modules/sys_file: sys/file.h module.
70746         * tests/test-flock.c: test suite for flock.
70748 2008-10-06  Jim Meyering  <meyering@redhat.com>
70750         bootstrap: check for LT_INIT more portably still ;-)
70751         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
70752         Spotted by Bruno Haible.
70754 2008-10-06  Eric Blake  <ebb9@byu.net>
70756         test-signbit: avoid tripping Irix cc bug on -0.0L
70757         * tests/test-signbit.c (minus_zerol): Delete, and replace with
70758         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
70759         entire testsuite consistent and avoids an Irix 6.2 bug.
70761 2008-10-05  Bruno Haible  <bruno@clisp.org>
70762             Jim Meyering  <jim@meyering.net>
70764         Add an option for ignoring EPIPE during close_stdout.
70765         * lib/closeout.h: Include <stdbool.h>.
70766         (close_stdout_set_ignore_EPIPE): New declaration.
70767         * lib/closeout.c: Include <stdbool.h>.
70768         (ignore_EPIPE): New variable.
70769         (close_stdout_set_ignore_EPIPE): New function.
70770         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
70771         * lib/close-stream.c (close_stream): Mention the possible EPIPE
70772         failure.
70773         * modules/closeout (Depends-on): Add stdbool.
70775 2008-10-05  Bruno Haible  <bruno@clisp.org>
70777         * modules/accept: New file.
70778         * modules/bind: New file.
70779         * modules/connect: New file.
70780         * modules/getpeername: New file.
70781         * modules/getsockname: New file.
70782         * modules/getsockopt: New file.
70783         * modules/listen: New file.
70784         * modules/recv: New file.
70785         * modules/recvfrom: New file.
70786         * modules/send: New file.
70787         * modules/sendto: New file.
70788         * modules/setsockopt: New file.
70789         * modules/socket: New file.
70790         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
70791         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70792         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
70793         the particular module is requested. Add a link warning when the
70794         particular module is not requested.
70795         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
70796         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
70797         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
70798         the particular module is requested.
70799         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
70800         gl_SYS_SOCKET_H_DEFAULTS): New macros.
70801         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
70802         * modules/sys_socket (Depends-on): Add link-warning.
70803         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
70804         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
70805         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
70806         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
70807         GL_LINK_WARNING.
70808         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
70809         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
70810         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
70811         * doc/posix-functions/getpeername.texi: Mention the new module
70812         'getpeername'.
70813         * doc/posix-functions/getsockname.texi: Mention the new module
70814         'getsockname'.
70815         * doc/posix-functions/getsockopt.texi: Mention the new module
70816         'getsockopt'.
70817         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
70818         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
70819         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
70820         * doc/posix-functions/send.texi: Mention the new module 'send'.
70821         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
70822         * doc/posix-functions/setsockopt.texi: Mention the new module
70823         'setsockopt'.
70824         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
70825         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
70826         listen, connect, accept.
70827         * modules/select-tests (Depends-on): Likewise.
70829 2008-10-05  Bruno Haible  <bruno@clisp.org>
70831         * lib/winsock.c (strerror): Remove unused #undef.
70832         (rpl_close): Remove unused local variable.
70834         * modules/sys_socket (Depends-on); Add errno.
70836 2008-10-05  Bruno Haible  <bruno@clisp.org>
70838         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
70839         (select): Add a link warning when the 'select' module is not used.
70840         * modules/sys_select (Depends-on): Add link-warning.
70841         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
70842         Suggested by Paolo Bonzini.
70844 2008-10-05  Jim Meyering  <meyering@redhat.com>
70846         bootstrap: check for LT_INIT more portably
70847         * build-aux/bootstrap: Avoid using grep -E, since it's not
70848         portable enough.  Suggestion from Bruno Haible.
70850 2008-10-05  Bruno Haible  <bruno@clisp.org>
70852         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
70853         as being fixed by gnulib.
70855 2008-10-05  Bruno Haible  <bruno@clisp.org>
70857         * modules/select-tests: New file, mostly copied from
70858         modules/sys_select-tests.
70859         * tests/test-select.c: New file, mostly copied from
70860         tests/test-sys_select.c.
70861         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
70862         * modules/sys_select-tests (Depends-on): Remove all dependencies.
70863         (Makefile.am): Remove test_sys_select_LDADD.
70865         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
70866         to an undefined symbol, for an error message.
70867         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
70868         (gl_SYS_SELECT_H_DEFAULTS): New macro.
70869         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
70870         winsock-select.c here.
70871         * modules/sys_select (Files): Remove lib/winsock-select.c.
70872         (Depends-on): Remove alloca.
70873         (Makefile.am): Substitute GNULIB_SELECT.
70874         * modules/select: New file.
70875         * doc/posix-functions/select.texi: Update.
70877 2008-10-05  Bruno Haible  <bruno@clisp.org>
70879         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
70880         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
70881         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
70882         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
70883         getdtablesize.
70884         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
70885         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
70887 2008-10-05  Bruno Haible  <bruno@clisp.org>
70889         * modules/getdtablesize-tests: New file.
70890         * tests/test-getdtablesize.c: New file.
70892         New module 'getdtablesize'.
70893         * lib/unistd.in.h (getdtablesize): New declaration.
70894         * lib/getdtablesize.c: New file.
70895         * m4/getdtablesize.m4: New file.
70896         * modules/getdtablesize: New file.
70897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70898         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
70899         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
70900         HAVE_GETDTABLESIZE.
70901         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
70903 2008-10-05  Bruno Haible  <bruno@clisp.org>
70905         * modules/sched (Makefile.am): Fix typo.
70906         Reported by Simon Josefsson.
70908 2008-10-05  Jim Meyering  <meyering@redhat.com>
70910         bootstrap: check for LT_INIT, too
70911         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
70912         are deprecated.  Suggestion from Ralf Wildenhues.
70914 2008-10-05  Bruno Haible  <bruno@clisp.org>
70916         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
70917         overriding them by ours.
70918         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
70920 2008-10-05  Jim Meyering  <meyering@redhat.com>
70922         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
70923         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
70924         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
70926 2008-10-04  Bruno Haible  <bruno@clisp.org>
70928         * modules/dup2 (License): Change to LGPLv2+.
70929         * modules/sleep (License): Likewise.
70930         * modules/perror (License): Likewise.
70931         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
70932         Blake.
70933         * modules/signal (License): Likewise.
70934         * modules/sigprocmask (License): Likewise.
70935         * modules/raise (License): Change to LGPLv2+, with approval by Jim
70936         Meyering.
70938 2008-10-04  Bruno Haible  <bruno@clisp.org>
70940         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
70941         Reported by Rainer Tammer <tammer@tammer.net>.
70943 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
70944             Bruno Haible  <bruno@clisp.org>
70946         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
70947         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
70948         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
70950 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
70952         filevercmp: new module
70953         * lib/filevercmp.h: New function filevercmp comparing version strings.
70954         * lib/filevercmp.c: Implementation of filevercmp function.
70955         * modules/filevercmp: Module metadata.
70956         * tests/test-filevercmp.c: Unit test for new module.
70957         * modules/filevercmp-tests: Unit test metadata.
70958         * MODULES.html.sh: Add filevercmp module.
70960 2008-10-03  Bruno Haible  <bruno@clisp.org>
70962         * lib/c-ctype.h: Add comment.
70963         Reported by Jim Meyering.
70965 2008-10-02  Bruno Haible  <bruno@clisp.org>
70967         * modules/posix_spawn-internal (Depends-on): Add 'open'.
70969 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70971         * build-aux/bootstrap: Allow renaming bootstrap, and change the
70972         name of bootstrap.conf accordingly.
70974 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70976         * build-aux/bootstrap: Install git-merge-changelog configuration
70977         items into .gitconfig if needed.
70979 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70981         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
70982         git repository, and initialize/update it accordingly.
70984 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
70986         * modules/fsync-tests: New file.
70987         * tests/test-fsync.c: New file.
70989         New module 'fsync'.
70990         * lib/fsync.c: New file.
70991         * m4/fsync.m4: New file.
70992         * modules/fsync: New file.
70993         * lib/unistd.in.h (fsync): New declaration.
70994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
70995         GNULIB_FSYNC and HAVE_FSYNC.
70996         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
70997         * MODULES.html.sh (posix_functions): Add fsync.
70998         * doc/posix-functions/fsync.texi: Mention the new module.
71000 2008-10-02  Jim Meyering  <meyering@redhat.com>
71002         fts.c: sync with similar code from coreutils' remove.c
71003         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
71004         Guard also with "#if defined __linux__", since for now at least,
71005         this code is Linux-kernel-specific.
71007 2008-10-02  Jim Meyering  <meyering@redhat.com>
71009         fts: bug fixes
71010         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
71011         Include <sys/vfs.h>, not <sys/statfs.h>.
71013         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
71014         Include <sys/vfs.h>, not <sys/statfs.h>.
71016 2008-10-01  Bruno Haible  <bruno@clisp.org>
71018         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
71019         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
71020         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
71021         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
71022         * doc/posix-functions/posix_spawnp.texi: Likewise.
71023         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
71024         whether posix_spawn actually works.
71025         * m4/pipe.m4 (gl_PIPE): Likewise.
71026         * modules/execute (Files): Add m4/posix_spawn.m4.
71027         * modules/pipe (Files): Add m4/posix_spawn.m4.
71028         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
71030 2008-10-01  Jim Meyering  <meyering@redhat.com>
71032         remove trailing spaces
71033         * NEWS: Likewise.
71034         * lib/poll.c (poll): Likewise.
71035         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
71036         * lib/winsock.c (rpl_close): Likewise.
71037         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
71038         * modules/yield: Likewise.
71039         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
71040         * tests/test-sys_select.c (connect_to_socket): Likewise.
71042         fts.c: adjust a new interface to be more generally useful
71043         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
71044         (fts_build): Adjust caller.
71046 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71048         * modules/cond-tests: New file.
71049         * tests/test-cond.c: New file.
71051 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71052             Bruno Haible  <bruno@clisp.org>
71054         * modules/cond (Dependencies): Add errno, time.
71055         * lib/glthread/cond.h: Include <time.h>.
71056         (gl_cond_define, gl_cond_define_initialized): Use the same definition
71057         across platforms.
71059 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71060             Bruno Haible  <bruno@clisp.org>
71062         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
71064 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71065             Bruno Haible  <bruno@clisp.org>
71067         * modules/tls-tests (Depends-on): Add thread, yield.
71068         (configure.ac): Remove all checks.
71069         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
71070         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71071         gl_thread_self): Remove definitions. Include glthread/thread.h and
71072         glthread/yield.h instead.
71073         (test_tls): Pass an additional NULL argument to gl_thread_join.
71075 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71076             Bruno Haible  <bruno@clisp.org>
71078         * modules/lock-tests (Depends-on): Add thread, yield.
71079         (configure.ac): Remove all checks.
71080         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
71081         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71082         gl_thread_self): Remove definitions. Include glthread/thread.h and
71083         glthread/yield.h instead.
71084         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
71085         additional NULL argument to gl_thread_join.
71087 2008-09-30  Bruno Haible  <bruno@clisp.org>
71089         Fix the Win32 implementation of the 'thread' module.
71090         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
71091         pointer type.
71092         (gl_thread_self): Invoke gl_thread_self_func.
71093         (gl_thread_self_func): New declaration.
71094         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
71095         (do_init_self_key, init_self_key): New functions.
71096         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
71097         Remove some fields.
71098         (running_threads, running_lock): Remove variables.
71099         (get_current_thread_handle): New function.
71100         (gl_thread_self_func, wrapper_func, glthread_create_func,
71101         glthread_join_func, gl_thread_exit_func): Largely rewritten and
71102         simplified.
71104 2008-09-30  Bruno Haible  <bruno@clisp.org>
71106         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
71107         files.
71109 2008-09-30  Jim Meyering  <meyering@redhat.com>
71111         fts.m4: correct the test for statfs.f_type
71112         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
71113         when checking for statfs.f_type.
71115 2008-09-15  Simon Josefsson  <simon@josefsson.org>
71117         tests: avoid some compiler warnings
71118         * tests/test-memchr.c (main): Pass NULL indirectly.
71119         * tests/test-getdate.c (main): Remove unused variable 'ret'.
71121 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
71123         getdate.y: disallow countable dayshifts like "4 yesterday ago"
71124         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
71125         exactly specified dayshifts.
71126         (dayshift): New rule.
71127         (rel): Add dayshift.
71128         (relative_time_table) [tomorrow, yesterday, today, now]:
71129         Use tDAY_SHIFT in place of tDAY_UNIT.
71130         * tests/test-getdate.c: Add tests for now-disallowed countable
71131         dayshifts, e.g., "4 yesterday ago".
71133 2008-09-29  Bruno Haible  <bruno@clisp.org>
71135         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
71136         * tests/test-posix_spawn1.in.sh: Renamed from
71137         tests/test-posix_spawn.in.sh.
71138         * tests/test-posix_spawn2.c: New file.
71139         * tests/test-posix_spawn2.in.sh: New file.
71140         * modules/posix_spawnp-tests (Files): Update.
71141         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
71143 2008-09-29  Bruno Haible  <bruno@clisp.org>
71145         Propagate effects of putenv/setenv/unsetenv to child processes.
71146         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
71147         * lib/pipe.c (create_pipe): Likewise.
71149 2008-09-29  Bruno Haible  <bruno@clisp.org>
71151         Enable use of shell scripts as executables in mingw.
71152         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
71153         run the program as a shell script.
71154         * lib/pipe.c (create_pipe): Likewise.
71155         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
71156         resulting array.
71158 2008-09-29  Eric Blake  <ebb9@byu.net>
71160         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
71162 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
71164         * doc/posix-functions/accept.texi: Update mingw problems.
71165         * doc/posix-functions/bind.texi: Update mingw problems.
71166         * doc/posix-functions/close.texi: Update mingw problems.
71167         * doc/posix-functions/connect.texi: Update mingw problems.
71168         * doc/posix-functions/getpeername.texi: Update mingw problems.
71169         * doc/posix-functions/getsockname.texi: Update mingw problems.
71170         * doc/posix-functions/getsockopt.texi: Update mingw problems.
71171         * doc/posix-functions/ioctl.texi: Update mingw problems.
71172         * doc/posix-functions/listen.texi: Update mingw problems.
71173         * doc/posix-functions/recv.texi: Update mingw problems.
71174         * doc/posix-functions/recvfrom.texi: Update mingw problems.
71175         * doc/posix-functions/select.texi: Update mingw problems.
71176         * doc/posix-functions/send.texi: Update mingw problems.
71177         * doc/posix-functions/sendto.texi: Update mingw problems.
71178         * doc/posix-functions/setsockopt.texi: Update mingw problems.
71179         * doc/posix-functions/socket.texi: Update mingw problems.
71181 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
71182             Bruno Haible  <bruno@clisp.org>
71184         * lib/sys_select.in.h: Include sys/time.h.
71185         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
71186         * modules/sys_select: Depend on sys_time.
71187         * tests/test-sys_select.c: Test that sys/select.h defines struct
71188         timeval fully.
71190 2008-09-29  Bruno Haible  <bruno@clisp.org>
71192         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
71193         * lib/sys_select.in.h: Likewise.
71195 2008-09-29  Bruno Haible  <bruno@clisp.org>
71197         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
71199 2008-09-29  Bruno Haible  <bruno@clisp.org>
71201         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
71202         Set LIBSOCKET instead of augmenting LIBS.
71203         * modules/sockets (Link): New section.
71204         * modules/sockets-tests (test_sockets_LDADD): New variable.
71205         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
71206         * modules/poll-tests (test_poll_LDADD): New variable.
71207         * NEWS: Document the change.
71209 2008-09-29  Bruno Haible  <bruno@clisp.org>
71211         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
71212         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
71213         ARPA_INET_H directly.
71214         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71216 2008-09-28  Bruno Haible  <bruno@clisp.org>
71218         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
71219         from gl_HEADER_SYS_SOCKET.
71220         (gl_HEADER_SYS_SOCKET): Invoke it.
71221         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71223 2008-09-28  Bruno Haible  <bruno@clisp.org>
71225         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
71226         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
71227         Needed on OSF/1 4.0.
71229 2008-09-28  Bruno Haible  <bruno@clisp.org>
71231         Override open more carefully.
71232         * lib/open.c (orig_open): New function.
71233         (rpl_open): Use orig_open instead of open.
71234         * lib/fcntl.in.h: Add special invocation convention.
71235         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
71236         (gl_FUNC_OPEN): Invoke it.
71238         Override freopen more carefully.
71239         * lib/freopen.c (orig_freopen): New function.
71240         (rpl_freopen): Use orig_freopen instead of freopen.
71241         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
71242         (gl_FUNC_FREOPEN): Invoke it.
71244         Override fopen more carefully.
71245         * lib/fopen.c (orig_fopen): New function.
71246         (rpl_fopen): Use orig_fopen instead of fopen.
71247         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
71248         (gl_FUNC_FOPEN): Invoke it.
71249         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
71251 2008-09-28  Bruno Haible  <bruno@clisp.org>
71253         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
71254         SIGPIPE.
71256 2008-09-28  Bruno Haible  <bruno@clisp.org>
71258         * tests/test-sigaction.c (handler, main): Disable the check whether
71259         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
71260         glibc systems with LinuxThreads.
71262 2008-09-28  Bruno Haible  <bruno@clisp.org>
71264         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
71266         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
71267         with AIX xlc.
71268         * lib/fcntl.in.h (open): Likewise.
71269         Reported by Rainer Tammer <tammer@tammer.net>.
71271 2008-09-28  Bruno Haible  <bruno@clisp.org>
71273         * modules/posix_spawnp-tests: New file.
71274         * tests/test-posix_spawn.c: New file.
71275         * tests/test-posix_spawn.in.sh: New file.
71277         New module 'posix_spawnp'.
71278         * modules/posix_spawnp: New file.
71279         * lib/spawnp.c: New file, from GNU libc with modifications.
71280         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
71282         New module 'posix_spawn'.
71283         * modules/posix_spawn: New file.
71284         * lib/spawn.c: New file, from GNU libc with modifications.
71285         * doc/posix-functions/posix_spawn.texi: Mention the new module.
71287         New module 'posix_spawnattr_destroy'.
71288         * modules/posix_spawnattr_destroy: New file.
71289         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
71290         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
71291         module.
71293         New module 'posix_spawnattr_setsigmask'.
71294         * modules/posix_spawnattr_setsigmask: New file.
71295         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
71296         modifications.
71297         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
71298         new module.
71300         New module 'posix_spawnattr_getsigmask'.
71301         * modules/posix_spawnattr_getsigmask: New file.
71302         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
71303         modifications.
71304         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
71305         new module.
71307         New module 'posix_spawnattr_setsigdefault'.
71308         * modules/posix_spawnattr_setsigdefault: New file.
71309         * lib/spawnattr_setdefault.c: New file, from GNU libc with
71310         modifications.
71311         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
71312         new module.
71314         New module 'posix_spawnattr_getsigdefault'.
71315         * modules/posix_spawnattr_getsigdefault: New file.
71316         * lib/spawnattr_getdefault.c: New file, from GNU libc with
71317         modifications.
71318         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
71319         new module.
71321         New module 'posix_spawnattr_setschedpolicy'.
71322         * modules/posix_spawnattr_setschedpolicy: New file.
71323         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
71324         modifications.
71325         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
71326         new module.
71328         New module 'posix_spawnattr_getschedpolicy'.
71329         * modules/posix_spawnattr_getschedpolicy: New file.
71330         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
71331         modifications.
71332         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
71333         new module.
71335         New module 'posix_spawnattr_setschedparam'.
71336         * modules/posix_spawnattr_setschedparam: New file.
71337         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
71338         modifications.
71339         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
71340         new module.
71342         New module 'posix_spawnattr_getschedparam'.
71343         * modules/posix_spawnattr_getschedparam: New file.
71344         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
71345         modifications.
71346         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
71347         new module.
71349         New module 'posix_spawnattr_setpgroup'.
71350         * modules/posix_spawnattr_setpgroup: New file.
71351         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
71352         modifications.
71353         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
71354         module.
71356         New module 'posix_spawnattr_getpgroup'.
71357         * modules/posix_spawnattr_getpgroup: New file.
71358         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
71359         modifications.
71360         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
71361         module.
71363         New module 'posix_spawnattr_setflags'.
71364         * modules/posix_spawnattr_setflags: New file.
71365         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
71366         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
71367         module.
71369         New module 'posix_spawnattr_getflags'.
71370         * modules/posix_spawnattr_getflags: New file.
71371         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
71372         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
71373         module.
71375         New module 'posix_spawnattr_init'.
71376         * modules/posix_spawnattr_init: New file.
71377         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
71378         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
71379         module.
71381         New module 'posix_spawn_file_actions_destroy'.
71382         * modules/posix_spawn_file_actions_destroy: New file.
71383         * lib/spawn_faction_destroy.c: New file, from GNU libc with
71384         modifications.
71385         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
71386         the new module.
71388         New module 'posix_spawn_file_actions_addopen'.
71389         * modules/posix_spawn_file_actions_addopen: New file.
71390         * lib/spawn_faction_addopen.c: New file, from GNU libc with
71391         modifications.
71392         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
71393         the new module.
71395         New module 'posix_spawn_file_actions_adddup2'.
71396         * modules/posix_spawn_file_actions_adddup2: New file.
71397         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
71398         modifications.
71399         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
71400         the new module.
71402         New module 'posix_spawn_file_actions_addclose'.
71403         * modules/posix_spawn_file_actions_addclose: New file.
71404         * lib/spawn_faction_addclose.c: New file, from GNU libc with
71405         modifications.
71406         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
71407         the new module.
71409         New module 'posix_spawn_file_actions_init'.
71410         * modules/posix_spawn_file_actions_init: New file.
71411         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
71412         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
71413         new module.
71415         New module 'posix_spawn-internal'.
71416         * modules/posix_spawn-internal: New file.
71417         * lib/spawn_int.h: New file, from GNU libc with modifications.
71418         * lib/spawni.c: New file, from GNU libc with modifications.
71419         * m4/posix_spawn.m4: New file.
71421         New module 'spawn'.
71422         * modules/spawn: New file.
71423         * lib/spawn.in.h: New file, from GNU libc with modifications.
71424         * m4/spawn_h.m4: New file.
71425         * doc/posix-headers/spawn.texi: Mention the new module.
71427 2008-09-28  Bruno Haible  <bruno@clisp.org>
71429         * modules/sched-tests: New file.
71430         * tests/test-sched.c: New file.
71432         New module 'sched'.
71433         * modules/sched: New file.
71434         * lib/sched.in.h: New file.
71435         * m4/sched_h.m4: New file.
71436         * doc/posix-headers/sched.texi: Mention the new module.
71438 2008-09-27  Eric Blake  <ebb9@byu.net>
71440         Fix previous patch, and tweak references to $0.
71441         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
71442         (func_version, func_gnulib_dir): Don't call this program
71443         gnulib-tool.
71444         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
71445         with using $0 in function.
71446         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
71447         (func_fatal_error): Reuse the name the user invoked us with.
71449 2008-09-27  Bruno Haible  <bruno@clisp.org>
71451         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
71452         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
71453         (gl_ICONV_H): Not here.
71454         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71455         instead of assigning ICONV_H directly.
71457         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
71458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
71459         WCHAR_H directly.
71461 2008-09-27  Bruno Haible  <bruno@clisp.org>
71463         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
71464         * modules/arpa_inet (Depends-on): Add link-warning.
71465         (Makefile.am): Insert the definition of GL_LINK-WARNING.
71466         * modules/unistd (Makefile.am): Likewise.
71468 2008-09-26  Bruno Haible  <bruno@clisp.org>
71470         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
71471         variables.
71472         (func_version): Essentially copied from gnulib-tool.
71473         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
71474         func_readlink): Copied from gnulib-tool.
71476 2008-09-26  Bruno Haible  <bruno@clisp.org>
71478         * gnulib-tool (func_version): Change directory to $gnulib_dir before
71479         invoking git-version-gen.
71481 2008-09-26  Bruno Haible  <bruno@clisp.org>
71483         * posix-modules: Update to directory names changed on 2008-01-19.
71484         Remove commas in output before splitting into words. No more need to
71485         avoid 'ftruncate' since 2007-02-19.
71487 2008-09-26  Bruno Haible  <bruno@clisp.org>
71489         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
71491 2008-09-26  Bruno Haible  <bruno@clisp.org>
71493         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
71494         * modules/fwriteerror (Depends-on): Add errno.
71496 2008-09-26  Bruno Haible  <bruno@clisp.org>
71498         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
71499         * tests/test-vc-list-files-cvs.sh: Likewise.
71501 2008-09-26  Bruno Haible  <bruno@clisp.org>
71503         * doc/posix-headers/sys_resource.texi: Reorder items.
71505 2008-09-26  Jim Meyering  <meyering@redhat.com>
71507         fts: tweak inode comparison function
71508         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
71509         inode numbers, as documented.
71511         fts: sort dirent entries on inode number before traversing
71512         This avoids a quadratic, seek-related performance penalty when
71513         operating on a directory containing many entries (measurable at 10k;
71514         3.5 hours at 2 million entries with a cold cache) on certain types
71515         of file systems, including ext3 and ext4, but not tmpfs.
71516         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
71517         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
71518         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
71519         (fs_handles_readdir_ordered_dirents_efficiently): New function.
71520         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
71521         (fts_build): Set the stat.st_ino member from D_INO.
71522         If it is likely to be useful, sort dirent entries on inode number.
71524         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
71525         and the struct statfs.f_type member.
71526         * modules/fts (Depends-on): Add d-ino.
71528 2008-09-26  Bruno Haible  <bruno@clisp.org>
71530         * modules/sigpipe-die (Depends-on): Add sigpipe.
71532         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
71533         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
71534         and GNULIB_STDIO_H_SIGPIPE are set.
71535         * lib/stdio-write.c: New file.
71536         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
71537         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71538         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71539         REPLACE_STDIO_WRITE_FUNCS.
71540         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
71541         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71542         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71543         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
71544         * modules/stdio (Files): Add lib/stdio-write.c.
71545         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
71546         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71547         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71548         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
71549         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
71550         REPLACE_FPRINTF_POSIX.
71551         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
71552         REPLACE_PRINTF_POSIX.
71553         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
71554         REPLACE_VFPRINTF_POSIX.
71555         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
71556         REPLACE_VPRINTF_POSIX.
71557         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
71558         SIGPIPE issue.
71559         * doc/posix-functions/fputc.texi: Likewise.
71560         * doc/posix-functions/fputs.texi: Likewise.
71561         * doc/posix-functions/fwrite.texi: Likewise.
71562         * doc/posix-functions/printf.texi: Likewise.
71563         * doc/posix-functions/putc.texi: Likewise.
71564         * doc/posix-functions/putchar.texi: Likewise.
71565         * doc/posix-functions/puts.texi: Likewise.
71566         * doc/posix-functions/vfprintf.texi: Likewise.
71567         * doc/posix-functions/vprintf.texi: Likewise.
71569         * modules/safe-write (Depends-on): Add write.
71571         * modules/sigpipe-tests: New file.
71572         * tests/test-sigpipe.c: New file.
71573         * tests/test-sigpipe.sh: New file.
71575         * modules/write: New file.
71576         * lib/unistd.in.h: Include <sys/types.h>.
71577         (write): New declaration.
71578         * lib/write.c: New file.
71579         * m4/write.m4: New file.
71580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71581         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
71582         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
71583         GNULIB_WRITE, REPLACE_WRITE.
71584         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
71585         and the SIGPIPE issue.
71587         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
71588         (raise): New declaration.
71589         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
71590         (ext_signal): New function.
71591         (rpl_raise): New function.
71592         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
71593         GNULIB_SIGNAL_H_SIGPIPE.
71594         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
71595         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
71597         * modules/sigpipe: New file.
71598         * m4/sigpipe.m4: New file.
71600 2008-09-25  Derek Price  <derek@ximbiot.com>
71601             Bruno Haible  <bruno@clisp.org>
71603         * gnulib-tool (func_import): Report all license incompatibilities, not
71604         just the first one.
71606 2008-09-25  Bruno Haible  <bruno@clisp.org>
71608         * gnulib-tool (func_import): When computing the edits, consider not
71609         only the Makefile.ams that exist but also those that will be generated.
71611 2008-09-25  Simon Josefsson  <simon@josefsson.org>
71613         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
71614         fixes gnulib-tool --test warning about duplicate dependency.
71616 2008-09-25  Bruno Haible  <bruno@clisp.org>
71618         * gnulib-tool: Don't ask the user to perform edits in the generated
71619         Makefile.ams.
71620         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
71621         apply to the Makefile.am being generated.
71622         (func_emit_tests_Makefile_am): Execute edits that apply to the
71623         Makefile.am being generated.
71624         (func_import): Setup list of Makefile.am edits before emitting the
71625         Makefile.ams, not at the end.
71626         (func_create_testdir): Update.
71627         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71629 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71631         * gnulib-tool (func_import): Store the --tests-base option in the
71632         comment in gnulib-cache.m4.
71634 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
71636         * NEWS: Document increased portability that sys_select now provides.
71638         * lib/sys_select.in.h: Install select wrapper.
71639         * lib/sys_socket.in.h: Use more descriptive name when there is no
71640         select wrapper.
71641         * lib/winsock-select.c: New.
71642         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
71643         Require gl_HEADER_SYS_SOCKET.
71644         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
71645         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
71646         * tests/test-sys_select.c: Add functional tests.
71648 2008-09-24  Eric Blake  <ebb9@byu.net>
71650         open, fopen: close fd leak in last patch
71651         * lib/open.c (rpl_open): Close fd before returning error.
71652         * lib/fopen.c (rpl_fopen): Close fd before returning error.
71653         * doc/posix-functions/open.texi (open): Document that Irix also
71654         has the bug.
71655         * doc/posix-functions/fopen.texi (fopen): Likewise.
71656         Reported by Paolo Bonzini.
71658 2008-09-24  Bruno Haible  <bruno@clisp.org>
71660         Ensure that a filename ending in a slash cannot be used to access a
71661         non-directory.
71662         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
71663         to check whether it's really a directory.
71664         * lib/fopen.c: Include fcntl.h, unistd.h.
71665         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
71666         and fdopen().
71667         * modules/fopen (Depends-on): Add unistd.
71668         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
71669         * tests/test-fopen.c (main): Likewise.
71670         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
71671         * doc/posix-functions/fopen.texi: Likewise.
71672         Reported by Eric Blake.
71674 2008-09-23  Eric Blake  <ebb9@byu.net>
71676         c-stack: avoid compiler optimizations when provoking overflow
71677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
71678         recursion harder to optimize, to ensure a stack overflow occurs.
71679         * tests/test-c-stack.c (recurse): Likewise.
71680         Borrowed from libsigsegv.
71682         c-stack: work around Irix sigaltstack bug
71683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
71684         whether sigaltstack uses wrong end of stack_t (copied in part from
71685         libsigsegv).
71686         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
71687         Irix bug, without requiring an over-allocation.
71688         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
71689         bug.
71691         fopen: document mingw bug on directories
71692         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
71693         not allowing a stream visiting a directory, even though reading
71694         from such a stream is not portable.
71696 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71698         * lib/poll.c: Rewrite.
71699         * modules/poll: Depend on alloca.
71701 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71703         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
71704         instead define prototypes for a full set of wrappers.  Ensure
71705         that Cygwin does not use the compatibility code, which is only
71706         for MinGW.
71707         * lib/winsock.c: New.
71708         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
71709         * modules/sys_socket: Add lib/winsock.c.
71711         * modules/poll-tests: Add errno and perror.
71712         * tests/test-poll.c: Use ioctl, not ioctlsocket.
71714 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71716         * tests/test-poll.c: Downgrade minimum needed Winsock version.
71718 2008-09-23  Bruno Haible  <bruno@clisp.org>
71720         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
71721         * doc/glibc-functions/*: Likewise.
71723 2008-09-23  Simon Josefsson  <simon@josefsson.org>
71725         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
71726         success.
71728 2008-09-22  Eric Blake  <ebb9@byu.net>
71729             Bruno Haible  <bruno@clisp.org>
71731         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
71732         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
71733         supply %A but mishandle pseudo-NaN.
71734         Reported by Simon Josefsson.
71736 2008-09-21  Bruno Haible  <bruno@clisp.org>
71738         * tests/test-lock.c (main): Tweak skip message.
71739         * tests/test-tls.c (main): Likewise.
71741 2008-09-21  Bruno Haible  <bruno@clisp.org>
71743         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
71744         whether 'struct sigaction' has sa_sigaction here...
71745         (gl_PREREQ_SIG_HANDLER_H): ... not here.
71746         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
71748 2008-09-21  Bruno Haible  <bruno@clisp.org>
71750         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
71751         section.
71752         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
71753         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
71754         the new section.
71755         (Support for obsolete systems lacking POSIX:2001): New section.
71756         (String handling <string.h>): Move strdup to the new section.
71757         Suggested by Simon Josefsson and Paolo Bonzini.
71759 2008-09-21  Bruno Haible  <bruno@clisp.org>
71761         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
71762         exponents in %e and %g results on 'long double'. Needed for mingw's
71763         improved *printf functions.
71764         * tests/test-vasprintf-posix.c (test_function): Likewise.
71765         * tests/test-snprintf-posix.h (test_function): Likewise.
71766         * tests/test-sprintf-posix.h (test_function): Likewise.
71767         Reported by Eric Blake.
71769 2008-09-21  Bruno Haible  <bruno@clisp.org>
71771         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
71772         * tests/test-sprintf-posix.h (test_function): Likewise.
71774 2008-09-21  Bruno Haible  <bruno@clisp.org>
71776         * modules/getpass (Depends-on): Add strdup-posix.
71778         New module 'strdup-posix'.
71779         * modules/strdup-posix: New file.
71780         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
71781         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
71782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71783         REPLACE_STRDUP.
71784         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
71785         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
71786         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71787         strdup-posix.
71789         * modules/strdup (Depends-on): Remove malloc-posix.
71791 2008-09-20  Bruno Haible  <bruno@clisp.org>
71793         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
71794         Wildenhues.
71796 2008-09-20  Bruno Haible  <bruno@clisp.org>
71798         Ensure that wint_t gets defined on IRIX 5.3.
71799         * lib/wchar.in.h (wint_t): Define if not defined by the system.
71800         * lib/wctype.in.h (wint_t): Likewise.
71801         (__wctype_wint_t): Remove type.
71802         (isw*): Use wint_t instead of __wctype_wint_t.
71803         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
71804         * modules/wchar (Files): Add m4/wint_t.m4.
71805         (Makefile.am): Substitute HAVE_WINT_T.
71806         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
71807         * tests/test-wctype.c: Check that wint_t is defined.
71808         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
71809         * doc/posix-headers/wctype.texi: Likewise.
71810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71812 2008-09-18  Bruno Haible  <bruno@clisp.org>
71814         * gnulib-tool (func_exit): Update comment.
71816 2008-09-18  Simon Josefsson  <simon@josefsson.org>
71818         * modules/getaddrinfo (Depends-on): Remove strdup, this module
71819         assumes strdup exists and does not depend on strdup to return
71820         ENOMEM on out of memory conditions.
71822 2008-09-18  Bruno Haible  <bruno@clisp.org>
71824         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
71825         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
71826         digits for the exponent.
71828 2008-09-18  Jim Meyering  <meyering@redhat.com>
71829             Bruno Haible  <bruno@clisp.org>
71831         * lib/vasnprintf.c (decimal_point_char): Define also if
71832         NEED_PRINTF_INFINITE_LONG_DOUBLE.
71834 2008-09-16  Bruno Haible  <bruno@clisp.org>
71835         and Eric Blake  <ebb9@byu.net>
71837         vasnprintf: support Irix 5.3
71838         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
71839         that mishandle long double infinity.
71840         Reported by Tom G. Christensen.
71842 2008-09-16  Bruno Haible  <bruno@clisp.org>
71844         * doc/glibc-functions/scandir.texi: Mention the function is missing on
71845         Solaris 9.
71846         * doc/glibc-functions/alphasort.texi: Likewise.
71847         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
71849 2008-09-16  Jim Meyering  <meyering@redhat.com>
71851         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
71852         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
71853         a umask modification leak out of a subshell.  Otherwise, the
71854         opensolaris /bin/sh would be accepted and thus cause unwarranted
71855         failures in the coreutils test suite.
71857 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
71859         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
71860         to succeed.
71862 2008-09-16  Jim Meyering  <meyering@redhat.com>
71864         avoid spurious test failure when library is built without ACL support
71865         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
71866         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
71867         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
71868         * tests/test-copy-acl.sh: Likewise.
71870 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71872         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
71873         based on character occurrence counts.
71875 2008-09-15  Eric Blake  <ebb9@byu.net>
71877         tests: avoid some compiler warnings
71878         * tests/test-memchr.c (main): Pass NULL indirectly.
71879         * tests/test-closein.c (main): Avoid unused variable.
71881 2008-09-15  Bruno Haible  <bruno@clisp.org>
71883         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
71884         are missing on OpenBSD 4.0 individually.
71885         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71887 2008-09-15  Bruno Haible  <bruno@clisp.org>
71889         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
71890         * doc/posix-functions/strerror.texi: Mention also Cygwin.
71891         * doc/posix-functions/perror.texi: Likewise.
71892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
71893         is missing.
71894         Reported by Eric Blake.
71896         * lib/errno.in.h: Use replacement values >= 2000.
71897         Reported by Eric Blake.
71899 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71901         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
71902         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
71903         limit.
71904         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
71905         compareseq was aborted.
71907 2008-09-14  Bruno Haible  <bruno@clisp.org>
71909         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
71910         yvec_edit_count.
71911         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
71912         (fstrcmp_bounded): Simplify result computation accordingly.
71914 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71916         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
71917         (fstrcmp): Define in terms of fstrcmp_bounded.
71918         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
71919         lower_bound argument.
71920         Return quickly if the result is certainly < lower_bound.
71921         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
71923 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71925         * lib/diffseq.h (EARLY_ABORT): New macro.
71926         (compareseq): Change return type to bool. Return true when EARLY_ABORT
71927         evaluates to true.
71929 2008-09-14  Bruno Haible  <bruno@clisp.org>
71931         * modules/perror-tests: New file.
71932         * tests/test-perror.sh: New file.
71933         * tests/test-perror.c: New file.
71935         New module 'perror'.
71936         * lib/stdio.in.h (perror): New declaration.
71937         * lib/perror.c: New file.
71938         * m4/perror.m4: New file.
71939         * modules/perror: New file.
71940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
71941         * doc/posix-functions/perror.texi: Mention the perror module.
71942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
71943         REPLACE_PERROR.
71944         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
71945         REPLACE_PERROR.
71947 2008-09-14  Bruno Haible  <bruno@clisp.org>
71949         * modules/stdio (Makefile.am): Reorder to match the order in
71950         lib/stdio.in.h.
71951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71953 2008-09-13  Bruno Haible  <bruno@clisp.org>
71955         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
71957 2008-09-13  Bruno Haible  <bruno@clisp.org>
71959         Extend strerror to cover the added errno values.
71960         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
71961         (rpl_strerror): Provide error messages for the added errno values and
71962         for the WSA* values.
71963         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
71964         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
71965         strerror.
71966         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
71967         * modules/strerror (Depends-on): Add errno.
71968         * doc/posix-functions/strerror.texi: Document the change.
71969         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
71970         and EOVERFLOW.
71972 2008-09-13  Bruno Haible  <bruno@clisp.org>
71974         * modules/EOVERFLOW: Remove file.
71975         * m4/eoverflow.m4: Remove file.
71976         * modules/EOVERFLOW-tests: Remove file.
71977         * tests/test-EOVERFLOW.c: Remove file.
71978         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
71979         * modules/ftell (Depends-on): Likewise.
71980         * modules/getdelim (Depends-on): Likewise.
71981         * modules/getugroups (Depends-on): Likewise.
71982         * modules/poll (Depends-on): Likewise.
71983         * modules/snprintf (Depends-on): Likewise.
71984         * modules/sprintf-posix (Depends-on): Likewise.
71985         * modules/vasnprintf (Depends-on): Likewise.
71986         * modules/vasprintf (Depends-on): Likewise.
71987         * modules/vfprintf-posix (Depends-on): Likewise.
71988         * modules/vsnprintf (Depends-on): Likewise.
71989         * modules/vsprintf-posix (Depends-on): Likewise.
71990         * modules/xvasprintf (Depends-on): Likewise.
71991         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71992         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
71993         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
71994         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
71995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71996         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
71997         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
71998         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
71999         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72000         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
72001         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
72002         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
72003         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72004         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
72005         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
72006         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
72007         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72008         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
72009         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
72010         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
72011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72012         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
72013         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
72014         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
72015         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
72016         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72017         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
72018         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
72019         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
72020         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
72021         * MODULES.html.sh: Remove EOVERFLOW.
72022         * NEWS: Mention the change.
72024 2008-09-13  Bruno Haible  <bruno@clisp.org>
72026         * modules/errno-tests: New file.
72027         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
72029         * lib/errno.in.h: New file.
72030         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
72031         * modules/errno: New file.
72032         * doc/posix-headers/errno.texi: Update documentation.
72033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
72035 2008-09-13  Bruno Haible  <bruno@clisp.org>
72037         * tests/test-poll.c: Use #if for native Windows, rather than testing
72038         __MSVCRT__.
72040 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72041             Bruno Haible  <bruno@clisp.org>
72043         * lib/glob.c: Don't include <pwd.h> on native Windows.
72044         (WINDOWS32): New macro.
72045         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
72047 2008-09-13  Bruno Haible  <bruno@clisp.org>
72049         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
72050         (ETIMEDOUT): Remove macro.
72051         (glthread_cond_timedwait_multithreaded): New declaration.
72052         (glthread_cond_timedwait): Use it.
72053         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
72054         (glthread_cond_timedwait_multithreaded): New function.
72056 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72058         * modules/poll-tests: Do not check for io.h.
72059         * tests/test-poll.c: Check for __MSVCRT__ instead.
72061 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72063         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
72064         * modules/poll-tests: Add inet_pton, stdbool, sockets.
72065         * tests/test-poll.c: Use them.  Use _pipe on Windows.
72067 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72069         * modules/poll-tests: New.
72070         * tests/test-poll.c: New.
72072 2008-09-12  Eric Blake  <ebb9@byu.net>
72074         frexp: test for NetBSD failure on -0.0
72075         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
72076         not all, bugs from NetBSD 3.0 have been fixed.
72077         * doc/posix-functions/frexp.texi (frexp): Document bug.
72078         Reported by Thomas Klausner.
72080         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
72081         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
72082         literal -0.0.
72083         Reported by Jonathan C. Patschke <jp@centtech.com>.
72085 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72087         * lib/glthread/cond.h: Use dummy implementation also if
72088         USE_WIN32_THREADS.
72090 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72092         * modules/fnmatch-posix (License): Change to LGPLv2+.
72093         * modules/fnmatch-gnu (License): Likewise.
72095 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72097         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
72099 2008-09-11  Jim Meyering  <meyering@redhat.com>
72101         * users.txt: Add gtk-vnc.
72103 2008-09-08  Simon Josefsson  <simon@josefsson.org>
72105         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
72106         rotate amounts.
72108         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
72109         required for 16-bit and 8-bit rotates.
72110         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
72111         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
72112         UINT8_MAX instead of hard-coded constants.
72113         Suggested by Paul Eggert.
72115 2008-09-07  Bruno Haible  <bruno@clisp.org>
72117         * tests/test-striconveh.c (main): Check behaviour when converting from
72118         UTF-7.
72120         Make striconveh work better with stateful encodings.
72121         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
72122         that iconv does not increment the inptr when returning -1/EINVAL.
72124 2008-09-07  Bruno Haible  <bruno@clisp.org>
72126         * build-aux/config.rpath: Update according to libtool-2.2.6.
72127         * build-aux/config.libpath: Likewise.
72129 2008-09-06  Bruno Haible  <bruno@clisp.org>
72131         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
72132         * lib/freadptr.c (freadptr): Likewise.
72133         * lib/freadseek.c (freadptrinc): Likewise.
72134         Reported by Simon Josefsson.
72136 2008-09-06  Bruno Haible  <bruno@clisp.org>
72138         * modules/freadptr (License): Change to LGPLv2+.
72139         * modules/freadseek (License): Likewise.
72140         Suggested by Eric Blake.
72142         * modules/memchr2 (License): Change to LGPLv2+.
72143         Approved by Eric Blake.
72145 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72146             Bruno Haible  <bruno@clisp.org>
72148         Make gnulib-tool work with native 'sed' on AIX.
72149         * gnulib-tool (sed_noop): New variable.
72150         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
72151         func_add_or_update, func_create_testdir): Use it to initialize sed
72152         script variables.
72153         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72155 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
72156             Bruno Haible  <bruno@clisp.org>
72158         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
72159         also works after #include directives.
72161 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
72163         getdate.y: reject an out-of-range timezone value
72164         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
72165         the range [-24...+24].  When specified with only one or two digits,
72166         * tests/test-getdate.c: Tests for the fix.
72167         * doc/getdate.texi: Document this change.
72169 2008-09-03  Bruno Haible  <bruno@clisp.org>
72171         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
72173 2008-09-02  Simon Josefsson  <simon@josefsson.org>
72175         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
72176         <bruce.korb@gmail.com> with ideas from Ben Pfaff
72177         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
72178         Blake <ebb9@byu.net>.
72180         * tests/test-bitrotate.c: Add more test vectors.
72182 2008-09-02  Eric Blake  <ebb9@byu.net>
72184         vasnprintf-posix: handle large precision via %.*d
72185         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
72186         when handling it ourselves.
72187         * tests/test-vasnprintf-posix.c (test_function): Add test.
72188         * tests/test-snprintf-posix.h (test_function): Likewise.
72189         * tests/test-sprintf-posix.h (test_function): Likewise.
72190         * tests/test-vasprintf-posix.c (test_function): Likewise.
72191         Reported by Alain Guibert.
72193 2008-09-01  Eric Blake  <ebb9@byu.net>
72195         c-stack: make configure-time check more robust
72196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
72197         successful sigaction call.
72198         Reported by Tom G. Christensen.
72200 2008-09-01  Bruno Haible  <bruno@clisp.org>
72202         New module 'findprog-lgpl'.
72203         * modules/findprog-lgpl: New file.
72204         * lib/findprog-lgpl.c: New file.
72205         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
72206         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
72207         to decide whether to use strdup or xstrdup, concatenated_filename or
72208         xconcatenated_filename.
72210 2008-09-01  Bruno Haible  <bruno@clisp.org>
72212         Split module 'concat-filename' into 'concat-filename' (LGPL) and
72213         'xconcat-filename' (GPL).
72214         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
72215         (License): Change to LGPLv2+.
72216         * modules/xconcat-filename: New file.
72217         * lib/concat-filename.h (concatenated_filename): Change specification.
72218         (xconcatenated_filename): New declaration.
72219         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
72220         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
72221         memory situations.
72222         * lib/xconcat-filename.c: New file.
72223         * NEWS: Mention the change.
72224         * lib/findprog.c: Include concat-filename.h, not filename.h.
72225         (find_in_path): Use xconcatenated_filename instead of
72226         concatenated_filename.
72227         * lib/javacomp.c: Include concat-filename.h, not filename.h.
72228         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72229         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72230         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72231         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
72232         instead of concatenated_filename.
72233         * lib/javaexec.c: Include concat-filename.h, not filename.h.
72234         (execute_java_class): Use xconcatenated_filename instead of
72235         concatenated_filename.
72236         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
72237         * modules/javacomp (Depends-on): Likewise.
72238         * modules/javaexec (Depends-on): Likewise.
72240 2008-09-01  Bruno Haible  <bruno@clisp.org>
72242         Split module 'filename' into 'filename' and 'concat-filename'.
72243         * modules/filename: Keep only lib/filename.h.
72244         (License): Change to LGPLv2+.
72245         * modules/concat-filename: New file, extracted from modules/filename.
72246         * lib/filename.h (concatenated_filename): Remove declaration.
72247         * lib/concat-filename.h: New file, extracted from lib/filename.h.
72248         * lib/concat-filename.c: Include concat-filename.h.
72249         * NEWS: Mention the change.
72251 2008-09-01  Simon Josefsson  <simon@josefsson.org>
72253         * lib/bitrotate.h (rotl8, rotr8): Add.
72255         * modules/bitrotate (configure.ac): Need
72256         AC_REQUIRE([AC_C_INLINE]).
72257         (Description): Mention stdint.h.  Reported by Bruno Haible
72258         <bruno@clisp.org>.
72260         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
72261         Paolo Bonzini <bonzini@gnu.org>.
72263 2008-08-31  Bruno Haible  <bruno@clisp.org>
72265         Assume Solaris specific bi-arch conventions on Solaris systems.
72266         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
72267         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
72268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
72269         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
72270         like acl_libdirstem.
72271         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
72272         acl_libdirstem.
72273         * NEWS: Mention the change.
72274         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
72276 2008-08-31  Jim Meyering  <meyering@redhat.com>
72278         * lib/strftime.h: Add comments describing the two added arguments.
72280         remove duplicate #include directives
72281         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
72282         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
72284 2008-08-31  Bruno Haible  <bruno@clisp.org>
72286         New module 'sigpipe-die'.
72287         * modules/sigpipe-die: New file.
72288         * lib/sigpipe-die.h: New file.
72289         * lib/sigpipe-die.c: New file.
72290         * MODULES.html.sh (Signal handling): Add sigpipe-die.
72292 2008-08-31  Bruno Haible  <bruno@clisp.org>
72294         Don't override previously installed signal handlers.
72295         * lib/fatal-signal.c (saved_sigactions): New variable.
72296         (uninstall_handlers): Reset the signal to the saved handler, not
72297         to SIG_DFL (except when ignored).
72298         (install_handlers): Save the previous handlers.
72300 2008-08-30  Bruno Haible  <bruno@clisp.org>
72302         * gnulib-tool (func_reset_sigpipe): New function.
72303         (func_get_automake_snippet, func_modules_transitive_closure,
72304         func_import): Invoke it before a join command that reads from stdin,
72305         to avoid "echo: write error: Broken pipe" error messages on stderr.
72306         Reported by Sam Steingold <sds@gnu.org>.
72308 2008-08-30  Bruno Haible  <bruno@clisp.org>
72310         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
72311         Code copied from m4/open.m4.
72312         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
72313         access and the filename ends in a slash. Code copied from lib/open.c.
72314         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
72315         * tests/test-fopen.c (main): Check against bug with trailing slash.
72317 2008-08-29  Bruno Haible  <bruno@clisp.org>
72319         Avoid some "gcc -pedantic" warnings.
72320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
72321         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
72322         * lib/dirent.in.h: Likewise.
72323         * lib/fcntl.in.h: Likewise.
72324         * lib/float.in.h: Likewise.
72325         * lib/iconv.in.h: Likewise.
72326         * lib/inttypes.in.h: Likewise.
72327         * lib/locale.in.h: Likewise.
72328         * lib/math.in.h: Likewise.
72329         * lib/netinet_in.in.h: Likewise.
72330         * lib/search.in.h: Likewise.
72331         * lib/signal.in.h: Likewise.
72332         * lib/stdarg.in.h: Likewise.
72333         * lib/stdint.in.h: Likewise.
72334         * lib/stdio.in.h: Likewise.
72335         * lib/stdlib.in.h: Likewise.
72336         * lib/string.in.h: Likewise.
72337         * lib/strings.in.h: Likewise.
72338         * lib/sys_select.in.h: Likewise.
72339         * lib/sys_socket.in.h: Likewise.
72340         * lib/sys_stat.in.h: Likewise.
72341         * lib/sys_time.in.h: Likewise.
72342         * lib/sysexits.in.h: Likewise.
72343         * lib/time.in.h: Likewise.
72344         * lib/unistd.in.h: Likewise.
72345         * lib/wchar.in.h: Likewise.
72346         * lib/wctype.in.h: Likewise.
72347         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
72348         * modules/fchdir (Makefile.am): Likewise.
72349         * modules/fcntl (Makefile.am): Likewise.
72350         * modules/float (Makefile.am): Likewise.
72351         * modules/iconv_open (Makefile.am): Likewise.
72352         * modules/inttypes (Makefile.am): Likewise.
72353         * modules/locale (Makefile.am): Likewise.
72354         * modules/math (Makefile.am): Likewise.
72355         * modules/netinet_in (Makefile.am): Likewise.
72356         * modules/search (Makefile.am): Likewise.
72357         * modules/signal (Makefile.am): Likewise.
72358         * modules/stdarg (Makefile.am): Likewise.
72359         * modules/stdint (Makefile.am): Likewise.
72360         * modules/stdio (Makefile.am): Likewise.
72361         * modules/stdlib (Makefile.am): Likewise.
72362         * modules/string (Makefile.am): Likewise.
72363         * modules/strings (Makefile.am): Likewise.
72364         * modules/sys_select (Makefile.am): Likewise.
72365         * modules/sys_socket (Makefile.am): Likewise.
72366         * modules/sys_stat (Makefile.am): Likewise.
72367         * modules/sys_time (Makefile.am): Likewise.
72368         * modules/sysexits (Makefile.am): Likewise.
72369         * modules/time (Makefile.am): Likewise.
72370         * modules/unistd (Makefile.am): Likewise.
72371         * modules/wchar (Makefile.am): Likewise.
72372         * modules/wctype (Makefile.am): Likewise.
72373         Reported by Reuben Thomas <rrt@sc3d.org>.
72375 2008-08-29  Bruno Haible  <bruno@clisp.org>
72377         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
72378         any more.
72380 2008-08-29  Simon Josefsson  <simon@josefsson.org>
72382         * MODULES.html.sh (Misc): Add bitrotate.
72384         * modules/bitrotate: New file.
72386         * lib/bitrotate.h: New file.
72388         * modules/bitrotate-tests: New file.
72390         * tests/test-bitrotate.c: New file.
72392         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
72393         on the bitrotate module.
72395         * lib/arctwo.c: Use new bitrotate module.
72397 2008-08-29  Jim Meyering  <meyering@redhat.com>
72399         bootstrap: merge changes from coreutils
72400         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
72401         of copied files.  Remove a kludge, now that this is fixed.
72402         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
72403         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
72404         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
72406 2008-08-29  Bruno Haible  <bruno@clisp.org>
72408         * MODULES.html.sh: Remove --cvs-urls option.
72410 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
72412         maint.mk: adjust to file name change
72413         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
72415 2008-08-28  Jim Meyering  <meyering@redhat.com>
72417         * modules/getndelim2 (License): Relicense to LGPLv2+.
72418         Approved by Richard Stallman for the version of 1995, and by
72419         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
72421 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
72423         * lib/getdelim.c (flockfile, funlockfile): Make all of them
72424         dummy if one is not available.  Do not touch them if
72425         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
72426         (getc_maybe_unlocked): New.
72427         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
72429 2008-08-26  Eric Blake  <ebb9@byu.net>
72431         doc/INSTALL: resync from autoconf
72432         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
72433         (INSTALL_PRELUDE): Delete; this is done more efficiently by
72434         moving...
72435         * install.texi [!autoconf]: ...here.  Resync from autoconf.
72436         * INSTALL: Regenerate.
72437         * INSTALL.ISO: New file.
72438         * INSTALL.UTF-8: Likewise.
72440 2008-08-26  Jim Meyering  <meyering@redhat.com>
72442         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
72443         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
72444         these definitions conditional, so that they may be overridden, too.
72446 2008-08-26  Bruno Haible  <bruno@clisp.org>
72448         Generate INSTALL file variants with prettier quotes.
72449         * doc/Makefile (INSTALL_PRELUDE): New macro.
72450         (INSTALL): Use it.
72451         (INSTALL.ISO, INSTALL.UTF-8): New rules.
72453 2008-08-26  Bruno Haible  <bruno@clisp.org>
72455         Run makeinfo in an English locale.
72456         * doc/Makefile (MAKEINFO): New variable.
72458 2008-08-26  Bruno Haible  <bruno@clisp.org>
72460         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
72461         Suggested by Eric Blake.
72463 2008-08-25  Bruno Haible  <bruno@clisp.org>
72465         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
72467 2008-08-25  Eric Blake  <ebb9@byu.net>
72469         c-stack: test that stack overflow can be caught
72470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
72471         that platform allows handling stack overflow; at least OS/2 EMX
72472         has sigaltstack, but crashes before transferring control to
72473         handler on stack overflow.
72474         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
72475         check for HAVE_STACK_OVERFLOW_HANDLING.
72476         Reported by Elbert Pol.
72478 2008-08-25  Bruno Haible  <bruno@clisp.org>
72480         * doc/posix-functions/strftime.texi: Fix description of strftime
72481         module.
72483 2008-08-24  Bruno Haible  <bruno@clisp.org>
72485         * tests/uniwidth/test-uc_width2.c: New file.
72486         * tests/uniwidth/test-uc_width2.sh: New file.
72487         * modules/uniwidth/width-tests (Files): Add the new files.
72488         (TESTS): Add uniwidth/test-uc_width2.sh.
72489         (TESTS_ENVIRONMENT): New variable.
72490         (check_PROGRAMS): Add test-uc_width2.
72491         (test_uc_width2_SOURCES): New variable.
72493         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
72494         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
72495         not 0x00AB.
72496         Reported by Alexander V. Lukyanov <lav@netis.ru>.
72498 2008-08-22  Eric Blake  <ebb9@byu.net>
72500         test-lock, test-tls: mention why a test is skipped
72501         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
72502         skipped.
72503         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
72505         count-one-bits: relax license
72506         * modules/count-one-bits (License): Relicense to LGPLv2+.
72507         Suggested by Ludovic Courtès, approved by Ben Pfaff.
72509 2008-08-22  Andreas Schwab  <schwab@suse.de>
72511         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72512         Remove spurious space in assignment.
72514 2008-08-21  Simon Josefsson  <simon@josefsson.org>
72516         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
72517         Paul Eggert <eggert@CS.UCLA.EDU>.
72519 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
72521         * modules/gettext: Add m4/threadlib.m4.
72523 2008-08-19  Eric Blake  <ebb9@byu.net>
72525         test-c-stack: fix compilation failure on FreeBSD 5.0
72526         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
72527         headers before <sys/resource.h>.
72528         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
72529         the bug.
72530         Reported by Nelson H. F. Beebe.
72532         strverscmp: migrate from "strverscmp.h" to <string.h>
72533         * modules/string (Makefile.am): Add new hooks.
72534         * modules/strverscmp (Files): Remove strverscmp.h.
72535         (Depends-on): Add string.
72536         (configure.ac): Add indicator.
72537         (Include): Mention new header.
72538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
72539         defaults.
72540         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
72541         results.
72542         * lib/strverscmp.h: Delete.
72543         * lib/string.in.h (strverscmp): Provide declaration, when needed.
72544         * tests/test-strverscmp.c (includes): Adjust client.
72545         * lib/check-version.c (includes): Likewise.
72546         * NEWS: Document the change.
72548         strverscmp: add unit test
72549         * modules/strverscmp-tests: New file.
72550         * tests/test-strverscmp.c: Likewise.
72552 2008-08-19  Simon Josefsson  <simon@josefsson.org>
72554         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
72555         regarding Windows crypto stuff, from Mono.
72557 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
72559         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
72560         if present, for intel RND.  Return error on failures.
72562 2008-08-18  Ben Pfaff  <blp@gnu.org>
72564         gitlog-to-changelog: give better diagnostic for failed pipe-open
72565         * build-aux/gitlog-to-changelog: Improve error message: suggest
72566         that the version of Git may be too old.
72568 2008-08-18  Simon Josefsson  <simon@josefsson.org>
72570         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
72571         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
72573 2008-08-18  Bruno Haible  <bruno@clisp.org>
72575         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
72576         pthread_in_use().
72578 2008-08-18  Bruno Haible  <bruno@clisp.org>
72580         * lib/glthread/threadlib.c: Include <pthread.h>.
72582 2008-08-18  Bruno Haible  <bruno@clisp.org>
72584         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
72585         glthread_recursive_lock_* macros.
72586         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
72587         Fix syntax error.
72589 2008-08-18  Bruno Haible  <bruno@clisp.org>
72591         * lib/glthread/thread.c: Avoid forcing a context switch right after
72592         thread creation.
72594 2008-08-17  Bruno Haible  <bruno@clisp.org>
72596         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
72597         * lib/glthread/thread.h: Provide Win32 specific implementation.
72598         * modules/thread (Files): Add lib/glthread/thread.c.
72599         (Depends-on): Add lock.
72600         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
72602 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72604         New module 'yield'.
72605         * modules/yield: New file.
72606         * lib/glthread/yield.h: New file.
72607         * m4/yield.m4: New file.
72608         * MODULES.html.sh (Multithreading): Add yield.
72610 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72612         New module 'thread'.
72613         * modules/thread: New file.
72614         * lib/glthread/thread.h: New file.
72615         * m4/thread.m4: New file.
72616         * MODULES.html.sh (Multithreading): Add thread.
72618 2008-08-17  Bruno Haible  <bruno@clisp.org>
72620         * lib/glthread/lock.h: Include <stdlib.h> always.
72621         * lib/glthread/tls.h: Likewise.
72622         * lib/glthread/cond.h: Likewise.
72624 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72626         New module 'cond'.
72627         * modules/cond: New file.
72628         * lib/glthread/cond.h: New file.
72629         * lib/glthread/cond.c: New file.
72630         * m4/cond.m4: New file.
72631         * MODULES.html.sh (Multithreading): Add cond.
72633 2008-08-16  Eric Blake  <ebb9@byu.net>
72635         c-stack: fix regression on Irix 5.3 from 2008-06-21
72636         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
72637         sa_sigaction...
72638         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
72639         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
72640         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
72641         * modules/signal (Makefile.am): Use the value.
72642         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
72643         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
72644         * doc/posix-headers/signal.texi (signal.h): Document this
72645         portability issue.
72646         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
72647         Reported by Tom G. Christensen.
72649 2008-08-17  Bruno Haible  <bruno@clisp.org>
72651         New module 'threadlib'.
72652         * modules/threadlib: New file.
72653         * lib/glthread/threadlib.c: New file, extracted from
72654         lib/glthread/lock.c.
72655         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
72656         functions.
72657         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
72658         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
72659         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
72660         macros.
72661         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
72662         (gl_DISABLE_THREADS): Remove macro.
72663         * modules/lock (Files): Remove build-aux/config.rpath.
72664         (Depends-on): Remove havelib. Add threadlib.
72665         (configure.ac-early): Remove section.
72666         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
72667         * modules/tls (Depends-on): Remove lock. Add threadlib.
72668         (Link): New section, copied from threadlib.
72669         * MODULES.html.sh (Multithreading): Add threadlib.
72671 2008-08-14  Bruno Haible  <bruno@clisp.org>
72673         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
72674         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
72675         glthread_rwlock_unlock, glthread_rwlock_destroy,
72676         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
72677         glthread_recursive_lock_destroy): Define as macros always.
72678         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
72679         glthread_lock_lock.
72680         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
72681         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
72682         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
72683         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
72684         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
72685         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
72686         (glthread_recursive_lock_lock_func): Renamed from
72687         glthread_recursive_lock_lock.
72688         (glthread_recursive_lock_unlock_func): Renamed from
72689         glthread_recursive_lock_unlock.
72690         (glthread_recursive_lock_destroy_func): Renamed from
72691         glthread_recursive_lock_destroy.
72693 2008-08-14  Bruno Haible  <bruno@clisp.org>
72695         * lib/glthread/lock.h: Renamed from lib/lock.h.
72696         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
72697         * lib/glthread/tls.h: Renamed from lib/tls.h.
72698         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
72699         * lib/fstrcmp.c: Update includes.
72700         * lib/strsignal.c: Update includes.
72701         * modules/lock (Files, Makefile.am): Update.
72702         (Include): Change to "glthread/lock.h".
72703         * modules/tls (Files, Makefile.am): Update.
72704         (Include): Change to "glthread/tls.h".
72705         * tests/test-lock.c: Update includes.
72706         * tests/test-tls.c: Update includes.
72707         * NEWS: Mention the renamed header files.
72709 2008-08-11  Jim Meyering  <meyering@redhat.com>
72711         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
72713 2008-08-11  Eric Blake  <ebb9@byu.net>
72715         test-c-stack: avoid C99-ism
72716         * tests/test-c-stack.c (main): Fix whitespace, move declaration
72717         before statement.
72718         Reported by Alain Guibert.
72720 2008-08-10  Jim Meyering  <meyering@redhat.com>
72722         ensure that return value of uinttostr et al are not ignored
72723         * lib/inttostr.h (__GNUC_PREREQ): Define.
72724         (__attribute_warn_unused_result__): Define.
72725         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
72727 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
72729         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
72730         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
72732 2008-08-07  Jim Meyering  <meyering@redhat.com>
72734         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
72736         * modules/mkstemp (License): Relicense under LGPLv2+.
72737         * modules/tempname (License): Likewise.
72739 2008-08-06  Bruno Haible  <bruno@clisp.org>
72741         * lib/poll.c (poll): Further micro-optimization.
72743 2008-08-06  Jim Meyering  <meyering@redhat.com>
72745         inet_pton.c: use locale-independent tolower
72746         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
72747         (inet_pton6): Use c_tolower rather than tolower.
72748         * modules/inet_pton (Depends-on): Add c-ctype.
72750 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
72752         * lib/poll.c (poll): Avoid division when timeout is 0, cache
72753         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
72755 2008-08-06  Jim Meyering  <meyering@redhat.com>
72757         * modules/inet_pton (License): Relicense under LGPLv2+.
72759 2008-08-03  Bruno Haible  <bruno@clisp.org>
72761         Additional non-aborting API for lock and tls.
72762         * lib/lock.h: Include <errno.h>.
72763         (glthread_lock_init): New macro/function.
72764         (gl_lock_init): Define as wrapper around glthread_lock_init.
72765         (glthread_lock_lock): New macro/function.
72766         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
72767         (glthread_lock_unlock): New macro/function.
72768         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
72769         (glthread_lock_destroy): New macro/function.
72770         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
72771         (glthread_rwlock_init): New macro/function.
72772         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
72773         (glthread_rwlock_rdlock): New macro/function.
72774         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
72775         (glthread_rwlock_wrlock): New macro/function.
72776         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
72777         (glthread_rwlock_unlock): New macro/function.
72778         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
72779         (glthread_rwlock_destroy): New macro/function.
72780         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
72781         (glthread_recursive_lock_init): New macro/function.
72782         (gl_recursive_lock_init): Define as wrapper around
72783         glthread_recursive_lock_init.
72784         (glthread_recursive_lock_lock): New macro/function.
72785         (gl_recursive_lock_lock): Define as wrapper around
72786         glthread_recursive_lock_lock.
72787         (glthread_recursive_lock_unlock): New macro/function.
72788         (gl_recursive_lock_unlock): Define as wrapper around
72789         glthread_recursive_lock_unlock.
72790         (glthread_recursive_lock_destroy): New macro/function.
72791         (gl_recursive_lock_destroy): Define as wrapper around
72792         glthread_recursive_lock_destroy.
72793         (glthread_once): New macro/function.
72794         (gl_once): Define as wrapper around glthread_once.
72795         Update function declarations.
72796         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
72797         glthread_rwlock_init. Return error code.
72798         (glthread_rwlock_rdlock_multithreaded): Renamed from
72799         glthread_rwlock_rdlock. Return error code.
72800         (glthread_rwlock_wrlock_multithreaded): Renamed from
72801         glthread_rwlock_wrlock. Return error code.
72802         (glthread_rwlock_unlock_multithreaded): Renamed from
72803         glthread_rwlock_unlock. Return error code.
72804         (glthread_rwlock_destroy_multithreaded): Renamed from
72805         glthread_rwlock_destroy. Return error code.
72806         (glthread_recursive_lock_init_multithreaded): Renamed from
72807         glthread_recursive_lock_init. Return error code.
72808         (glthread_recursive_lock_lock_multithreaded): Renamed from
72809         glthread_recursive_lock_lock. Return error code.
72810         (glthread_recursive_lock_unlock_multithreaded): Renamed from
72811         glthread_recursive_lock_unlock. Return error code.
72812         (glthread_recursive_lock_destroy_multithreaded): Renamed from
72813         glthread_recursive_lock_destroy. Return error code.
72814         (glthread_once_call): Make static.
72815         (glthread_once_multithreaded): Renamed from glthread_once.
72816         * lib/tls.h: Include <errno.h>.
72817         (glthread_tls_key_init): New macro/function.
72818         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
72819         (glthread_tls_set): New macro/function.
72820         (gl_tls_set): Define as wrapper around glthread_tls_set.
72821         (glthread_tls_key_destroy): New macro/function.
72822         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
72823         Update function declarations.
72824         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
72825         glthread_tls_get.
72826         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72828 2008-08-04  Eric Blake  <ebb9@byu.net>
72830         gnumakefile: use space, not TAB, outside of targets
72831         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
72833 2008-08-02  Jim Meyering  <meyering@redhat.com>
72835         getdate.y: avoid locale-dependent date parsing failure
72836         In Turkish locales, getdate would fail to recognize keywords
72837         containing a lowercase "i".  The solution is not to rely on
72838         locale-sensitive case-conversion.
72839         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
72840         (lookup_word): Use c_toupper in place of toupper.
72841         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
72842         Reported by Vefa Bicakci <bicave@superonline.com> in
72843         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
72844         * modules/getdate (Depends-on): Add c-ctype.
72846 2008-08-02  Bruno Haible  <bruno@clisp.org>
72848         * gnulib-tool (func_import): When updating or creating a .gitignore
72849         file, prepend each added line with a slash, and ignore leading slashes
72850         from the existing lines.
72851         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72853 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72855         Portability fix for GNU make 3.79.1.
72856         * top/GNUmakefile: Avoid 'else COND', which older GNU make
72857         versions do not understand.
72859 2008-08-01  Bruno Haible  <bruno@clisp.org>
72861         Work around bug of HP-UX 10.20 cc with -0.0 literal.
72862         * tests/test-isnanf.h (zero): New variable.
72863         (main): Avoid literal -0.0f.
72864         * tests/test-isnand.h (zero): New variable.
72865         (main): Avoid literal -0.0.
72866         * tests/test-isnanl.h (zero): New variable.
72867         (main): Avoid literal -0.0L.
72868         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
72869         (test_float, test_double, test_long_double): Avoid literals -0.0f,
72870         -0.0, -0.0L.
72871         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
72872         (test_signbitd): Avoid literal -0.0.
72873         (test_signbitl): Avoid literal -0.0L.
72874         * tests/test-ceilf1.c (zero): New variable.
72875         (main): Avoid literal -0.0f.
72876         * tests/test-ceill.c (zero): New variable.
72877         (main): Avoid literal -0.0L.
72878         * tests/test-floorf1.c (zero): New variable.
72879         (main): Avoid literal -0.0f.
72880         * tests/test-floorl.c (zero): New variable.
72881         (main): Avoid literal -0.0L.
72882         * tests/test-roundf1.c (zero): New variable.
72883         (main): Avoid literal -0.0f.
72884         * tests/test-round1.c (zero): New variable.
72885         (main): Avoid literal -0.0.
72886         * tests/test-roundl.c (zero): New variable.
72887         (main): Avoid literal -0.0L.
72888         * tests/test-truncf1.c (zero): New variable.
72889         (main): Avoid literal -0.0f.
72890         * tests/test-trunc1.c (zero): New variable.
72891         (main): Avoid literal -0.0.
72892         * tests/test-truncl.c (zero): New variable.
72893         (main): Avoid literal -0.0L.
72894         * tests/test-frexp.c (zero): New variable.
72895         (main): Avoid literal -0.0.
72896         * tests/test-frexpl.c (zero): New variable.
72897         (main): Avoid literal -0.0L.
72898         * tests/test-ldexpl.c (zero): New variable.
72899         (main): Avoid literal -0.0L.
72900         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
72901         (zerod, zerol): New variables.
72902         (test_function): Avoid literals -0.0, -0.0L.
72903         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
72904         (zerod, zerol): New variables.
72905         (test_function): Avoid literals -0.0, -0.0L.
72906         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
72907         (zerod, zerol): New variables.
72908         (test_function): Avoid literals -0.0, -0.0L.
72909         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
72910         (zerod, zerol): New variables.
72911         (test_function): Avoid literals -0.0, -0.0L.
72912         * tests/test-strtod.c (zero): New variable.
72913         (main): Avoid literal -0.0.
72914         Reported by Jonathan C. Patschke <jp@centtech.com>.
72916 2008-07-31  Jim Meyering  <meyering@redhat.com>
72918         sha256.h: correct definition of SHA224_DIGEST_SIZE
72919         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
72920         Reported by Paulie Pena IV <paulie4@gmail.com>.
72921         Define as 224 / 8, rather than as a literal.
72922         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
72923         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
72924         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
72926 2008-07-31  Bruno Haible  <bruno@clisp.org>
72928         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
72929         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
72930         Reported by Jonathan Patschke <jp@centtech.com>.
72932 2008-07-31  Bruno Haible  <bruno@clisp.org>
72934         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
72935         Reported by Paolo Bonzini <bonzini@gnu.org>.
72937 2008-07-30  Eric Blake  <ebb9@byu.net>
72939         test-strtod: allow compilation without -lm
72940         * tests/test-strtod.c (main): Avoid link dependence on fabs.
72941         Reported by Dennis Clarke <blastwave@gmail.com>.
72943 2008-07-28  Jim Meyering  <meyering@redhat.com>
72945         bootstrap: work also when there are no .po files in po/
72946         * build-aux/bootstrap (update_po_files): Complete the change
72947         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
72949 2008-07-27  Jim Meyering  <meyering@redhat.com>
72951         * users.txt: Add zile.
72953 2008-07-26  Ben Pfaff  <blp@gnu.org>
72955         Add missing dependencies on new m4/exponent[fdl].m4 files.
72956         * modules/isnanf-nolibm: Add m4/exponentf.m4.
72957         * modules/isnand-nolibm: Add m4/exponentd.m4.
72958         * modules/isnanl-nolibm: Add m4/exponentl.m4.
72959         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
72960         m4/isnan[fdl].m4, because the macros actually used moved.
72961         Reported by Jim Meyering.
72963 2008-07-14  Ben Pfaff  <blp@gnu.org>
72965         Add isinf module.
72966         * lib/isinf.c: New file.
72967         * lib/math.in.h: Define isinf macro if we have decided to replace
72968         it.
72969         * m4/isinf.m4: New file.
72970         * m4/math_h.m4: Initialize and substitute variables for isinf
72971         module.
72972         * modules/isinf: New file.
72973         * modules/isinf-tests: New file.
72974         * modules/math: Add substitutions for new module.
72975         * tests/test-isinf.c: New file.
72976         * doc/posix-functions/isinf.texi: Mention new module.
72977         * MODULES.html.sh: Mention new module.
72979 2008-07-14  Ben Pfaff  <blp@gnu.org>
72981         Factor out some macros for use by additional modules.
72982         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
72983         exponentf.m4.
72984         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
72985         exponentd.m4.
72986         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
72987         file exponentl.m4.
72988         * m4/exponentf.m4: New file.
72989         * m4/exponentd.m4: New file.
72990         * m4/exponentl.m4: New file.
72991         * modules/isnanf: Use new file m4/exponentf.m4.
72992         * modules/isnand: Use new file m4/exponentd.m4.
72993         * modules/isnanl: Use new file m4/exponentl.m4.
72995 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
72997         mktime.c: normalize tp->tm_isdst value to -1/0/1.
72998         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
72999         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
73000         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
73002         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
73003         readlink on platforms without PATH_MAX.
73005 2008-07-21  Eric Blake  <ebb9@byu.net>
73007         Warn, not fail, on stale version.
73008         * top/GNUmakefile (_curr-ver): Tone down previous patch.
73010         Don't allow installation with stale devel version number.
73011         * top/GNUmakefile (_is-install-target): New macro.
73012         (_curr-ver): Forbid installation with stale version number.
73014 2008-07-20  Bruno Haible  <bruno@clisp.org>
73016         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
73017         TESTS_ENVIRONMENT.
73018         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
73020 2008-07-20  Bruno Haible  <bruno@clisp.org>
73022         * lib/c-stack.h (c_stack_action): Add documentation.
73023         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
73025 2008-07-20  Bruno Haible  <bruno@clisp.org>
73027         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
73028         * modules/readlink (License): Likewise.
73030 2008-07-17  Eric Blake  <ebb9@byu.net>
73032         * modules/c-stack (Link): Fix typo.
73034         Make c-stack use libsigsegv, when available.
73035         * modules/c-stack (Depends-on): Add libsigsegv.
73036         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
73037         needed.
73038         * lib/c-stack.c (SIGSTKSZ): Define fallback.
73039         (segv_handler, overflow_handler, c_stack_action)
73040         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
73041         implementation when libsigsegv is available, but only when using
73042         the library is necessary.
73043         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
73044         comment, explaining why XSI check fails on Linux.
73045         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
73046         * tests/test-c-stack2.sh: Tweak skip message.
73047         * NEWS: Document new link-time requirements.
73049 2008-07-16  Eric Blake  <ebb9@byu.net>
73051         c-stack: Expose false positives when not using libsigsegv.
73052         * modules/c-stack-tests (Files): Expand test.
73053         * tests/test-c-stack.c (main): Add means to conditionally trigger
73054         non-overflow SIGSEGV.
73055         * tests/test-c-stack2.sh: New file.
73057 2008-07-14  Bruno Haible  <bruno@clisp.org>
73059         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
73060         Reported by Eric Blake.
73062 2008-07-14  Sam Steingold  <sds@gnu.org>
73063             Bruno Haible  <bruno@clisp.org>
73065         New module libsigsegv.
73066         * modules/libsigsegv: New file.
73067         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
73068         modifications.
73069         * MODULES.html.sh (Signal handling): New section.
73071 2008-07-14  Bruno Haible  <bruno@clisp.org>
73073         * modules/unictype/ctype-* (Description): Add the word "function".
73074         Improves the resulting doc in MODULES.html.
73076 2008-07-12  Ben Pfaff  <blp@gnu.org>
73078         Add longlong module.
73079         * modules/longlong: New file.
73081 2008-07-12  Bruno Haible  <bruno@clisp.org>
73083         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
73084         to empty.
73086 2008-07-10  Ben Pfaff  <blp@gnu.org>
73088         Add isnan module.
73089         * doc/posix-functions/isnan.texi: Mention new module.
73090         * lib/math.in.h: Define isnan macro if we have decided to replace
73091         it.
73092         * m4/isnan.m4: New file.
73093         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
73094         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
73095         also.
73096         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
73097         redundancy.
73098         * m4/math_h.m4: Initialize and substitute variables for isnan
73099         module.
73100         * modules/isnan: New file.
73101         * modules/isnan-tests: New file.
73102         * modules/math: Add substitutions for new module.
73103         * tests/test-isnan.c: New file.
73104         * MODULES.html.sh: Mention new module.
73106 2008-07-10  Ben Pfaff  <blp@gnu.org>
73108         Add isnanf module.
73109         * lib/isnanf.m4: New file.
73110         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
73111         (gl_HAVE_ISNANF_IN_LIBM): New macro.
73112         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
73113         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
73114         * modules/isnanf: New file.
73115         * modules/isnanf-tests: New file.
73116         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
73117         files.
73118         * tests/test-isnanf-nolibm.c: factored most of its contents into
73119         new file tests/test-isnanf.h.
73120         * tests/test-isnanf.h: New file.
73121         * tests/test-isnanf.c: New file.
73122         * MODULES.html.sh: Mention new module.
73123         * doc/glibc-functions/isnanf.texi: Mention new module.
73125 2008-07-10  Ben Pfaff  <blp@gnu.org>
73127         Add isnand module.
73128         * lib/isnand.h: New file.
73129         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
73130         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
73131         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
73132         functionality also.
73133         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
73134         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
73135         (gl_HAVE_ISNAND_IN_LIBM): New macro.
73136         * modules/isnand: New file.
73137         * modules/isnand-tests: New file.
73138         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
73139         files.
73140         * tests/test-isnand-nolibm.c: factored most of its contents into
73141         new file tests/test-isnand.h.
73142         * tests/test-isnand.h: New file.
73143         * tests/test-isnand.c: New file.
73144         * MODULES.html.sh: Mention new module.
73146 2008-07-10  Ben Pfaff  <blp@gnu.org>
73148         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
73149         * lib/isnand.h: Rename lib/isnand-nolibm.h.
73150         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
73151         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
73152         * modules/isnanf-nolibm: Update references to renamed files.
73153         * modules/isnand-nolibm: Likewise.
73154         * modules/isnanf-nolibm-tests: Likewise.
73155         * modules/isnand-nolibm-tests: Likewise.
73156         * lib/frexp.c: Likewise.
73157         * lib/isfinite.c: Likewise.
73158         * lib/signbitd.c: Likewise.
73159         * lib/signbitf.c: Likewise.
73160         * lib/vasnprintf.c: Likewise.
73161         * tests/test-ceilf1.c: Likewise.
73162         * tests/test-ceilf2.c: Likewise.
73163         * tests/test-floorf1.c: Likewise.
73164         * tests/test-floorf2.c: Likewise.
73165         * tests/test-frexp.c: Likewise.
73166         * tests/test-round1.c: Likewise.
73167         * tests/test-round2.c: Likewise.
73168         * tests/test-roundf1.c: Likewise.
73169         * tests/test-strtod.c: Likewise.
73170         * tests/test-trunc1.c: Likewise.
73171         * tests/test-trunc2.c: Likewise.
73172         * tests/test-truncf1.c: Likewise.
73173         * tests/test-truncf2.c: Likewise.
73174         * NEWS: Mention the renamed header files.
73176 2008-07-11  Jim Meyering  <meyering@redhat.com>
73178         vc-list-files: make the last-resort awk code more portable
73179         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
73180         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
73181         does not support it.
73183 2008-07-10  Eric Blake  <ebb9@byu.net>
73185         Work with tar's bootstrap.
73186         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
73187         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
73188         an m4 comment.
73190 2008-07-09  Jim Meyering  <meyering@redhat.com>
73192         posix-shell.m4: fix typo that made this test malfunction
73193         * m4/posix-shell.m4: Remove capitalization in variable name.
73195 2008-07-08  Bruno Haible  <bruno@clisp.org>
73197         * m4/onceonly.m4: Update comments.
73198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73200 2008-07-04  Jim Meyering  <meyering@redhat.com>
73202         * users.txt: Add vc-dwim.
73203         (bison, coreutils): Use the gitweb URL.
73205 2008-07-03  Jim Meyering  <meyering@redhat.com>
73207         * users.txt: Add libffcall.  From Sam Steingold.
73209 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
73211         getdate.y: do not ignore TZ with relative day, month or year offset
73212         * lib/getdate.y (get_date): Move the tz-handling block to follow the
73213         relative-date-handling, since otherwise, the latter would clobber the
73214         sole output (an updated Start value) of the tz-handling block.
73215         * tests/test-getdate.c: Tests for the fix
73217 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73219         Recognize 'foo_LIBRARIES += libgnu.a'.
73220         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
73221         makefile snippet has already specified an installation location,
73222         also using '+='.
73224 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
73226         getdate.y: factor out common actions
73227         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
73228         Use them in place of open-coded actions.
73230 2008-07-01  Simon Josefsson  <simon@josefsson.org>
73232         Add self-test for getdate module.
73233         * modules/getdate-tests: New file.
73234         * tests/test-getdate.c: New file.
73236 2008-06-29  Bruno Haible  <bruno@clisp.org>
73238         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
73239         .gitignore.
73240         Reported by Sylvain Beucler <beuc@beuc.net>.
73242 2008-06-29  Bruno Haible  <bruno@clisp.org>
73244         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
73245         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
73247 2008-06-29  Bruno Haible  <bruno@clisp.org>
73249         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
73250         EXTRA_DIST.
73251         Reported by Sylvain Beucler <beuc@beuc.net>.
73253 2008-06-26  Jim Meyering  <meyering@redhat.com>
73255         make several modules depend on the "open" module
73256         This provides slightly increased consistency when opening-for-write
73257         the name of a non-directory spelled with a trailing slash.
73258         * modules/chdir-safer: Likewise.
73259         * modules/chown: Likewise.
73260         * modules/clean-temp: Likewise.
73261         * modules/copy-file: Likewise.
73262         * modules/fchdir: Likewise.
73263         * modules/fcntl-safer: Likewise.
73264         * modules/pipe: Likewise.
73265         * modules/utime: Likewise.
73266         Prompted by Eric Blake and Bruno Haible.
73268 2008-06-24  Andreas Schwab  <schwab@suse.de>
73270         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
73271         literals can be used as initializers for global variables.
73273 2008-06-23  Eric Blake  <ebb9@byu.net>
73275         Make gnulib-cache.m4 easier to diff.
73276         * gnulib-tool (func_import): Allow newlines when reading cached
73277         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
73279 2008-06-23  Bruno Haible  <bruno@clisp.org>
73281         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
73282         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
73283         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
73284         m4/signalblocking.m4.
73285         (gl_PREREQ_SIGACTION): Don't invoke it.
73286         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
73287         gl_PREREQ_SIG_HANDLER_H.
73288         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73289         Don't check for sigaction here.
73291 2008-06-23  Bruno Haible  <bruno@clisp.org>
73293         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
73294         (install_handlers): Don't set the SA_RESETHAND flag.
73296 2008-06-23  Bruno Haible  <bruno@clisp.org>
73298         * m4/sigaction.m4: Comment fixes.
73299         * lib/signal.in.h: Likewise.
73301 2008-06-23  Eric Blake  <ebb9@byu.net>
73303         Fix typo.
73304         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
73306         Avoid SA_ namespace.
73307         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
73308         Reported by Ralf Wildenhues.
73310         Avoid test failure due to SA_RESTORER.
73311         * tests/test-sigaction.c (SA_MASK): New macro.
73312         (main): Avoid failing due to extension flags being set.
73313         Reported by Jim Meyering.
73315         Revert use of sig-handler.h in sigprocmask.c.
73316         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
73317         it requires the existence of struct sigaction.
73318         * lib/sigprocmask.c (handler_t): Restore typedef.
73319         (rpl_signal, old_handlers): Use local type.
73321 2008-06-22  Bruno Haible  <bruno@clisp.org>
73323         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
73324         conditionally.
73325         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73327 2008-06-22  Bruno Haible  <bruno@clisp.org>
73329         * doc/posix-functions/siginterrupt.texi: Move note.
73331         * lib/signal.in.h (SA_RESTART): New macro.
73332         * lib/sigaction.c: Update comment.
73334         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
73336         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
73337         (gl_PREREQ_SIGPROCMASK): Invoke it.
73338         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
73340         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
73342         * lib/sigprocmask.c: Update a comment.
73344 2008-06-21  Eric Blake  <ebb9@byu.net>
73346         Use sigaction module rather than signal().
73347         * modules/c-stack (Depends-on): Add sigaction.
73348         * modules/fatal-signal (Depends-on): Likewise.
73349         * modules/nanosleep (Depends-on): Likewise.
73350         * modules/sigprocmask (Files): Add sig-handler.h.
73351         * modules/sigaction (Files): Likewise.
73352         * lib/sig-handler.h (get_handler): New file, suggested by Paul
73353         Eggert.
73354         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
73355         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
73356         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
73357         (init_fatal_signals): Likewise.
73358         * lib/nanosleep.c (rpl_nanosleep): Likewise.
73359         (siginterrupt): Delete fallback.
73360         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
73361         instead.
73362         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
73363         siginterrupt.
73365         New module sigaction, for mingw.
73366         * modules/sigaction: New module...
73367         * modules/sigaction-tests: ...and its test.
73368         * m4/sigaction.m4: New file.
73369         * lib/sigaction.c: Likewise.
73370         * tests/test-sigaction.c: Likewise.
73371         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
73372         * modules/signal (Makefile.am): Likewise.
73373         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
73374         needed.
73375         * doc/posix-headers/signal.texi (signal.h): Mention provided
73376         types.
73377         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
73378         that sigaction is preferable.
73379         * doc/posix-functions/sigaction.texi (sigaction): Mention new
73380         module.
73381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73382         sigaction.
73384         Improve robustness of sigprocmask by overriding signal.
73385         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
73386         is in use.
73387         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
73388         (SIGKILL, SIGSTOP): Provide fallbacks.
73389         (rpl_signal): Implement.
73390         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
73391         signal can be called inside handlers.
73393         Fix nanosleep module on mingw.
73394         * modules/nanosleep (Depends-on): Add sys_select.
73395         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
73397         Fix licensing of sigprocmask.
73398         * modules/raise (License): Relicense as LGPL.
73400 2008-06-21  Bruno Haible  <bruno@clisp.org>
73402         * lib/propername.c (proper_name_utf8): Don't use the transliterated
73403         result if it contains question marks.
73404         Reported by Michael Geng <linux@michaelgeng.de>.
73406 2008-06-19  Bruno Haible  <bruno@clisp.org>
73408         Fix CVS-ism.
73409         * doc/gnulib.texi: Include updated-stamp.texi.
73410         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
73411         (updated-stamp.texi): New rule.
73412         (gnulib.info): Depend on it.
73413         * doc/.gitignore: Add updated-stamp.texi.
73414         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
73416 2008-06-19  Bruno Haible  <bruno@clisp.org>
73418         * doc/Makefile (gnulib.info): Update and simplify dependencies.
73419         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73421 2008-06-19  Eric Blake  <ebb9@byu.net>
73423         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
73424         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
73425         Reported by Stepan Kasal.
73427 2008-06-18  Bruno Haible  <bruno@clisp.org>
73429         * lib/fatal-signal.c (init_fatal_signals): Add comment.
73430         Reported by Eric Blake.
73432 2008-06-18  Eric Blake  <ebb9@byu.net>
73434         Work around cygwin 1.5.25 strsignal bug.
73435         * tests/test-strsignal.c: Allow for const char *.
73436         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
73438 2008-06-18  Simon Josefsson  <simon@josefsson.org>
73440         * users.txt: Update URL to article and add author/date
73441         information.
73443 2008-06-17  Bruno Haible  <bruno@clisp.org>
73445         New macro gl_DISABLE_THREADS.
73446         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
73447         if the user did not pass --enable-threads or --disable-threads option.
73448         (gl_DISABLE_THREADS): New macro.
73449         Reported by Eric Blake <ebb9@byu.net>.
73451 2008-06-17  Bruno Haible  <bruno@clisp.org>
73453         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
73454         when the macro ignores it.
73455         Based on a patch by Eric Blake <ebb9@byu.net>.
73457 2008-06-17  Bruno Haible  <bruno@clisp.org>
73459         * modules/tls (License): Change to LGPLv2+.
73460         Reported by Eric Blake.
73462 2008-06-17  Eric Blake  <ebb9@byu.net>
73464         Simplify c-stack prerequisites.
73465         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
73466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
73467         no longer requires <ucontext.h> to exist.  Optimize setrlimit
73468         check.
73469         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
73470         <sys/resource.h>.
73472         Move c-stack test into testsuite.
73473         * modules/c-stack-tests: New file.
73474         * lib/c-stack.c [DEBUG]: Move test program...
73475         * tests/test-c-stack.c: ...into this new file.  Skip rather than
73476         fail test if sigaltstack is lacking.
73477         * tests/test-c-stack.sh: New driver file.
73479 2008-06-16  Eric Blake  <ebb9@byu.net>
73481         Use raise module consistently.
73482         * modules/fatal-signal (Depends-on): Add raise.
73483         * modules/sigprocmask (Depends-on): Likewise.
73484         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
73485         * lib/sigprocmask.c (sigprocmask): Likewise.
73486         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73487         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
73489         Fix compliance bug in sigpending.
73490         * lib/sigprocmask.c (sigpending): Return pending array via
73491         parameter, not return value.
73493 2008-06-14  Eric Blake  <ebb9@byu.net>
73495         Improve obstack-printf test code.
73496         * tests/test-obstack-printf.c (test_function): Fix comment, and
73497         simplify usage of obstack_* in macros.  Add a test for coverage.
73498         Reported by Bruno Haible.
73500 2008-06-14  Bruno Haible  <bruno@clisp.org>
73502         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
73503         array size as a constant, not as a const variable.
73504         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
73505         AC_USE_SYSTEM_EXTENSIONS.
73506         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
73507         Test whether the obstack_printf function actually exists.
73508         * modules/obstack-printf (Depends-on): Add extensions.
73509         (Include): Remove obstack.h.
73510         * modules/obstack-printf-posix (Depends-on): Add extensions.
73511         (Include): Remove obstack.h.
73513 2008-06-13  Eric Blake  <ebb9@byu.net>
73515         Add obstack-printf and obstack-printf-posix modules.
73516         * modules/obstack-printf: New file.
73517         * modules/obstack-printf-posix: Likewise.
73518         * MODULES.html.sh (Misc): Mention them.
73519         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
73520         Likewise.
73521         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
73522         Likewise.
73523         * modules/stdio (Makefile.am): Accomodate new modules.
73524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73525         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
73526         Declare.
73527         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
73528         functions.
73529         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
73530         (gl_REPLACE_OBSTACK_PRINTF): New macros
73531         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
73532         * tests/test-obstack-printf.c: New file.
73533         * modules/obstack-printf-tests: Likewise.
73534         * modules/obstack-printf-posix-tests: Likewise.
73536 2008-06-11  Bruno Haible  <bruno@clisp.org>
73538         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
73539         * lib/open.c: Include errno.h.
73540         (open): Fail when attempting to write to a file that has a trailing
73541         slash.
73542         * tests/test-open.c (main): Test against trailing slash bug.
73543         * doc/posix-functions/open.texi: Mention the trailing slash bug.
73545 2008-06-10  Bruno Haible  <bruno@clisp.org>
73547         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
73548         for $? to work inside the trap command, with various /bin/sh-s.
73549         * tests/test-vc-list-files-cvs.sh: Likewise.
73551 2008-06-10  Bruno Haible  <bruno@clisp.org>
73553         * lib/acl-internal.h: Don't include gettext.h here.
73554         * lib/set-mode-acl.c: Include gettext.h here.
73555         * lib/copy-acl.c: Likewise.
73557 2008-06-10  Bruno Haible  <bruno@clisp.org>
73559         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
73560         * lib/wait-process.c (wait_subprocess): Likewise.
73561         * lib/execute.h (execute): Add termsigp argument.
73562         * lib/execute.c (execute): Likewise.
73563         * lib/csharpcomp.c (compile_csharp_using_pnet,
73564         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
73565         * lib/csharpexec.c (execute_csharp_using_pnet,
73566         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
73567         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
73568         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
73569         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
73570         is_jikes_present): Update.
73571         * lib/javaexec.c (execute_java_class): Update.
73572         * lib/javaversion.c (execute_and_read_line): Update.
73573         * NEWS: Document the changes.
73574         Reported by Eric Blake.
73576 2008-06-10  Eric Blake  <ebb9@byu.net>
73578         Add missing include.
73579         * tests/test-strstr.c (includes): Add <signal.h>.
73580         * tests/test-strcasestr.c (includes): Likewise.
73581         * tests/test-memmem.c (includes): Likewise.
73583 2008-06-10  Bruno Haible  <bruno@clisp.org>
73585         * lib/wait-process.c (wait_subprocess): Add an assertion.
73587 2008-06-10  Bruno Haible  <bruno@clisp.org>
73589         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
73591 2008-06-10  Bruno Haible  <bruno@clisp.org>
73593         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
73594         using alarm().
73595         * tests/test-strcasestr.c (main): Likewise.
73596         * tests/test-strstr.c (main): Likewise.
73598 2008-06-09  Bruno Haible  <bruno@clisp.org>
73600         Work around the Solaris 10 ACE ACLs ABI change.
73601         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
73602         declare if ACL_NO_TRIVIAL is present.
73603         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
73604         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
73605         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
73606         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
73607         define if ACL_NO_TRIVIAL is present.
73608         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
73609         and use the current ABI.
73610         (file_has_acl): Use same #if condition as elsewhere.
73611         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
73612         in use, and use the current ABI.
73613         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
73614         Reported by Jim Meyering.
73616 2008-06-09  Eric Blake  <ebb9@byu.net>
73618         Work around environments that (stupidly) ignore SIGALRM.
73619         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
73620         before using alarm().
73621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73623         Reported by Ian Beckwith <ianb@erislabs.net>.
73625         Produce autobuild blurb earlier in log.
73626         * modules/autobuild (configure.ac-early): Move AB_INIT here.
73628 2008-06-09  Jim Meyering  <meyering@redhat.com>
73629         and Ondřej Vašík  <ovasik@redhat.com>
73631         utimens.c: correct kernel bug work-around
73632         Ondřej Vašík found that the invalid return value of 280 indicates
73633         failure, not success, and the kernel bug we're trying to work
73634         around affects not just the utimensat call, but also the fallback
73635         futimens call.
73636         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
73637         not success.
73638         [HAVE_FUTIMENS]: Use the same work-around, here.
73640 2008-06-09  Jim Meyering  <meyering@redhat.com>
73642         add more guards around definition of ACE_-related code
73643         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
73644         ALLOW and ACE_OWNER are also defined.
73646 2008-06-08  Bruno Haible  <bruno@clisp.org>
73648         * lib/acl-internal.h: Add me as co-author.
73649         * lib/file-has-acl.c: Likewise.
73650         * lib/set-mode-acl.c: Likewise.
73651         * lib/copy-acl.c: Likewise.
73653 2008-06-08  Bruno Haible  <bruno@clisp.org>
73655         Add support for AIX ACLs.
73656         * lib/acl-internal.h (acl_nontrivial): New declaration.
73657         * lib/file-has-acl.c (acl_nontrivial): New function.
73658         (file_has_acl): Add implementation using AIX 4 ACL API.
73659         * lib/set-mode-acl.c (qset_acl): Likewise.
73660         * lib/copy-acl.c (qcopy_acl): Likewise.
73662 2008-06-08  Bruno Haible  <bruno@clisp.org>
73664         Add support for HP-UX ACLs.
73665         * lib/acl-internal.h (acl_nontrivial): New declaration.
73666         * lib/file-has-acl.c (acl_nontrivial): New function.
73667         (file_has_acl): Add implementation using HP-UX 11 ACL API.
73668         * lib/set-mode-acl.c (qset_acl): Likewise.
73669         * lib/copy-acl.c (qcopy_acl): Likewise.
73671 2008-06-08  Bruno Haible  <bruno@clisp.org>
73673         Add support for Cygwin ACLs.
73674         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
73675         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
73676         the chmod_or_fchmod call.
73677         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
73679 2008-06-08  Bruno Haible  <bruno@clisp.org>
73681         Fix bug with setuid modes in Solaris 10+ code.
73682         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
73683         succeeded, when the mode contains some special bits.
73685 2008-06-08  Bruno Haible  <bruno@clisp.org>
73687         Add support for Solaris 7..10 ACLs.
73688         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
73689         declarations.
73690         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
73691         functions.
73692         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
73693         * lib/set-mode-acl.c (qset_acl): Likewise.
73694         * lib/copy-acl.c (qcopy_acl): Likewise.
73696 2008-06-08  Bruno Haible  <bruno@clisp.org>
73698         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
73699         declaration.
73700         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
73701         (acl_access_nontrivial): Remove MacOS X case.
73702         (file_has_acl): Use acl_extended_nontrivial.
73703         * lib/copy-acl.c (qcopy_acl): Likewise.
73705 2008-06-08  Bruno Haible  <bruno@clisp.org>
73707         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
73709 2008-06-08  Jim Meyering  <meyering@redhat.com>
73711         * modules/acl (Maintainer): Add Bruno Haible.
73713 2008-06-07  Bruno Haible  <bruno@clisp.org>
73715         Improve support for Tru64 ACLs.
73716         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
73717         ACL on OSF/1.
73719 2008-06-07  Bruno Haible  <bruno@clisp.org>
73721         Add support for MacOS X ACLs.
73722         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
73723         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
73724         * lib/set-mode-acl.c (qset_acl): Likewise.
73725         * lib/copy-acl.c (qcopy_acl): Likewise.
73727 2008-06-07  Bruno Haible  <bruno@clisp.org>
73729         Fix memory leak introduced on 2008-05-22.
73730         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
73731         use.
73733 2008-06-07  Bruno Haible  <bruno@clisp.org>
73735         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
73736         to construct an empty ACL.
73738 2008-06-07  Bruno Haible  <bruno@clisp.org>
73740         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
73741         precisely.
73742         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
73744 2008-06-07  Bruno Haible  <bruno@clisp.org>
73746         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
73747         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
73749 2008-06-07  Bruno Haible  <bruno@clisp.org>
73751         * doc/posix-functions/_setjmp.texi: Explain the use of this function
73752         regardless of POSIX.
73753         * doc/posix-functions/_longjmp.texi: Likewise.
73754         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
73755         SystemV platform in this case.
73757 2008-06-06  Eric Blake  <ebb9@byu.net>
73759         Document abort() bugs.
73760         * doc/posix-functions/abort.texi (abort): Mention anomalies.
73762         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
73763         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
73764         sigsetjmp.
73765         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
73766         siglongjmp, but only as a macro.
73767         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
73768         is obsolete.
73769         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
73771         Tweak documentation to cover cygwin argz bugs.
73772         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
73773         argz bug fix; no code change needed since no cygwin releases
73774         occurred between the last fix and the bug being tested.
73775         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
73776         module and recently fixed cygwin bugs.
73777         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
73778         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
73779         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
73780         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
73781         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
73782         Likewise.
73783         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
73784         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
73785         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
73786         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
73787         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
73788         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
73789         Likewise.
73791         Avoid gcc warning on cygwin.
73792         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
73793         !ACL_NO_TRIVIAL]: Avoid unused variable.
73795 2008-06-05  Eric Blake  <ebb9@byu.net>
73797         Be tolerant of UNKNOWN version in gnulib-tool test dir.
73798         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
73799         git-version-gen fails to come up with a version.
73800         Reported by Simon Josefsson.
73802 2008-06-05  Jim Meyering  <meyering@redhat.com>
73803             Paul Eggert  <eggert@cs.ucla.edu>
73805         utimens.c: work around a probable Linux kernel bug
73806         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
73807         appears to be a kernel bug that causes utimensat to return 280
73808         instead of 0, indicating success.
73810 2008-06-04  Bruno Haible  <bruno@clisp.org>
73812         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
73813         2008-06-01 commit.
73815 2008-06-04  Bruno Haible  <bruno@clisp.org>
73817         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
73818         * lib/file-has-acl.c (acl_access_nontrivial): New function.
73819         (file_has_acl): Use it. Save errno afterwards.
73820         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
73822 2008-06-03  Bruno Haible  <bruno@clisp.org>
73824         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
73825         draft code. Simplify #ifs.
73826         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
73827         Put Solaris code after POSIX-draft code. Fix comments regarding
73828         Solaris 10, HP-UX. Mention Cygwin.
73829         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
73831 2008-06-03  Eric Blake  <ebb9@byu.net>
73833         Provide fallback for older kernels.
73834         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
73835         Provide runtime fallback if kernel lacks support.
73836         Reported by Mike Frysinger.
73838 2008-06-02  Bruno Haible  <bruno@clisp.org>
73840         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
73841         it exists.
73843 2008-06-02  Bruno Haible  <bruno@clisp.org>
73845         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
73846         * lib/copy-acl.c (qcopy_acl): Update comment.
73848 2008-06-02  Bruno Haible  <bruno@clisp.org>
73850         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
73851         like ACL APIs.
73853 2008-06-02  Bruno Haible  <bruno@clisp.org>
73855         * tests/test-file-has-acl.sh: Use different code for Cygwin.
73856         * tests/test-set-mode-acl.sh: Likewise.
73857         * tests/test-copy-acl.sh: Likewise.
73858         * tests/test-copy-file.sh: Likewise.
73860 2008-06-02  Bruno Haible  <bruno@clisp.org>
73862         * tests/test-file-has-acl.sh: Remove unused code.
73864 2008-06-01  Bruno Haible  <bruno@clisp.org>
73866         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
73867         (copy_acl): Just a wrapper around qcopy_acl that emits the error
73868         messages.
73869         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
73871 2008-06-01  Bruno Haible  <bruno@clisp.org>
73873         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
73874         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
73875         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
73876         APIs.
73877         * modules/acl-tests (configure.ac): Remove tests now contained in
73878         m4/acl.m4.
73880 2008-06-02  Jim Meyering  <meyering@redhat.com>
73882         announce-gen: use a better key-server host name
73883         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
73884         it may be more consistently reliable.  Suggested by Werner Koch
73885         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
73887 2008-06-01  Bruno Haible  <bruno@clisp.org>
73889         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
73890         Reported by Voroskoi Andras <voroskoi@gmail.com>.
73892 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
73894         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
73896 2008-06-01  Bruno Haible  <bruno@clisp.org>
73898         New ACL tests.
73899         * tests/test-file-has-acl.sh: New file.
73900         * tests/test-file-has-acl.c: New file.
73901         * tests/test-set-mode-acl.sh: New file.
73902         * tests/test-set-mode-acl.c: New file.
73903         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
73904         * tests/test-copy-acl.c: New file.
73905         * modules/acl-tests: New file, based on modules/copy-file-tests.
73906         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
73907         (Depends-on): Add acl-tests.
73908         (configure.ac): Remove checks.
73909         (Makefile.am): Don't create test-sameacls program here any more.
73911 2008-06-01  Bruno Haible  <bruno@clisp.org>
73913         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
73914         * tests/test-sameacls.c: Include progname.h.
73915         (main): Invoke set_program_name. Portability fixes for MacOS X,
73916         Solaris, HP-UX.
73918 2008-06-01  Bruno Haible  <bruno@clisp.org>
73920         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
73921         function.
73922         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
73924 2008-06-01  Bruno Haible  <bruno@clisp.org>
73926         * modules/rpmatch (Depends-on): Add strdup.
73928 2008-06-01  Bruno Haible  <bruno@clisp.org>
73930         * lib/pipe.c: Include unistd-safer.h.
73931         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
73932         * modules/pipe (Depends-on): Add unistd-safer.
73934 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73936         * modules/autobuild (configure.ac): Call AB_INIT.
73938 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73940         * tests/test-getaddrinfo.c: Don't print debug messages by default.
73941         Suggested by Bruno Haible <bruno@clisp.org>.
73943 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73945         * tests/test-base64.c: Cast size_t to unsigned long when invoking
73946         printf.  Use %lu instead of %d.  Reported by Bruno Haible
73947         <bruno@clisp.org>.
73949 2008-05-29  Eric Blake  <ebb9@byu.net>
73951         Prefer new POSIX 200x interfaces over futimesat.
73952         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
73953         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
73954         when available.
73955         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
73957 2008-05-28  Bruno Haible  <bruno@clisp.org>
73959         * modules/stpcpy (License): Change to LGPLv2+.
73960         Requested by David Lutterkort <dlutter@redhat.com>.
73962 2008-05-27  Bruno Haible  <bruno@clisp.org>
73964         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
73965         current mingw.
73966         Reported by Jose E. Marchesi <jemarch@gnu.org>.
73968 2008-05-27  Bruno Haible  <bruno@clisp.org>
73970         * modules/iconv_open (Link): New section, from module 'iconv'.
73971         * modules/striconv (Link): Likewise.
73972         * modules/striconveh (Link): Likewise.
73973         * modules/xstriconv (Link): Likewise.
73974         * modules/unicodeio (Link): Likewise.
73975         * modules/propername (Link): Likewise.
73976         Reported by Jim Meyering.
73978 2008-05-26  Jim Meyering  <meyering@redhat.com>
73980         sha256: do not artificially restrict buffer length to be < 2^32
73981         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
73982         uint32_t to size_t.
73983         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
73984         to match.
73986         avoid unaligned access errors, e.g., on sparc
73987         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
73988         direct access through a possibly-unaligned uint64* pointer.
73989         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
73990         direct access through a possibly-unaligned uint32* pointer.
73991         Prompted by this patch from Tom "spot" Callaway:
73992         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
73994         sha512.c: fix typo in comment
73995         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
73997 2008-05-25  Bruno Haible  <bruno@clisp.org>
73999         * lib/set-mode-acl.c: Renamed from lib/acl.c.
74000         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
74001         (Makefile.am): Update lib_SOURCES.
74003 2008-05-25  Bruno Haible  <bruno@clisp.org>
74005         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
74007 2008-05-25  Jim Meyering  <meyering@redhat.com>
74009         useless-if-before-free: freed expr may have white-space differences
74010         * build-aux/useless-if-before-free: Recognize cases in which the
74011         freed expression differs from the tested one in embedded white
74012         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
74013         $1 was used, so we can't make any regexp shy.  Improved tests now
74014         detect this.
74016         useless-if-before-free: accept white space in the expression.
74017         * build-aux/useless-if-before-free: For now, any white space
74018         in the expression must be identical in the free argument.
74020         useless-if-before-free: efficiency tweak
74021         * build-aux/useless-if-before-free: Make the expression-matching
74022         regexp "shy".
74023         Make the *outer* regexp shy, not the expr-matching one.
74025         update code-in-comment to accept cast of free arg
74026         * build-aux/useless-if-before-free: Update regexp.
74028 2008-05-25  Bruno Haible  <bruno@clisp.org>
74030         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
74031         * modules/copy-file-tests (Files, Makefile.am): Update.
74032         * tests/test-copy-file.c (func_test_copy): Update.
74034 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
74036         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
74038 2008-05-23  Bruno Haible  <bruno@clisp.org>
74040         Improve support for ACLs on OSF/1.
74041         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
74042         Remove fallback for unknown flavors of ACLs.
74044 2008-05-22  Bruno Haible  <bruno@clisp.org>
74046         Add support for ACLs on OSF/1.
74047         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
74048         replacements.
74049         (acl_free_text): New macro fallback.
74050         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
74051         acl_free.
74052         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
74053         acl_free_text function. Require AC_C_INLINE.
74055 2008-05-22  Bruno Haible  <bruno@clisp.org>
74057         Make copy_acl work on MacOS X 10.5.
74058         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
74059         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
74060         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
74061         If MODE_INSIDE_ACL, don't assume that every system has the same text
74062         representation for ACLs as FreeBSD.
74063         * lib/copy-acl.c (copy_acl): Add support for platforms with
74064         !MODE_INSIDE_ACL.
74065         * lib/file-has-acl.c (file_has_acl): Likewise.
74066         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
74067         FreeBSD, MacOS X, or IRIX, respectively.
74069 2008-05-22  Bruno Haible  <bruno@clisp.org>
74071         * lib/acl.h: Don't include <sys/acl.h>.
74072         (GETACLCNT): Move fallback to lib/acl-internal.h.
74073         * lib/acl-internal.h: Include <sys/acl.h> here.
74074         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
74076 2008-05-22  Bruno Haible  <bruno@clisp.org>
74078         Split off copy_acl function to separate file.
74079         * lib/copy-acl.c: New file, extracted from lib/acl.c.
74080         * lib/acl.c (copy_acl): Moved function to separate file.
74081         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
74082         * modules/acl (Files): Add lib/copy-acl.c.
74083         (Makefiles.am): Augment lib_SOURCES.
74085 2008-05-22  Bruno Haible  <bruno@clisp.org>
74087         * modules/copy-file-tests: New file.
74088         * tests/test-copy-file.sh: New file.
74089         * tests/test-copy-file.c: New file.
74090         * tests/test-copy-file-sameacls.c: New file.
74092 2008-05-22  Eric Blake  <ebb9@byu.net>
74094         Avoid gcc warning.
74095         * tests/test-memcmp.c (main): Pass NULL indirectly.
74097 2008-05-21  Bruno Haible  <bruno@clisp.org>
74099         Add reference doc about ACLs.
74100         * doc/acl-resources.txt: New file.
74101         * doc/acl-cygwin.txt: New file.
74103 2008-05-21  Bruno Haible  <bruno@clisp.org>
74105         Avoid one more warning from gcc.
74106         * lib/vasnprintf.c (IF_LINT): Update comments.
74107         (VASNPRINTF): Use it also for the 'prefix' array initializer.
74109 2008-05-21  Jim Meyering  <meyering@redhat.com>
74111         avoid a warning from gcc
74112         * lib/vasnprintf.c (IF_LINT): Define.
74113         (scale10_round_decimal_long_double):
74114         Use it to avoid a "may be used uninitialized" warning.
74115         (scale10_round_decimal_double): Likewise.
74117 2008-05-21  Simon Josefsson  <simon@josefsson.org>
74119         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
74120         declared.
74122 2008-05-20  Bruno Haible  <bruno@clisp.org>
74124         * tests/test-memcmp.c (main): Test also the sign of the result. Test
74125         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
74127 2008-05-20  Simon Josefsson  <simon@josefsson.org>
74129         * modules/memcmp-tests: New file.
74130         * tests/test-memcmp.c: New file.
74132 2008-05-19  Bruno Haible  <bruno@clisp.org>
74134         * modules/propername (Notice, configure.ac): Put quoted "..." into
74135         --keyword option.
74136         * lib/propername.h: Update comments accordingly.
74137         Reported by Eric Blake.
74139 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
74141         * modules/getpass-gnu (Depends-on): Add fseeko.
74143 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74145         * modules/base64-tests: New file.
74147 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
74149         * lib/base64.c (base64_decode_ctx): If a decode context structure
74150         was passed in use it to ignore newlines.  If a context structure
74151         was _not_ passed in, continue to treat newlines as garbage (this
74152         is the historical behavior).  Formerly base64_decode.
74153         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74154         takes a decode context structure.
74155         * lib/base64.h (base64_decode): Macro for four-argument calls.
74156         (base64_decode_alloc): Likewise.
74157         * lib/base64.c (base64_decode_ctx): If a decode context structure
74158         was passed in use it to ignore newlines.  If a context structure
74159         was _not_ passed in, continue to treat newlines as garbage (this
74160         is the historical behavior).  Formerly base64_decode.
74161         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74162         takes a decode context structure.
74163         * lib/base64.h (base64_decode): Macro for four-argument calls.
74164         (base64_decode_alloc): Likewise.
74166 2008-05-19  Jim Meyering  <meyering@redhat.com>
74168         avoid a warning from gcc
74169         * lib/trim.c (IF_LINT): Define.
74170         (trim2): Use it to avoid a "may be used uninitialized" warning.
74172         Fix doc typo.
74173         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
74175 2008-05-19  Bruno Haible  <bruno@clisp.org>
74177         * doc/glibc-functions/getpass.texi: Document limits of other
74178         implementations.
74180 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74181             Bruno Haible <bruno@clisp.org>
74183         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
74185 2008-05-18  Bruno Haible  <bruno@clisp.org>
74187         * modules/propername: New file, from GNU gettext.
74188         * lib/propername.h: New file, from GNU gettext.
74189         * lib/propername.c: New file, from GNU gettext.
74190         * MODULES.html.sh (Internationalization functions): Add propername.
74192 2008-05-16  Jim Meyering  <meyering@redhat.com>
74193             Bruno Haible  <bruno@clisp.org>
74195         Avoid some warnings from "gcc -Wshadow".
74196         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
74198 2008-05-15  Eric Blake  <ebb9@byu.net>
74200         Extend previous patch to cygwin 1.7.0.
74201         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
74202         fast implementation in cygwin >= 1.7.0.
74203         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74206 2008-05-15  Bruno Haible  <bruno@clisp.org>
74208         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
74209         implementation in glibc >= 2.9.
74210         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74213 2008-05-15  Bruno Haible  <bruno@clisp.org>
74215         * MODULES.html.sh (Internationalization functions): Remove linebreak.
74216         (Unicode string functions): Add unilbrk/*.
74217         Reported by Karl Berry.
74219 2008-05-15  Eric Blake  <ebb9@byu.net>
74221         Fix violation of <stdbool.h> replacement in regex.
74222         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
74223         * lib/regexec.c (re_search_internal): Likewise.
74224         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
74226 2008-05-15  Jim Meyering  <meyering@redhat.com>
74228         avoid distracting test output when git or cvs is not found
74229         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
74230         * tests/test-vc-list-files-git.sh: Likewise.
74232 2008-05-15  Eric Blake  <ebb9@byu.net>
74234         Glibc finally accepted the memmem speedup code, bugzilla #5514.
74235         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
74236         glibc version.
74237         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
74238         * doc/posix-functions/strstr.texi (strstr): Likewise.
74239         * lib/str-two-way.h (MAX): Sychronize with glibc.
74241 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
74243         * lib/regcomp.c (optimize_utf8): Add a note on why we test
74244         opr.ctx_type.
74245         (calc_first): Initialize constraint field.
74246         (duplicate_node_closure): Use it instead of special casing ANCHORS.
74247         Fix grammar.
74248         (duplicate_node): Merge constraint field for all node types.
74249         (calc_eclosure_iter): Look at constraint field for all node types.
74250         * lib/regex_internal.c (create_cd_newstate): Don't look at
74251         opr.ctx_type.
74253 2008-05-14  Bruno Haible  <bruno@clisp.org>
74255         Help GCC to do better code generation.
74256         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
74257         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
74258         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
74259         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
74260         Declare with attribute 'malloc' if supported.
74262 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
74264         use "echo STR|wc -c" rather than unportable "expr length STR"
74265         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
74266         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
74268 2008-05-14  Jim Meyering  <meyering@redhat.com>
74270         use dd ibs=$n count=1 ... rather than less-portable head -c$n
74271         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
74272         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
74273         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
74274         via Collin Lasse.
74276 2008-05-14  Eric Blake  <ebb9@byu.net>
74278         Avoid quadratic growth in gl_LIBSOURCES.
74279         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
74280         Suggested by Bruno Haible.
74282         Test xmemdup0.
74283         * modules/xmemdup0-tests: New file.
74284         * tests/test-xmemdup0.c: Likewise.
74286 2008-05-13  Eric Blake  <ebb9@byu.net>
74288         Split xmemdup0 into its own module.
74289         * modules/xmemdup0: New file.
74290         * lib/xmemdup0.h: Likewise.
74291         * lib/xmemdup0.c: Likewise.
74292         * MODULES.html.sh (Memory management functions): Add xmemdup0.
74293         * lib/xalloc.h (xmemdup0): Remove.
74294         * lib/xmalloc.c (xmemdup0): Likewise.
74296 2008-05-13  Eric Blake  <ebb9@byu.net>
74297             Bruno Haible  <bruno@clisp.org>
74299         Reduce number of forks required during autoconf.
74300         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
74301         and gl_LIBSOURCES_DIR.
74302         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
74303         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
74304         m4_syscmd per file.
74305         <m4_foreach_w>: Move...
74306         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
74308 2008-05-13  Eric Blake  <ebb9@byu.net>
74310         * gnulib-tool: Fix various comment typos.
74312 2008-05-12  Bruno Haible  <bruno@clisp.org>
74314         Tailor the linebreaking algorithm.
74315         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
74317 2008-05-12  Bruno Haible  <bruno@clisp.org>
74319         Update to Unicode 5.0.0.
74320         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
74321         LBP_JV, LBP_JT. Redistribute values.
74322         (unilbrk_table): Change size.
74323         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
74324         Unicode TR#14 rev. 22.
74325         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
74326         LBP_JV, LBP_JT. Redistribute values.
74327         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
74328         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
74329         Update.
74330         * lib/unilbrk/lbrkprop1.h: Regenerated.
74331         * lib/unilbrk/lbrkprop2.h: Regenerated.
74332         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
74333         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
74334         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
74335         Likewise.
74336         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
74337         Likewise.
74338         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
74339         result.
74340         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
74341         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
74342         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
74343         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
74344         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
74345         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
74347 2008-05-11  Bruno Haible  <bruno@clisp.org>
74349         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
74351 2008-05-11  Bruno Haible  <bruno@clisp.org>
74353         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
74354         * modules/unilbrk/gen-lbrk: New file.
74356 2008-05-11  Bruno Haible  <bruno@clisp.org>
74358         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
74359         * m4/sha512.m4 (gl_SHA512): Likewise.
74361 2008-05-11  Jim Meyering  <meyering@redhat.com>
74363         New modules: crypto/sha256, crypto/sha512 (from coreutils)
74364         * modules/crypto/sha256: New file.
74365         * modules/crypto/sha512: Likewise.
74366         * lib/sha256.c: Likewise.
74367         * lib/sha256.h: Likewise.
74368         * lib/sha512.c: Likewise.
74369         * lib/sha512.h: Likewise.
74370         * lib/u64.h: Likewise.
74371         * m4/sha256.m4: Likewise.
74372         * m4/sha512.m4: Likewise.
74373         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
74375 2008-05-10  Bruno Haible  <bruno@clisp.org>
74377         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
74378         (Input/Output <stdio.h>): Add xprintf.
74379         (Signal handling <signal.h>): Add strsignal.
74380         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
74381         (Core language properties): Add func.
74382         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
74383         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
74384         strings.
74385         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
74386         (Input/output): New section.
74387         (File system functions): Add openat-die, stat-macros.
74388         (Networking functions): Add sockets.
74389         (Unicode string functions): Add unictype/*.
74390         (Support for building libraries and executables): Add gperf.
74391         (Support for building documentation): Add agpl-3.0.
74392         (Misc): Add nocrash.
74394 2008-05-10  Bruno Haible  <bruno@clisp.org>
74396         * modules/unictype/gen-ctype: New file.
74398 2008-05-10  Jim Meyering  <meyering@redhat.com>
74400         Make chdir-safer.c more efficient on a system with no symlinks.
74401         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
74402         also if ELOOP is zero.  Suggested by Bruno Haible.
74404         Make chdir-safer.c slightly safer.
74405         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
74406         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
74408         Avoid compile failure on systems without ELOOP (like mingw).
74409         * lib/chdir-safer.c (ELOOP): Define if not already defined.
74410         Reported by Bruno Haible.
74412 2008-05-10  Bruno Haible  <bruno@clisp.org>
74414         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
74415         (is_utf8_encoding): Use a case-insensitive comparison.
74416         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
74417         streq.
74419 2008-05-10  Bruno Haible  <bruno@clisp.org>
74421         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
74422         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
74423         * lib/unilbrk/ulc-common.h (iconv_string_length,
74424         iconv_string_keeping_offsets): Remove declarations.
74425         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
74426         Don't include <iconv.h>, streq.h, xsize.h.
74427         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
74428         conversion.
74429         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
74430         <iconv.h>, streq.h, xsize.h.
74431         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
74432         conversion.
74433         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
74434         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
74435         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
74436         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
74438 2008-05-10  Bruno Haible  <bruno@clisp.org>
74440         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
74441         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
74443         * modules/unilbrk/u32-width-linebreaks-tests: New file.
74444         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
74446         * modules/unilbrk/u16-width-linebreaks-tests: New file.
74447         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
74449         * modules/unilbrk/u8-width-linebreaks-tests: New file.
74450         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
74452         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
74453         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
74455         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
74456         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
74458         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
74459         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
74461         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
74462         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
74464 2008-05-10  Bruno Haible  <bruno@clisp.org>
74466         Split up 'linebreak' module.
74467         * lib/unilbrk.h: New file, based on lib/linebreak.h.
74468         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
74469         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
74470         modifications.
74471         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
74472         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
74473         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
74474         lib/linebreak.c.
74475         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
74476         lib/linebreak.c.
74477         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
74478         lib/linebreak.c.
74479         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
74480         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
74481         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
74482         lib/linebreak.c.
74483         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
74484         lib/linebreak.c.
74485         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
74486         lib/linebreak.c.
74487         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
74488         lib/linebreak.c.
74489         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
74490         lib/linebreak.c.
74491         * modules/unilbrk/base: New file.
74492         * modules/unilbrk/tables: New file.
74493         * modules/unilbrk/u8-possible-linebreaks: New file.
74494         * modules/unilbrk/u16-possible-linebreaks: New file.
74495         * modules/unilbrk/u32-possible-linebreaks: New file.
74496         * modules/unilbrk/ulc-common: New file.
74497         * modules/unilbrk/ulc-possible-linebreaks: New file.
74498         * modules/unilbrk/u8-width-linebreaks: New file.
74499         * modules/unilbrk/u16-width-linebreaks: New file.
74500         * modules/unilbrk/u32-width-linebreaks: New file.
74501         * modules/unilbrk/ulc-width-linebreaks: New file.
74502         * lib/linebreak.h: Remove file.
74503         * lib/linebreak.c: Remove file.
74504         * m4/linebreak.m4: Remove file.
74505         * modules/linebreak: Remove file.
74506         * NEWS: Mention the changes.
74508 2008-05-09  Eric Blake  <ebb9@byu.net>
74510         Add xmemdup0.
74511         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
74512         implementation.
74513         * lib/xmalloc.c (xmemdup0): New C implementation.
74515 2008-05-08  Bruno Haible  <bruno@clisp.org>
74517         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
74519 2008-05-07  Eric Blake  <ebb9@byu.net>
74521         Support cross-compilation of <wctype.h>.
74522         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
74523         AC_CACHE_CHECK.
74525 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
74527         * build-aux/vc-list-files: Add support for bzr.
74529 2008-05-03  Jim Meyering  <meyering@redhat.com>
74531         avoid failed assertion with tight malloc
74532         * tests/test-getndelim2.c: Correct an off-by-one assertion.
74534 2008-05-03  Simon Josefsson  <simon@josefsson.org>
74536         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
74537         are needed from arpa/inet.h.
74538         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
74539         Reported by Bruno Haible.
74541 2008-05-02  Jim Meyering  <meyering@redhat.com>
74543         avoid compilation error on FreeBSD 6
74544         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
74546 2008-05-01  Jim Meyering  <meyering@redhat.com>
74548         useless-if-before-free: correct --help's exit status description
74549         * build-aux/useless-if-before-free (usage): Like grep, exit 0
74550         for one or more matches, etc.  Reported by Bruno Haible.
74552         vc-list-files: make the stand-alone gnulib test work
74553         * modules/vc-list-files-tests (configure.ac):
74554         Define and AC_SUBST abs_aux_dir.
74555         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
74556         $(abs_top_srcdir) to each script and having each of them
74557         duplicate the work of setting PATH, set PATH here, using
74558         the new variable, abs_aux_dir instead.
74559         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
74560         * tests/test-vc-list-files-git.sh: Likewise.
74561         Reported by Bruno Haible.
74563 2008-05-01  Bruno Haible  <bruno@clisp.org>
74565         * lib/getndelim2.c (getndelim2): Fix newsize computation during
74566         reallocation. Rename 'done' to 'found_delimiter'.
74568 2008-05-01  Jim Meyering  <meyering@redhat.com>
74570         vc-list-files: accommodate /bin/sh like the one from Solaris 10
74571         * build-aux/vc-list-files: Use `...`, not $(...).
74573 2008-04-30  Jim Meyering  <meyering@redhat.com>
74575         add tests for vc-list-files
74576         * modules/vc-list-files-tests: New module.
74577         * tests/test-vc-list-files-cvs.sh: New file.
74578         * tests/test-vc-list-files-git.sh: New file.
74580         avoid a warning from gcc
74581         * lib/getndelim2.c (IF_LINT): Define.
74582         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
74584         vc-list-files: work properly with build-aux/cvsu, too
74585         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
74586         to all cvs-based clauses.
74588         vc-list-files: work properly in the CVS+awk case, too
74589         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
74591         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
74592         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
74593         take more than one file argument, so .  Add quotes, just in case $dir
74594         ever contains a shell meta-character.  Prompted by Soren Hansen in
74595         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
74597 2008-04-29  Eric Blake  <ebb9@byu.net>
74599         Optimize getndelim2 to use block operations when possible.
74600         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
74601         freadseek, and memchr2.
74602         * lib/getndelim2.c (getndelim2): Use them for block reads.
74604 2008-04-29  Bruno Haible  <bruno@clisp.org>
74606         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
74607         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74608         * modules/inet_ntop (Depends-on): Add extensions.
74609         * modules/inet_pton (Depends-on): Likewise.
74610         Reported by Simon Josefsson.
74612 2008-04-29  Jim Meyering  <meyering@redhat.com>
74614         When the is more than one match in a block, match all of them.
74615         * build-aux/useless-if-before-free: Iterate through each block
74616         until there are no more matches.
74618         Fix broken useless-if-before-free script.
74619         * build-aux/useless-if-before-free: Fix typo: missing "?" after
74620         the expression to match cast of argument to free-like function.
74622 2008-04-29  Eric Blake  <ebb9@byu.net>
74624         Use new header.
74625         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
74627 2008-04-29  Jim Meyering  <meyering@redhat.com>
74629         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
74630         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
74631         by gnulib to exist and to declare e.g., inet_ntop.
74632         Don't include "inet_ntop.h", now removed.
74634         * m4/arpa_inet_h.m4: Remove trailing blanks.
74636 2008-04-29  Eric Blake  <ebb9@byu.net>
74638         Silence valgrind on safe reads beyond potential array bounds.
74639         * lib/rawmemchr.valgrind: New file.
74640         * lib/strchrnul.valgrind: Likewise.
74641         * modules/rawmemchr (Files): Distribute new file.
74642         * modules/strchrnul (Files): Likewise.
74643         Suggested by Bruno Haible.
74645 2008-04-29  Bruno Haible  <bruno@clisp.org>
74647         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
74648         (inet_ntop, inet_pton): Change portability warning's wording.
74649         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
74650         Invoke gl_CHECK_NEXT_HEADERS.
74651         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
74652         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
74653         set ARPA_INET_H.
74654         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74655         * modules/arpa_inet (Description): No longer only for systems that
74656         lack it.
74657         (Depends-on): Add include_next.
74658         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
74659         HAVE_ARPA_INET_H.
74661 2008-04-29  Jim Meyering  <meyering@redhat.com>
74663         * modules/mkdir (License): Re-license as LGPLv2+.
74665 2008-04-29  Bruno Haible  <bruno@clisp.org>
74667         * modules/rawmemchr (Maintainer): Set to Eric.
74668         * modules/strchrnul (Maintainer): Likewise.
74670 2008-04-29  Simon Josefsson  <simon@josefsson.org>
74672         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
74673         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
74675         * modules/arpa_inet (arpa/inet.h): Use them.
74677 2008-04-28  Eric Blake  <ebb9@byu.net>
74679         Test getndelim2.
74680         * modules/getndelim2-tests: New file.
74681         * tests/test-getndelim2.c: Likewise.
74682         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
74683         stream.
74684         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
74686         * MODULES.html.sh: Document new module.
74688 2008-04-20  Bruno Haible  <bruno@clisp.org>
74690         * lib/c-stack.c (die): Use raise.
74691         * modules/c-stack (Depends-on): Add raise.
74693 2008-04-28  Bruno Haible  <bruno@clisp.org>
74695         Expect rpmatch to be declared.
74696         * lib/yesno.c (rpmatch): Remove declaration.
74698         Declare rpmatch.
74699         * lib/stdlib.in.h (rpmatch): New declaration.
74700         * lib/rpmatch.c: Include <stdlib.h> first.
74701         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
74702         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
74703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
74704         HAVE_RPMATCH.
74705         * modules/rpmatch (Depends-on): Add stdlib, extensions.
74706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74707         (Include): Set to <stdlib.h>.
74708         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
74709         HAVE_RPMATCH.
74710         * NEWS: Document the change.
74712 2008-04-28  Bruno Haible  <bruno@clisp.org>
74714         Change rpmatch to use nl_langinfo when appropriate.
74715         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
74716         (N_): New macro.
74717         (localized_pattern): New function/macro.
74718         (try): Remove match, nomatch arguments. Copy the pattern into safe
74719         memory before caching it.
74720         (rpmatch): Use localized_pattern. Add translator comments.
74721         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
74722         Suggested by Eric Blake.
74723         * modules/rpmatch (Depends-on): Add stdbool.
74725 2008-04-28  Eric Blake  <ebb9@byu.net>
74727         Add rawmemchr module, matching glibc.
74728         * modules/string (Makefile.am): New indicator.
74729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
74730         * lib/string.in.h (rawmemchr): Declare when appropriate.
74731         * modules/rawmemchr: New file.
74732         * m4/rawmemchr.m4: Likewise.
74733         * lib/rawmemchr.c: Likewise.
74734         * modules/rawmemchr-tests: Likewise.
74735         * tests/test-rawmemchr.c: Likewise.
74736         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
74737         module.
74738         * modules/strchrnul (Depends-on): Add rawmemchr.
74739         * lib/strchrnul.c (strchrnul): Optimize a corner case.
74741         Whitespace cleanup.
74742         * tests/test-strchrnul.c: Reindent.
74743         * lib/strchrnul.c: Likewise.
74745         Optimize and test strchrnul.
74746         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
74747         * modules/strchrnul-tests: New file.
74748         * tests/test-strchrnul.c: Likewise.
74750         Remove intprops dependency.
74751         * modules/memchr (Depends-on): Remove intprops.
74752         * modules/memrchr (Depends-on): Likewise.
74753         * modules/memchr2 (Depends-on): Likewise.
74754         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
74755         * lib/memrchr.c (__memrchr): Likewise.
74756         * lib/memrchr2.c (memchr2): Likewise.
74757         Reported by Simon Josefsson.
74759 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74761         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
74762         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74764 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74766         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
74768         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
74770         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
74772         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
74773         declarations.
74774         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
74776         * m4/inet_pton.m4: Don't check for header files.
74778         * m4/inet_ntop.m4: Don't check for header files.
74780 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74782         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
74783         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
74784         trigger for cygwin).
74785         Reported by Bruno Haible  <bruno@clisp.org>.
74787 2008-04-28  Bruno Haible  <bruno@clisp.org>
74789         * doc/posix-functions/strdup.texi: Mention mingw problem.
74791 2008-04-27  Bruno Haible  <bruno@clisp.org>
74793         * modules/stat-time-tests (Depends-on): Add sleep.
74794         * tests/test-stat-time.c (force_unlink): New function.
74795         (cleanup): Use it.
74796         (test_mtime): Remove the ctime related tests.
74797         (test_ctime): New function, containing the ctime related tests.
74798         (main): Call test_ctime, except on native Windows platforms.
74800 2008-04-27  Bruno Haible  <bruno@clisp.org>
74802         * lib/rpmatch.c (rpmatch): Add some comments.
74803         Reported by James Youngman <jay@gnu.org>.
74805 2008-04-27  Bruno Haible  <bruno@clisp.org>
74807         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
74808         quiet NaNs.
74810 2008-04-27  Bruno Haible  <bruno@clisp.org>
74812         Make test-yesno.sh work on mingw.
74813         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
74814         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
74815         (main): Set stdin to binary mode.
74816         * modules/yesno-tests (Depends-on): Add binary-io.
74818 2008-04-27  Bruno Haible  <bruno@clisp.org>
74820         Fix 'isfinite' on x86, x86_64, ia64 platforms.
74821         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
74822         argument that lie outside the IEEE 854 domain.
74823         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
74824         (gl_ISFINITE): Use it.
74825         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
74827 2008-04-27  Bruno Haible  <bruno@clisp.org>
74829         Allow local renaming in config.h.
74830         * lib/memrchr.c (memrchr): Don't undefine outside libc.
74832 2008-04-27  Bruno Haible  <bruno@clisp.org>
74834         * lib/memchr.c (__memchr): Change type of 'i'.
74835         * lib/memchr2.c (memchr2): Likewise.
74837 2008-04-26  Eric Blake  <ebb9@byu.net>
74838         and Bruno Haible  <bruno@clisp.org>
74840         Optimize and test memrchr.
74841         * modules/memrchr (Depends-on): Add intprops.
74842         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
74843         * modules/memrchr-tests: New file.
74844         * tests/test-memrchr.c: New file.
74846 2008-04-26  Bruno Haible  <bruno@clisp.org>
74848         Add tentative support for DragonFly BSD.
74849         * lib/stdio-impl.h: Add macros for DragonFly BSD.
74850         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
74851         fp.
74852         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
74853         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
74854         * lib/fpurge.c (fpurge): Likewise.
74855         * lib/freadable.c (freaadable): Likewise.
74856         * lib/freadahead.c (freadahead): Likewise.
74857         * lib/freading.c (freading): Likewise.
74858         * lib/freadptr.c (freadptr): Likewise.
74859         * lib/freadseek.c (freadptrinc): Likewise.
74860         * lib/fseeko.c (fseeko): Likewise.
74861         * lib/fseterr.c (fseterr): Likewise.
74862         * lib/fwritable.c (fwritable): Likewise.
74863         * lib/fwriting.c (fwriting): Likewise.
74865 2008-04-26  Bruno Haible  <bruno@clisp.org>
74867         * lib/stdio-impl.h: New file.
74868         * lib/fbufmode.c: Include stdio-impl.h.
74869         (fbufmode): Use fp_, remove redundant #defines.
74870         * lib/fflush.c: Include stdio-impl.h.
74871         (clear_ungetc_buffer): Remove redundant #defines.
74872         * lib/fpurge.c: Include stdio-impl.h.
74873         (fpurge): Remove redundant #defines.
74874         * lib/freadable.c: Include stdio-impl.h.
74875         (freadable): Remove redundant #defines.
74876         * lib/freadahead.c: Include stdio-impl.h.
74877         (freadahead): Remove redundant #defines.
74878         * lib/freading.c: Include stdio-impl.h.
74879         (freading): Remove redundant #defines.
74880         * lib/freadptr.c: Include stdio-impl.h.
74881         (freadptr): Remove redundant #defines.
74882         * lib/freadseek.c: Include stdio-impl.h.
74883         (freadptrinc): Remove redundant #defines.
74884         * lib/fseeko.c: Include stdio-impl.h.
74885         (rpl_fseeko): Remove redundant #defines.
74886         * lib/fseterr.c: Include stdio-impl.h.
74887         (fseterr): Remove redundant #defines.
74888         * lib/fwritable.c: Include stdio-impl.h.
74889         (fwritable: Remove redundant #defines.
74890         * lib/fwriting.c: Include stdio-impl.h.
74891         (fwriting): Remove redundant #defines.
74892         * modules/fbufmode (Files): Add lib/stdio-impl.h.
74893         * modules/fflush (Files): Likewise.
74894         * modules/fpurge (Files): Likewise.
74895         * modules/freadable (Files): Likewise.
74896         * modules/freadahead (Files): Likewise.
74897         * modules/freading (Files): Likewise.
74898         * modules/freadptr (Files): Likewise.
74899         * modules/freadseek (Files): Likewise.
74900         * modules/fseeko (Files): Likewise.
74901         * modules/fseterr (Files): Likewise.
74902         * modules/fwritable (Files): Likewise.
74903         * modules/fwriting (Files): Likewise.
74905 2008-04-26  Bruno Haible  <bruno@clisp.org>
74907         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
74908         restore_seek_optimization, update_fpos_cache): New functions, extracted
74909         from rpl_fflush.
74910         (rpl_fflush): Use them.
74911         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
74912         (gl_REPLACE_FFLUSH): Use it.
74914 2008-04-26  Bruno Haible  <bruno@clisp.org>
74916         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
74917         on Solaris.
74918         * tests/test-xstrtoimax.sh: Likewise.
74919         * tests/test-xstrtoumax.sh: Likewise.
74920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74922 2008-04-26  Bruno Haible  <bruno@clisp.org>
74924         * modules/memchr-tests: New file.
74925         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
74927 2008-04-26  Eric Blake  <ebb9@byu.net>
74928             Bruno Haible  <bruno@clisp.org>
74930         * lib/memchr.c: Include intprops.h.
74931         (__memchr): Optimize parallel detection of matching bytes. Rename local
74932         variables. Add explanatory comments.
74934 2008-04-26  Bruno Haible  <bruno@clisp.org>
74936         Fix module 'memchr', broken since 2000-10-28.
74937         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
74939 2008-04-26  Bruno Haible  <bruno@clisp.org>
74941         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
74942         comments.
74944 2008-04-25  Eric Blake  <ebb9@byu.net>
74946         Use native fstatat on cygwin 1.7.0.
74947         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
74948         first.
74950 2008-04-23  Eric Blake  <ebb9@byu.net>
74952         Improve memchr2 performance.
74953         * lib/memchr2.c (memchr2): Further optimize parallel detection of
74954         NUL bytes.
74955         * modules/memchr2 (Depends-on): Use intprops.h.
74957 2008-04-23  Simon Josefsson  <simon@josefsson.org>
74959         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
74960         an inline function instead of a CPP macro.  Patch by Ben Pfaff
74961         <blp@cs.stanford.edu>.
74963 2008-04-23  Simon Josefsson  <simon@josefsson.org>
74965         * lib/arpa_inet.in.h: New file.
74967         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
74968         (Makefile.am): Sed in substitute header file.
74970         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
74971         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
74973         * modules/inet_ntop (configure.ac): Use
74974         gl_ARPA_INET_MODULE_INDICATOR.
74976         * modules/inet_pton (configure.ac): Use
74977         gl_ARPA_INET_MODULE_INDICATOR.
74979 2008-04-22  Jim Meyering  <meyering@redhat.com>
74981         * modules/verify (License): Re-license as LGPLv2+.
74983 2008-04-22  Simon Josefsson  <simon@josefsson.org>
74985         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
74986         parameter to void* as per POSIX standard (MinGW uses char*).
74988 2008-04-21  Bruno Haible  <bruno@clisp.org>
74990         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74991         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74992         Define to replacements if REPLACE_ISWCNTRL is 1.
74993         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
74994         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
74995         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
74996         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
74997         what it fixes.
74998         * doc/posix-functions/iswalpha.texi: Likewise.
74999         * doc/posix-functions/iswblank.texi: Likewise.
75000         * doc/posix-functions/iswcntrl.texi: Likewise.
75001         * doc/posix-functions/iswdigit.texi: Likewise.
75002         * doc/posix-functions/iswgraph.texi: Likewise.
75003         * doc/posix-functions/iswlower.texi: Likewise.
75004         * doc/posix-functions/iswprint.texi: Likewise.
75005         * doc/posix-functions/iswpunct.texi: Likewise.
75006         * doc/posix-functions/iswspace.texi: Likewise.
75007         * doc/posix-functions/iswupper.texi: Likewise.
75008         * doc/posix-functions/iswxdigit.texi: Likewise.
75009         Reported by Alain Guibert.
75011 2008-04-21  Bruno Haible  <bruno@clisp.org>
75013         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
75014         Patch by Alain Guibert.
75016 2008-04-21  Bruno Haible  <bruno@clisp.org>
75018         Fix test failures on mingw.
75019         * tests/test-xstrtol.c (print_no_progname): New function.
75020         (main): Install it in error_print_progname hook.
75021         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
75022         * tests/test-xstrtoimax.sh: Likewise.
75023         * tests/test-xstrtoumax.sh: Likewise.
75025 2008-04-21  Bruno Haible  <bruno@clisp.org>
75027         Fix test failure on mingw.
75028         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
75030 2008-04-21  Bruno Haible  <bruno@clisp.org>
75032         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
75033         Actually assign a value.
75035 2008-04-20  Bruno Haible  <bruno@clisp.org>
75037         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
75038         take 2.
75039         * lib/canonicalize.c (canonicalize_file_name): Elide if the
75040         'canonicalize-lgpl' module is also used.
75041         * lib/canonicalize-lgpl.c: Undo last change.
75042         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
75044 2008-04-20  Bruno Haible  <bruno@clisp.org>
75046         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
75047         config.h. Provide _mkdir based fallback for mingw.
75048         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
75049         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
75050         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
75051         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
75052         rather than defining mkdir in config.h.
75053         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
75054         (gl_SYS_STAT_H_DEFAULTS): New macro.
75055         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
75056         HAVE_IO_H any more.
75057         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
75058         HAVE_DECL_MKDIR and HAVE_IO_H.
75060 2008-04-20  Bruno Haible  <bruno@clisp.org>
75062         * lib/isapipe.c: Port to native Windows platforms.
75064 2008-04-20  Bruno Haible  <bruno@clisp.org>
75066         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
75068 2008-04-21  Eric Blake  <ebb9@byu.net>
75070         Work around preprocessors that don't handle UINTMAX_MAX.
75071         * lib/memchr2.c (memchr2): Avoid embedded #if.
75072         Reported by Alain Guibert, fix suggested by Bruno Haible.
75074 2008-04-21  Simon Josefsson  <simon@josefsson.org>
75076         * doc/posix-functions/strftime.texi (strftime): Explain better
75077         Windows incompatibility.  Suggested by Micah Cowan
75078         <micah@cowan.name>.
75080 2008-04-20  Bruno Haible  <bruno@clisp.org>
75082         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
75083         unistr/u8-mblen.
75085 2008-04-20  Bruno Haible  <bruno@clisp.org>
75087         Fix test failure on platforms with non-GNU iconv.
75088         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
75089         (U_TO_U8): Use it, rather than u16_to_u8.
75090         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
75091         units at the end of the input string.
75092         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
75094 2008-04-20  Bruno Haible  <bruno@clisp.org>
75096         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
75097         when the resulting length is 0.
75098         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
75100 2008-04-20  Bruno Haible  <bruno@clisp.org>
75102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
75103         works.
75104         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
75106 2008-04-20  Bruno Haible  <bruno@clisp.org>
75108         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
75109         * modules/tsearch-tests (configure.ac): Test for initstate function.
75111 2008-04-20  Bruno Haible  <bruno@clisp.org>
75113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
75114         for nlink_t if missing.
75115         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
75117 2008-04-19  Bruno Haible  <bruno@clisp.org>
75119         Work around snprintf bug on Linux libc5.
75120         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
75121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
75122         gl_SNPRINTF_SIZE1.
75123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75124         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
75125         that test failed.
75126         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
75127         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
75128         * modules/snprintf (Files): Add m4/printf.m4.
75129         * modules/vsnprintf (Files): Likewise.
75130         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
75131         * doc/posix-functions/vsnprintf.texi: Likewise.
75133 2008-04-19  Bruno Haible  <bruno@clisp.org>
75135         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
75136         from 0.0058 to less than 10^-7.
75138 2008-04-19  Bruno Haible  <bruno@clisp.org>
75140         Fix rounding when a precision is given.
75141         * lib/vasnprintf.c (is_borderline): New function.
75142         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
75143         9...9x.
75144         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
75145         %e, %g.
75146         * tests/test-vasprintf-posix.c (test_function): Likewise.
75147         * tests/test-snprintf-posix.h (test_function): Likewise.
75148         * tests/test-sprintf-posix.h (test_function): Likewise.
75149         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
75150         * tests/test-printf-posix.h (test_function): Likewise.
75151         * tests/test-printf-posix.output: Update.
75152         Reported by John Darrington <john@darrington.wattle.id.au> via
75153         Ben Pfaff <blp@cs.stanford.edu>.
75155 2008-04-18  Simon Josefsson  <simon@josefsson.org>
75157         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
75158         Suggested by Bruno Haible <bruno@clisp.org>.
75160 2008-04-17  Bruno Haible  <bruno@clisp.org>
75162         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
75163         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
75164         implementation.
75165         Patch by Bruce Merry <bmerry@gmail.com>.
75167 2008-04-17  Simon Josefsson  <simon@josefsson.org>
75169         * doc/posix-functions/strftime.texi (strftime): Mention that %e
75170         doesn't work under Windows.
75172 2008-04-16  Bruno Haible  <bruno@clisp.org>
75174         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
75175         New macros.
75176         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
75177         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
75178         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
75179         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
75180         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
75181         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
75182         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
75183         macros.
75184         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
75185         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
75186         Northern Sotho, Uighur.
75188 2008-04-16  Bruno Haible  <bruno@clisp.org>
75190         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
75191         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
75192         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
75193         Reported by Daniel Bergström <daniel@octocode.com>.
75195 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
75196             Bruno Haible  <bruno@clisp.org>
75198         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
75199         function.
75200         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
75201         New functions, mostly extracted from gl_locale_name_default.
75202         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
75204 2008-04-16  Eric Blake  <ebb9@byu.net>
75206         Adjust strtod detection to catch glibc 2.7 bug.
75207         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
75208         Reported by John Gatewood Ham.
75210 2008-04-16  Bruno Haible  <bruno@clisp.org>
75212         Add tentative support for Linux libc5.
75213         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
75214         * lib/fpurge.c (fpurge): Likewise.
75215         * lib/freadable.c (freadable): Likewise.
75216         * lib/freadahead.c (freadahead): Likewise.
75217         * lib/freading.c (freading): Likewise.
75218         * lib/freadptr.c (freadptr): Likewise.
75219         * lib/freadseek.c (freadptrinc): Likewise.
75220         * lib/fseeko.c (rpl_fseeko): Likewise.
75221         * lib/fseterr.c (fseterr): Likewise.
75222         * lib/fwritable.c (fwritable): Likewise.
75223         * lib/fwriting.c (fwriting): Likewise.
75224         Reported by Alain Guibert <alguibert+bts@free.fr>.
75226 2008-04-15  Bruno Haible  <bruno@clisp.org>
75228         * modules/mathl (configure.ac): Define module indicator.
75230 2008-04-15  Bruno Haible  <bruno@clisp.org>
75232         * lib/logl.c (logl): Remove unused variables.
75234 2008-04-15  Bruno Haible  <bruno@clisp.org>
75236         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
75237         fails.
75239 2008-04-15  Bruno Haible  <bruno@clisp.org>
75241         * lib/trim.c (trim2): Fix argument of isspace() macro.
75243 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
75245         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
75246         to 0.
75247         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
75249 2008-04-14  Bruno Haible  <bruno@clisp.org>
75251         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
75252         AC_LANG_PROGRAM argument.
75253         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
75254         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
75255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
75256         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75257         * m4/math_h.m4 (gl_MATH_H): Likewise.
75258         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
75259         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75260         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
75261         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
75262         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75263         * m4/regex.m4 (gl_REGEX): Likewise.
75264         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
75265         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
75266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75267         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
75268         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75269         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
75273 2008-04-14  Jim Meyering  <meyering@redhat.com>
75275         test-strtod: fix typos: s/abs/fabs/
75276         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
75278 2008-04-13  Bruno Haible  <bruno@clisp.org>
75280         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
75281         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
75282         module is also used and while not building the reloc-wrapper.
75284 2008-04-13  Bruno Haible  <bruno@clisp.org>
75286         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
75288 2008-04-13  Bruno Haible  <bruno@clisp.org>
75290         Fix AIX compilation failure introduced on 2008-04-02.
75291         * tests/test-frexp.c (exp): Undefine before redefining.
75292         * tests/test-frexpl.c (exp): Likewise.
75294 2008-04-13  Bruno Haible  <bruno@clisp.org>
75296         Work around a HP-UX stdio bug.
75297         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
75298         * tests/test-ftello.c (main): Likewise.
75299         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
75300         * doc/posix-functions/ftello.texi: Likewise.
75302 2008-04-13  Bruno Haible  <bruno@clisp.org>
75304         Make test-signbit pass on HP-UX/hppa.
75305         * tests/test-signbit.c (minus_zerol): New variable.
75306         (test_signbitl): Use it.
75308 2008-04-13  Bruno Haible  <bruno@clisp.org>
75310         Make truncl work on OSF/1 4.0.
75311         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
75312         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
75313         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
75314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
75315         HAVE_DECL_TRUNCL.
75316         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
75317         HAVE_DECL_TRUNCL.
75318         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
75320 2008-04-13  Bruno Haible  <bruno@clisp.org>
75322         * lib/unictype.h: Remove trailing comma from enumeration definitions.
75324 2008-04-13  Bruno Haible  <bruno@clisp.org>
75326         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
75327         expression, so as to avoid HP-UX 11 cc compiler bug.
75329 2008-04-13  Bruno Haible  <bruno@clisp.org>
75331         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
75333 2008-04-13  Bruno Haible  <bruno@clisp.org>
75335         * lib/git-merge-changelog.c: Remove empty declaration outside of
75336         functions.
75338 2008-04-13  Bruno Haible  <bruno@clisp.org>
75340         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
75342 2008-04-13  Bruno Haible  <bruno@clisp.org>
75344         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
75345         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
75346         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
75347         also if it exists but lacks definitions of the SHUT_* macros.
75348         * modules/sys_socket (Description): Update.
75349         Reported by Elbert Pol <e.pol@chello.nl>.
75351 2008-04-13  Bruno Haible  <bruno@clisp.org>
75353         * lib/localcharset.c (OS2): Don't redefine if already defined.
75354         Reported by Elbert Pol <e.pol@chello.nl>.
75356 2008-04-13  Bruno Haible  <bruno@clisp.org>
75358         * lib/binary-io.h [__EMX__]: Include <io.h>.
75359         Reported by Elbert Pol <e.pol@chello.nl>.
75361 2008-04-12  Bruno Haible  <bruno@clisp.org>
75363         * lib/fpucw.h: Enable the definitions also for x86_64.
75364         Needed for NetBSD/x86_64.
75365         Reported by Thomas Klausner <tk@giga.or.at>.
75367 2008-04-12  Bruno Haible  <bruno@clisp.org>
75369         * tests/test-strtod.c: Include isnand.h.
75370         (main): Use isnand instead of isnan.
75371         Reported by Jim Meyering.
75373 2008-04-12  Bruno Haible  <bruno@clisp.org>
75375         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
75376         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75378 2008-04-12  Jim Meyering  <meyering@redhat.com>
75380         * m4/math_h.m4 (gl_MATH_H): Fix typos.
75382 2008-04-12  Bruno Haible  <bruno@clisp.org>
75384         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
75385         Reported by Elbert Pol <e.pol@chello.nl>.
75387 2008-04-12  Eric Blake  <ebb9@byu.net>
75389         Work around Solaris 10 math.h bug.
75390         * m4/math_h.m4 (gl_MATH_H): Check for bug.
75391         (gl_MATH_H_DEFAULTS): Set up default.
75392         * modules/math (Makefile.am): Replace new indicators.
75393         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
75394         * tests/test-math.c (main): Test this.
75395         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
75396         * doc/posix-headers/math.texi (math.h): Mention bug.
75397         Reported by Nelson H. F. Beebe and Jim Meyering.
75399 2008-04-11  Bruno Haible  <bruno@clisp.org>
75401         Adapt to future versions of Apple GCC.
75402         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
75403         Reported by Peter O'Gorman <peter@pogma.com>.
75405 2008-04-11  Bruno Haible  <bruno@clisp.org>
75407         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
75409 2008-04-11  Bruno Haible  <bruno@clisp.org>
75411         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
75413         * modules/getaddrinfo-tests (Makefile.am): Define
75414         test_getaddrinfo_LDADD.
75416 2008-04-11  Bruno Haible  <bruno@clisp.org>
75418         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
75419         (init): Fix syntax error.
75420         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
75421         is declared.
75423 2008-04-11  Bruno Haible  <bruno@clisp.org>
75425         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
75426         * modules/glob (Depends-on): Add stdbool.
75428 2008-04-11  Bruno Haible  <bruno@clisp.org>
75430         * lib/trim.c: Include <string.h>.
75432 2008-04-11  Eric Blake  <ebb9@byu.net>
75434         Avoid compile failure on OS/2.
75435         * lib/regex_internal.h (internal_function): Disable optimization
75436         on OS/2 (__EMX__), where it caused compiler error.
75437         Reported by Elbert Pol.
75439 2008-04-11  Bruno Haible  <bruno@clisp.org>
75441         Flush the standard error stream before aborting. Needed on mingw.
75442         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
75443         * tests/test-array_list.c (ASSERT): Likewise.
75444         * tests/test-array_oset.c (ASSERT): Likewise.
75445         * tests/test-avltree_list.c (ASSERT): Likewise.
75446         * tests/test-avltree_oset.c (ASSERT): Likewise.
75447         * tests/test-avltreehash_list.c (ASSERT): Likewise.
75448         * tests/test-binary-io.c (ASSERT): Likewise.
75449         * tests/test-byteswap.c (ASSERT): Likewise.
75450         * tests/test-c-ctype.c (ASSERT): Likewise.
75451         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
75452         * tests/test-c-strcasestr.c (ASSERT): Likewise.
75453         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
75454         * tests/test-c-strstr.c (ASSERT): Likewise.
75455         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
75456         * tests/test-canonicalize.c (ASSERT): Likewise.
75457         * tests/test-carray_list.c (ASSERT): Likewise.
75458         * tests/test-ceilf1.c (ASSERT): Likewise.
75459         * tests/test-ceilf2.c (ASSERT): Likewise.
75460         * tests/test-ceill.c (ASSERT): Likewise.
75461         * tests/test-count-one-bits.c (ASSERT): Likewise.
75462         * tests/test-fbufmode.c (ASSERT): Likewise.
75463         * tests/test-fflush2.c (ASSERT): Likewise.
75464         * tests/test-floorf1.c (ASSERT): Likewise.
75465         * tests/test-floorf2.c (ASSERT): Likewise.
75466         * tests/test-floorl.c (ASSERT): Likewise.
75467         * tests/test-fopen.c (ASSERT): Likewise.
75468         * tests/test-fpending.c (ASSERT): Likewise.
75469         * tests/test-fprintf-posix.c (ASSERT): Likewise.
75470         * tests/test-fpurge.c (ASSERT): Likewise.
75471         * tests/test-freadable.c (ASSERT): Likewise.
75472         * tests/test-freadahead.c (ASSERT): Likewise.
75473         * tests/test-freading.c (ASSERT): Likewise.
75474         * tests/test-freadptr.c (ASSERT): Likewise.
75475         * tests/test-freadptr2.c (ASSERT): Likewise.
75476         * tests/test-freadseek.c (ASSERT): Likewise.
75477         * tests/test-freopen.c (ASSERT): Likewise.
75478         * tests/test-frexp.c (ASSERT): Likewise.
75479         * tests/test-frexpl.c (ASSERT): Likewise.
75480         * tests/test-fseek.c (ASSERT): Likewise.
75481         * tests/test-fseeko.c (ASSERT): Likewise.
75482         * tests/test-fstrcmp.c (ASSERT): Likewise.
75483         * tests/test-ftell.c (ASSERT): Likewise.
75484         * tests/test-ftello.c (ASSERT): Likewise.
75485         * tests/test-func.c (ASSERT): Likewise.
75486         * tests/test-fwritable.c (ASSERT): Likewise.
75487         * tests/test-fwriting.c (ASSERT): Likewise.
75488         * tests/test-getdelim.c (ASSERT): Likewise.
75489         * tests/test-getline.c (ASSERT): Likewise.
75490         * tests/test-i-ring.c (ASSERT): Likewise.
75491         * tests/test-iconv-utf.c (ASSERT): Likewise.
75492         * tests/test-iconv.c (ASSERT): Likewise.
75493         * tests/test-isfinite.c (ASSERT): Likewise.
75494         * tests/test-isnand.c (ASSERT): Likewise.
75495         * tests/test-isnanf.c (ASSERT): Likewise.
75496         * tests/test-isnanl.h (ASSERT): Likewise.
75497         * tests/test-ldexpl.c (ASSERT): Likewise.
75498         * tests/test-linked_list.c (ASSERT): Likewise.
75499         * tests/test-linkedhash_list.c (ASSERT): Likewise.
75500         * tests/test-localename.c (ASSERT): Likewise.
75501         * tests/test-lseek.c (ASSERT): Likewise.
75502         * tests/test-mbscasecmp.c (ASSERT): Likewise.
75503         * tests/test-mbscasestr1.c (ASSERT): Likewise.
75504         * tests/test-mbscasestr2.c (ASSERT): Likewise.
75505         * tests/test-mbscasestr3.c (ASSERT): Likewise.
75506         * tests/test-mbscasestr4.c (ASSERT): Likewise.
75507         * tests/test-mbschr.c (ASSERT): Likewise.
75508         * tests/test-mbscspn.c (ASSERT): Likewise.
75509         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
75510         * tests/test-mbspbrk.c (ASSERT): Likewise.
75511         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
75512         * tests/test-mbsrchr.c (ASSERT): Likewise.
75513         * tests/test-mbsspn.c (ASSERT): Likewise.
75514         * tests/test-mbsstr1.c (ASSERT): Likewise.
75515         * tests/test-mbsstr2.c (ASSERT): Likewise.
75516         * tests/test-mbsstr3.c (ASSERT): Likewise.
75517         * tests/test-memchr2.c (ASSERT): Likewise.
75518         * tests/test-memmem.c (ASSERT): Likewise.
75519         * tests/test-open.c (ASSERT): Likewise.
75520         * tests/test-printf-frexp.c (ASSERT): Likewise.
75521         * tests/test-printf-frexpl.c (ASSERT): Likewise.
75522         * tests/test-printf-posix.c (ASSERT): Likewise.
75523         * tests/test-quotearg.c (ASSERT): Likewise.
75524         * tests/test-rbtree_list.c (ASSERT): Likewise.
75525         * tests/test-rbtree_oset.c (ASSERT): Likewise.
75526         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
75527         * tests/test-round1.c (ASSERT): Likewise.
75528         * tests/test-roundf1.c (ASSERT): Likewise.
75529         * tests/test-roundl.c (ASSERT): Likewise.
75530         * tests/test-signbit.c (ASSERT): Likewise.
75531         * tests/test-sleep.c (ASSERT): Likewise.
75532         * tests/test-snprintf-posix.c (ASSERT): Likewise.
75533         * tests/test-snprintf.c (ASSERT): Likewise.
75534         * tests/test-sprintf-posix.c (ASSERT): Likewise.
75535         * tests/test-stat-time.c (ASSERT): Likewise.
75536         * tests/test-strcasestr.c (ASSERT): Likewise.
75537         * tests/test-strerror.c (ASSERT): Likewise.
75538         * tests/test-striconv.c (ASSERT): Likewise.
75539         * tests/test-striconveh.c (ASSERT): Likewise.
75540         * tests/test-striconveha.c (ASSERT): Likewise.
75541         * tests/test-strsignal.c (ASSERT): Likewise.
75542         * tests/test-strstr.c (ASSERT): Likewise.
75543         * tests/test-strtod.c (ASSERT): Likewise.
75544         * tests/test-trunc1.c (ASSERT): Likewise.
75545         * tests/test-trunc2.c (ASSERT): Likewise.
75546         * tests/test-truncf1.c (ASSERT): Likewise.
75547         * tests/test-truncf2.c (ASSERT): Likewise.
75548         * tests/test-truncl.c (ASSERT): Likewise.
75549         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
75550         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
75551         * tests/test-vasnprintf.c (ASSERT): Likewise.
75552         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
75553         * tests/test-vasprintf.c (ASSERT): Likewise.
75554         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
75555         * tests/test-vprintf-posix.c (ASSERT): Likewise.
75556         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
75557         * tests/test-vsnprintf.c (ASSERT): Likewise.
75558         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
75559         * tests/test-wcwidth.c (ASSERT): Likewise.
75560         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
75561         * tests/test-xprintf-posix.c (ASSERT): Likewise.
75562         * tests/test-xvasprintf.c (ASSERT): Likewise.
75563         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
75564         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
75565         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
75566         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
75567         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
75568         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
75569         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
75570         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
75571         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
75572         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
75573         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
75574         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
75575         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
75576         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
75577         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
75578         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
75579         * tests/unictype/test-block_list.c (ASSERT): Likewise.
75580         * tests/unictype/test-block_of.c (ASSERT): Likewise.
75581         * tests/unictype/test-block_test.c (ASSERT): Likewise.
75582         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
75583         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
75584         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
75585         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
75586         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
75587         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
75588         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
75589         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
75590         * tests/unictype/test-combining.c (ASSERT): Likewise.
75591         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
75592         * tests/unictype/test-digit.c (ASSERT): Likewise.
75593         * tests/unictype/test-mirror.c (ASSERT): Likewise.
75594         * tests/unictype/test-numeric.c (ASSERT): Likewise.
75595         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
75596         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
75597         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
75598         * tests/unictype/test-scripts.c (ASSERT): Likewise.
75599         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
75600         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
75601         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
75602         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
75603         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
75604         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
75605         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
75606         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
75607         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
75608         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
75609         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
75610         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
75611         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
75612         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
75613         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
75614         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
75615         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
75616         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
75617         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
75618         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
75619         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
75620         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
75621         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
75622         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
75623         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
75624         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
75625         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
75626         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
75627         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
75628         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
75629         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
75630         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
75631         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
75632         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
75633         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
75634         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
75635         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
75636         Reported by Eric Blake.
75638 2008-04-11  Bruno Haible  <bruno@clisp.org>
75640         * lib/wchar.in.h: Tweak comment.
75642 2008-04-11  Bruno Haible  <bruno@clisp.org>
75644         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
75645         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
75646         gl_COMMON.
75647         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
75649 2008-04-11  Bruno Haible  <bruno@clisp.org>
75651         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
75653 2008-04-11  Simon Josefsson  <simon@josefsson.org>
75655         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
75656         of attempting to use non-existing /dev/*random.  Based on patch
75657         from Adam Strzelecki <ono@java.pl> in
75658         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
75660 2008-04-08  Bruno Haible  <bruno@clisp.org>
75662         Add tentative support for emx+gcc.
75663         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
75664         * lib/fpurge.c (fpurge): Likewise.
75665         * lib/freadable.c (freadable): Likewise.
75666         * lib/freadahead.c (freadahead): Likewise.
75667         * lib/freading.c (freading): Likewise.
75668         * lib/freadptr.c (freadptr): Likewise.
75669         * lib/freadseek.c (freadptrinc): Likewise.
75670         * lib/fseeko.c (rpl_fseeko): Likewise.
75671         * lib/fseterr.c (fseterr): Likewise.
75672         * lib/fwritable.c (fwritable): Likewise.
75673         * lib/fwriting.c (fwriting): Likewise.
75674         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
75676 2008-04-09  Eric Blake  <ebb9@byu.net>
75678         Avoid some autoconf warnings.
75679         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
75680         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
75681         * m4/afs.m4 (gl_AFS): Likewise.
75682         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
75683         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
75684         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75685         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
75686         (gl_INTEGER_TYPE_SUFFIX): Likewise.
75687         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
75688         (AC_CHECK_DECLS_ONCE): Likewise.
75689         Rename file...
75690         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
75691         gnulib-tool requires autoconf 2.59 or better.
75692         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
75694 2008-04-08  Eric Blake  <ebb9@byu.net>
75696         Use 'git describe --match' if present (added in git 1.5.5).
75697         * build-aux/git-version-gen: Limit result to tags that match 'v*'
75698         if possible.
75700 2008-04-08  Bruno Haible  <bruno@clisp.org>
75702         Add tentative support for OpenServer.
75703         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
75704         _ptr, _cnt.
75705         * lib/fpurge.c (fpurge): Likewise.
75706         * lib/freadable.c (freadable): Likewise.
75707         * lib/freadahead.c (freadahead): Likewise.
75708         * lib/freading.c (freading): Likewise.
75709         * lib/freadptr.c (freadptr): Likewise.
75710         * lib/freadseek.c (freadptrinc): Likewise.
75711         * lib/fseeko.c (rpl_fseeko): Likewise.
75712         * lib/fseterr.c (fseterr): Likewise.
75713         * lib/fwritable.c (fwritable): Likewise.
75714         * lib/fwriting.c (fwriting): Likewise.
75715         Reported by Roger Cornelius <rac@tenzing.org> and
75716         Brian K. White <brian@aljex.com>.
75718 2008-04-06  Jim Meyering  <meyering@redhat.com>
75720         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
75722 2008-04-06  Bruno Haible  <bruno@clisp.org>
75724         Avoid possible error with non-ASCII bytes in UTF-8 locales.
75725         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
75726         * tests/test-printf-posix.sh: Likewise.
75727         * tests/test-vfprintf-posix.sh: Likewise.
75728         * tests/test-vprintf-posix.sh: Likewise.
75729         * tests/test-xprintf-posix.sh: Likewise.
75731 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75733         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
75734         hide error from 'ls', needed on OS/2.
75735         Report by Elbert Pol <elbert.pol@gmail.com>.
75737 2008-04-04  Eric Blake  <ebb9@byu.net>
75739         Make test-fseeko.c failures meaningful.
75740         * tests/test-fseeko.c: Print line number on failure.
75741         * tests/test-fseek.c: Likewise.
75742         Reported by Nelson H. F. Beebe.
75744         Improve strtod bug detection check.
75745         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
75746         required for Solaris 10.
75747         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
75749 2008-04-04  Bruno Haible  <bruno@clisp.org>
75751         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
75752         by m4/setenv.m4.
75754 2008-04-03  Eric Blake  <ebb9@byu.net>
75756         Ensure sane .version contents.
75757         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
75758         version string.
75759         * build-aux/git-version-gen: Improve documentation.
75761         Make GNU make output nicer.
75762         * top/GNUmakefile [!_have-Makefile]: Add dependency on
75763         MAKECMDGOALS to enforce message for all command line targets.  Set
75764         srcdir for use in maint.mk.
75766         Another maintainer tweak.
75767         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
75768         a target that regenerates version.
75770 2008-04-03  Jim Meyering  <meyering@redhat.com>
75772         vc-list-files: don't cause coreutils "make po-check" failure
75773         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
75775 2008-04-03  Eric Blake  <ebb9@byu.net>
75777         Allow VPATH usage of vc-list-files.
75778         * build-aux/vc-list-files (scriptversion): Add timestamp.
75779         (options): Add --help, --version, -C.
75780         (CVS): Support installed cvsu.
75782 2008-04-02  Bruno Haible  <bruno@clisp.org>
75784         Avoid some "statement with no effect" warnings from gcc.
75785         * tests/test-wctype.c (main): Explicitly ignore unused values.
75786         Reported by Jim Meyering.
75788 2008-04-02  Jim Meyering  <meyering@redhat.com>
75790         Avoid some warnings from "gcc -Wshadow".
75791         * tests/test-frexp.c (exp): Define to a different identifier.
75792         * tests/test-frexpl.c (exp): Likewise.
75794 2008-04-03  Jim Meyering  <meyering@redhat.com>
75796         bootstrap: remove dangling *.[ch] symlinks from lib
75797         * build-aux/bootstrap [dangling symlink removal]: Move find's
75798         -depth option to precede all others, to avoid a warning.
75799         Remove *.[ch] files too, and from "$source_base" (usually lib/).
75801 2008-04-02  Bruno Haible  <bruno@clisp.org>
75803         Avoid some warnings from "gcc -Wshadow".
75804         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
75805         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
75806         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
75807         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
75808         Reported by Jim Meyering.
75810 2008-04-01  Bruno Haible  <bruno@clisp.org>
75812         Fix test to work on IRIX 6.5 with cc.
75813         * tests/test-math.c (numeric_equal): New function.
75814         (main): Use it.
75816 2008-04-01  Bruno Haible  <bruno@clisp.org>
75818         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
75820 2008-04-01  Bruno Haible  <bruno@clisp.org>
75822         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
75823         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75824         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
75825         (Depends-on): Remove math.
75827         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
75828         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75829         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
75830         (Depends-on): Remove math.
75832         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
75833         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75834         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
75835         (Depends-on): Remove math.
75836         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
75837         (Depends-on): Remove math.
75839         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
75840         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75841         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
75842         (Depends-on): Remove math.
75843         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
75844         (Depends-on): Remove math.
75846         * tests/test-round1.c: Include nan.h.
75847         (main): Use NaNd instead of NAN.
75848         * modules/round-tests (Files): Add tests/nan.h.
75850         * tests/test-trunc1.c: Include nan.h.
75851         (main): Use NaNd instead of NAN.
75852         * modules/trunc-tests (Files): Add tests/nan.h.
75854         * tests/test-roundf1.c: Include nan.h.
75855         (main): Use NaNf instead of NAN.
75856         * modules/roundf-tests (Files): Add tests/nan.h.
75858         * tests/test-truncf1.c: Include nan.h.
75859         (main): Use NaNf instead of NAN.
75860         * modules/truncf-tests (Files): Add tests/nan.h.
75862         * tests/test-ceilf1.c: Include nan.h.
75863         (main): Use NaNf instead of NAN.
75864         * modules/ceilf-tests (Files): Add tests/nan.h.
75866         * tests/test-floorf1.c: Include nan.h.
75867         (main): Use NaNf instead of NAN.
75868         * modules/floorf-tests (Files): Add tests/nan.h.
75870         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
75871         (main): Use NaNf instead of NAN.
75872         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
75874         * tests/test-isnand.c: Include nan.h instead of <math.h>.
75875         (main): Use NaNd instead of NAN.
75876         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
75878         * tests/test-frexp.c: Include nan.h.
75879         (main): Use NaNd instead of NAN.
75880         * modules/frexp-tests (Files): Add tests/nan.h.
75882         * lib/isnan.c: Don't include <math.h>.
75883         (FUNC): Don't use NAN macro.
75884         * modules/isnand-nolibm (Depends-on): Remove math.
75885         * modules/isnanf-nolibm (Depends-on): Remove math.
75886         * modules/isnanl (Depends-on): Remove math.
75887         * modules/isnanl-nolibm (Depends-on): Remove math.
75889         * tests/nan.h: New file.
75891 2008-04-01  Eric Blake  <ebb9@byu.net>
75893         Fix typos.
75894         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
75895         values to be the right type.
75897         For now, cater to gnulib strtod inaccuracies.
75898         * tests/test-strtod.c (main): Allow 1-ulp error on expected
75899         fractional results.  While not as nice from a QoI perspective, it
75900         is a quicker patch than correctly implementing decimal to binary
75901         rounding.
75903 2008-03-31  Eric Blake  <ebb9@byu.net>
75905         Guarantee a definition of NAN.
75906         * lib/math.in.h (NAN): Define if missing.
75907         * tests/test-math.c (main): Test it.
75908         * doc/posix-headers/math.texi (math.h): Document this.
75909         * lib/isnan.c (rpl_isnand): Use it.
75910         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
75911         * tests/test-floorf1.c (NaN): Likewise.
75912         * tests/test-frexp.c (NaN): Likewise.
75913         * tests/test-isnand.c (NaN): Likewise.
75914         * tests/test-isnanf.c (NaN): Likewise.
75915         * tests/test-round1.c (NaN): Likewise.
75916         * tests/test-roundf1.c (NaN): Likewise.
75917         * tests/test-snprintf-posix.h (NaN): Likewise.
75918         * tests/test-sprintf-posix.h (NaN): Likewise.
75919         * tests/test-trunc1.c (NaN): Likewise.
75920         * tests/test-truncf1.c (NaN): Likewise.
75921         * tests/test-vasnprintf-posix.c (NaN): Likewise.
75922         * tests/test-vasprintf-posix.c (NaN): Likewise.
75923         * modules/isnand-nolibm (Depends-on): Add math.
75924         * modules/isnanf-nolibm (Depends-on): Likewise.
75925         * modules/isnanl (Depends-on): Likewise.
75926         * modules/isnanl-nolibm (Depends-on): Likewise.
75927         * modules/snprintf-posix-tests (Depends-on): Likewise.
75928         * modules/sprintf-posix-tests (Depends-on): Likewise.
75929         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
75930         * modules/vsprintf-posix-tests (Depends-on): Likewise.
75931         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
75932         * modules/vasprintf-posix-tests (Depends-on): Likewise.
75934 2008-03-31  Bruno Haible  <bruno@clisp.org>
75936         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
75937         * doc/posix-functions/strtod.texi: Likewise.
75939 2008-03-31  Bruno Haible  <bruno@clisp.org>
75941         * tests/test-strtod.c (main): Don't use C99 syntax.
75943 2008-03-31  Bruno Haible  <bruno@clisp.org>
75945         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
75946         Reported by Eric Blake.
75948 2008-03-31  Jim Meyering  <meyering@redhat.com>
75950         Don't compare actual signbit return values.
75951         * tests/test-strtod.c (main): Rather, compare only their
75952         zero/non-zero nature.
75954 2008-03-31  Eric Blake  <ebb9@byu.net>
75956         More strtod documentation.
75957         * doc/posix-functions/strtod.texi (strtod): Interpret more test
75958         failures as distinct bugs.
75960 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
75962         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
75963         Problem reported by Erik Benada in
75964         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
75966 2008-03-30  Bruno Haible  <bruno@clisp.org>
75968         * tests/test-strtod.c: Add comments about which assertion fails on which
75969         platform.
75970         * doc/posix-functions/strtod.texi: Add info about many more platforms.
75972 2008-03-30  Eric Blake  <ebb9@byu.net>
75974         Test signbit behavior on zeros.
75975         * tests/test-signbit.c (test_signbitf): Add tests for zero.
75976         (test_signbitd, test_signbitl): Likewise.
75978         More strtod touchups.
75979         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
75980         sign of negative underflow, for now.  Use .5, not .1.
75981         * doc/posix-functions/strtod.texi (strtod): Mention these
75982         limitations.
75983         Reported by Jim Meyering.
75985 2008-03-30  Bruno Haible  <bruno@clisp.org>
75987         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
75988         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
75990 2008-03-30  Bruno Haible  <bruno@clisp.org>
75992         Avoid failure when attempting to return empty iconv results on some
75993         platforms.
75994         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
75995         allocation, don't report ENOMEM when the resulting string is empty.
75997 2008-03-30  Bruno Haible  <bruno@clisp.org>
75999         Fix buffer overrun.
76000         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
76001         Don't consider the width for tmp_length. Check count against tmp_length
76002         before doing the padding. Ensure enough allocation during padding.
76004 2008-03-30  Eric Blake  <ebb9@byu.net>
76006         strtod touchups.
76007         * lib/strtod.c (strtod): Avoid compiler warnings.
76008         Reported by Jim Meyering.
76010 2008-03-30  Bruno Haible  <bruno@clisp.org>
76012         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
76013         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
76014         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
76015         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
76016         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
76017         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
76018         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
76019         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
76021         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
76022         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
76023         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
76024         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
76025         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
76026         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
76027         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
76028         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
76030         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
76031         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
76032         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
76033         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
76034         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
76035         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
76036         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
76037         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
76039         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
76040         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
76042         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
76043         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
76045         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
76046         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
76048         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
76049         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
76050         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
76052         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
76053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
76054         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
76056         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
76057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
76058         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
76060         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
76061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
76062         * modules/vasprintf (Depends-on): Add EOVERFLOW.
76064         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
76065         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
76066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
76067         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
76068         (Depends-on): Add EOVERFLOW.
76069         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
76070         (Depends-on): Add EOVERFLOW.
76071         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76072         (Depends-on): Add EOVERFLOW.
76073         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76074         (Depends-on): Add EOVERFLOW.
76075         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76076         (Depends-on): Add EOVERFLOW.
76077         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76078         (Depends-on): Add EOVERFLOW.
76079         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76080         (Depends-on): Add EOVERFLOW.
76081         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76082         (Depends-on): Add EOVERFLOW.
76084         * lib/sprintf.c (EOVERFLOW): Remove fallback.
76085         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
76086         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
76088         * lib/snprintf.c (EOVERFLOW): Remove fallback.
76089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
76090         * modules/snprintf (Depends-on): Add EOVERFLOW.
76092         * lib/poll.c (EOVERFLOW): Remove fallback.
76093         * modules/poll (Depends-on): Add EOVERFLOW.
76095         * lib/getugroups.c (EOVERFLOW): Remove fallback.
76096         * modules/getugroups (Depends-on): Add EOVERFLOW.
76098         * lib/getdelim.c (EOVERFLOW): Remove fallback.
76099         * modules/getdelim (Depends-on): Add EOVERFLOW.
76101         * lib/ftell.c (EOVERFLOW): Remove fallback.
76102         * modules/ftell (Depends-on): Add EOVERFLOW.
76104         * lib/fprintf.c (EOVERFLOW): Remove fallback.
76105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
76106         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
76108         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
76110         * modules/EOVERFLOW-tests: New file.
76111         * tests/test-EOVERFLOW.c: New file.
76113         * modules/EOVERFLOW: New file.
76114         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
76116 2008-03-30  Bruno Haible  <bruno@clisp.org>
76118         Fix bug introduced on 2007-06-10.
76119         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
76120         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
76122 2008-03-30  Bruno Haible  <bruno@clisp.org>
76124         Improve freadseek's efficiency after ungetc.
76125         * lib/freadseek.c: Include freadahead.h.
76126         (freadptrinc): New function, extracted from freadseek.
76127         (freadseek): Use it in a loop. Use freadahead to determine the number
76128         of loop iterations.
76129         * modules/freadseek (Depends-on): Add freadahead.
76130         (configure.ac): Require AC_C_INLINE.
76132 2008-03-30  Bruno Haible  <bruno@clisp.org>
76134         * lib/freadseek.c (freadseek): Don't ignore the return value of
76135         freadptr.
76137 2008-03-29  Eric Blake  <ebb9@byu.net>
76139         Add hex float support.
76140         * modules/strtod (Depends-on): Add c-ctype.
76141         (Link): Mention POW_LIB.
76142         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
76143         whitespace between 'e' and exponent.
76144         * tests/test-strtod.c (main): Enable hex float tests.
76145         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
76146         now provides.
76148         Document various strtod bugs, with some fixes.
76149         * doc/posix-functions/strtod.texi (strtod): Document bugs with
76150         "-0x", "inf", "nan", and hex constants.
76151         * doc/posix-functions/atof.texi (atof): Likewise.
76152         * modules/stdlib (Makefile.am): Support strtod.
76153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76154         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
76155         detect additional strtod bugs.
76156         * lib/stdlib.in.h (rpl_strtod): Add declarations.
76157         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
76158         bool where appropriate.  Parse 'inf' and 'nan'.
76159         * tests/test-strtod.c: New file.
76160         * modules/strtod (Depends-on): Add stdbool, stdlib.
76161         (configure.ac): Turn on module indicator.
76162         * modules/strtod-tests: New module.
76164 2008-03-29  Eric Blake  <ebb9@byu.net>
76166         Fix ftell on mingw.
76167         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
76168         * modules/ftell-tests (Depends-on): Add binary-io.
76169         * modules/ftello-tests (Depends-on): Likewise.
76170         * tests/test-ftell.c (main): Enhance test to cover behavior after
76171         ungetc.  Enforce binary mode.
76172         * tests/test-ftello.c (main): Likewise.
76174         Pass test-freadseek on cygwin.
76175         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
76176         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
76177         ungetc buffer.
76179         * tests/test-fflush2.c (main): Fix typo.
76181 2008-03-29  Bruno Haible  <bruno@clisp.org>
76183         * tests/test-fflush2.c (main): Temporarily disable the contents of
76184         this test.
76185         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
76186         Reported by Eric Blake.
76188 2008-03-28  Simon Josefsson  <simon@josefsson.org>
76190         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
76191         (GC_SHA224_DIGEST_SIZE): Add.
76193         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
76194         (gc_hash_digest_length): Likewise.
76195         (gc_hash_buffer): Likewise.
76197 2008-03-25  Bruno Haible  <bruno@clisp.org>
76199         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
76200         detail which gettext release to use.
76201         Reported by Simon Josefsson.
76203 2008-03-26  Jim Meyering  <meyering@redhat.com>
76205         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
76206         * modules/gnumakefile (clean-GNUmakefile): Also, use
76207         test ... && ... || : syntax rather than if-then ... fi.
76209         gnumakefile: Don't double-quote-expand $(VPATH) value.
76210         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
76212 2008-03-24  Eric Blake  <ebb9@byu.net>
76214         Alter GNUmakefile to install into top directory.
76215         * modules/maintainer-makefile: Split, and add dependency...
76216         * modules/gnumakefile: to this new module.
76217         * build-aux/GNUmakefile: Move...
76218         * top/GNUmakefile: ...here.
76219         * build-aux/maint.mk: Move...
76220         * top/maint.mk: ...here.
76221         * MODULES.html.sh (Support for maintaining...): Document new
76222         module.
76224 2008-03-23  Bruno Haible  <bruno@clisp.org>
76226         * gnulib-tool: New options --vc-files, --no-vc-files.
76227         (func_usage): Document them.
76228         (vc_files): New variable.
76229         (func_import): Consider vc_files.
76230         (func_create_testdir): Set vc_files to empty.
76231         Suggested by Jim Meyering and Karl Berry.
76233 2008-03-23  Bruno Haible  <bruno@clisp.org>
76235         Fix regex compilation error on HP-UX 11.
76236         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
76237         * modules/regex (Files): Add m4/mbstate_t.m4.
76238         Reported by Ton Voon <ton.voon@altinity.com>.
76240 2008-03-23  Bruno Haible  <bruno@clisp.org>
76242         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
76244 2008-03-23  Eric Blake  <ebb9@byu.net>
76245             Bruno Haible  <bruno@clisp.org>
76247         Install files from top/ in the destination directory.
76248         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
76249         augmentation also for the files from top/.
76250         (func_import, func_create_testdir): Rewrite file names:
76251         top/filename -> filename.
76253 2008-03-23  Bruno Haible  <bruno@clisp.org>
76255         Tweak "gnulib --version" output.
76256         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
76258 2008-03-23  Bruno Haible  <bruno@clisp.org>
76260         Tweak "gnulib --version" output.
76261         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
76262         rather than contents of ChangeLog, when possible.
76264 2008-03-21  Eric Blake  <ebb9@byu.net>
76266         More --version tweaks.
76267         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
76268         date of last ChangeLog entry.
76270 2008-03-21  Jim Meyering  <meyering@redhat.com>
76272         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
76274 2008-03-20  Eric Blake  <ebb9@byu.net>
76276         VPATH fix.
76277         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
76279 2008-03-20  Simon Josefsson  <simon@josefsson.org>
76281         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
76282         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
76284 2008-03-20  Eric Blake  <ebb9@byu.net>
76286         Sync GNUmakefile with coreutils.
76287         * build-aux/GNUmakefile (have-Makefile): Rename...
76288         (_have-Makefile): ...to this, for namespace consideration.
76289         (GNUmakefile.cfg): Include, if present.
76290         (_autoreconf): Define a default.
76291         (_is-dist-target): New rule for rebuilds to pick up intra-release
76292         version.
76293         (maint-cfg.mk): Rename...
76294         (cfg.mk): ...to this.
76296 2008-03-18  Jim Meyering  <meyering@redhat.com>
76298         New script and module: mktempd
76299         * MODULES.html.sh (maint+release support): Add mktempd.
76300         * build-aux/mktempd: New file.
76301         * modules/mktempd: New file.
76303 2008-03-15  Jim Meyering  <meyering@redhat.com>
76305         Undo last change.
76306         * lib/sha1.c, lib/md5.c: 63 != ~63.
76307         Reported by Andreas Schwab.
76309         sha1.c, md5.c: Hoist a redundant expression.
76310         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
76311         "ctx->buflen" only once, before calling *_process_block.
76312         * lib/md5.c (md5_process_bytes): Likewise.
76314 2008-03-14  Eric Blake  <ebb9@byu.net>
76316         Bump copyright year in files generated by gnulib-tool.
76317         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
76318         gnulib-tool, rather than hard-coding it.
76320         Fix 'gnulib-tool --version' output to work with git.
76321         * gnulib-tool (func_gnulib_dir): New function, extracted from...
76322         (startup): ...here.
76323         (func_version): Use it to invoke git-version-gen, rather than
76324         relying on CVS keyword expansion.  Modernize wording.
76325         (cvsdatestamp, last_checkin_date, version): Kill unused
76326         variables.
76328 2008-03-12  Jim Meyering  <meyering@redhat.com>
76330         Recognize optional cast of the argument to free.
76331         * build-aux/useless-if-before-free: Update regexps.
76333         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
76335 2008-03-11  Bruno Haible  <bruno@clisp.org>
76337         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
76338         by a single package.
76339         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
76340         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
76341         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
76342         Reported by Sam Steingold <sds@gnu.org>.
76344 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76346         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
76347         repositories.
76349 2008-03-11  Bruno Haible  <bruno@clisp.org>
76351         Avoid conflicts between local macro definitions.
76352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76353         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
76355 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
76356             Bruno Haible  <bruno@clisp.org>
76358         Make va_copy work with some version of xlc on AIX 5.1.
76359         * lib/stdarg.in.h: New file.
76360         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
76361         On AIX, use a <stdarg.h> file substitute.
76362         * modules/stdarg (Files): Add lib/stdarg.in.h.
76363         (Depends-on): Add include_next.
76364         (Makefile.am): Build a stdarg.h substitute if requested.
76365         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
76367 2008-03-10  Bruno Haible  <bruno@clisp.org>
76369         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
76370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76371         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76373 2008-03-10  Bruno Haible  <bruno@clisp.org>
76375         * modules/stdlib (Depends-on): Add include_next, remove
76376         absolute-header.
76378 2008-03-09  Bruno Haible  <bruno@clisp.org>
76380         * lib/freadahead.h (freadahead): Document more precisely.
76381         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
76382         the sum of both buffer sizes.
76383         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
76384         * NEWS: Document the change.
76386 2008-03-09  Bruno Haible  <bruno@clisp.org>
76388         Extend freadptr to return also the buffer size.
76389         * lib/freadptr.h (freadptr): Add sizep argument.
76390         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
76391         (freadptr): Add sizep argument. Determine buffer size like freadahead
76392         does.
76393         * tests/test-freadptr.c: Don't include freadahead.h.
76394         (main): Adapt for new calling convention of freadptr.
76395         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
76396         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
76397         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
76398         tests/test-freadptr2.sh.
76399         (Depends): Remove freadahead.
76400         (TESTS): Add test-freadptr2.sh.
76401         (check_PROGRAMS): Add test-freadptr2.
76403 2008-03-09  Bruno Haible  <bruno@clisp.org>
76405         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
76406         Report and solution by Simon Josefsson.
76408 2008-03-06  Bruno Haible  <bruno@clisp.org>
76410         Make fflush after ungetc work on BSD platforms.
76411         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
76412         * tests/test-fflush2.c: New file.
76413         * tests/test-fflush2.sh: New file.
76414         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
76415         tests/test-fflush2.c.
76416         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
76417         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
76419 2008-03-06  Eric Blake  <ebb9@byu.net>
76421         Likewise for ftello.
76422         * modules/ftello (Dependencies): Add extensions.
76423         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
76425 2008-03-06  Bruno Haible  <bruno@clisp.org>
76427         * modules/fseeko (Dependencies): Add extensions.
76428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
76429         Needed on glibc systems.
76431 2008-03-06  Bruno Haible  <bruno@clisp.org>
76433         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
76434         email address.
76435         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76437 2008-03-06  Bruno Haible  <bruno@clisp.org>
76439         * users.txt: Add libgnupdf.
76441 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
76443         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
76444         (Header File Substitutes, Function Substitutes,
76445         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
76446         (Build robot for gnulib): Fix typo.
76448 2008-03-06  Bruno Haible  <bruno@clisp.org>
76450         * doc/gnulib-tool.texi (VCS Issues): Small updates.
76451         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76453 2008-03-06  Bruno Haible  <bruno@clisp.org>
76455         * doc/func.texi: New file, extracted from doc/gnulib.texi.
76456         * doc/gnulib.texi: Include it.
76458 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76460         * modules/func (License): Change license to unlimited; there was
76461         no LGPL parts in the module anyway.
76463 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76465         * modules/__func__: Renamed to modules/func.
76466         * modules/__func__-tests: Renamed to modules/func-tests.
76467         * tests/test-__func__.c: Renamed to tests/test-func.c.
76468         * m4/__func__.m4: Renamed to m4/func.m4.
76469         * doc/gnulib.texi (__func__): Section renamed to func.
76470         Suggested by Eric Blake <ebb9@byu.net>.
76472 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76474         * doc/gnulib.texi (__func__): Use C99 terminology when talking
76475         about __func__.  Make example self-contained.  Suggested by Eric
76476         Blake <ebb9@byu.net>.
76478         * tests/test-__func__.c (main): Avoid extraneous () around __func.
76479         Suggested by Eric Blake <ebb9@byu.net>.
76481 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76483         * modules/__func__: New file.
76484         * modules/__func__-tests: New file.
76485         * tests/test-__func__.c: New file.
76486         * m4/__func__.m4: New file.
76487         * doc/gnulib.texi (__func__): Document __func__ module.
76489 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76491         * modules/byteswap (License): Re-license as LGPLv2+.
76493 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76495         * doc/Makefile: Add pdf target.
76497 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76499         * modules/inline (License): Use 'unlimited', since there are only
76500         *.m4 files in this module.
76502 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
76503             Bruno Haible  <bruno@clisp.org>
76505         Add support for HP C 7.1 on OpenVMS 8.3.
76506         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
76508 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
76510         Update VMS specifics.
76511         * lib/getopt.c [VMS]: Remove include of unixlib.h.
76513 2008-03-02  Jim Meyering  <meyering@redhat.com>
76515         Remove the last dependency on the "free" module.
76516         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
76517         Reported by Bob Proulx.
76519         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
76521         Remove useless "if" tests before free.  Deprecate "free" module.
76522         * doc/posix-functions/free.texi: Mention that this
76523         module is no longer useful.
76524         * modules/free (Notice): Say this module is obsolete.
76525         * modules/readutmp (Depends-on): Remove free.
76526         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
76527         * lib/putenv.c (putenv): Likewise.
76528         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
76529         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
76530         * tests/test-c-strcasestr.c (main): Likewise.
76531         * tests/test-c-strstr.c (main): Likewise.
76532         * tests/test-mbscasestr1.c (main): Likewise.
76533         * tests/test-mbscasestr2.c (main): Likewise.
76534         * tests/test-mbsstr1.c (main): Likewise.
76535         * tests/test-mbsstr2.c (main): Likewise.
76536         * tests/test-memmem.c (main): Likewise.
76537         * tests/test-strcasestr.c (main): Likewise.
76538         * tests/test-striconv.c (main): Likewise.
76539         * tests/test-striconveh.c (main): Likewise.
76540         * tests/test-striconveha.c (main): Likewise.
76541         * tests/test-strstr.c (main): Likewise.
76543         * build-aux/git-version-gen: Adjust a comment and the Usage string.
76545         bootstrap: sync from coreutils again
76546         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
76548 2008-03-01  Jim Meyering  <meyering@redhat.com>
76550         bootstrap: sync from coreutils
76551         * build-aux/bootstrap (update_po_files): Copy a .po file into place
76552         also when the target doesn't exist.
76554 2008-03-01  Eric Blake  <ebb9@byu.net>
76556         Fix bugs in last patch.
76557         * lib/memchr2.c (memchr2): Fix typo.
76558         * tests/test-memchr2.c: Test previous bug, and don't use GNU
76559         extension.
76560         Reported by Bruce Korb.
76562         New module 'memchr2'.
76563         * modules/memchr2: New file.
76564         * modules/memchr2-tests: Likewise.
76565         * lib/memchr2.h: Likewise.
76566         * lib/memchr2.c: Likewise, based on memchr.c.
76567         * tests/test-memchr2.c: New test.
76568         * MODULES.html.sh (String handling): Add memchr2.
76570 2008-02-29  Bruno Haible  <bruno@clisp.org>
76572         * modules/freadseek-tests: New file.
76573         * tests/test-freadseek.sh: New file.
76574         * tests/test-freadseek.c: New file.
76576         New module 'freadseek'.
76577         * modules/freadseek: New file.
76578         * lib/freadseek.h: New file.
76579         * lib/freadseek.c: New file.
76580         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
76582 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
76584         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
76585         wydawca.
76587         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
76588         program_invocation_name and program_invocation_short_name are
76589         present.
76591 2008-02-28  Bruno Haible  <bruno@clisp.org>
76593         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
76594         * tests/test-freadptr.sh: Also test non-seekable stdin.
76596 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
76598         * build-aux/bootstrap (source_base, m4_base)
76599         (doc_base, tests_base): New variables.
76600         (gnulib_tool_options): Do not hardcode base directories, use
76601         the above variables instead.
76603 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
76605         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
76607 2008-02-28  Bruno Haible  <bruno@clisp.org>
76609         * modules/freadptr-tests: New file.
76610         * tests/test-freadptr.sh: New file.
76611         * tests/test-freadptr.c: New file.
76613         New module 'freadptr'.
76614         * modules/freadptr: New file.
76615         * lib/freadptr.h: New file.
76616         * lib/freadptr.c: New file.
76617         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
76619 2008-02-26  Karl Berry  <karl@freefriends.org>
76621         Sync from Libtool:
76622         * libltdl/argz.c (argz_add, argz_count): New functions.
76623         * libltdl/argz.in.h: Declare them.
76624         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
76626 2008-02-22  Bruno Haible  <bruno@clisp.org>
76628         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
76629         is a pointer type.  Needed for HP-UX 10.
76630         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
76631         * doc/posix-functions/gmtime_r.texi: Likewise.
76632         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76634 2008-02-24  Bruno Haible  <bruno@clisp.org>
76636         * modules/environ-tests: New file.
76637         * tests/test-environ.c: New file.
76639         New module 'environ'.
76640         * modules/environ: New file.
76641         * lib/unistd.in.h (environ): New declaration.
76642         * m4/environ.m4: New file.
76643         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
76644         after use.
76645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
76646         HAVE_DECL_ENVIRON.
76647         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
76648         HAVE_DECL_ENVIRON.
76649         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
76650         wrong claim that 'environ' is missing on some systems.
76651         * modules/execute (Depends-on): Add environ.
76652         * lib/execute.c (environ): Remove fallback declaration.
76653         * modules/pipe (Depends-on): Add environ.
76654         * lib/pipe.c (environ): Remove fallback declaration.
76655         * modules/setenv (Depends-on): Add environ.
76656         * lib/setenv.c (environ): Remove fallback declaration.
76657         * modules/unsetenv (Depends-on): Add environ.
76658         * lib/unsetenv.c (environ): Remove fallback declaration.
76659         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
76660         m4/environ.m4.
76661         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
76662         (gl_PREREQ_UNSETENV): Likewise.
76664 2008-02-24  Bruno Haible  <bruno@clisp.org>
76666         * doc/posix-functions/environ.texi: Document the MacOS X problem.
76668 2008-02-20  Bob Proulx  <bob@proulx.com>
76670         Enable use of older two part flavor 'git describe'.
76671         * build-aux/git-version-gen: If using the older two part flavor of
76672         git version then recreate the third part now present in the
76673         newer three part flavor of git describe.
76675 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
76677         * lib/fts.c (fts_build): Typo correction to comment.
76679 2008-02-17  Bruno Haible  <bruno@clisp.org>
76681         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
76682         generating no-op conflicts.
76684 2008-02-17  Bruno Haible  <bruno@clisp.org>
76686         Speed up by 10%.
76687         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
76688         result_entries, rather than an index-based loop.
76690 2008-02-17  Bruno Haible  <bruno@clisp.org>
76692         Speed up by 25%.
76693         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
76694         'hashcode_cached'.
76695         (entry_create): New function.
76696         (entry_hashcode): Use the cached hashcode if possible.
76697         (read_changelog_file, try_split_merged_entry): Use entry_create.
76699 2008-02-17  Bruno Haible  <bruno@clisp.org>
76701         Speed up from O(n^2) to O(n) for long ChangeLog files.
76702         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
76703         (read_changelog_file): Change implementation of entries_reversed list
76704         to rbtreehash.
76705         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
76707 2008-02-17  Bruno Haible  <bruno@clisp.org>
76709         New option --split-merged-entry.
76710         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
76711         (find_paragraph_end, try_split_merged_entry): New functions.
76712         (long_options): Add option --split-merged-entry.
76713         (usage): Document option --split-merged-entry.
76714         (main): Implement option --split-merged-entry.
76715         Reported by Eric Blake.
76717 2008-02-17  Bruno Haible  <bruno@clisp.org>
76719         * lib/git-merge-changelog.c: Include c-strstr.h.
76720         (main): Support the "git pull --rebase" situation.
76721         * modules/git-merge-changelog (Depends-on): Add c-strstr.
76722         Reported by Eric Blake.
76724 2008-02-16  Eric Blake  <ebb9@byu.net>
76726         Avoid doubling \ in common case of "c-maybe" quoting style.
76727         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
76728         eliding outer quotes.
76729         * lib/quotearg.h: Document this.
76730         * tests/test-quotearg.c (result_strings, inputs, results_g)
76731         (flag_results, locale_results): Test it by adding a new string to
76732         each test group.
76733         (compare_strings): Test new string.
76735 2008-02-13  Eric Blake  <ebb9@byu.net>
76737         Avoid trigraph quoting in default output.
76738         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
76739         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
76740         unless explicitly requested.
76741         * tests/test-quotearg.c (flag_results, main): Add additional tests.
76743 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
76745         Don't rely on signed integer overflowing to negative value.
76746         * lib/getugroups.c (getugroups): Include <limits.h>.
76747         Instead, compare against INT_MAX, and increment only if the test passes.
76749 2008-02-13  Jim Meyering  <meyering@redhat.com>
76750         and Eric Blake  <ebb9@byu.net>
76752         Avoid shadowing warning and compile errors on Linux.
76753         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
76754         forwarding macros on Linux.
76755         (dcgettext): Define a stub, for Linux.
76756         (results_g, main): Avoid warnings.
76758 2008-02-12  Eric Blake  <ebb9@byu.net>
76760         Silence warning in last patch.
76761         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
76763         Quotearg part 4: add tests, fix c-maybe colon quoting.
76764         * lib/quotearg.h: Improve documentation.
76765         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
76766         escapes when adding outer quotes.  When quoting trigraphs, use
76767         valid C notation.  When quoting NUL, omit extra characters if next
76768         character is not digit.  Alter prototype.
76769         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
76770         callers.
76771         * modules/quotearg-tests: New module.
76772         * tests/test-quotearg.c: New test.
76774 2008-02-07  Eric Blake  <ebb9@byu.net>
76776         Quotearg part 3: add flag to control outer quote elision.
76777         * lib/quotearg.h (c_maybe_quoting_style): New style.
76778         (enum quoting_flags): Better documentation of flags.
76779         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
76780         c-maybe style.
76781         (quotearg_buffer_restyled): Handle new flag to elide outer
76782         quotes.
76784         Quotearg part 2: add flag that can control NUL elision.
76785         * lib/quotearg.h (set_quoting_flags): New prototype.
76786         * lib/quotearg.c (struct quoting_options): Add flag field.
76787         (set_quoting_flags): New function.
76788         (quotearg_buffer_restyled): Add flags parameter.
76789         (quotearg_alloc_mem): Set the flag if length cannot be returned.
76790         (quotearg_n_options): Set the flag, since length cannot be
76791         returned.
76792         (quoting_options_from_style): Default flags correctly.
76794         Quotearg part 1: more wrappers, restore quotearg_char state.
76795         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
76796         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
76797         (quotearg_colon_mem): New wrappers.
76798         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
76799         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
76800         functions.
76801         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
76802         (quotearg_colon_mem): New functions.
76804 2008-02-11  Bruno Haible  <bruno@clisp.org>
76806         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
76807         library in the current directory: it does not work with parallel make.
76808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76810 2008-02-11  Bruno Haible  <bruno@clisp.org>
76812         * .gitattributes: New file.
76814 2008-02-11  Jim Meyering  <meyering@redhat.com>
76816         useless-if-before-free: Fix reversed exit values.
76817         * build-aux/useless-if-before-free: Use correct values
76818         for EXIT_MATCH and EXIT_NO_MATCH.
76820         * build-aux/useless-if-before-free: Close stdout carefully.
76822 2008-02-10  Bruno Haible  <bruno@clisp.org>
76824         New module 'git-merge-changelog'.
76825         * modules/git-merge-changelog: New file.
76826         * lib/git-merge-changelog.c: New file.
76828 2008-02-10  Jim Meyering  <meyering@redhat.com>
76830         useless-if-before-free: New option: --list (-l).
76832         useless-if-before-free: Don't exit immediately upon open failure.
76833         * build-aux/useless-if-before-free: Exit 2 for errors.
76834         Upon failure to open a file, don't exit immediately.
76835         Rather, just warn and continue with any remaining files.
76837 2008-02-10  Bruno Haible  <bruno@clisp.org>
76839         New abstract list operation 'node_set_value'.
76840         * lib/gl_list.h (gl_list_node_set_value): New function.
76841         (struct gl_list_implementation): New field node_set_value.
76842         * lib/gl_list.c (gl_list_node_set_value): New function.
76843         * lib/gl_array_list.c (gl_array_node_set_value): New function.
76844         (gl_array_list_implementation): Update.
76845         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
76846         (gl_carray_list_implementation): Update.
76847         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
76848         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76849         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76850         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
76851         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76852         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76853         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76854         Update.
76855         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76856         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
76857         (gl_sublist_list_implementation): Update.
76859 2008-02-10  Bruno Haible  <bruno@clisp.org>
76861         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
76862         Needed when ELEMENT is #defined to 'some_type *'.
76864 2008-02-10  Jim Meyering  <meyering@redhat.com>
76866         New script and module: useless-if-before-free
76867         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
76868         * build-aux/useless-if-before-free: New file.
76869         * modules/useless-if-before-free: New file.
76871         * build-aux/gitlog-to-changelog: Use committer date, not author date.
76873         xstrtol_error: Fix typo.
76874         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
76875         s/exit_failure/exit_status/.
76877 2008-02-09  Jim Meyering  <meyering@redhat.com>
76879         New script and module: gitlog-to-changelog
76880         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
76881         * modules/gitlog-to-changelog: New file.
76882         * build-aux/gitlog-to-changelog: New file.
76884 2008-02-08  Jim Meyering  <meyering@redhat.com>
76886         Avoid two "parameter unused" warnings.
76887         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
76888         Mark "st" as used.
76890         Use "git COMMAND", not "git-COMMAND".
76891         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
76892         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
76893         * build-aux/git-version-gen: Use "git status", not "git-status".
76895 2008-02-07  Bruno Haible  <bruno@clisp.org>
76897         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
76898         Avoids a crash on Windows Vista.
76899         Reported by Adam Strzelecki <ono@java.pl> via
76900         Simon Josefsson <simon@josefsson.org>.
76902 2008-02-06  Bruno Haible  <bruno@clisp.org>
76904         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
76905         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
76906         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
76907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
76908         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76910         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
76911         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
76912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76919         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
76920         left-adjust flag.
76921         * tests/test-snprintf-posix.h (test_function): Likewise.
76922         * tests/test-sprintf-posix.h (test_function): Likewise.
76923         * tests/test-vasprintf-posix.c (test_function): Likewise.
76924         * doc/posix-functions/fprintf.texi: Update.
76925         * doc/posix-functions/printf.texi: Update.
76926         * doc/posix-functions/snprintf.texi: Update.
76927         * doc/posix-functions/sprintf.texi: Update.
76928         * doc/posix-functions/vfprintf.texi: Update.
76929         * doc/posix-functions/vprintf.texi: Update.
76930         * doc/posix-functions/vsnprintf.texi: Update.
76931         * doc/posix-functions/vsprintf.texi: Update.
76932         Reported by Peter Fales <psfales@alcatel-lucent.com>.
76934 2008-02-06  Bruno Haible  <bruno@clisp.org>
76936         Fix bug introduced on 2008-01-26.
76937         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
76939 2008-02-06  Bruno Haible  <bruno@clisp.org>
76941         Fix bug introduced on 2007-06-10.
76942         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
76943         !NEED_PRINTF_FLAG_ZERO.
76945 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
76947         getloadavg: use libperfstat on AIX5
76948         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
76950 2008-02-03  Bruno Haible  <bruno@clisp.org>
76952         * lib/diffseq.h: Add comments about required #includes.
76953         Reported by Michael Biggs <gnulib@doubleplum.net>.
76955 2008-02-01  Bruno Haible  <bruno@clisp.org>
76957         * users.txt: Add gnuit.
76959 2008-01-31  Bruno Haible  <bruno@clisp.org>
76961         * lib/md4.c (set_uint32): Mark as inline.
76962         * lib/md5.c (set_uint32): Likewise.
76963         * lib/sha1.c (set_uint32): Likewise.
76964         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
76965         * m4/md5.m4 (gl_MD5): Likewise.
76966         * m4/sha1.m4 (gl_SHA1): Likewise.
76968 2008-01-31  Jim Meyering  <meyering@redhat.com>
76970         Use "sizeof VAR", rather than a literal "4".
76971         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
76972         * lib/md4.c (md4_read_ctx): Likewise.
76973         * lib/sha1.c (sha1_read_ctx): Likewise.
76975 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76977         * tests/test-sha1.c: New file, based on test-md5.c.
76979         * modules/crypto/sha1-tests: New file.
76981 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76983         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
76985 2008-01-31  Jim Meyering  <meyering@redhat.com>
76987         Prefer "sizeof v" over the equivalent "4".
76988         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
76989         * lib/md5.c (set_uint32): Likewise.
76990         * lib/sha1.c (set_uint32): Likewise.
76992 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76994         * lib/sha1.c (set_uint32): Mark function as static.
76996 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76998         md2: clarify comments to say that alignment is not required.
76999         * lib/md2.h: Remove warning about alignment in comment.
77000         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
77001         never been required.
77003 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77005         md4: adapt alignment constraint fix from sha1.
77006         * lib/md4.c (set_uint32): New function, from sha1.c
77007         (md4_read_ctx): Use it.
77008         (md4_finish_ctx): Doc fix.
77009         * lib/md4.h: Doc fix.
77011 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77013         md5: adapt alignment constraint fix from sha1.
77014         * lib/md5.c (set_uint32): New function, from sha1.c
77015         (md5_read_ctx): Use it.
77016         (md5_finish_ctx): Doc fix.
77017         * lib/md5.h: Doc fix.
77019 2008-01-30  Peter Palfrader  <weasel@debian.org>
77021         sha1: remove the result buffer alignment constraint
77022         * lib/sha1.c (set_uint32): New function.
77023         (sha1_read_ctx): Rewrite to remove the result buffer alignment
77024         constraint.
77025         (sha1_finish_ctx): Remove comment warning about alignment constraint.
77026         * lib/sha1.h: Likewise.
77028 2008-01-30  Andreas Schwab  <schwab@suse.de>
77029             Bruno Haible  <bruno@clisp.org>
77031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
77032         correct definition of LDBL_MIN_EXP.
77034 2008-01-30  Karl Berry  <karl@gnu.org>
77036         * config/srclist-update: try to preserve x bit on updates.
77037         * config/srclistvars.sh: update for karl.
77039 2008-01-29  Jim Meyering  <meyering@redhat.com>
77041         vasnprintf.c: Avoid warning about unused label
77042         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
77043         "overflow" label definition and associated code with the
77044         same cpp condition that guards the sole use of that label.
77046 2008-01-26  Bruno Haible  <bruno@clisp.org>
77048         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
77049         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
77050         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
77051         * lib/isnanl-nolibm.h (isnanl): Likewise.
77052         Reported by Paul Eggert <eggert@cs.ucla.edu>.
77054 2008-01-26  Bruno Haible  <bruno@clisp.org>
77056         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
77057         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
77059 2008-01-26  Bruno Haible  <bruno@clisp.org>
77061         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
77062         GCC >= 4.0 built-in.
77063         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
77065 2008-01-26  Bruno Haible  <bruno@clisp.org>
77067         Rename isnan, applicable to 'double' only, to isnand.
77068         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
77069         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
77070         (configure.ac): Update.
77071         (Include): Replace "isnan.h" with "isnand.h".
77072         * m4/isnand.m4: Renamed from m4/isnan.m4.
77073         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
77074         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
77075         instead of isnan.c.
77076         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
77077         instead of HAVE_ISNAN_IN_LIBC.
77078         (isnand): Renamed from isnan.
77079         * lib/isnand.c: New file.
77080         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
77081         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
77082         (Makefile.am): Update.
77083         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
77084         Include isnand.h instead of isnan.h.
77085         (main): Test isnand instead of isnan.
77086         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
77087         isnan-nolibm.
77088         * modules/frexp (Depends-on): Likewise.
77089         * modules/frexp-tests (Depends-on): Likewise.
77090         * modules/frexp-nolibm (Depends-on): Likewise.
77091         * modules/frexp-nolibm-tests (Depends-on): Likewise.
77092         * modules/isfinite (Depends-on): Likewise.
77093         * modules/round-tests (Depends-on): Likewise.
77094         * modules/signbit (Depends-on): Likewise.
77095         * modules/signbit-tests (Depends-on): Likewise.
77096         * modules/snprintf-posix (Depends-on): Likewise.
77097         * modules/sprintf-posix (Depends-on): Likewise.
77098         * modules/trunc-tests (Depends-on): Likewise.
77099         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77100         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77101         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77102         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77103         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77104         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77105         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77106         * modules/vasnprintf-posix (Depends-on): Likewise.
77107         * modules/vasprintf-posix (Depends-on): Likewise.
77108         * modules/vfprintf-posix (Depends-on): Likewise.
77109         * modules/vsnprintf-posix (Depends-on): Likewise.
77110         * modules/vsprintf-posix (Depends-on): Likewise.
77111         * lib/frexp.c: Include isnand.h instead of isnan.h.
77112         (ISNAN): Set to isnand instead of isnan.
77113         * lib/isfinite.c: Include isnand.h instead of isnan.h.
77114         (gl_isfinited): Use isnand instead of isnan.
77115         * lib/signbitd.c: Include isnand.h instead of isnan.h.
77116         (gl_signbitd): Use isnand instead of isnan.
77117         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
77118         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
77119         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
77120         (main): Use isnand instead of isnan.
77121         * tests/test-round1.c: Include isnand.h.
77122         (main): Use isnand instead of isnan.
77123         * tests/test-round2.c: Include isnand.h instead of isnan.h.
77124         (ISNAN): Set to isnand instead of isnan.
77125         * tests/test-trunc1.c: Include isnand.h.
77126         (main): Use isnand instead of isnan.
77127         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
77128         (equal): Use isnand instead of isnan.
77129         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
77130         isnand-nolibm.
77131         * NEWS: Mention the change.
77133 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77134             Bruno Haible  <bruno@clisp.org>
77136         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
77137         the GCC builtins for signbits are present and set
77138         REPLACE_SIGNBIT_USING_GCC if so.
77139         * lib/math.in.h (signbit): Define using GCC builtins if
77140         REPLACE_SIGNBIT_USING_GCC is set.
77141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
77142         REPLACE_SIGNBIT_USING_GCC.
77143         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
77145 2008-01-25  Jim Meyering  <meyering@redhat.com>
77147         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
77148         * lib/poll.c: Include <config.h>, not "config.h".
77149         * tests/test-getaddrinfo.c: Likewise.
77151 2008-01-25  Simon Josefsson  <simon@josefsson.org>
77153         * modules/sockets-tests: New file.
77155 2008-01-24  Simon Josefsson  <simon@josefsson.org>
77157         * modules/sockets: New module, can be used to call WSA_Startup and
77158         WSA_Cleanup when needed.
77160         * lib/sockets.h, lib/sockets.c: New files.
77162         * m4/sockets.m4: New file.
77164         * tests/test-sockets.c: New file.
77166 2008-01-19  Bruno Haible  <bruno@clisp.org>
77168         * doc/posix-headers: Renamed from doc/headers.
77169         * doc/posix-functions: Renamed from doc/functions.
77170         * doc/gnulib.texi: Update.
77172 2008-01-19  Bruno Haible  <bruno@clisp.org>
77174         * doc/glibc-functions/strcasestr.texi: Include contents of
77175         doc/functions/strcasestr.texi, fixing the list of platforms.
77176         * doc/functions/strcasestr.texi: Remove file.
77178 2008-01-19  Bruno Haible  <bruno@clisp.org>
77180         * doc/glibc-functions/memmem.texi: Include contents of
77181         doc/functions/memmem.texi.
77182         * doc/functions/memmem.texi: Remove file.
77184 2008-01-18  Bruno Haible  <bruno@clisp.org>
77186         * doc/glibc-functions/*.texi: New files.
77187         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
77188         to use the new files.
77190 2008-01-17  Bruno Haible  <bruno@clisp.org>
77192         * tests/test-gethostname.c (main): Fix printf statement.
77194 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77196         * modules/gethostname-tests: New file.
77198         * tests/test-gethostname.c: New file.
77200 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77202         * lib/gethostname.c: Include string.h unconditionally, strncpy is
77203         used by the UNAME case.  Reported by Bruno Haible
77204         <bruno@clisp.org>.
77206 2008-01-17  Eric Blake  <ebb9@byu.net>
77208         Convert c-strcasestr to be more efficient.
77209         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
77210         (Depends-on): Add c-strcase, remove malloca, strnlen.
77211         * tests/test-c-strcasestr.c (main): Enhance test.
77212         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
77214 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
77216         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
77217         Use it in creating po/Makevars.
77219 2008-01-15  Simon Josefsson  <simon@josefsson.org>
77221         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
77222         Applications that requires it should initialize libgcrypt
77223         manually.
77225 2008-01-16  Simon Josefsson  <simon@josefsson.org>
77227         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
77229 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
77231         Fix problem with getdate on mingw32 reported by Simon Josefsson
77232         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
77233         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
77234         tzname", when deciding whether to declare tzname.
77235         * lib/strftime.c (tzname): Likewise.
77237 2008-01-15  Bruno Haible  <bruno@clisp.org>
77239         Work around a MacOS X 10.5 bug in frexpl().
77240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
77241         * doc/functions/frexpl.texi: Document the bug.
77242         Reported by Elias Pipping <pipping@gentoo.org>.
77244 2008-01-14  Eric Blake  <ebb9@byu.net>
77246         Touch up previous patch.
77247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
77248         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
77250         Convert strcasestr module to use Two-Way algorithm.
77251         * modules/strcasestr-simple: New module, based on the old
77252         strcasestr, but with Two-Way rather than KMP.
77253         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
77254         * lib/string.in.h (rpl_strcasestr): Declare.
77255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
77256         performance.
77257         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
77258         * modules/string (Makefile.am): Support strcasestr.
77259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
77260         * modules/strcasestr-tests (Depends-on): Check for alarm.
77261         * tests/test-strcasestr.c: Augment test.
77262         * lib/str-two-way.h: Clean up stray macro.
77263         * NEWS: Document new module.
77264         * MODULES.html.sh (string handling): Likewise.
77265         * doc/functions/strcasestr.texi: New file.
77266         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
77267         here, since it is not a POSIX function.
77269 2008-01-14  Colin Watson  <cjwatson@debian.org>
77270             Bruno Haible  <bruno@clisp.org>
77272         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
77273         works fine; if not, set REPLACE_STRSIGNAL.
77274         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
77275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77276         REPLACE_STRSIGNAL.
77277         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
77278         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
77279         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
77281 2008-01-14  Bruno Haible  <bruno@clisp.org>
77283         * modules/strsignal (Include): Change to <string.h>.
77285 2008-01-14  Colin Watson  <cjwatson@debian.org>
77287         * modules/argp (Notice): Add a notice recommending to change
77288         XGETTEXT_OPTIONS.
77289         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
77291 2008-01-13  Colin Watson  <cjwatson@debian.org>
77293         * modules/strsignal-tests: New file.
77294         * tests/test-strsignal.c: New file.
77296         * lib/strsignal.c: New file, from glibc with modifications.
77297         * lib/siglist.h: New file, from glibc with modifications.
77298         * lib/string.in.h (strsignal): New declaration.
77299         * m4/strsignal.m4: New file.
77300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77301         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
77302         * modules/strsignal: New file.
77303         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
77304         HAVE_DECL_STRSIGNAL.
77306 2008-01-13  Bruno Haible  <bruno@clisp.org>
77308         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
77309         locale encoding is not ASCII. Needed for OpenBSD 4.0.
77310         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
77311         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
77313 2008-01-13  Bruno Haible  <bruno@clisp.org>
77315         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
77316         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
77317         * lib/argp.h (__attribute__): Likewise.
77318         * lib/c-stack.c (__attribute__): Likewise.
77319         * lib/error.h (__attribute__): Likewise.
77320         * lib/fts.c (__attribute__): Likewise.
77321         * lib/openat.h (__attribute__): Likewise.
77322         * lib/stdio.in.h (__attribute__): Likewise.
77323         * lib/string.in.h (__attribute__): Likewise.
77324         * lib/utimens.c (__attribute__): Likewise.
77325         * lib/vasnprintf.h (__attribute__): Likewise.
77326         * lib/xalloc.h (__attribute__): Likewise.
77327         * lib/xprintf.h (__attribute__): Likewise.
77328         * lib/xstrtol.h (__attribute__): Likewise.
77329         * lib/xvasprintf.h (__attribute__): Likewise.
77331 2008-01-12  Bruno Haible  <bruno@clisp.org>
77333         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
77334         * doc/glibc-headers/a.out.texi: New file.
77335         * doc/glibc-headers/aliases.texi: New file.
77336         * doc/glibc-headers/alloca.texi: New file.
77337         * doc/glibc-headers/ar.texi: New file.
77338         * doc/glibc-headers/argp.texi: New file.
77339         * doc/glibc-headers/argz.texi: New file.
77340         * doc/glibc-headers/byteswap.texi: New file.
77341         * doc/glibc-headers/crypt.texi: New file.
77342         * doc/glibc-headers/endian.texi: New file.
77343         * doc/glibc-headers/envz.texi: New file.
77344         * doc/glibc-headers/err.texi: New file.
77345         * doc/glibc-headers/error.texi: New file.
77346         * doc/glibc-headers/execinfo.texi: New file.
77347         * doc/glibc-headers/fpu_control.texi: New file.
77348         * doc/glibc-headers/fstab.texi: New file.
77349         * doc/glibc-headers/fts.texi: New file.
77350         * doc/glibc-headers/getopt.texi: New file.
77351         * doc/glibc-headers/ieee754.texi: New file.
77352         * doc/glibc-headers/ifaddrs.texi: New file.
77353         * doc/glibc-headers/libintl.texi: New file.
77354         * doc/glibc-headers/mcheck.texi: New file.
77355         * doc/glibc-headers/mntent.texi: New file.
77356         * doc/glibc-headers/obstack.texi: New file.
77357         * doc/glibc-headers/paths.texi: New file.
77358         * doc/glibc-headers/printf.texi: New file.
77359         * doc/glibc-headers/pty.texi: New file.
77360         * doc/glibc-headers/resolv.texi: New file.
77361         * doc/glibc-headers/shadow.texi: New file.
77362         * doc/glibc-headers/sysexits.texi: New file.
77363         * doc/glibc-headers/ttyent.texi: New file.
77365 2008-01-12  Jim Meyering  <meyering@redhat.com>
77367         announce-gen: emit Gnulib's git-based version string.
77368         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
77369         New option --gnulib-version=V, where V is expected to be
77370         the output of running git describe in the gnulib directory.
77371         (get_tool_versions): Request feedback on xdelta.  I suspect it's
77372         not useful, and plan to stop publishing an xdelta file with each
77373         coreutils release.
77375         * build-aux/announce-gen: Also check for lzma-compressed files.
77377 2008-01-11  Bruno Haible  <bruno@clisp.org>
77379         * tests/test-memmem.c (main): Increase maximum allowed time.
77380         * tests/test-strstr.c (main): Likewise.
77382 2008-01-11  Bruno Haible  <bruno@clisp.org>
77384         * doc/functions/memmem.texi: Add more precisions about platforms.
77385         * doc/functions/strstr.texi: Likewise.
77387 2008-01-10  Eric Blake  <ebb9@byu.net>
77389         * m4/strstr.m4: Delete cruft from copy-n-paste.
77390         Reported by Bruno Haible.
77392 2008-01-10  Bruno Haible  <bruno@clisp.org>
77394         Make c-strstr rely on strstr.
77395         * lib/c-strstr.c: Don't include str-kmp.h.
77396         (c_strstr): Define in terms of strstr.
77397         * modules/c-strstr (Files): Remove lib/str-kmp.h.
77398         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
77400 2008-01-10  Bruno Haible  <bruno@clisp.org>
77402         * doc/gnulib.texi (String Functions in C Locale): New section.
77403         * doc/c-ctype.texi: New file.
77404         * doc/c-strcase.texi: New file.
77405         * doc/c-strcaseeq.texi: New file.
77406         * doc/c-strcasestr.texi: New file.
77407         * doc/c-strstr.texi: New file.
77408         * doc/c-strtod.texi: New file.
77409         * doc/c-strtold.texi: New file.
77411 2008-01-10  Eric Blake  <ebb9@byu.net>
77413         * lib/relocatable.h: Fix a comment.
77415 2008-01-10  Eric Blake  <ebb9@byu.net>
77417         Share two-way algorithm.
77418         * lib/str-two-way.h: New file, merged from...
77419         * lib/memmem.c: ...here...
77420         * lib/strstr.c: ...and here.
77421         * modules/memmem (Files): Use it.
77422         * modules/strstr (Files): Likewise.
77424         Avoid quadratic strstr implementations.
77425         * lib/strstr.c: New file.
77426         * m4/strstr.m4: Likewise.
77427         * modules/strstr: Likewise.
77428         * modules/strstr-tests: Likewise.
77429         * tests/test-strstr.c: Likewise.
77430         * lib/string.in.h (rpl_strstr): Declare.
77431         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
77432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
77433         * modules/string (Makefile.am): Likewise.
77434         * MODULES.html.sh (string handling): Mention new module.
77435         * doc/functions/strstr.texi (strstr): Document the bug.
77437 2008-01-10  Bruno Haible  <bruno@clisp.org>
77439         * lib/relocatable.h (relocate): State whether result is freshly
77440         allocated or not.
77441         * lib/relocatable.c (relocate): Return a freshly allocated string
77442         instead of a pointer to a privately held string.
77443         Reported by Sylvain Beucler <beuc@gnu.org>.
77445 2008-01-10  Colin Watson  <cjwatson@debian.org>
77447         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
77448         s/S_ISNLK/S_ISLNK/.
77450 2008-01-09  Bruno Haible  <bruno@clisp.org>
77452         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
77453         and other files.
77454         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
77455         if it's only a guess.
77456         * modules/memmem: Simplify by depending on memmem-simple.
77458 2008-01-09  Bruno Haible  <bruno@clisp.org>
77460         Work around OpenBSD 4.0 tdelete() bug.
77461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
77462         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
77463         macros and don't redefine the enum values.
77464         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
77465         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
77466         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
77468 2008-01-09  Bruno Haible  <bruno@clisp.org>
77470         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
77471         (main): Don't perform the tests if setlocale did not install a UTF-8
77472         locale. Needed on OpenBSD 4.0.
77473         * modules/wcwidth-tests (Depends-on): Add localcharset.
77475 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77477         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
77478         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
77479         * NEWS: announce this.
77480         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
77482 2008-01-09  Simon Josefsson  <simon@josefsson.org>
77483         and Eric Blake  <ebb9@byu.net>
77485         Add memmem-simple module.
77486         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
77487         (gl_FUNC_MEMMEM): Separate performance from presence checks.
77488         * modules/memmem-simple: New file.
77489         * modules/memmem (Description): Tweak.
77490         * MODULES.html.sh (string handling): Mention new module.
77491         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
77492         addressed by memmem-simple.
77493         * NEWS: Document the difference.
77495 2008-01-09  Eric Blake  <ebb9@byu.net>
77497         Give gcc some memmem optimization hints.
77498         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
77499         (strcasestr): Declare as pure.
77500         * modules/memmem (Maintainer): Claim my implementation.
77502 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77504         Support AIX 6.1 and higher.
77505         * build-aux/config.libpath: Likewise.
77506         * build-aux/config.rpath: Likewise.
77508 2008-01-08  Jim Meyering  <meyering@redhat.com>
77509             Bruno Haible  <bruno@clisp.org>
77511         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
77512         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
77513         Reported by Peter Fales in
77514         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
77516 2008-01-08  Bruno Haible  <bruno@clisp.org>
77518         * modules/unictype/category-of (Depends-on): Add
77519         unictype/category-none.
77520         * modules/unictype/category-and-tests (Depends-on): Add
77521         unictype/category-{L,N,Lu,Nd}.
77522         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
77523         * modules/unictype/category-or-tests (Depends-on): Add
77524         unictype/category-{L,N}.
77525         * modules/unictype/category-name-tests (Depends-on): Add
77526         unictype/category-{Z,Nl}.
77527         Reported by Simon Josefsson.
77529 2008-01-08  Bruno Haible  <bruno@clisp.org>
77531         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
77532         convention better.
77533         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
77534         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
77535         Reported by Peter Miller <millerp@canb.auug.org.au>.
77537 2008-01-08  Eric Blake  <ebb9@byu.net>
77539         Rewrite memmem to guarantee linear complexity without malloc.
77540         * lib/memmem.c (memmem): Use Two-Way rather than
77541         Knuth-Morris-Pratt, to allow O(1) space usage.
77542         (critical_factorization, two_way_short_needle)
77543         (two_way_long_needle): New functions.
77544         (knuth_morris_pratt): Delete.
77545         * modules/memmem (Depends-on): No longer need malloca or stdbool.
77546         Add stdint.
77547         * tests/test-memmem.c (main): Add tests for periodic needle and
77548         sublinear performance.
77549         * doc/functions/memmem.texi (memmem): Document other deficiencies
77550         in cygwin and older glibc.
77552 2008-01-08  Bruno Haible  <bruno@clisp.org>
77554         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
77555         augmentation.
77557 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
77559         Add a configure time option: --disable-acl.
77560         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
77561         AC_ARG_ENABLE(acl).
77563 2008-01-06  Simon Josefsson  <simon@josefsson.org>
77565         * tests/test-localename.c: Don't include obsolete "setenv.h".
77567         * modules/localename-tests (Depends-on): Need unsetenv.
77569 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77571         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
77573 2008-01-06  Colin Watson  <cjwatson@debian.org>
77575         * users.txt: Add man-db.
77577 2008-01-07  Bruno Haible  <bruno@clisp.org>
77579         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
77580         previous section name.
77582 2008-01-07  Bruno Haible  <bruno@clisp.org>
77584         * lib/progname.c (set_program_name): Don't strip off a leading
77585         "lt-" prefix outside a .libs directory.
77586         Suggested by Paul Eggert.
77588 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
77589             Bruno Haible  <bruno@clisp.org>
77591         Improve memory cleanup in 'relocatable' module.
77592         * lib/relocatable.h (compute_curr_prefix): Change return type to
77593         'char *'.
77594         * lib/relocatable.c (compute_curr_prefix): Change return type to
77595         'char *'. Free curr_installdir after use.
77596         (relocate): Free curr_prefix_better after use.
77597         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
77599 2008-01-01  Bruno Haible  <bruno@clisp.org>
77601         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
77602         failure on older glibc systems.
77603         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77605 2008-01-05  Eric Blake  <ebb9@byu.net>
77607         Avoid quadratic system memmem.
77608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
77609         Reported by Ralf Wildenhues.
77611         Fix memmem test for mingw.
77612         * modules/memmem-tests (configure.ac): Check for alarm.
77613         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
77614         it.
77615         * doc/functions/memmem.texi: New file.
77616         * doc/gnulib.texi (Function Substitutes): Add memmem.
77617         Reported by Bruno Haible.
77619 2008-01-04  Bruno Haible  <bruno@clisp.org>
77621         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
77622         Require gl_HEADER_STRINGS_H_DEFAULTS, not
77623         gl_HEADER_STRING_H_DEFAULTS.
77625 2008-01-04  Eric Blake  <ebb9@byu.net>
77627         Shorten duration of memmem test.
77628         * tests/test-memmem.c (main): Use alarm to declare failure if test
77629         is taking too long.
77630         Reported by Ralf Wildenhues.
77632 2007-12-21  Simon Josefsson  <simon@josefsson.org>
77634         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
77635         string, needed by strerror.
77637 2008-01-03  Colin Watson  <cjwatson@debian.org>
77638             Bruno Haible  <bruno@clisp.org>
77640         * doc/gnulib-tool.texi (Localization): New section.
77642 2008-01-02  Bruno Haible  <bruno@clisp.org>
77644         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
77645         variables to 'unsigned char *' type.
77646         Reported by Paul Eggert.
77648 2008-01-02  Jim Meyering  <jim@meyering.net>
77650         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
77652 2007-12-31  Jim Meyering  <jim@meyering.net>
77654         Avoid use of private FTS type name.
77655         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
77657 2007-12-30  Karl Berry  <karl@gnu.org>
77659         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
77660         work around defect in Texinfo and/or the standalone Info browser.
77662 2007-12-30  Bruno Haible  <bruno@clisp.org>
77664         Unify 5 copies of the KMP code.
77665         * lib/str-kmp.h: New file.
77666         * lib/c-strcasestr.c: Include str-kmp.h.
77667         (knuth_morris_pratt): Remove function.
77668         (c_strcasestr): Update.
77669         * lib/c-strstr.c: Include str-kmp.h.
77670         (knuth_morris_pratt): Remove function.
77671         (c_strcasestr): Update.
77672         * lib/mbscasestr.c: Include str-kmp.h.
77673         (knuth_morris_pratt_unibyte): Remove function.
77674         * lib/mbsstr.c: Include str-kmp.h.
77675         (knuth_morris_pratt_unibyte): Remove function.
77676         * lib/strcasestr.c: Include str-kmp.h.
77677         (knuth_morris_pratt): Remove function.
77678         (strcasestr): Update.
77679         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
77680         * modules/c-strstr (Files): Likewise.
77681         * modules/mbscasestr (Files): Likewise.
77682         * modules/mbsstr (Files): Likewise.
77683         * modules/strcasestr (Files): Likewise.
77684         Suggested by Paul Eggert.
77686 2007-12-30  Bruno Haible  <bruno@clisp.org>
77688         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
77689         defined.
77691 2007-12-30  Bruno Haible  <bruno@clisp.org>
77693         * lib/xmalloca.h: Include xalloc.h.
77694         (xnmalloca): New macro.
77696 2007-12-30  Bruno Haible  <bruno@clisp.org>
77698         * lib/malloca.h (nmalloca): New macro.
77699         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
77700         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
77701         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
77702         knuth_morris_pratt_multibyte): Likewise.
77703         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
77704         knuth_morris_pratt_multibyte): Likewise.
77705         * lib/memmem.c (knuth_morris_pratt): Likewise.
77706         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
77708 2007-12-25  Bruno Haible  <bruno@clisp.org>
77710         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
77711         * lib/glob.c: Don't include openat.h.
77712         (link_exists2_p): Add back the code that deals with the
77713         !GLOB_ALTDIRFUNC case.
77714         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
77715         let it do the filename concatenation.
77716         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
77717         * modules/glob (Depends-on): Remove openat.
77719 2007-12-31  Bruno Haible  <bruno@clisp.org>
77721         * modules/dirfd (License): Change to LGPLv2+.
77722         Approved by Jim Meyering.
77724 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
77726         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
77727         when multiplying M by sizeof (size_t).
77729 2007-12-10  Martin Lambers  <marlam@marlam.de>
77731         Override getpagesize on mingw.
77732         * lib/getpagesize.c: New file.
77733         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
77734         * modules/getpagesize (Files): Add lib/getpagesize.c.
77735         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
77736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77737         REPLACE_GETPAGESIZE.
77738         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
77740 2007-12-25  Bruno Haible  <bruno@clisp.org>
77742         * modules/localcharset (Notice): New field.
77743         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
77744         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
77746 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
77747             Bruno Haible  <bruno@clisp.org>
77749         Avoid using the syntax symbol() in formatted documentation.
77750         * MODULES.html.sh (func_module): When replacing symbol() with a
77751         hyperlink, remove the parentheses. Show an error if some remain.
77752         Recognize and render the '...' syntax.
77753         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
77754         Rework. Add paragraph about GCC's inlining.
77755         * doc/alloca.texi: Likewise.
77756         * doc/error.texi: Remove parentheses from symbol reference.
77757         * doc/gnulib-intro.texi: Likewise.
77758         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
77759         * modules/fnmatch (Description): Reword to say "the ... function".
77760         * modules/full-read (Description): Likewise.
77761         * modules/full-write (Description): Likewise.
77762         * modules/safe-read (Description): Likewise.
77763         * modules/safe-write (Description): Likewise.
77764         * modules/strchrnul (Description): Likewise.
77765         * modules/trim (Description): Likewise.
77766         * modules/error (Description): Remove parentheses from symbol
77767         references.
77768         * modules/verror (Description): Likewise.
77769         Reported by Karl Berry.
77771 2007-12-25  Bruno Haible  <bruno@clisp.org>
77773         Fixup after 2007-10-16 commit.
77774         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
77776 2007-12-24  Bruno Haible  <bruno@clisp.org>
77778         Make --enable-relocatable work with DESTDIR.
77779         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
77780         to compute installdir from destprog.
77781         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
77782         also set the RELOC_DESTDIR variable.
77783         Reported by Левашев Иван <octagram@bluebottle.com>.
77785 2007-12-24  Bruno Haible  <bruno@clisp.org>
77787         Fix link error due to xalloc_die().
77788         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
77789         of xreadlink.
77790         * lib/relocwrapper.c: Update comments.
77791         * build-aux/install-reloc: Remove xreadlink.c from file list.
77792         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
77793         xreadlink.c.
77794         Reported by Левашев Иван <octagram@bluebottle.com>.
77796 2007-12-24  Bruno Haible  <bruno@clisp.org>
77798         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
77799         * lib/setenv.h: Remove file.
77800         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
77801         lib/setenv.h.
77802         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
77803         (Depends-on): Add stdlib.
77804         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
77805         gl_FUNC_UNSETENV.
77806         (Include): Replace setenv.h with <stdlib.h>.
77807         * modules/unsetenv: New file.
77808         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
77809         * lib/unsetenv.c: Include <stdlib.h> first.
77810         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
77811         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
77812         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
77813         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
77814         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
77815         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
77816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
77817         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
77818         * doc/functions/unsetenv.texi: Update.
77819         * modules/xsetenv (Depends-on): Add unsetenv.
77820         * modules/getdate (Depends-on): Likewise.
77821         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
77822         * lib/xsetenv.c: Don't include setenv.h.
77823         * lib/getdate.y: Likewise.
77824         * lib/relocwrapper.c: Likewise.
77825         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
77826         (Depends-on): Add stdlib.
77827         * NEWS: Mention the changes.
77828         Reported by Левашев Иван <octagram@bluebottle.com>.
77830 2007-12-23  Bruno Haible  <bruno@clisp.org>
77832         * lib/memmem.c (memmem): Use lowercase variable names. Tab
77833         indentation.
77835 2007-12-23  Bruno Haible  <bruno@clisp.org>
77837         * lib/c-strcasestr.c: Add more comments.
77838         * lib/c-strstr.c: Likewise.
77839         * lib/mbscasestr.c: Likewise.
77840         * lib/mbsstr.c: Likewise.
77841         * lib/strcasestr.c: Likewise.
77842         * lib/memmem.c: Likewise.
77844 2007-12-23  Bruno Haible  <bruno@clisp.org>
77846         * tests/test-memmem.c: Include <string.h> first.
77848 2007-12-22  Bruno Haible  <bruno@clisp.org>
77850         * gnulib-tool (func_create_testdir): Change $auxdir while generating
77851         the contents of $testsbase.
77852         Reported by Ralf Wildenhues.
77854 2007-12-22  Bruno Haible  <bruno@clisp.org>
77856         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
77857         two variables local_ldadd_before, local_ldadd_last.
77859 2007-12-20  Eric Blake  <ebb9@byu.net>
77861         Work around circular library issue when cross-compiling.
77862         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
77863         that progname.o does not need to pull in rpl_memcmp.
77865 2007-12-19  Eric Blake  <ebb9@byu.net>
77867         Fix memmem to avoid O(n^2) worst-case complexity.
77868         * lib/memmem.c (knuth_morris_pratt): New function.
77869         (memmem): Use it if first few naive iterations fail.
77870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
77871         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
77872         * modules/memchr (License): Likewise.
77873         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
77874         malloca.
77875         * tests/test-memmem.c: Rewrite, borrowing ideas from
77876         test-mbsstr1.c; the old version wouldn't even compile!
77877         * modules/memmem-tests: New file.
77878         * lib/string.in.h (rpl_memmem): Add declaration.
77879         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
77880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
77881         REPLACE_MEMMEM.
77883 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
77885         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
77886         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
77887         before any system include files, and undef after them all.  This
77888         should fix a problem on VMS reported by John E. Malmberg in
77889         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
77891 2007-12-17  Eric Blake  <ebb9@byu.net>
77893         Revert addition of verify, for BSD/OS.
77894         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
77895         can't handle large files, for the sake of obsolete platforms.
77896         * modules/fseeko (Depends-on): Remove verify.
77897         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
77898         * doc/functions/ftello.texi (ftello): Likewise.
77899         * doc/functions/fgetpos.texi (fgetpos): Likewise.
77900         Reported by Larry Jones.
77902 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
77904         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
77905         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
77907 2007-12-17  Jim Meyering  <meyering@redhat.com>
77909         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
77910         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
77911         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
77912         * modules/getcwd (Depends-on): Add openat.
77913         Reported by Petr Salinger.
77915 2007-12-17  Bruno Haible  <bruno@clisp.org>
77917         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
77918         avoid a segmentation fault of the configure test on x86_64 systems.
77920 2007-12-15  Jim Meyering  <meyering@redhat.com>
77922         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
77924 2007-12-13  Eric Blake  <ebb9@byu.net>
77926         Another fseek test.
77927         * tests/test-fseek.c (main): Also test ungetc handling.
77928         * tests/test-fseeko.c (main): Likewise.
77929         * modules/fseeko (Depends-on): Add verify.
77930         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
77931         large.
77932         Reported by Larry Jones.
77934         Fix fseeko on mingw.
77935         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
77936         seek.
77938         Beef up fseek tests.
77939         * tests/test-fseek.c (main): Also test eof handling.
77940         * tests/test-fseeko.c (main): Likewise.
77941         Reported by Larry Jones.
77943 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
77945         Fix fseeko on BSD-based platforms.
77946         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
77947         successful seek.
77949 2007-12-12  Eric Blake  <ebb9@byu.net>
77951         Allow circular dependency of separate libtests.a
77952         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
77953         when use_libtests.
77955 2007-12-11  Eric Blake  <ebb9@byu.net>
77957         Fix bug with -0.0L in previous patch.
77958         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
77959         * tests/test-isnan.c (main): Also test on zeroes.
77960         * tests/test-isnanf.c (main): Likewise.
77961         * tests/test-isnanl.h (main): Likewise.
77963         Detect pseudo-denormals on x86 even when cross-compiling.
77964         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
77965         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
77966         invalid bit patterns that happen to satisfy ==.
77968         Avoid link failures with separate libtests.a.
77969         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
77970         last, to satisfy circular dependencies.
77972 2007-12-11  Eric Blake  <ebb9@byu.net>
77973         and Bruno Haible  <bruno@clisp.org>
77975         Fix OpenBSD 4.0 <float.h> handling of long double.
77976         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
77977         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
77978         * doc/headers/float.texi (float.h): Document OpenBSD bug.
77980 2007-12-11  Jim Meyering  <meyering@redhat.com>
77982         * users.txt: Add libvirt.
77984         Support versions of autoconf prior to 2.59c.
77985         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
77986         if it is not already defined.
77988 2007-12-09  Bruno Haible  <bruno@clisp.org>
77990         Let 'gnulib-tool --import' collect sources needed for the tests in
77991         tests/ rather than in lib/.
77992         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
77993         argument. If true, add rules to generate libtests.a, and put libtests.a
77994         into $(LDADD). Consider source files in subdirectories and set
77995         uses_subdirs.
77996         (func_emit_initmacro_start, func_emit_initmacro_end,
77997         func_emit_initmacro_done): Pass all arguments explicitly.
77998         (func_import): Determine two module lists main_modules,
77999         testsrelated_modules. Determine use_libtests. Determine two variables
78000         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
78001         instead of just sed_transform_lib_file. Determine two variables
78002         main_files and testsrelated_files. Compute 'files' as the union of
78003         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
78004         func_add_or_update. In the generated gnulib-comp.m4, collect the
78005         object files for tests/ in different variables than those for lib/.
78006         Substitute LIBTESTS_LIBDEPS.
78007         (func_create_testdir): Combine the uses_subdirs results from
78008         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
78010 2007-12-09  Bruno Haible  <bruno@clisp.org>
78012         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
78013         the build-aux directory.
78015 2007-12-09  Bruno Haible  <bruno@clisp.org>
78017         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
78018         introduced on 2006-09-09.
78020 2007-12-07  Jim Meyering  <meyering@redhat.com>
78022         Let these macros work also with autoconf-2.59.
78023         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
78024         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
78025         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
78027 2007-12-06  Jim Meyering  <meyering@redhat.com>
78029         Avoid a configure-time syntax error in gl_FUNC_ACL.
78030         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
78031         function in each branch, before testing the cache variable.
78033 2007-12-04  Eric Blake  <ebb9@byu.net>
78035         Make scripts executable.
78036         * build-aux/config.guess: Add execute permissions.
78037         * build-aux/config.sub: Likewise.
78038         * build-aux/gendocs.sh: Likewise.
78040         Fix frexp on mingw.
78041         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
78042         cross-compiling.
78043         * doc/functions/frexp.texi (frexp): Document the bug.
78045         Make cygwin fseeko check more reliable.
78046         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
78047         version numbers, rather than unrelated feature check.
78048         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
78049         * doc/functions/ftello.texi (ftello): Likewise.
78050         Reported by Bruno Haible.
78052         * m4/strerror.m4: Bump version number.
78054 2007-12-03  Bruno Haible  <bruno@clisp.org>
78056         * doc/functions/mprotect.texi: Mention the mingw problem.
78058 2007-12-03  Eric Blake  <ebb9@byu.net>
78060         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
78061         REPLACE_STRERROR is initialized before this macro.
78063 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
78065         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
78066         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
78067         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
78068         put -lsec in even for programs other than 'ls'.  This fixes a problem
78069         for gettext reported by Bruno Haible in
78070         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
78071         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
78072         Add support for Solaris 10.  This isn't efficient, but should get the
78073         job done for now.
78075 2007-12-03  James Youngman  <jay@gnu.org>
78077         * doc/regexprops-generic.texi: change "an close-group" to "a
78078         close-group" and "illegal" to "not allowed".
78080 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78082         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
78083         pr_byname.h. Needed for the rare case when the maintainer has done
78084         "make maintainer-clean" in the source directory and then attempts a
78085         build outside the source directory.
78086         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
78087         scripts_byname.h.
78089 2007-12-02  Martin Lambers  <marlam@marlam.de>
78090             Bruno Haible  <bruno@clisp.org>
78092         * lib/getpagesize.h: Remove file.
78093         * lib/unistd.in.h: Include declaration of getpagesize here.
78094         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
78095         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
78096         HAVE_SYS_PARAM_H.
78097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
78098         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78099         * modules/getpagesize (Files): Remove lib/getpagesize.h.
78100         (Depends-on): Add unistd.
78101         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
78102         (Include): Use <unistd.h> instead of getpagesize.h.
78103         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
78104         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78105         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
78106         gl_GETPAGESIZE invocation, already handled by module dependency.
78107         * lib/pagealign_alloc.c: Don't include getpagesize.h.
78109 2007-12-02  Bruno Haible  <bruno@clisp.org>
78111         * modules/strings-tests: New file.
78112         * tests/test-strings.c: New file.
78114         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
78115         * lib/strings.in.h: New file.
78116         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
78117         * m4/strings_h.m4: New file.
78118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
78119         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
78120         * modules/strings: New file.
78121         * modules/string (Makefile.am): Update.
78122         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
78123         Reported by Karl Berry.
78125 2007-12-01  Eric Blake  <ebb9@byu.net>
78127         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
78128         accommodate fix in cygwin 1.5.25.
78130 2007-12-01  Jim Meyering  <meyering@redhat.com>
78132         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
78133         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
78134         that would inhibit utf8-optimization of a regexp containing line-
78135         or buffer-anchors, e.g., `^', `$'.
78137 2007-11-30  Bruno Haible  <bruno@clisp.org>
78139         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
78140         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
78141         glthread_recursive_lock_init.
78142         * lib/lock.c (glthread_recursive_lock_init)
78143         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
78144         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78146 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
78148         New function qset_acl, like set_acl but with syscall semantics.
78149         * lib/acl.h (qset_acl): New decl.
78150         * lib/acl.c (qset_acl): New function.
78151         (set_acl): Use new function.  Use more-consistent diagnostics.
78153 2007-11-28  Jim Meyering  <meyering@redhat.com>
78155         * modules/physmem (License): Change from GPL to LGPLv2+.
78157 2007-11-26  Bruno Haible  <bruno@clisp.org>
78159         * lib/vasnprintf.c (decode_long_double): Don't abort if the
78160         'long double' type has excess precision.
78161         Reported by Jim Meyering in
78162         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
78164 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78166         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
78167         Sync from <http://gnu.org/licenses>.
78168         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
78169         with license text from same location.
78170         * doc/maintain.texi, doc/standards.texi:  Sync from
78171         <http://savannah.gnu.org/projects/gnustandards>.
78173 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
78174         and Jim Meyering  <meyering@redhat.com>
78176         Adjust getdate' grammar to accept a slightly more regular language.
78177         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
78178         Before, the former was rejected.
78179         * lib/getdate.y (digits_to_date_time): New function, factored
78180         out of ...
78181         (number): ...here.  Just call digits_to_date_time.
78182         (hybrid): New non-terminal to handle an <unsigned number,
78183         signed relative offset> sequence consistently.
78185 2007-11-18  Jim Meyering  <meyering@redhat.com>
78187         Pull my changes from coreutils:
78188         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
78189         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
78190         use of $gnulib_tool_option_extras, so that it's separated from the
78191         preceding argument.
78193         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
78194         * build-aux/bootstrap (cp_mark_as_generated): Create any required
78195         parent destination directories before copying a file into place.
78197 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
78199         bootstrap: work also with 4-argument variant of AC_INIT
78200         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
78202 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78204         Port test-getaddrinfo to Solaris.
78205         Problem reported by Bruno Haible in
78206         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
78207         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
78208         explanation of setting 'hints'.
78209         Don't reject an implementation merely because it returns EAI_SERVICE.
78210         (EAI_SERVICE): Define to 0 if not defined.
78212 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78214         The license of gnu-make and posix-shell is now "GPLed build tool".
78215         * modules/gnu-make (License): Likewise.
78216         * modules/posix-shell (License): Likewise.
78218         New module posix-shell, for determining a POSIX shell
78219         or perhaps something that is close enough to a POSIX shell.
78220         * m4/posix-shell.m4: New file.
78221         * modules/posix-shell: New file.
78223         * MODULES.html.sh: Mention new module.
78225         New module gnu-make, for determining whether we're using GNU Make.
78226         * m4/gnu-make.m4: New file.
78227         * modules/gnu-make: New file.
78228         * MODULES.html.sh: Mention new module.
78230 2007-11-14  Jim Meyering  <meyering@redhat.com>
78232         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
78233         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
78234         use this macro to create a function _definition_.
78235         Remove useless "#undef ARGMATCH_DIE".
78237 2007-11-14  Bruno Haible  <bruno@clisp.org>
78239         * lib/config.charset: Update for OpenBSD 4.1.
78240         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
78242 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
78244         Document 64-bit #if problems in stdint.texi.
78245         * doc/headers/stdint.texi (stdint.h): Mention problems with
78246         64-bit-#if, and how to work around them.
78248         Don't insist on 'long long int' support in the preprocessor.  It
78249         breaks too many things.  For example, PRIdMAX still uses a 'long
78250         long int' format with the latest Sun compiler, even though
78251         HAVE_LONG_LONG_INT isn't defined due to that compiler's
78252         preprocessor problem.  This causes the latest coreutils to dump
78253         core on Solaris 10 sparc with the Sun C compiler.
78254         Instead, fix the 2007-10-16 problem in a different way, by evaluating
78255         the troublesome expressions at configure-time, not at #if-time.
78256         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
78257         preprocessor.
78258         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
78259         compile-time C checks, done at 'configure'-time.
78260         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
78261         * modules/inttypes (Makefile): Substitute the new symbols that
78262         gl_INTTYPES_H now generates.
78263         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
78265 2007-11-12  Bruno Haible  <bruno@clisp.org>
78267         Tests for Unicode character classification functions.
78269         * modules/unictype/bidicategory-byname-tests: New file.
78270         * modules/unictype/bidicategory-name-tests: New file.
78271         * modules/unictype/bidicategory-of-tests: New file.
78272         * modules/unictype/bidicategory-test-tests: New file.
78273         * modules/unictype/block-list-tests: New file.
78274         * modules/unictype/block-of-tests: New file.
78275         * modules/unictype/block-test-tests: New file.
78276         * modules/unictype/category-C-tests: New file.
78277         * modules/unictype/category-Cc-tests: New file.
78278         * modules/unictype/category-Cf-tests: New file.
78279         * modules/unictype/category-Cn-tests: New file.
78280         * modules/unictype/category-Co-tests: New file.
78281         * modules/unictype/category-Cs-tests: New file.
78282         * modules/unictype/category-L-tests: New file.
78283         * modules/unictype/category-Ll-tests: New file.
78284         * modules/unictype/category-Lm-tests: New file.
78285         * modules/unictype/category-Lo-tests: New file.
78286         * modules/unictype/category-Lt-tests: New file.
78287         * modules/unictype/category-Lu-tests: New file.
78288         * modules/unictype/category-M-tests: New file.
78289         * modules/unictype/category-Mc-tests: New file.
78290         * modules/unictype/category-Me-tests: New file.
78291         * modules/unictype/category-Mn-tests: New file.
78292         * modules/unictype/category-N-tests: New file.
78293         * modules/unictype/category-Nd-tests: New file.
78294         * modules/unictype/category-Nl-tests: New file.
78295         * modules/unictype/category-No-tests: New file.
78296         * modules/unictype/category-P-tests: New file.
78297         * modules/unictype/category-Pc-tests: New file.
78298         * modules/unictype/category-Pd-tests: New file.
78299         * modules/unictype/category-Pe-tests: New file.
78300         * modules/unictype/category-Pf-tests: New file.
78301         * modules/unictype/category-Pi-tests: New file.
78302         * modules/unictype/category-Po-tests: New file.
78303         * modules/unictype/category-Ps-tests: New file.
78304         * modules/unictype/category-S-tests: New file.
78305         * modules/unictype/category-Sc-tests: New file.
78306         * modules/unictype/category-Sk-tests: New file.
78307         * modules/unictype/category-Sm-tests: New file.
78308         * modules/unictype/category-So-tests: New file.
78309         * modules/unictype/category-Z-tests: New file.
78310         * modules/unictype/category-Zl-tests: New file.
78311         * modules/unictype/category-Zp-tests: New file.
78312         * modules/unictype/category-Zs-tests: New file.
78313         * modules/unictype/category-and-not-tests: New file.
78314         * modules/unictype/category-and-tests: New file.
78315         * modules/unictype/category-byname-tests: New file.
78316         * modules/unictype/category-name-tests: New file.
78317         * modules/unictype/category-none-tests: New file.
78318         * modules/unictype/category-of-tests: New file.
78319         * modules/unictype/category-or-tests: New file.
78320         * modules/unictype/category-test-withtable-tests: New file.
78321         * modules/unictype/combining-class-tests: New file.
78322         * modules/unictype/ctype-alnum-tests: New file.
78323         * modules/unictype/ctype-alpha-tests: New file.
78324         * modules/unictype/ctype-blank-tests: New file.
78325         * modules/unictype/ctype-cntrl-tests: New file.
78326         * modules/unictype/ctype-digit-tests: New file.
78327         * modules/unictype/ctype-graph-tests: New file.
78328         * modules/unictype/ctype-lower-tests: New file.
78329         * modules/unictype/ctype-print-tests: New file.
78330         * modules/unictype/ctype-punct-tests: New file.
78331         * modules/unictype/ctype-space-tests: New file.
78332         * modules/unictype/ctype-upper-tests: New file.
78333         * modules/unictype/ctype-xdigit-tests: New file.
78334         * modules/unictype/decimal-digit-tests: New file.
78335         * modules/unictype/digit-tests: New file.
78336         * modules/unictype/mirror-tests: New file.
78337         * modules/unictype/numeric-tests: New file.
78338         * modules/unictype/property-alphabetic-tests: New file.
78339         * modules/unictype/property-ascii-hex-digit-tests: New file.
78340         * modules/unictype/property-bidi-arabic-digit-tests: New file.
78341         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
78342         * modules/unictype/property-bidi-block-separator-tests: New file.
78343         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
78344         * modules/unictype/property-bidi-common-separator-tests: New file.
78345         * modules/unictype/property-bidi-control-tests: New file.
78346         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
78347         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
78348         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
78349         * modules/unictype/property-bidi-european-digit-tests: New file.
78350         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
78351         * modules/unictype/property-bidi-left-to-right-tests: New file.
78352         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
78353         * modules/unictype/property-bidi-other-neutral-tests: New file.
78354         * modules/unictype/property-bidi-pdf-tests: New file.
78355         * modules/unictype/property-bidi-segment-separator-tests: New file.
78356         * modules/unictype/property-bidi-whitespace-tests: New file.
78357         * modules/unictype/property-byname-tests: New file.
78358         * modules/unictype/property-combining-tests: New file.
78359         * modules/unictype/property-composite-tests: New file.
78360         * modules/unictype/property-currency-symbol-tests: New file.
78361         * modules/unictype/property-dash-tests: New file.
78362         * modules/unictype/property-decimal-digit-tests: New file.
78363         * modules/unictype/property-default-ignorable-code-point-tests: New file.
78364         * modules/unictype/property-deprecated-tests: New file.
78365         * modules/unictype/property-diacritic-tests: New file.
78366         * modules/unictype/property-extender-tests: New file.
78367         * modules/unictype/property-format-control-tests: New file.
78368         * modules/unictype/property-grapheme-base-tests: New file.
78369         * modules/unictype/property-grapheme-extend-tests: New file.
78370         * modules/unictype/property-grapheme-link-tests: New file.
78371         * modules/unictype/property-hex-digit-tests: New file.
78372         * modules/unictype/property-hyphen-tests: New file.
78373         * modules/unictype/property-id-continue-tests: New file.
78374         * modules/unictype/property-id-start-tests: New file.
78375         * modules/unictype/property-ideographic-tests: New file.
78376         * modules/unictype/property-ids-binary-operator-tests: New file.
78377         * modules/unictype/property-ids-trinary-operator-tests: New file.
78378         * modules/unictype/property-ignorable-control-tests: New file.
78379         * modules/unictype/property-iso-control-tests: New file.
78380         * modules/unictype/property-join-control-tests: New file.
78381         * modules/unictype/property-left-of-pair-tests: New file.
78382         * modules/unictype/property-line-separator-tests: New file.
78383         * modules/unictype/property-logical-order-exception-tests: New file.
78384         * modules/unictype/property-lowercase-tests: New file.
78385         * modules/unictype/property-math-tests: New file.
78386         * modules/unictype/property-non-break-tests: New file.
78387         * modules/unictype/property-not-a-character-tests: New file.
78388         * modules/unictype/property-numeric-tests: New file.
78389         * modules/unictype/property-other-alphabetic-tests: New file.
78390         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
78391         * modules/unictype/property-other-grapheme-extend-tests: New file.
78392         * modules/unictype/property-other-id-continue-tests: New file.
78393         * modules/unictype/property-other-id-start-tests: New file.
78394         * modules/unictype/property-other-lowercase-tests: New file.
78395         * modules/unictype/property-other-math-tests: New file.
78396         * modules/unictype/property-other-uppercase-tests: New file.
78397         * modules/unictype/property-paired-punctuation-tests: New file.
78398         * modules/unictype/property-paragraph-separator-tests: New file.
78399         * modules/unictype/property-pattern-syntax-tests: New file.
78400         * modules/unictype/property-pattern-white-space-tests: New file.
78401         * modules/unictype/property-private-use-tests: New file.
78402         * modules/unictype/property-punctuation-tests: New file.
78403         * modules/unictype/property-quotation-mark-tests: New file.
78404         * modules/unictype/property-radical-tests: New file.
78405         * modules/unictype/property-sentence-terminal-tests: New file.
78406         * modules/unictype/property-soft-dotted-tests: New file.
78407         * modules/unictype/property-space-tests: New file.
78408         * modules/unictype/property-terminal-punctuation-tests: New file.
78409         * modules/unictype/property-test-tests: New file.
78410         * modules/unictype/property-titlecase-tests: New file.
78411         * modules/unictype/property-unassigned-code-value-tests: New file.
78412         * modules/unictype/property-unified-ideograph-tests: New file.
78413         * modules/unictype/property-uppercase-tests: New file.
78414         * modules/unictype/property-variation-selector-tests: New file.
78415         * modules/unictype/property-white-space-tests: New file.
78416         * modules/unictype/property-xid-continue-tests: New file.
78417         * modules/unictype/property-xid-start-tests: New file.
78418         * modules/unictype/property-zero-width-tests: New file.
78419         * modules/unictype/scripts-tests: New file.
78420         * modules/unictype/syntax-c-ident-tests: New file.
78421         * modules/unictype/syntax-c-whitespace-tests: New file.
78422         * modules/unictype/syntax-java-ident-tests: New file.
78423         * modules/unictype/syntax-java-whitespace-tests: New file.
78424         * tests/unictype/test-bidi_byname.c: New file.
78425         * tests/unictype/test-bidi_name.c: New file.
78426         * tests/unictype/test-bidi_of.c: New file.
78427         * tests/unictype/test-bidi_test.c: New file.
78428         * tests/unictype/test-block_list.c: New file.
78429         * tests/unictype/test-block_of.c: New file.
78430         * tests/unictype/test-block_test.c: New file.
78431         * tests/unictype/test-categ_and.c: New file.
78432         * tests/unictype/test-categ_and_not.c: New file.
78433         * tests/unictype/test-categ_byname.c: New file.
78434         * tests/unictype/test-categ_name.c: New file.
78435         * tests/unictype/test-categ_none.c: New file.
78436         * tests/unictype/test-categ_of.c: New file.
78437         * tests/unictype/test-categ_or.c: New file.
78438         * tests/unictype/test-categ_test_withtable.c: New file.
78439         * tests/unictype/test-combining.c: New file.
78440         * tests/unictype/test-decdigit.c: New file.
78441         * tests/unictype/test-digit.c: New file.
78442         * tests/unictype/test-mirror.c: New file.
78443         * tests/unictype/test-numeric.c: New file.
78444         * tests/unictype/test-pr_byname.c: New file.
78445         * tests/unictype/test-pr_test.c: New file.
78446         * tests/unictype/test-predicate-part1.h: New file.
78447         * tests/unictype/test-predicate-part2.h: New file.
78448         * tests/unictype/test-scripts.c: New file.
78449         * tests/unictype/test-sy_c_ident.c: New file.
78450         * tests/unictype/test-sy_java_ident.c: New file.
78452         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
78453         for Unicode 5.0.0.
78454         * tests/unictype/test-categ_Cc.c: Likewise.
78455         * tests/unictype/test-categ_Cf.c: Likewise.
78456         * tests/unictype/test-categ_Cn.c: Likewise.
78457         * tests/unictype/test-categ_Co.c: Likewise.
78458         * tests/unictype/test-categ_Cs.c: Likewise.
78459         * tests/unictype/test-categ_L.c: Likewise.
78460         * tests/unictype/test-categ_Ll.c: Likewise.
78461         * tests/unictype/test-categ_Lm.c: Likewise.
78462         * tests/unictype/test-categ_Lo.c: Likewise.
78463         * tests/unictype/test-categ_Lt.c: Likewise.
78464         * tests/unictype/test-categ_Lu.c: Likewise.
78465         * tests/unictype/test-categ_M.c: Likewise.
78466         * tests/unictype/test-categ_Mc.c: Likewise.
78467         * tests/unictype/test-categ_Me.c: Likewise.
78468         * tests/unictype/test-categ_Mn.c: Likewise.
78469         * tests/unictype/test-categ_N.c: Likewise.
78470         * tests/unictype/test-categ_Nd.c: Likewise.
78471         * tests/unictype/test-categ_Nl.c: Likewise.
78472         * tests/unictype/test-categ_No.c: Likewise.
78473         * tests/unictype/test-categ_P.c: Likewise.
78474         * tests/unictype/test-categ_Pc.c: Likewise.
78475         * tests/unictype/test-categ_Pd.c: Likewise.
78476         * tests/unictype/test-categ_Pe.c: Likewise.
78477         * tests/unictype/test-categ_Pf.c: Likewise.
78478         * tests/unictype/test-categ_Pi.c: Likewise.
78479         * tests/unictype/test-categ_Po.c: Likewise.
78480         * tests/unictype/test-categ_Ps.c: Likewise.
78481         * tests/unictype/test-categ_S.c: Likewise.
78482         * tests/unictype/test-categ_Sc.c: Likewise.
78483         * tests/unictype/test-categ_Sk.c: Likewise.
78484         * tests/unictype/test-categ_Sm.c: Likewise.
78485         * tests/unictype/test-categ_So.c: Likewise.
78486         * tests/unictype/test-categ_Z.c: Likewise.
78487         * tests/unictype/test-categ_Zl.c: Likewise.
78488         * tests/unictype/test-categ_Zp.c: Likewise.
78489         * tests/unictype/test-categ_Zs.c: Likewise.
78490         * tests/unictype/test-ctype_alnum.c: Likewise.
78491         * tests/unictype/test-ctype_alpha.c: Likewise.
78492         * tests/unictype/test-ctype_blank.c: Likewise.
78493         * tests/unictype/test-ctype_cntrl.c: Likewise.
78494         * tests/unictype/test-ctype_digit.c: Likewise.
78495         * tests/unictype/test-ctype_graph.c: Likewise.
78496         * tests/unictype/test-ctype_lower.c: Likewise.
78497         * tests/unictype/test-ctype_print.c: Likewise.
78498         * tests/unictype/test-ctype_punct.c: Likewise.
78499         * tests/unictype/test-ctype_space.c: Likewise.
78500         * tests/unictype/test-ctype_upper.c: Likewise.
78501         * tests/unictype/test-ctype_xdigit.c: Likewise.
78502         * tests/unictype/test-decdigit.h: Likewise.
78503         * tests/unictype/test-digit.h: Likewise.
78504         * tests/unictype/test-numeric.h: Likewise.
78505         * tests/unictype/test-pr_alphabetic.c: Likewise.
78506         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
78507         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
78508         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
78509         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
78510         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
78511         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
78512         * tests/unictype/test-pr_bidi_control.c: Likewise.
78513         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
78514         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
78515         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
78516         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
78517         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
78518         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
78519         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
78520         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
78521         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
78522         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
78523         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
78524         * tests/unictype/test-pr_combining.c: Likewise.
78525         * tests/unictype/test-pr_composite.c: Likewise.
78526         * tests/unictype/test-pr_currency_symbol.c: Likewise.
78527         * tests/unictype/test-pr_dash.c: Likewise.
78528         * tests/unictype/test-pr_decimal_digit.c: Likewise.
78529         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
78530         * tests/unictype/test-pr_deprecated.c: Likewise.
78531         * tests/unictype/test-pr_diacritic.c: Likewise.
78532         * tests/unictype/test-pr_extender.c: Likewise.
78533         * tests/unictype/test-pr_format_control.c: Likewise.
78534         * tests/unictype/test-pr_grapheme_base.c: Likewise.
78535         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
78536         * tests/unictype/test-pr_grapheme_link.c: Likewise.
78537         * tests/unictype/test-pr_hex_digit.c: Likewise.
78538         * tests/unictype/test-pr_hyphen.c: Likewise.
78539         * tests/unictype/test-pr_id_continue.c: Likewise.
78540         * tests/unictype/test-pr_id_start.c: Likewise.
78541         * tests/unictype/test-pr_ideographic.c: Likewise.
78542         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
78543         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
78544         * tests/unictype/test-pr_ignorable_control.c: Likewise.
78545         * tests/unictype/test-pr_iso_control.c: Likewise.
78546         * tests/unictype/test-pr_join_control.c: Likewise.
78547         * tests/unictype/test-pr_left_of_pair.c: Likewise.
78548         * tests/unictype/test-pr_line_separator.c: Likewise.
78549         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
78550         * tests/unictype/test-pr_lowercase.c: Likewise.
78551         * tests/unictype/test-pr_math.c: Likewise.
78552         * tests/unictype/test-pr_non_break.c: Likewise.
78553         * tests/unictype/test-pr_not_a_character.c: Likewise.
78554         * tests/unictype/test-pr_numeric.c: Likewise.
78555         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
78556         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
78557         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
78558         * tests/unictype/test-pr_other_id_continue.c: Likewise.
78559         * tests/unictype/test-pr_other_id_start.c: Likewise.
78560         * tests/unictype/test-pr_other_lowercase.c: Likewise.
78561         * tests/unictype/test-pr_other_math.c: Likewise.
78562         * tests/unictype/test-pr_other_uppercase.c: Likewise.
78563         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
78564         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
78565         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
78566         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
78567         * tests/unictype/test-pr_private_use.c: Likewise.
78568         * tests/unictype/test-pr_punctuation.c: Likewise.
78569         * tests/unictype/test-pr_quotation_mark.c: Likewise.
78570         * tests/unictype/test-pr_radical.c: Likewise.
78571         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
78572         * tests/unictype/test-pr_soft_dotted.c: Likewise.
78573         * tests/unictype/test-pr_space.c: Likewise.
78574         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
78575         * tests/unictype/test-pr_titlecase.c: Likewise.
78576         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
78577         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
78578         * tests/unictype/test-pr_uppercase.c: Likewise.
78579         * tests/unictype/test-pr_variation_selector.c: Likewise.
78580         * tests/unictype/test-pr_white_space.c: Likewise.
78581         * tests/unictype/test-pr_xid_continue.c: Likewise.
78582         * tests/unictype/test-pr_xid_start.c: Likewise.
78583         * tests/unictype/test-pr_zero_width.c: Likewise.
78584         * tests/unictype/test-sy_c_whitespace.c: Likewise.
78585         * tests/unictype/test-sy_java_whitespace.c: Likewise.
78587 2007-11-12  Bruno Haible  <bruno@clisp.org>
78589         Unicode character classification functions.
78590         * lib/unictype.h: New file.
78591         * modules/unictype/base: New file.
78592         * modules/unictype/category-L: New file.
78593         * modules/unictype/category-Lu: New file.
78594         * modules/unictype/category-Ll: New file.
78595         * modules/unictype/category-Lt: New file.
78596         * modules/unictype/category-Lm: New file.
78597         * modules/unictype/category-Lo: New file.
78598         * modules/unictype/category-M: New file.
78599         * modules/unictype/category-Mn: New file.
78600         * modules/unictype/category-Mc: New file.
78601         * modules/unictype/category-Me: New file.
78602         * modules/unictype/category-N: New file.
78603         * modules/unictype/category-Nd: New file.
78604         * modules/unictype/category-Nl: New file.
78605         * modules/unictype/category-No: New file.
78606         * modules/unictype/category-P: New file.
78607         * modules/unictype/category-Pc: New file.
78608         * modules/unictype/category-Pd: New file.
78609         * modules/unictype/category-Ps: New file.
78610         * modules/unictype/category-Pe: New file.
78611         * modules/unictype/category-Pi: New file.
78612         * modules/unictype/category-Pf: New file.
78613         * modules/unictype/category-Po: New file.
78614         * modules/unictype/category-S: New file.
78615         * modules/unictype/category-Sm: New file.
78616         * modules/unictype/category-Sc: New file.
78617         * modules/unictype/category-Sk: New file.
78618         * modules/unictype/category-So: New file.
78619         * modules/unictype/category-Z: New file.
78620         * modules/unictype/category-Zs: New file.
78621         * modules/unictype/category-Zl: New file.
78622         * modules/unictype/category-Zp: New file.
78623         * modules/unictype/category-C: New file.
78624         * modules/unictype/category-Cc: New file.
78625         * modules/unictype/category-Cf: New file.
78626         * modules/unictype/category-Cs: New file.
78627         * modules/unictype/category-Co: New file.
78628         * modules/unictype/category-Cn: New file.
78629         * modules/unictype/category-or: New file.
78630         * modules/unictype/category-of: New file.
78631         * modules/unictype/category-test: New file.
78632         * modules/unictype/category-test-withtable: New file.
78633         * modules/unictype/category-byname: New file.
78634         * modules/unictype/category-none: New file.
78635         * modules/unictype/category-and: New file.
78636         * modules/unictype/category-and-not: New file.
78637         * modules/unictype/category-name: New file.
78638         * modules/unictype/combining-class: New file.
78639         * modules/unictype/category-all: New file.
78640         * modules/unictype/bidicategory-all: New file.
78641         * modules/unictype/bidicategory-byname: New file.
78642         * modules/unictype/bidicategory-name: New file.
78643         * modules/unictype/bidicategory-of: New file.
78644         * modules/unictype/bidicategory-test: New file.
78645         * modules/unictype/decimal-digit: New file.
78646         * modules/unictype/digit: New file.
78647         * modules/unictype/numeric: New file.
78648         * modules/unictype/mirror: New file.
78649         * modules/unictype/property-white-space: New file.
78650         * modules/unictype/property-alphabetic: New file.
78651         * modules/unictype/property-other-alphabetic: New file.
78652         * modules/unictype/property-not-a-character: New file.
78653         * modules/unictype/property-default-ignorable-code-point: New file.
78654         * modules/unictype/property-other-default-ignorable-code-point: New
78655         file.
78656         * modules/unictype/property-deprecated: New file.
78657         * modules/unictype/property-logical-order-exception: New file.
78658         * modules/unictype/property-variation-selector: New file.
78659         * modules/unictype/property-private-use: New file.
78660         * modules/unictype/property-unassigned-code-value: New file.
78661         * modules/unictype/property-uppercase: New file.
78662         * modules/unictype/property-other-uppercase: New file.
78663         * modules/unictype/property-lowercase: New file.
78664         * modules/unictype/property-other-lowercase: New file.
78665         * modules/unictype/property-titlecase: New file.
78666         * modules/unictype/property-soft-dotted: New file.
78667         * modules/unictype/property-id-start: New file.
78668         * modules/unictype/property-other-id-start: New file.
78669         * modules/unictype/property-id-continue: New file.
78670         * modules/unictype/property-other-id-continue: New file.
78671         * modules/unictype/property-xid-start: New file.
78672         * modules/unictype/property-xid-continue: New file.
78673         * modules/unictype/property-pattern-white-space: New file.
78674         * modules/unictype/property-pattern-syntax: New file.
78675         * modules/unictype/property-join-control: New file.
78676         * modules/unictype/property-grapheme-base: New file.
78677         * modules/unictype/property-grapheme-extend: New file.
78678         * modules/unictype/property-other-grapheme-extend: New file.
78679         * modules/unictype/property-grapheme-link: New file.
78680         * modules/unictype/property-bidi-control: New file.
78681         * modules/unictype/property-bidi-left-to-right: New file.
78682         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
78683         * modules/unictype/property-bidi-arabic-right-to-left: New file.
78684         * modules/unictype/property-bidi-european-digit: New file.
78685         * modules/unictype/property-bidi-eur-num-separator: New file.
78686         * modules/unictype/property-bidi-eur-num-terminator: New file.
78687         * modules/unictype/property-bidi-arabic-digit: New file.
78688         * modules/unictype/property-bidi-common-separator: New file.
78689         * modules/unictype/property-bidi-block-separator: New file.
78690         * modules/unictype/property-bidi-segment-separator: New file.
78691         * modules/unictype/property-bidi-whitespace: New file.
78692         * modules/unictype/property-bidi-non-spacing-mark: New file.
78693         * modules/unictype/property-bidi-boundary-neutral: New file.
78694         * modules/unictype/property-bidi-pdf: New file.
78695         * modules/unictype/property-bidi-embedding-or-override: New file.
78696         * modules/unictype/property-bidi-other-neutral: New file.
78697         * modules/unictype/property-hex-digit: New file.
78698         * modules/unictype/property-ascii-hex-digit: New file.
78699         * modules/unictype/property-ideographic: New file.
78700         * modules/unictype/property-unified-ideograph: New file.
78701         * modules/unictype/property-radical: New file.
78702         * modules/unictype/property-ids-binary-operator: New file.
78703         * modules/unictype/property-ids-trinary-operator: New file.
78704         * modules/unictype/property-zero-width: New file.
78705         * modules/unictype/property-space: New file.
78706         * modules/unictype/property-non-break: New file.
78707         * modules/unictype/property-iso-control: New file.
78708         * modules/unictype/property-format-control: New file.
78709         * modules/unictype/property-dash: New file.
78710         * modules/unictype/property-hyphen: New file.
78711         * modules/unictype/property-punctuation: New file.
78712         * modules/unictype/property-line-separator: New file.
78713         * modules/unictype/property-paragraph-separator: New file.
78714         * modules/unictype/property-quotation-mark: New file.
78715         * modules/unictype/property-sentence-terminal: New file.
78716         * modules/unictype/property-terminal-punctuation: New file.
78717         * modules/unictype/property-currency-symbol: New file.
78718         * modules/unictype/property-math: New file.
78719         * modules/unictype/property-other-math: New file.
78720         * modules/unictype/property-paired-punctuation: New file.
78721         * modules/unictype/property-left-of-pair: New file.
78722         * modules/unictype/property-combining: New file.
78723         * modules/unictype/property-composite: New file.
78724         * modules/unictype/property-decimal-digit: New file.
78725         * modules/unictype/property-numeric: New file.
78726         * modules/unictype/property-diacritic: New file.
78727         * modules/unictype/property-extender: New file.
78728         * modules/unictype/property-ignorable-control: New file.
78729         * modules/unictype/property-test: New file.
78730         * modules/unictype/property-byname: New file.
78731         * modules/unictype/property-all: New file.
78732         * modules/unictype/scripts: New file.
78733         * modules/unictype/scripts-all: New file.
78734         * modules/unictype/block-of: New file.
78735         * modules/unictype/block-test: New file.
78736         * modules/unictype/block-list: New file.
78737         * modules/unictype/block-all: New file.
78738         * modules/unictype/syntax-c-whitespace: New file.
78739         * modules/unictype/syntax-java-whitespace: New file.
78740         * modules/unictype/syntax-c-ident: New file.
78741         * modules/unictype/syntax-java-ident: New file.
78742         * modules/unictype/ctype-alnum: New file.
78743         * modules/unictype/ctype-alpha: New file.
78744         * modules/unictype/ctype-cntrl: New file.
78745         * modules/unictype/ctype-digit: New file.
78746         * modules/unictype/ctype-graph: New file.
78747         * modules/unictype/ctype-lower: New file.
78748         * modules/unictype/ctype-print: New file.
78749         * modules/unictype/ctype-punct: New file.
78750         * modules/unictype/ctype-space: New file.
78751         * modules/unictype/ctype-upper: New file.
78752         * modules/unictype/ctype-xdigit: New file.
78753         * modules/unictype/ctype-blank: New file.
78754         * lib/unictype/bidi_byname.c: New file.
78755         * lib/unictype/bidi_name.c: New file.
78756         * lib/unictype/bidi_of.c: New file.
78757         * lib/unictype/bidi_test.c: New file.
78758         * lib/unictype/bitmap.h: New file.
78759         * lib/unictype/block_test.c: New file.
78760         * lib/unictype/blocks.c: New file.
78761         * lib/unictype/categ_C.c: New file.
78762         * lib/unictype/categ_Cc.c: New file.
78763         * lib/unictype/categ_Cf.c: New file.
78764         * lib/unictype/categ_Cn.c: New file.
78765         * lib/unictype/categ_Co.c: New file.
78766         * lib/unictype/categ_Cs.c: New file.
78767         * lib/unictype/categ_L.c: New file.
78768         * lib/unictype/categ_Ll.c: New file.
78769         * lib/unictype/categ_Lm.c: New file.
78770         * lib/unictype/categ_Lo.c: New file.
78771         * lib/unictype/categ_Lt.c: New file.
78772         * lib/unictype/categ_Lu.c: New file.
78773         * lib/unictype/categ_M.c: New file.
78774         * lib/unictype/categ_Mc.c: New file.
78775         * lib/unictype/categ_Me.c: New file.
78776         * lib/unictype/categ_Mn.c: New file.
78777         * lib/unictype/categ_N.c: New file.
78778         * lib/unictype/categ_Nd.c: New file.
78779         * lib/unictype/categ_Nl.c: New file.
78780         * lib/unictype/categ_No.c: New file.
78781         * lib/unictype/categ_P.c: New file.
78782         * lib/unictype/categ_Pc.c: New file.
78783         * lib/unictype/categ_Pd.c: New file.
78784         * lib/unictype/categ_Pe.c: New file.
78785         * lib/unictype/categ_Pf.c: New file.
78786         * lib/unictype/categ_Pi.c: New file.
78787         * lib/unictype/categ_Po.c: New file.
78788         * lib/unictype/categ_Ps.c: New file.
78789         * lib/unictype/categ_S.c: New file.
78790         * lib/unictype/categ_Sc.c: New file.
78791         * lib/unictype/categ_Sk.c: New file.
78792         * lib/unictype/categ_Sm.c: New file.
78793         * lib/unictype/categ_So.c: New file.
78794         * lib/unictype/categ_Z.c: New file.
78795         * lib/unictype/categ_Zl.c: New file.
78796         * lib/unictype/categ_Zp.c: New file.
78797         * lib/unictype/categ_Zs.c: New file.
78798         * lib/unictype/categ_and.c: New file.
78799         * lib/unictype/categ_and_not.c: New file.
78800         * lib/unictype/categ_byname.c: New file.
78801         * lib/unictype/categ_name.c: New file.
78802         * lib/unictype/categ_none.c: New file.
78803         * lib/unictype/categ_of.c: New file.
78804         * lib/unictype/categ_or.c: New file.
78805         * lib/unictype/categ_test.c: New file.
78806         * lib/unictype/combining.c: New file.
78807         * lib/unictype/ctype_alnum.c: New file.
78808         * lib/unictype/ctype_alpha.c: New file.
78809         * lib/unictype/ctype_blank.c: New file.
78810         * lib/unictype/ctype_cntrl.c: New file.
78811         * lib/unictype/ctype_digit.c: New file.
78812         * lib/unictype/ctype_graph.c: New file.
78813         * lib/unictype/ctype_lower.c: New file.
78814         * lib/unictype/ctype_print.c: New file.
78815         * lib/unictype/ctype_punct.c: New file.
78816         * lib/unictype/ctype_space.c: New file.
78817         * lib/unictype/ctype_upper.c: New file.
78818         * lib/unictype/ctype_xdigit.c: New file.
78819         * lib/unictype/decdigit.c: New file.
78820         * lib/unictype/digit.c: New file.
78821         * lib/unictype/identsyntaxmap.h: New file.
78822         * lib/unictype/mirror.c: New file.
78823         * lib/unictype/numeric.c: New file.
78824         * lib/unictype/pr_alphabetic.c: New file.
78825         * lib/unictype/pr_ascii_hex_digit.c: New file.
78826         * lib/unictype/pr_bidi_arabic_digit.c: New file.
78827         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
78828         * lib/unictype/pr_bidi_block_separator.c: New file.
78829         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
78830         * lib/unictype/pr_bidi_common_separator.c: New file.
78831         * lib/unictype/pr_bidi_control.c: New file.
78832         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
78833         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
78834         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
78835         * lib/unictype/pr_bidi_european_digit.c: New file.
78836         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
78837         * lib/unictype/pr_bidi_left_to_right.c: New file.
78838         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
78839         * lib/unictype/pr_bidi_other_neutral.c: New file.
78840         * lib/unictype/pr_bidi_pdf.c: New file.
78841         * lib/unictype/pr_bidi_segment_separator.c: New file.
78842         * lib/unictype/pr_bidi_whitespace.c: New file.
78843         * lib/unictype/pr_byname.c: New file.
78844         * lib/unictype/pr_byname.gperf: New file.
78845         * lib/unictype/pr_combining.c: New file.
78846         * lib/unictype/pr_composite.c: New file.
78847         * lib/unictype/pr_currency_symbol.c: New file.
78848         * lib/unictype/pr_dash.c: New file.
78849         * lib/unictype/pr_decimal_digit.c: New file.
78850         * lib/unictype/pr_default_ignorable_code_point.c: New file.
78851         * lib/unictype/pr_deprecated.c: New file.
78852         * lib/unictype/pr_diacritic.c: New file.
78853         * lib/unictype/pr_extender.c: New file.
78854         * lib/unictype/pr_format_control.c: New file.
78855         * lib/unictype/pr_grapheme_base.c: New file.
78856         * lib/unictype/pr_grapheme_extend.c: New file.
78857         * lib/unictype/pr_grapheme_link.c: New file.
78858         * lib/unictype/pr_hex_digit.c: New file.
78859         * lib/unictype/pr_hyphen.c: New file.
78860         * lib/unictype/pr_id_continue.c: New file.
78861         * lib/unictype/pr_id_start.c: New file.
78862         * lib/unictype/pr_ideographic.c: New file.
78863         * lib/unictype/pr_ids_binary_operator.c: New file.
78864         * lib/unictype/pr_ids_trinary_operator.c: New file.
78865         * lib/unictype/pr_ignorable_control.c: New file.
78866         * lib/unictype/pr_iso_control.c: New file.
78867         * lib/unictype/pr_join_control.c: New file.
78868         * lib/unictype/pr_left_of_pair.c: New file.
78869         * lib/unictype/pr_line_separator.c: New file.
78870         * lib/unictype/pr_logical_order_exception.c: New file.
78871         * lib/unictype/pr_lowercase.c: New file.
78872         * lib/unictype/pr_math.c: New file.
78873         * lib/unictype/pr_non_break.c: New file.
78874         * lib/unictype/pr_not_a_character.c: New file.
78875         * lib/unictype/pr_numeric.c: New file.
78876         * lib/unictype/pr_other_alphabetic.c: New file.
78877         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
78878         * lib/unictype/pr_other_grapheme_extend.c: New file.
78879         * lib/unictype/pr_other_id_continue.c: New file.
78880         * lib/unictype/pr_other_id_start.c: New file.
78881         * lib/unictype/pr_other_lowercase.c: New file.
78882         * lib/unictype/pr_other_math.c: New file.
78883         * lib/unictype/pr_other_uppercase.c: New file.
78884         * lib/unictype/pr_paired_punctuation.c: New file.
78885         * lib/unictype/pr_paragraph_separator.c: New file.
78886         * lib/unictype/pr_pattern_syntax.c: New file.
78887         * lib/unictype/pr_pattern_white_space.c: New file.
78888         * lib/unictype/pr_private_use.c: New file.
78889         * lib/unictype/pr_punctuation.c: New file.
78890         * lib/unictype/pr_quotation_mark.c: New file.
78891         * lib/unictype/pr_radical.c: New file.
78892         * lib/unictype/pr_sentence_terminal.c: New file.
78893         * lib/unictype/pr_soft_dotted.c: New file.
78894         * lib/unictype/pr_space.c: New file.
78895         * lib/unictype/pr_terminal_punctuation.c: New file.
78896         * lib/unictype/pr_test.c: New file.
78897         * lib/unictype/pr_titlecase.c: New file.
78898         * lib/unictype/pr_unassigned_code_value.c: New file.
78899         * lib/unictype/pr_unified_ideograph.c: New file.
78900         * lib/unictype/pr_uppercase.c: New file.
78901         * lib/unictype/pr_variation_selector.c: New file.
78902         * lib/unictype/pr_white_space.c: New file.
78903         * lib/unictype/pr_xid_continue.c: New file.
78904         * lib/unictype/pr_xid_start.c: New file.
78905         * lib/unictype/pr_zero_width.c: New file.
78906         * lib/unictype/scripts.c: New file.
78907         * lib/unictype/sy_c_ident.c: New file.
78908         * lib/unictype/sy_c_whitespace.c: New file.
78909         * lib/unictype/sy_java_ident.c: New file.
78910         * lib/unictype/sy_java_whitespace.c: New file.
78912         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
78913         Unicode 5.0.0.
78914         * lib/unictype/blocks.h: Likewise.
78915         * lib/unictype/categ_C.h: Likewise.
78916         * lib/unictype/categ_Cc.h: Likewise.
78917         * lib/unictype/categ_Cf.h: Likewise.
78918         * lib/unictype/categ_Cn.h: Likewise.
78919         * lib/unictype/categ_Co.h: Likewise.
78920         * lib/unictype/categ_Cs.h: Likewise.
78921         * lib/unictype/categ_L.h: Likewise.
78922         * lib/unictype/categ_Ll.h: Likewise.
78923         * lib/unictype/categ_Lm.h: Likewise.
78924         * lib/unictype/categ_Lo.h: Likewise.
78925         * lib/unictype/categ_Lt.h: Likewise.
78926         * lib/unictype/categ_Lu.h: Likewise.
78927         * lib/unictype/categ_M.h: Likewise.
78928         * lib/unictype/categ_Mc.h: Likewise.
78929         * lib/unictype/categ_Me.h: Likewise.
78930         * lib/unictype/categ_Mn.h: Likewise.
78931         * lib/unictype/categ_N.h: Likewise.
78932         * lib/unictype/categ_Nd.h: Likewise.
78933         * lib/unictype/categ_Nl.h: Likewise.
78934         * lib/unictype/categ_No.h: Likewise.
78935         * lib/unictype/categ_P.h: Likewise.
78936         * lib/unictype/categ_Pc.h: Likewise.
78937         * lib/unictype/categ_Pd.h: Likewise.
78938         * lib/unictype/categ_Pe.h: Likewise.
78939         * lib/unictype/categ_Pf.h: Likewise.
78940         * lib/unictype/categ_Pi.h: Likewise.
78941         * lib/unictype/categ_Po.h: Likewise.
78942         * lib/unictype/categ_Ps.h: Likewise.
78943         * lib/unictype/categ_S.h: Likewise.
78944         * lib/unictype/categ_Sc.h: Likewise.
78945         * lib/unictype/categ_Sk.h: Likewise.
78946         * lib/unictype/categ_Sm.h: Likewise.
78947         * lib/unictype/categ_So.h: Likewise.
78948         * lib/unictype/categ_Z.h: Likewise.
78949         * lib/unictype/categ_Zl.h: Likewise.
78950         * lib/unictype/categ_Zp.h: Likewise.
78951         * lib/unictype/categ_Zs.h: Likewise.
78952         * lib/unictype/categ_of.h: Likewise.
78953         * lib/unictype/combining.h: Likewise.
78954         * lib/unictype/ctype_alnum.h: Likewise.
78955         * lib/unictype/ctype_alpha.h: Likewise.
78956         * lib/unictype/ctype_blank.h: Likewise.
78957         * lib/unictype/ctype_cntrl.h: Likewise.
78958         * lib/unictype/ctype_digit.h: Likewise.
78959         * lib/unictype/ctype_graph.h: Likewise.
78960         * lib/unictype/ctype_lower.h: Likewise.
78961         * lib/unictype/ctype_print.h: Likewise.
78962         * lib/unictype/ctype_punct.h: Likewise.
78963         * lib/unictype/ctype_space.h: Likewise.
78964         * lib/unictype/ctype_upper.h: Likewise.
78965         * lib/unictype/ctype_xdigit.h: Likewise.
78966         * lib/unictype/decdigit.h: Likewise.
78967         * lib/unictype/digit.h: Likewise.
78968         * lib/unictype/mirror.h: Likewise.
78969         * lib/unictype/numeric.h: Likewise.
78970         * lib/unictype/pr_alphabetic.h: Likewise.
78971         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
78972         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
78973         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
78974         * lib/unictype/pr_bidi_block_separator.h: Likewise.
78975         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
78976         * lib/unictype/pr_bidi_common_separator.h: Likewise.
78977         * lib/unictype/pr_bidi_control.h: Likewise.
78978         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
78979         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
78980         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
78981         * lib/unictype/pr_bidi_european_digit.h: Likewise.
78982         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
78983         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
78984         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
78985         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
78986         * lib/unictype/pr_bidi_pdf.h: Likewise.
78987         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
78988         * lib/unictype/pr_bidi_whitespace.h: Likewise.
78989         * lib/unictype/pr_combining.h: Likewise.
78990         * lib/unictype/pr_composite.h: Likewise.
78991         * lib/unictype/pr_currency_symbol.h: Likewise.
78992         * lib/unictype/pr_dash.h: Likewise.
78993         * lib/unictype/pr_decimal_digit.h: Likewise.
78994         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
78995         * lib/unictype/pr_deprecated.h: Likewise.
78996         * lib/unictype/pr_diacritic.h: Likewise.
78997         * lib/unictype/pr_extender.h: Likewise.
78998         * lib/unictype/pr_format_control.h: Likewise.
78999         * lib/unictype/pr_grapheme_base.h: Likewise.
79000         * lib/unictype/pr_grapheme_extend.h: Likewise.
79001         * lib/unictype/pr_grapheme_link.h: Likewise.
79002         * lib/unictype/pr_hex_digit.h: Likewise.
79003         * lib/unictype/pr_hyphen.h: Likewise.
79004         * lib/unictype/pr_id_continue.h: Likewise.
79005         * lib/unictype/pr_id_start.h: Likewise.
79006         * lib/unictype/pr_ideographic.h: Likewise.
79007         * lib/unictype/pr_ids_binary_operator.h: Likewise.
79008         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
79009         * lib/unictype/pr_ignorable_control.h: Likewise.
79010         * lib/unictype/pr_iso_control.h: Likewise.
79011         * lib/unictype/pr_join_control.h: Likewise.
79012         * lib/unictype/pr_left_of_pair.h: Likewise.
79013         * lib/unictype/pr_line_separator.h: Likewise.
79014         * lib/unictype/pr_logical_order_exception.h: Likewise.
79015         * lib/unictype/pr_lowercase.h: Likewise.
79016         * lib/unictype/pr_math.h: Likewise.
79017         * lib/unictype/pr_non_break.h: Likewise.
79018         * lib/unictype/pr_not_a_character.h: Likewise.
79019         * lib/unictype/pr_numeric.h: Likewise.
79020         * lib/unictype/pr_other_alphabetic.h: Likewise.
79021         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
79022         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
79023         * lib/unictype/pr_other_id_continue.h: Likewise.
79024         * lib/unictype/pr_other_id_start.h: Likewise.
79025         * lib/unictype/pr_other_lowercase.h: Likewise.
79026         * lib/unictype/pr_other_math.h: Likewise.
79027         * lib/unictype/pr_other_uppercase.h: Likewise.
79028         * lib/unictype/pr_paired_punctuation.h: Likewise.
79029         * lib/unictype/pr_paragraph_separator.h: Likewise.
79030         * lib/unictype/pr_pattern_syntax.h: Likewise.
79031         * lib/unictype/pr_pattern_white_space.h: Likewise.
79032         * lib/unictype/pr_private_use.h: Likewise.
79033         * lib/unictype/pr_punctuation.h: Likewise.
79034         * lib/unictype/pr_quotation_mark.h: Likewise.
79035         * lib/unictype/pr_radical.h: Likewise.
79036         * lib/unictype/pr_sentence_terminal.h: Likewise.
79037         * lib/unictype/pr_soft_dotted.h: Likewise.
79038         * lib/unictype/pr_space.h: Likewise.
79039         * lib/unictype/pr_terminal_punctuation.h: Likewise.
79040         * lib/unictype/pr_titlecase.h: Likewise.
79041         * lib/unictype/pr_unassigned_code_value.h: Likewise.
79042         * lib/unictype/pr_unified_ideograph.h: Likewise.
79043         * lib/unictype/pr_uppercase.h: Likewise.
79044         * lib/unictype/pr_variation_selector.h: Likewise.
79045         * lib/unictype/pr_white_space.h: Likewise.
79046         * lib/unictype/pr_xid_continue.h: Likewise.
79047         * lib/unictype/pr_xid_start.h: Likewise.
79048         * lib/unictype/pr_zero_width.h: Likewise.
79049         * lib/unictype/scripts.h: Likewise.
79050         * lib/unictype/scripts_byname.gperf: Likewise.
79051         * lib/unictype/sy_c_ident.h: Likewise.
79052         * lib/unictype/sy_c_whitespace.h: Likewise.
79053         * lib/unictype/sy_java_ident.h: Likewise.
79054         * lib/unictype/sy_java_whitespace.h: Likewise.
79056         * lib/unictype/Makefile: New file.
79057         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
79058         glibc.
79059         * lib/unictype/3level.h: New file, copied from glibc.
79060         * lib/unictype/3levelbit.h: New file.
79062 2007-11-11  Bruno Haible  <bruno@clisp.org>
79064         * modules/gperf: New file.
79065         * modules/iconv_open (Depends-on): Add it.
79066         (Makefile.am): Remove the GPERF definition.
79068 2007-11-11  Bruno Haible  <bruno@clisp.org>
79070         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
79071         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
79073 2007-11-11  Bruno Haible  <bruno@clisp.org>
79075         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
79076         (usage): Remove function.
79078 2007-11-11  Bruno Haible  <bruno@clisp.org>
79080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
79081         gl_FUNC_CEILF_LIBS.
79082         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
79083         gl_FUNC_CEIL_LIBS.
79084         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
79085         gl_FUNC_CEILL_LIBS.
79086         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
79087         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
79088         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
79090 2007-11-11  Bruno Haible  <bruno@clisp.org>
79092         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
79093         roundf were declared but do not exist on functions.
79094         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
79095         roundl were declared but do not exist on functions.
79096         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
79097         HAVE_FLOORL_AND_CEILL, respectively.
79098         Needed for Sun C on Solaris 10.
79100 2007-11-11  Bruno Haible  <bruno@clisp.org>
79102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
79103         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
79104         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
79105         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
79106         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
79107         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
79108         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
79109         HAVE_DECL_ROUNDF.
79110         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
79111         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
79112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
79113         of HAVE_DECL_ROUND*.
79114         * modules/math (Makefile.am): Update.
79116 2007-11-10  Bruno Haible  <bruno@clisp.org>
79118         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
79119         ptrdiff_t as m4/intl.m4.
79121 2007-11-10  Jim Meyering  <meyering@redhat.com>
79123         Avoid link failure for the argmatch test.
79124         * tests/test-argmatch.c (usage): Define function to avoid a link
79125         failure: argmatch_die requires a usage function.
79127 2007-11-09  Bruno Haible  <bruno@clisp.org>
79129         * doc/functions/snprintf.texi: Mention BeOS deficiency.
79130         * doc/functions/vsnprintf.texi: Likewise.
79131         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
79132         with a size argument < 2.
79134 2007-11-09  Bruno Haible  <bruno@clisp.org>
79136         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
79137         buffer. Fixes an inefficiency introduced on 2007-11-03.
79139 2007-11-09  Bruno Haible  <bruno@clisp.org>
79141         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
79142         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
79144 2007-11-08  Jim Meyering  <meyering@redhat.com>
79146         Change cache variable name prefix "jm_" to "gl_" everywhere.
79147         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
79148         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
79149         * m4/uptime.m4: s/gl_/jm_/
79151 2007-11-07  Bruno Haible  <bruno@clisp.org>
79153         Update to GNU gettext 0.17.
79154         * m4/intl.m4: Update to GNU gettext 0.17.
79155         * m4/po.m4: Likewise.
79156         * modules/gettext (Files): Remove m4/ulonglong.m4.
79157         (configure.ac): Require gettext infrastructure from version 0.17.
79159 2007-11-06  Bruno Haible  <bruno@clisp.org>
79161         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
79162         symbolic values are not defined in a public header.
79163         * lib/freadable.c (freadable) [QNX]: Likewise.
79164         * lib/freadahead.c (freadahead) [QNX]: Likewise.
79165         * lib/freading.c (freading) [QNX]: Likewise.
79166         * lib/fseterr.c (fseterr) [QNX]: Likewise.
79167         * lib/fwritable.c (fwritable) [QNX]: Likewise.
79168         * lib/fwriting.c (fwriting) [QNX]: Likewise.
79169         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
79170         Reported by Alain Magloire.
79172         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
79174 2007-11-05  Bruno Haible  <bruno@clisp.org>
79176         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
79177         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
79178         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
79179         Reported by Eric Blake.
79181 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79182             Bruno Haible  <bruno@clisp.org>
79184         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
79185         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
79186         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
79187         (malloc): Undefine also before including <stdlib.h>.
79188         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
79189         Needed on OSF/1 4.0.
79191 2007-11-05  Jim Meyering  <meyering@redhat.com>
79193         git-version-gen: sync from coreutils.
79194         * build-aux/git-version-gen: Add comments.
79195         Change the first '-' to '.' in the snapshot version string,
79196         e.g., 6.9-377-08144 -> 6.9.377-08144
79197         Remove first parameter.
79198         Don't declare a version "-dirty" merely because a time
79199         stamp has changed.
79201 2007-11-04  Bruno Haible  <bruno@clisp.org>
79203         * lib/lock.h: Protect all macro definitions containing an 'if'
79204         statement through a "do { ... } while (0)".
79205         * lib/tls.h: Likewise.
79207 2007-11-04  Bruno Haible  <bruno@clisp.org>
79209         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
79211 2007-11-04  Bruno Haible  <bruno@clisp.org>
79213         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
79214         * modules/fprintf-posix (Depends-on): Add nocrash.
79215         * modules/snprintf-posix (Depends-on): Likewise.
79216         * modules/sprintf-posix (Depends-on): Likewise.
79217         * modules/vasnprintf-posix (Depends-on): Likewise.
79218         * modules/vasprintf-posix (Depends-on): Likewise.
79219         * modules/vfprintf-posix (Depends-on): Likewise.
79220         * modules/vsnprintf-posix (Depends-on): Likewise.
79221         * modules/vsprintf-posix (Depends-on): Likewise.
79222         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79223         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79224         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79225         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79226         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79227         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79228         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79230 2007-11-04  Bruno Haible  <bruno@clisp.org>
79232         * modules/nocrash: New file.
79233         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
79234         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
79236 2007-11-04  Bruno Haible  <bruno@clisp.org>
79238         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
79239         precision handling.
79240         * tests/test-vasprintf-posix.c (test_function): Likewise.
79241         * tests/test-snprintf-posix.h (test_function): Likewise.
79242         * tests/test-sprintf-posix.h (test_function): Likewise.
79244         Fix *printf behaviour for large precisions on mingw and BeOS.
79245         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
79246         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
79247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
79248         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79249         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79250         gl_PRINTF_PRECISION and test its result. Invoke
79251         gl_PREREQ_VASNPRINTF_PRECISION.
79252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79253         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79254         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79256         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79257         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79258         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79259         * doc/functions/fprintf.texi: Update.
79260         * doc/functions/printf.texi: Update.
79261         * doc/functions/snprintf.texi: Update.
79262         * doc/functions/sprintf.texi: Update.
79263         * doc/functions/vfprintf.texi: Update.
79264         * doc/functions/vprintf.texi: Update.
79265         * doc/functions/vsnprintf.texi: Update.
79266         * doc/functions/vsprintf.texi: Update.
79268 2007-11-04  Bruno Haible  <bruno@clisp.org>
79270         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
79272 2007-11-04  Bruno Haible  <bruno@clisp.org>
79274         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
79275         Reported by Sylvain Beucler <beuc@gnu.org>.
79277 2007-11-03  Bruno Haible  <bruno@clisp.org>
79279         * tests/test-fprintf-posix2.sh: New file.
79280         * tests/test-fprintf-posix2.c: New file.
79281         * modules/fprintf-posix-tests (Files): Add them.
79282         (TESTS): Add test-fprintf-posix2.sh.
79283         (configure.ac): Check for getrlimit and setrlimit.
79284         (check_PROGRAMS): Add test-fprintf-posix2.
79286         * tests/test-printf-posix2.sh: New file.
79287         * tests/test-printf-posix2.c: New file.
79288         * modules/printf-posix-tests (Files): Add them.
79289         (TESTS): Add test-printf-posix2.sh.
79290         (configure.ac): Check for getrlimit and setrlimit.
79291         (check_PROGRAMS): Add test-printf-posix2.
79293         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
79294         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
79295         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
79296         (decode_double): New function, copied from decode_long_double.
79297         (scale10_round_decimal_decoded): New function, extracted from
79298         scale10_round_decimal_long_double.
79299         (scale10_round_decimal_long_double): Use it.
79300         (scale10_round_decimal_double): New function.
79301         (floorlog10): New function.
79302         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
79303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
79304         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79305         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79306         gl_PRINTF_ENOMEM and test its result. Invoke
79307         gl_PREREQ_VASNPRINTF_ENOMEM.
79308         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79309         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79310         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79311         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79312         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79314         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79315         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
79316         * modules/snprintf-posix (Depends-on): Likewise.
79317         * modules/sprintf-posix (Depends-on): Likewise.
79318         * modules/vasnprintf-posix (Depends-on): Likewise.
79319         * modules/vasprintf-posix (Depends-on): Likewise.
79320         * modules/vfprintf-posix (Depends-on): Likewise.
79321         * modules/vsnprintf-posix (Depends-on): Likewise.
79322         * modules/vsprintf-posix (Depends-on): Likewise.
79323         * doc/functions/fprintf.texi: Update.
79324         * doc/functions/printf.texi: Update.
79325         * doc/functions/snprintf.texi: Update.
79326         * doc/functions/sprintf.texi: Update.
79327         * doc/functions/vfprintf.texi: Update.
79328         * doc/functions/vprintf.texi: Update.
79329         * doc/functions/vsnprintf.texi: Update.
79330         * doc/functions/vsprintf.texi: Update.
79332 2007-11-03  Bruno Haible  <bruno@clisp.org>
79334         * modules/frexp-nolibm-tests: New file.
79336         * modules/frexp-nolibm: New file.
79337         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
79339 2007-11-03  Bruno Haible  <bruno@clisp.org>
79341         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
79342         value is C99 compliant.
79343         Needed for OSF/1 5.1.
79345 2007-11-03  Bruno Haible  <bruno@clisp.org>
79347         Fix out-of-memory handling of vasnprintf.
79348         * lib/printf-parse.c: Include <errno.h>.
79349         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
79350         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
79351         is already set.
79353 2007-11-02  Eric Blake  <ebb9@byu.net>
79355         Fix tests on cygwin.
79356         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
79358 2007-11-01  Bruno Haible  <bruno@clisp.org>
79360         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
79361         warning.
79362         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
79363         needed for POSIX compatibility.
79365 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79367         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
79368         for compatibility with GNU.
79370 2007-11-01  Bruno Haible  <bruno@clisp.org>
79372         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
79373         (putenv): Renamed from rpl_putenv. Change argument type from
79374         'const char *' to 'char *'.
79375         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
79376         of defining putenv in config.h, just set REPLACE_PUTENV.
79377         * modules/putenv (Depends-on): Add stdlib.
79378         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79379         (Include): Use <stdlib.h>.
79380         * lib/stdlib.in.h (putenv): New declaration.
79381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
79382         REPLACE_PUTENV.
79383         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
79384         REPLACE_PUTENV.
79385         Needed for MacOS X 10.5.0.
79386         Reported by Peter O'Gorman <peter@pogma.com>.
79388 2007-11-01  Jim Meyering  <meyering@redhat.com>
79390         Treat an empty date string exactly like "0".
79391         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
79392         if the remaining date string (to be parsed) is empty, use "0".
79393         Reported by Mischa Molhoek and discussed in this thread:
79394         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
79396 2007-10-31  Bruno Haible  <bruno@clisp.org>
79398         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
79399         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
79400         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
79401         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
79402         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
79403         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
79405 2007-10-31  Bruno Haible  <bruno@clisp.org>
79407         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
79408         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
79409         (AC_TYPE_LONG_LONG_INT): Use it.
79410         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
79411         it as well.
79412         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
79413         to m4/longlong.m4.
79414         * modules/stdint (Files): Remove m4/ulonglong.m4.
79415         * modules/strtoull (Files): Use m4/longlong.m4 instead of
79416         m4/ulonglong.m4.
79417         * modules/strtoumax (Files): Likewise.
79419 2007-10-30  Bruno Haible  <bruno@clisp.org>
79421         * modules/xvasprintf-posix: New file.
79422         Suggested by Eric Blake.
79424 2007-10-30  Bruno Haible  <bruno@clisp.org>
79426         * modules/xprintf-posix-tests: New file.
79427         * tests/test-xprintf-posix.sh: New file.
79428         * tests/test-xprintf-posix.c: New file.
79429         * tests/test-xfprintf-posix.c: New file.
79431         * modules/xprintf-posix: New file.
79433 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79435         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
79436         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
79437         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
79439 2007-10-29  Bruno Haible  <bruno@clisp.org>
79441         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
79442         contain the special marker '_cv_'.
79443         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
79444         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
79445         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
79446         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
79447         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
79448         Reported by Ralf Wildenhues.
79450 2007-10-29  Bruno Haible  <bruno@clisp.org>
79452         * gnulib-tool (func_import): When --lgpl is not specified, set
79453         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
79454         GPLv3.
79455         Reported by Simon Josefsson.
79457 2007-10-28  Bruno Haible  <bruno@clisp.org>
79459         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
79460         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
79461         HAVE_DECL_ISFINITE.
79462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
79463         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
79464         HAVE_DECL_ISFINITE.
79466 2007-10-28  Bruno Haible  <bruno@clisp.org>
79468         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
79469         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
79471 2007-10-28  Bruno Haible  <bruno@clisp.org>
79473         Fix link errors with Sun C 5.0 on Solaris 10.
79474         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
79475         function is declared but not present in the compiler's libm.
79476         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
79477         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
79478         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
79479         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
79480         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
79481         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
79482         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
79483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
79484         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
79485         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
79486         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
79487         HAVE_DECL_FLOORL.
79489 2007-10-28  Bruno Haible  <bruno@clisp.org>
79491         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
79492         gl_FUNC_FLOORL. Cache the result.
79493         (gl_FUNC_FLOORL): Use it.
79494         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
79495         gl_FUNC_CEILL. Cache the result.
79496         (gl_FUNC_CEILL): Use it.
79498         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
79499         gl_FUNC_FLOOR. Cache the result.
79500         (gl_FUNC_FLOOR): Use it.
79501         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
79502         gl_FUNC_CEIL. Cache the result.
79503         (gl_FUNC_CEIL): Use it.
79505         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
79506         gl_FUNC_FLOORF. Cache the result.
79507         (gl_FUNC_FLOORF): Use it.
79508         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
79509         gl_FUNC_CEILF. Cache the result.
79510         (gl_FUNC_CEILF): Use it.
79512 2007-10-28  Bruno Haible  <bruno@clisp.org>
79514         * gnulib-tool: Allow specifying the LGPL version number through
79515         --lgpl=2 or --lgpl=3.
79516         (func_usage): Document --lgpl with argument.
79517         Handle --lgpl=... arguments.
79518         (func_import): Recognize also gl_LGPL calls with an argument. When
79519         --lgpl=2 is used and the module's license is just LGPL, report an
79520         error. Set sed_transform_lib_file according to the lgpl variable. In
79521         the generated files, use --lgpl or gl_LGPL invocations with argument,
79522         if necessary.
79523         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
79524         an LGPv2+ license.
79525         * doc/gnulib-tool.texi (Modified imports): Update explanation of
79526         gl_LGPL macro.
79528 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79529             Bruno Haible  <bruno@clisp.org>
79531         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
79532         (u16_uctomb_aux): Likewise.
79533         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
79534         !HAVE_INLINE.
79535         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
79537 2007-10-28  Bruno Haible  <bruno@clisp.org>
79539         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
79540         Invoke AM_GETTEXT_OPTION if it exists.
79541         * modules/vasprintf: Likewise.
79542         * modules/verror: Likewise.
79543         * modules/xprintf: Likewise.
79544         * modules/xvasprintf: Likewise.
79546 2007-10-27  Ben Pfaff  <blp@gnu.org>
79548         * lib/math.in.h: Define isfinite macro and prototypes for
79549         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
79550         implementations.
79551         * m4/math_h.m4: New substitutions for isfinite module.
79552         * lib/isfinite.c: New file.
79553         * m4/isfinite.m4: New file.
79554         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
79555         * modules/isfinite: New file.
79556         * modules/isfinite-tests: New file.
79557         * tests/tests-isfinite.c: New file.
79558         * doc/functions/isfinite.texi: Mention isfinite module.
79559         * MODULES.html.sh: Mention new module.
79561 2007-10-27  Ben Pfaff  <blp@gnu.org>
79563         Ralf Wildenhues reported that Tru64 4.0D declares the round
79564         functions but does not have definitions.
79565         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
79566         cannot be found in any library, set the output variable to
79567         "missing" instead of "".
79568         * m4/round.m4: Also use our substitute if we cannot find round in
79569         any library, even if it is declared.
79570         * m4/roundf.m4: Likewise for roundf.
79571         * m4/roundl.m4: Likewise for roundl.
79572         * lib/math.in.h: Undefine roundf, round, roundl before defining
79573         their replacements, to allow for hypothetical systems where these
79574         may be defined as macros but not available in libraries.
79576 2007-10-27  Bruno Haible  <bruno@clisp.org>
79578         * doc/gnulib.texi: Invoke @firstparagraphindent.
79579         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
79580         changes in gnulib.
79581         (Source changes): New section.
79583 2007-10-26  Bruno Haible  <bruno@clisp.org>
79585         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
79586         borrowed from autoconf.
79588 2007-10-26  Bruno Haible  <bruno@clisp.org>
79590         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
79591         strerror returned the empty string. Needed on HP-UX 11.00.
79593 2007-10-24  Micah Cowan  <micah@cowan.name>
79595         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
79596         * build-aux/bootstrap: Remove support for now-unnecessary option,
79597         --cvs-user, and envvars CVS_USER, CVS_RSH.
79599 2007-10-24  Jim Meyering  <meyering@redhat.com>
79601         Avoid diagnostics from sha1sum when there is no cached checksum.
79602         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
79603         if the po.s1 file hasn't been created yet.
79605         * build-aux/bootstrap: Sync from coreutils:
79606         2007-10-24  Jim Meyering  <meyering@redhat.com>
79607         Get gnulib from the git repository, not from an obsolete cvs one.
79608         * build-aux/bootstrap: Suggestion from Micah Cowan.
79609         2007-10-04  Jim Meyering  <jim@meyering.net>
79610         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
79611         (update_po_files): Work also when there are no .po files in po/.
79613 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79615         * README: Append ".git" to git and cg examples.
79616         Problem reported by Benoit Sigoure.
79618 2007-10-23  Micah Cowan  <micah@cowan.name>
79620         * users.txt: Add wget.
79622 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79624         Fix linking of some unistdio tests on FreeBSD.
79625         * modules/unistdio/u16-vsnprintf-tests
79626         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
79627         * modules/unistdio/u16-vsprintf-tests
79628         (test_u16_vsnprintf1_LDADD): Likewise.
79629         * modules/unistdio/u32-vsnprintf-tests
79630         (test_u32_vsnprintf1_LDADD): Likewise.
79631         * modules/unistdio/u32-vsprintf-tests
79632         (test_u32_vsprintf1_LDADD): Likewise.
79633         * modules/unistdio/u8-vsnprintf-tests
79634         (test_u8_vsnprintf1_LDADD): Likewise.
79635         * modules/unistdio/u8-vsprintf-tests
79636         (test_u8_vsprintf1_LDADD): Likewise.
79637         * modules/unistdio/ulc-vsnprintf-tests
79638         (test_ulc_vsnprintf1_LDADD): Likewise.
79639         * modules/unistdio/ulc-vsprintf-tests
79640         (test_ulc_vsprintf1_LDADD): Likewise.
79642         Fix linking of some uniconv tests on FreeBSD.
79643         * modules/uniconv/u16-conv-from-enc-tests
79644         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
79645         * modules/uniconv/u16-conv-to-enc-tests
79646         (test_u16_conv_to_enc_LDADD): Likewise.
79647         * modules/uniconv/u16-strconv-from-enc-tests
79648         (test_u16_strconv_from_enc_LDADD): Likewise.
79649         * modules/uniconv/u16-strconv-to-enc-tests
79650         (test_u16_strconv_to_enc_LDADD): Likewise.
79651         * modules/uniconv/u32-conv-from-enc-tests
79652         (test_u32_conv_from_enc_LDADD): Likewise.
79653         * modules/uniconv/u32-conv-to-enc-tests
79654         (test_u32_conv_to_enc_LDADD): Likewise.
79655         * modules/uniconv/u32-strconv-from-enc-tests
79656         (test_u32_strconv_from_enc_LDADD): Likewise.
79657         * modules/uniconv/u32-strconv-to-enc-tests
79658         (test_u32_strconv_to_enc_LDADD): Likewise.
79659         * modules/uniconv/u8-conv-from-enc-tests
79660         (test_u8_conv_from_enc_LDADD): Likewise.
79661         * modules/uniconv/u8-conv-to-enc-tests
79662         (test_u8_conv_to_enc_LDADD): Likewise.
79663         * modules/uniconv/u8-strconv-from-enc-tests
79664         (test_u8_strconv_from_enc_LDADD): Likewise.
79665         * modules/uniconv/u8-strconv-to-enc-tests
79666         (test_u8_strconv_to_enc_LDADD): Likewise.
79668 2007-10-22  Bruno Haible  <bruno@clisp.org>
79670         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
79671         size.
79673 2007-10-22  Eric Blake  <ebb9@byu.net>
79675         Tweak x*printf documentation.
79676         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
79677         variable name and comments.
79678         Suggested by Bruno Haible.
79680 2007-10-22  Bruno Haible  <bruno@clisp.org>
79682         * lib/acl.c (copy_acl): Fix file name in comment.
79684 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79686         Fix Tru64 problem with stdbool.h.
79687         * lib/stdbool.in.h (false, true):
79688         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
79689         Don't declare as an enum in this situation; it runs afoul of Tru64.
79690         Problem reported by Steven M. Schweda in
79691         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
79693 2007-10-22  Eric Blake  <ebb9@byu.net>
79695         Also wrap vf?printf.
79696         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
79697         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
79698         (xvprintf, xvfprintf): New functions.
79700 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79702         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
79703         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
79705         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
79706         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
79708 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79710         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
79711         by Bruno Haible.
79713 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79715         * lib/getloadavg.c
79716         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
79717         Undef `sys' after including sys/table.h, for Tru64 4.0D.
79719         * tests/test-i-ring.c: Work for C89.
79721 2007-10-22  Bruno Haible  <bruno@clisp.org>
79723         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
79724         -1u, in preprocessor expression, so that we don't test for the bug
79725         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
79726         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
79728 2007-10-22  Eric Blake  <ebb9@byu.net>
79730         * tests/test-yesno.sh: Silence stderr during test.
79732 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79734         * modules/crypto/gc-camellia: New file.
79736         * m4/gc-camellia.m4: New file.
79738         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
79740         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
79742 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79744         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
79745         --help to stdout.  Reported by sms@antinode.org (Steven
79746         M. Schweda).
79748 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79750         * users.txt: Fix link to libksba.
79752 2007-10-21  Ben Pfaff  <blp@gnu.org>
79754         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
79755         round.c roundf implementation that depends on floorf and ceilf to
79756         be tested unconditionally.
79758 2007-10-21  Ben Pfaff  <blp@gnu.org>
79760         * m4/check-libm-func.m4: Removed.
79761         * m4/check-math-lib.m4: New file.
79762         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
79763         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
79764         definition and lack of AC_LIBOBJ([roundf]).
79765         * m4/roundl.m4: Ditto, and similarly for roundl.
79766         * modules/round: Reference new m4 file.
79767         * modules/roundf: Ditto.
79768         * modules/roundl: Ditto.
79769         * tests/test-round2.c (main): Use ROUND instead of round.
79770         Bug report from Bruno Haible.
79772 2007-10-21  Bruno Haible  <bruno@clisp.org>
79774         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
79775         context.
79777 2007-10-21  Bruno Haible  <bruno@clisp.org>
79779         * tests/test-wcwidth.c (main): Allow negative result for some control
79780         characters.
79782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
79783         Needed on OSF/1 5.1.
79785 2007-10-21  Bruno Haible  <bruno@clisp.org>
79787         * tests/test-floorf1.c: Include isnanf.h.
79788         (main): Use isnanf() instead of isnan().
79789         * tests/test-ceilf1.c: Include isnanf.h.
79790         (main): Use isnanf() instead of isnan().
79791         * tests/test-truncf1.c: Include isnanf.h.
79792         (main): Use isnanf() instead of isnan().
79793         * tests/test-roundf1.c: Include isnanf.h.
79794         (main): Use isnanf() instead of isnan().
79796 2007-10-21  Eric Blake  <ebb9@byu.net>
79798         * users.txt: Update URL for m4.
79800 2007-10-21  Bruno Haible  <bruno@clisp.org>
79802         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
79804 2007-10-21  Bruno Haible  <bruno@clisp.org>
79806         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
79807         Git's management files if the CVS files are not present.
79809 2007-10-20  Bruno Haible  <bruno@clisp.org>
79811         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
79812         gcc-3.4.x.
79814 2007-10-20  Ben Pfaff  <blp@gnu.org>
79816         * lib/math.in.h: Declare round, roundf, roundl if we are providing
79817         implementations.
79818         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
79819         * lib/round.c: New file.
79820         * lib/roundf.c: New file.
79821         * lib/roundl.c: New file.
79822         * m4/round.m4: New file.
79823         * m4/roundf.m4: New file.
79824         * m4/roundl.m4: New file.
79825         * m4/check-libm-func-m4: New file.
79826         * modules/math: Replace round, roundf, roundl related @VARS@ in
79827         math.in.h.
79828         * modules/round: New file.
79829         * modules/round-tests: New file.
79830         * modules/roundf: New file.
79831         * modules/roundf-tests: New file.
79832         * modules/roundl: New file.
79833         * modules/roundl-tests: New file.
79834         * tests/test-round1.c: New file.
79835         * tests/test-round2.c: New file.
79836         * tests/test-roundf1.c: New file.
79837         * tests/test-roundf2.c: New file.
79838         * tests/test-roundl.c: New file.
79839         * doc/functions/round.texi: Mention round module.
79840         * doc/functions/roundf.texi: Mention roundf module.
79841         * doc/functions/roundl.texi: Mention roundl module.
79842         * MODULES.html.sh: Mention new modules.
79843         Thanks to Bruno Haible for suggestions.
79845 2007-10-20  Jim Meyering  <meyering@redhat.com>
79847         * lib/xprintf.c: Include <config.h> unconditionally.
79849         Change xprintf's license to GPL.
79850         * modules/xprintf (License): s/LGPL/GPL/, since this module
79851         depends on modules (exit and exitfail) which are GPL.
79852         Suggestion from Bruno Haible.
79854         xprintf fixes.
79855         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
79856         Use a clearer diagnostic.
79857         Patch from Bruno Haible.
79859 2007-10-20  Bruno Haible  <bruno@clisp.org>
79861         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
79862         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
79863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79865 2007-10-20  Bruno Haible  <bruno@clisp.org>
79867         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
79868         precision in the comparison result > x - 1 or similar.
79869         * tests/test-ceilf2.c (correct_result_p): Likewise.
79870         * tests/test-truncf2.c (correct_result_p): Likewise.
79871         * tests/test-trunc2.c (correct_result_p): Likewise.
79872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79874 2007-10-20  Bruno Haible  <bruno@clisp.org>
79876         * modules/ceil: New file.
79877         * m4/ceil.m4: New file.
79878         * doc/functions/ceil.texi: Mention the 'ceil' module.
79880 2007-10-20  Bruno Haible  <bruno@clisp.org>
79882         * modules/floor: New file.
79883         * m4/floor.m4: New file.
79884         * doc/functions/floor.texi: Mention the 'floor' module.
79886 2007-10-20  Bruno Haible  <bruno@clisp.org>
79888         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
79889         of %a.
79890         * modules/floorf-tests (Depends-on): Likewise.
79891         * modules/truncf-tests (Depends-on): Likewise.
79892         * modules/trunc-tests (Depends-on): Likewise.
79893         Reported by Ben Pfaff.
79895 2007-10-19  Jim Meyering  <meyering@redhat.com>
79897         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
79898         Don't bother testing specific errno values.  Just test ferror.
79900         New module: xprintf
79901         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
79903 2007-10-19  Bruno Haible  <bruno@clisp.org>
79905         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
79906         syntax.
79907         * modules/javaexec (Makefile.am): Likewise.
79908         * modules/relocatable-prog (Makefile.am): Likewise.
79909         Suggested by Jim Meyering.
79911 2007-10-18  Bruno Haible  <bruno@clisp.org>
79913         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
79914         Reported by Jim Meyering.
79916 2007-10-18  Eric Blake  <ebb9@byu.net>
79918         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
79920 2007-10-18  Bruno Haible  <bruno@clisp.org>
79922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
79923         the format string into writable memory. Needed in Fortify conditions.
79925 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
79926             Bruno Haible  <bruno@clisp.org>
79928         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
79929         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
79930         * modules/trim (Depends-on): Add mbchar.
79931         (configure.ac): Add gl_FUNC_MBRTOWC.
79932         (Makefile.am): Augment lib_SOURCES.
79934 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79936         Modify glob.c to use fstatat and dirfd, to simplify it.
79937         Suggested by Eric Blake.
79938         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
79939         Don't include <stdbool.h>; not used.
79940         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
79941         (link_exists_p): Simplify implementation, since we can now assume
79942         dirfd and fstatat.
79943         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
79945 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79947         * gnulib-tool (func_get_dependencies): Fix sed script to
79948         match only tests.
79950 2007-10-17  Bruno Haible  <bruno@clisp.org>
79952         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
79953         allow locale names without encoding suffix.
79954         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79955         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79957 2007-10-16  Bruno Haible  <bruno@clisp.org>
79959         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
79960         * lib/getgroups.c (getgroups): Likewise.
79961         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
79963 2007-10-16  Bruno Haible  <bruno@clisp.org>
79965         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
79966         * modules/malloc-posix (License): Likewise.
79967         * modules/realloc-posix (License): Likewise.
79968         * modules/calloc-posix (License): Likewise.
79969         * modules/intprops (License): Change from GPL to LGPL, with
79970         Paul Eggert's approval.
79972 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79974         Merge glibc changes into lib/glob.c.
79976         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
79977         2007-10-15 04:59:03 UTC.  Here are the changes:
79979         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
79981         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
79983         * lib/glob.c: Add some branch prediction throughout.
79985         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
79987         [BZ #5103]
79988         * lib/glob.c (glob): Recognize patterns starting \/.
79990         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
79992         [BZ #3996]
79993         * lib/glob.c (attribute_hidden): Define if not defined.
79994         (glob): Unescape dirname, filename or username when needed and not
79995         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
79996         is NULL.  Handle unescaped [ in pattern without closing ].
79997         Don't pass GLOB_CHECK down to recursive glob for directories.
79998         (__glob_pattern_type): New function.
79999         (__glob_pattern_p): Implement using __glob_pattern_type.
80000         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
80001         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
80002         Remove unreachable code.
80004         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
80006         * lib/glob.c (glob_in_dir): Add some comments and asserts to
80007         explain why there are no leaks.
80009         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
80011         [BZ #3253]
80012         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
80013         time, rather allocate increasingly bigger arrays of pointers, if
80014         possible with alloca, if too large with malloc.
80016 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80018         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
80019         Problem reported by H.Merijn Brand in
80020         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
80021         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
80022         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80024 2007-10-15  Bruno Haible  <bruno@clisp.org>
80026         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
80027         with explicit rpl_ prefix.
80028         * lib/fopen.c (fopen): Likewise.
80029         * lib/freopen.c (freopen): Likewise.
80030         * lib/iconv.c (iconv): Likewise.
80031         * lib/iconv_close.c (iconv_close): Likewise.
80033 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80035         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
80037 2007-10-15  Bruno Haible  <bruno@clisp.org>
80039         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
80040         <stddef.h> instead of <stdlib.h> since we only need NULL.
80041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80043 2007-10-15  Bruno Haible  <bruno@clisp.org>
80045         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
80046         Replace paragraph talking about LIBOBJS.
80047         Reported by Colin Watson <cjwatson@debian.org>.
80049 2007-10-15  Bruno Haible  <bruno@clisp.org>
80051         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
80052         <stdlib.h> before using NULL.
80054 2007-10-15  Simon Josefsson  <simon@josefsson.org>
80056         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
80057         Reported by Albert Chin <china@thewrittenword.com>.
80059 2007-10-14  Bruno Haible  <bruno@clisp.org>
80061         * modules/iconv_open-utf-tests: New file.
80062         * tests/test-iconv-utf.c: New file.
80064         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
80065         * modules/iconv_open-utf: New file.
80066         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
80067         (iconv, iconv_close): New declarations.
80068         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
80069         be defined.
80070         (iconv_open): Add special handling of conversion between UTF-8 and
80071         UTF-{16,32}{BE,LE}.
80072         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
80073         * lib/iconv_close.c: New file.
80074         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
80075         gl_FUNC_ICONV_OPEN.
80076         (gl_FUNC_ICONV_OPEN): Use it.
80077         (gl_FUNC_ICONV_OPEN_UTF): New macro.
80078         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
80079         and REPLACE_ICONV_UTF.
80080         * modules/iconv_open (Depends-on): Add c-strcase.
80081         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
80082         ICONV_CONST.
80083         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
80085 2007-10-13  Albert Chin  <china@thewrittenword.com>
80086             Bruno Haible  <bruno@clisp.org>
80088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
80089         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
80091 2007-10-13  Bruno Haible  <bruno@clisp.org>
80093         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
80094         defined, use the ISO C99 inline semantics.
80095         * lib/argp.h (ARGP_EI): Likewise.
80097 2007-10-13  Bruno Haible  <bruno@clisp.org>
80099         Handle 'inline' change in gcc 4.3.0.
80100         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
80101         argp_fmtstream_write, argp_fmtstream_set_lmargin,
80102         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
80103         argp_fmtstream_point): Disable 'extern' declaration if the function
80104         definition is going to be provided inline.
80105         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
80106         semantics, not the ISO C99 inline semantics.
80107         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
80108         'extern' declaration if the function definition is going to be provided
80109         inline.
80110         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
80111         the GNU C inline semantics, not the ISO C99 inline semantics. With
80112         GCC 4.2, avoid a warning.
80114 2007-10-13  Bruno Haible  <bruno@clisp.org>
80116         * lib/freading.h (freading): Enable the use of __freading for
80117         glibc >= 2.7.
80118         * lib/freading.c (freading): Likewise.
80120 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
80122         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
80123         "warning: C99 inline functions are not supported; using GNU89".
80125 2007-10-12  Bruno Haible  <bruno@clisp.org>
80127         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
80128         of 2.
80129         * tests/test-ceilf2.c: New file.
80130         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
80132         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
80133         * modules/ceilf-tests: Update.
80135 2007-10-12  Bruno Haible  <bruno@clisp.org>
80137         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
80138         of 2.
80139         * tests/test-floorf2.c: New file.
80140         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
80142         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
80143         * modules/floorf-tests: Update.
80145 2007-10-12  Bruno Haible  <bruno@clisp.org>
80147         * tests/test-trunc2.c: New file.
80148         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
80150         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
80151         * modules/trunc-tests: Update.
80153 2007-10-12  Bruno Haible  <bruno@clisp.org>
80155         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
80156         of 2.
80157         * tests/test-truncf2.c: New file.
80158         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
80160         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
80161         * modules/truncf-tests: Update.
80163 2007-10-11  Eric Blake  <ebb9@byu.net>
80165         Don't claim strerror is broken on Interix.
80166         * doc/functions/strerror.texi (strerror): Known broken systems are
80167         now Solaris 8, and not Interix.
80168         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
80169         Interix on cross-compile.
80170         Reported by Martin Koeppe in
80171         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
80173 2007-10-11  Bruno Haible  <bruno@clisp.org>
80175         * modules/i-ring-tests: New file.
80176         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
80177         instead of assert.
80179 2007-10-11  Bruno Haible  <bruno@clisp.org>
80181         * modules/filenamecat-tests: New file.
80182         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
80183         * lib/filenamecat.c: Remove test code.
80185 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
80187         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
80189         * lib/strerror.c: Include <string.h> always, to test interface,
80190         and to remove the need for the dummy.
80191         Include intprops.h to compute width instead of doing it ourselves
80192         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
80193         (strerror): Define it to return NULL if there's no system strerror.
80194         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
80195         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
80196         ancient pre-strerror Unix systems well any more.  Saying "unknown
80197         system error" is enough.
80198         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
80199         simpler strerror.c implementation.
80200         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
80201         Simplify the tests to reflect the simpler strerror implementation.
80202         * modules/strerror (Depends-on): Add intprops.
80204 2007-10-09  Eric Blake  <ebb9@byu.net>
80206         Silence test-fpending.
80207         * modules/fpending-tests (Files): Add wrapper script.
80208         * tests/test-fpending.sh: New file.
80210 2007-10-09  Bruno Haible  <bruno@clisp.org>
80212         * MODULES.html.sh (func_module): Don't create a hyperlink for
80213         function names like 'printf_frexp'.
80214         (Misc): Add crc, memxor.
80215         (Characteristics of floating types): New section.
80216         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
80217         isnanf-nolibm, signbit, trunc, truncf, truncl.
80218         (Enhancements for ISO C 99 functions): New subsection Input/output.
80219         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
80220         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
80221         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
80222         (Compatibility checks for POSIX:2001 functions): Add clock-time.
80223         (Enhancements for POSIX:2001 functions): Add chdir-long.
80224         (File system functions): Add areadlink, chdir-safer, read-file.
80225         Remove cycle-check.
80226         (File system as inode set): New section.
80227         (Date and time): Add gethrxtime.
80228         (Multithreading): Add openmp.
80229         (Internationalization functions): Add localename.
80230         (Unicode string functions): Add unistr/u*-mbsnlen.
80231         (Support for maintaining and releasing projects): Add git-version-gen.
80232         (Lone files): Remove directories.
80234 2007-10-08  Ben Pfaff  <blp@gnu.org>
80236         * lib/xmalloca.h: Fix typo in comment.
80238 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
80240         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
80241         when avoiding problems with integer overflow.  Use a portable test
80242         instead.
80244 2007-10-08  Simon Josefsson  <simon@josefsson.org>
80246         * modules/dummy (License): Change to LGPLv2+.
80247         * modules/float (License): Likewise
80248         * modules/realloc (License): Likewise
80249         * modules/stdlib (License): Likewise
80251 2007-10-07  Bruno Haible  <bruno@clisp.org>
80253         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
80254         * floor.c (TWO_MANT_DIG): Likewise.
80255         * ceil.c (TWO_MANT_DIG): Likewise.
80256         Reported by Ben Pfaff.
80258 2007-10-07  Bruno Haible  <bruno@clisp.org>
80260         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
80261         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
80262         * lib/frexp.c (FUNC): Likewise.
80263         * lib/printf-frexp.h (printf_frexp): Likewise.
80264         * lib/printf-frexpl.h (printf_frexpl): Likewise.
80265         * lib/printf-frexp.c (FUNC): Likewise.
80266         Suggested by Jim Meyering.
80268 2007-10-07  Jim Meyering  <meyering@redhat.com>
80270         Make xnanosleep's integer overflow test more robust.
80271         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
80272         so that gcc-4.3.0 doesn't optimize away this test for overflow.
80274 2007-10-07  Bruno Haible  <bruno@clisp.org>
80276         * NEWS: Mention the license change.
80278         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
80279         abbreviations in the modules files.
80281         Change copyright notice from GPLv2+ to GPLv3+.
80282         * README: Change copyright notice.
80283         * MODULES.html.sh: Likewise.
80284         * build-aux/bootstrap.conf: Likewise.
80285         * build-aux/config.libpath: Likewise.
80286         * build-aux/csharpcomp.sh.in: Likewise.
80287         * build-aux/csharpexec.sh.in: Likewise.
80288         * build-aux/install-reloc: Likewise.
80289         * build-aux/javacomp.sh.in: Likewise.
80290         * build-aux/javaexec.sh.in: Likewise.
80291         * build-aux/ldd.sh.in: Likewise.
80292         * build-aux/reloc-ldflags: Likewise.
80293         * build-aux/relocatable.sh.in: Likewise.
80294         * build-aux/x-to-1.in: Likewise.
80295         * check-module: Likewise.
80296         * config/srclistvars.sh: Likewise.
80297         * gnulib-tool: Likewise.
80298         * lib/acl-internal.h: Likewise.
80299         * lib/acl.c: Likewise.
80300         * lib/acl.h: Likewise.
80301         * lib/acl_entries.c: Likewise.
80302         * lib/areadlink-with-size.c: Likewise.
80303         * lib/areadlink.c: Likewise.
80304         * lib/areadlink.h: Likewise.
80305         * lib/argmatch.c: Likewise.
80306         * lib/argmatch.h: Likewise.
80307         * lib/argp-ba.c: Likewise.
80308         * lib/argp-eexst.c: Likewise.
80309         * lib/argp-fmtstream.c: Likewise.
80310         * lib/argp-fmtstream.h: Likewise.
80311         * lib/argp-fs-xinl.c: Likewise.
80312         * lib/argp-help.c: Likewise.
80313         * lib/argp-namefrob.h: Likewise.
80314         * lib/argp-parse.c: Likewise.
80315         * lib/argp-pin.c: Likewise.
80316         * lib/argp-pv.c: Likewise.
80317         * lib/argp-pvh.c: Likewise.
80318         * lib/argp-xinl.c: Likewise.
80319         * lib/argp.h: Likewise.
80320         * lib/at-func.c: Likewise.
80321         * lib/atanl.c: Likewise.
80322         * lib/backupfile.c: Likewise.
80323         * lib/backupfile.h: Likewise.
80324         * lib/basename.c: Likewise.
80325         * lib/binary-io.h: Likewise.
80326         * lib/byteswap.in.h: Likewise.
80327         * lib/c-stack.c: Likewise.
80328         * lib/c-stack.h: Likewise.
80329         * lib/c-strcasestr.c: Likewise.
80330         * lib/c-strcasestr.h: Likewise.
80331         * lib/c-strstr.c: Likewise.
80332         * lib/c-strstr.h: Likewise.
80333         * lib/c-strtod.c: Likewise.
80334         * lib/calloc.c: Likewise.
80335         * lib/canon-host.c: Likewise.
80336         * lib/canon-host.h: Likewise.
80337         * lib/canonicalize-lgpl.c: Likewise.
80338         * lib/canonicalize.c: Likewise.
80339         * lib/canonicalize.h: Likewise.
80340         * lib/ceil.c: Likewise.
80341         * lib/ceilf.c: Likewise.
80342         * lib/ceill.c: Likewise.
80343         * lib/chdir-long.c: Likewise.
80344         * lib/chdir-long.h: Likewise.
80345         * lib/chdir-safer.c: Likewise.
80346         * lib/chdir-safer.h: Likewise.
80347         * lib/chown.c: Likewise.
80348         * lib/classpath.c: Likewise.
80349         * lib/classpath.h: Likewise.
80350         * lib/clean-temp.c: Likewise.
80351         * lib/clean-temp.h: Likewise.
80352         * lib/cloexec.c: Likewise.
80353         * lib/close-stream.c: Likewise.
80354         * lib/closein.c: Likewise.
80355         * lib/closein.h: Likewise.
80356         * lib/closeout.c: Likewise.
80357         * lib/closeout.h: Likewise.
80358         * lib/concat-filename.c: Likewise.
80359         * lib/copy-file.c: Likewise.
80360         * lib/copy-file.h: Likewise.
80361         * lib/count-one-bits.h: Likewise.
80362         * lib/crc.c: Likewise.
80363         * lib/crc.h: Likewise.
80364         * lib/creat-safer.c: Likewise.
80365         * lib/csharpcomp.c: Likewise.
80366         * lib/csharpcomp.h: Likewise.
80367         * lib/csharpexec.c: Likewise.
80368         * lib/csharpexec.h: Likewise.
80369         * lib/cycle-check.c: Likewise.
80370         * lib/cycle-check.h: Likewise.
80371         * lib/diacrit.c: Likewise.
80372         * lib/diacrit.h: Likewise.
80373         * lib/diffseq.h: Likewise.
80374         * lib/dirchownmod.c: Likewise.
80375         * lib/dirent.in.h: Likewise.
80376         * lib/dirfd.c: Likewise.
80377         * lib/dirfd.h: Likewise.
80378         * lib/dirname.c: Likewise.
80379         * lib/dirname.h: Likewise.
80380         * lib/dummy.c: Likewise.
80381         * lib/dup-safer.c: Likewise.
80382         * lib/dup2.c: Likewise.
80383         * lib/eealloc.h: Likewise.
80384         * lib/error.c: Likewise.
80385         * lib/error.h: Likewise.
80386         * lib/euidaccess.c: Likewise.
80387         * lib/exclude.c: Likewise.
80388         * lib/exclude.h: Likewise.
80389         * lib/execute.c: Likewise.
80390         * lib/execute.h: Likewise.
80391         * lib/exitfail.c: Likewise.
80392         * lib/exitfail.h: Likewise.
80393         * lib/expl.c: Likewise.
80394         * lib/fatal-signal.c: Likewise.
80395         * lib/fatal-signal.h: Likewise.
80396         * lib/fbufmode.c: Likewise.
80397         * lib/fbufmode.h: Likewise.
80398         * lib/fchdir.c: Likewise.
80399         * lib/fchmodat.c: Likewise.
80400         * lib/fchownat.c: Likewise.
80401         * lib/fcntl--.h: Likewise.
80402         * lib/fcntl-safer.h: Likewise.
80403         * lib/fcntl.in.h: Likewise.
80404         * lib/fd-safer.c: Likewise.
80405         * lib/fflush.c: Likewise.
80406         * lib/file-has-acl.c: Likewise.
80407         * lib/file-set.c: Likewise.
80408         * lib/file-type.c: Likewise.
80409         * lib/file-type.h: Likewise.
80410         * lib/fileblocks.c: Likewise.
80411         * lib/filemode.c: Likewise.
80412         * lib/filemode.h: Likewise.
80413         * lib/filename.h: Likewise.
80414         * lib/filenamecat.c: Likewise.
80415         * lib/filenamecat.h: Likewise.
80416         * lib/findprog.c: Likewise.
80417         * lib/findprog.h: Likewise.
80418         * lib/float.in.h: Likewise.
80419         * lib/floor.c: Likewise.
80420         * lib/floorf.c: Likewise.
80421         * lib/floorl.c: Likewise.
80422         * lib/fopen-safer.c: Likewise.
80423         * lib/fopen.c: Likewise.
80424         * lib/fpending.c: Likewise.
80425         * lib/fpending.h: Likewise.
80426         * lib/fprintf.c: Likewise.
80427         * lib/fprintftime.h: Likewise.
80428         * lib/fpucw.h: Likewise.
80429         * lib/fpurge.c: Likewise.
80430         * lib/fpurge.h: Likewise.
80431         * lib/freadable.c: Likewise.
80432         * lib/freadable.h: Likewise.
80433         * lib/freadahead.c: Likewise.
80434         * lib/freadahead.h: Likewise.
80435         * lib/freading.c: Likewise.
80436         * lib/freading.h: Likewise.
80437         * lib/free.c: Likewise.
80438         * lib/freopen.c: Likewise.
80439         * lib/frexp.c: Likewise.
80440         * lib/frexpl.c: Likewise.
80441         * lib/fseek.c: Likewise.
80442         * lib/fseterr.c: Likewise.
80443         * lib/fseterr.h: Likewise.
80444         * lib/fstatat.c: Likewise.
80445         * lib/fstrcmp.c: Likewise.
80446         * lib/fstrcmp.h: Likewise.
80447         * lib/fsusage.c: Likewise.
80448         * lib/fsusage.h: Likewise.
80449         * lib/ftell.c: Likewise.
80450         * lib/ftello.c: Likewise.
80451         * lib/fts-cycle.c: Likewise.
80452         * lib/fts.c: Likewise.
80453         * lib/fts_.h: Likewise.
80454         * lib/full-read.c: Likewise.
80455         * lib/full-read.h: Likewise.
80456         * lib/full-write.c: Likewise.
80457         * lib/full-write.h: Likewise.
80458         * lib/fwritable.c: Likewise.
80459         * lib/fwritable.h: Likewise.
80460         * lib/fwriteerror.c: Likewise.
80461         * lib/fwriteerror.h: Likewise.
80462         * lib/fwriting.c: Likewise.
80463         * lib/fwriting.h: Likewise.
80464         * lib/gcd.c: Likewise.
80465         * lib/gcd.h: Likewise.
80466         * lib/getcwd.c: Likewise.
80467         * lib/getdate.h: Likewise.
80468         * lib/getdate.y: Likewise.
80469         * lib/getdomainname.c: Likewise.
80470         * lib/getdomainname.h: Likewise.
80471         * lib/getgroups.c: Likewise.
80472         * lib/gethostname.c: Likewise.
80473         * lib/gethrxtime.c: Likewise.
80474         * lib/gethrxtime.h: Likewise.
80475         * lib/getloadavg.c: Likewise.
80476         * lib/getndelim2.c: Likewise.
80477         * lib/getndelim2.h: Likewise.
80478         * lib/getnline.c: Likewise.
80479         * lib/getnline.h: Likewise.
80480         * lib/getopt.c: Likewise.
80481         * lib/getopt.in.h: Likewise.
80482         * lib/getopt1.c: Likewise.
80483         * lib/getopt_int.h: Likewise.
80484         * lib/getpagesize.h: Likewise.
80485         * lib/getsubopt.c: Likewise.
80486         * lib/gettime.c: Likewise.
80487         * lib/getugroups.c: Likewise.
80488         * lib/getugroups.h: Likewise.
80489         * lib/getusershell.c: Likewise.
80490         * lib/gl_anyavltree_list1.h: Likewise.
80491         * lib/gl_anyavltree_list2.h: Likewise.
80492         * lib/gl_anyhash_list1.h: Likewise.
80493         * lib/gl_anyhash_list2.h: Likewise.
80494         * lib/gl_anylinked_list1.h: Likewise.
80495         * lib/gl_anylinked_list2.h: Likewise.
80496         * lib/gl_anyrbtree_list1.h: Likewise.
80497         * lib/gl_anyrbtree_list2.h: Likewise.
80498         * lib/gl_anytree_list1.h: Likewise.
80499         * lib/gl_anytree_list2.h: Likewise.
80500         * lib/gl_anytree_oset.h: Likewise.
80501         * lib/gl_anytreehash_list1.h: Likewise.
80502         * lib/gl_anytreehash_list2.h: Likewise.
80503         * lib/gl_array_list.c: Likewise.
80504         * lib/gl_array_list.h: Likewise.
80505         * lib/gl_array_oset.c: Likewise.
80506         * lib/gl_array_oset.h: Likewise.
80507         * lib/gl_avltree_list.c: Likewise.
80508         * lib/gl_avltree_list.h: Likewise.
80509         * lib/gl_avltree_oset.c: Likewise.
80510         * lib/gl_avltree_oset.h: Likewise.
80511         * lib/gl_avltreehash_list.c: Likewise.
80512         * lib/gl_avltreehash_list.h: Likewise.
80513         * lib/gl_carray_list.c: Likewise.
80514         * lib/gl_carray_list.h: Likewise.
80515         * lib/gl_linked_list.c: Likewise.
80516         * lib/gl_linked_list.h: Likewise.
80517         * lib/gl_linkedhash_list.c: Likewise.
80518         * lib/gl_linkedhash_list.h: Likewise.
80519         * lib/gl_list.c: Likewise.
80520         * lib/gl_list.h: Likewise.
80521         * lib/gl_oset.c: Likewise.
80522         * lib/gl_oset.h: Likewise.
80523         * lib/gl_rbtree_list.c: Likewise.
80524         * lib/gl_rbtree_list.h: Likewise.
80525         * lib/gl_rbtree_oset.c: Likewise.
80526         * lib/gl_rbtree_oset.h: Likewise.
80527         * lib/gl_rbtreehash_list.c: Likewise.
80528         * lib/gl_rbtreehash_list.h: Likewise.
80529         * lib/gl_sublist.c: Likewise.
80530         * lib/gl_sublist.h: Likewise.
80531         * lib/group-member.c: Likewise.
80532         * lib/group-member.h: Likewise.
80533         * lib/hard-locale.c: Likewise.
80534         * lib/hard-locale.h: Likewise.
80535         * lib/hash-pjw.c: Likewise.
80536         * lib/hash-pjw.h: Likewise.
80537         * lib/hash-triple.c: Likewise.
80538         * lib/hash.c: Likewise.
80539         * lib/hash.h: Likewise.
80540         * lib/human.c: Likewise.
80541         * lib/human.h: Likewise.
80542         * lib/i-ring.c: Likewise.
80543         * lib/i-ring.h: Likewise.
80544         * lib/idcache.c: Likewise.
80545         * lib/imaxabs.c: Likewise.
80546         * lib/imaxdiv.c: Likewise.
80547         * lib/inet_pton.c: Likewise.
80548         * lib/inet_pton.h: Likewise.
80549         * lib/intprops.h: Likewise.
80550         * lib/inttostr.c: Likewise.
80551         * lib/inttostr.h: Likewise.
80552         * lib/inttypes.in.h: Likewise.
80553         * lib/isapipe.c: Likewise.
80554         * lib/isdir.c: Likewise.
80555         * lib/isnan.c: Likewise.
80556         * lib/isnan.h: Likewise.
80557         * lib/isnanf.c: Likewise.
80558         * lib/isnanf.h: Likewise.
80559         * lib/isnanl-nolibm.h: Likewise.
80560         * lib/isnanl.c: Likewise.
80561         * lib/isnanl.h: Likewise.
80562         * lib/javacomp.c: Likewise.
80563         * lib/javacomp.h: Likewise.
80564         * lib/javaexec.c: Likewise.
80565         * lib/javaexec.h: Likewise.
80566         * lib/javaversion.c: Likewise.
80567         * lib/javaversion.h: Likewise.
80568         * lib/javaversion.java: Likewise.
80569         * lib/lbrkprop.h: Likewise.
80570         * lib/lchmod.h: Likewise.
80571         * lib/lchown.c: Likewise.
80572         * lib/ldexpl.c: Likewise.
80573         * lib/linebreak.c: Likewise.
80574         * lib/linebreak.h: Likewise.
80575         * lib/linebuffer.c: Likewise.
80576         * lib/linebuffer.h: Likewise.
80577         * lib/locale.in.h: Likewise.
80578         * lib/logl.c: Likewise.
80579         * lib/long-options.c: Likewise.
80580         * lib/long-options.h: Likewise.
80581         * lib/lstat.c: Likewise.
80582         * lib/lstat.h: Likewise.
80583         * lib/math.in.h: Likewise.
80584         * lib/mbchar.c: Likewise.
80585         * lib/mbchar.h: Likewise.
80586         * lib/mbfile.h: Likewise.
80587         * lib/mbiter.h: Likewise.
80588         * lib/mbscasecmp.c: Likewise.
80589         * lib/mbscasestr.c: Likewise.
80590         * lib/mbschr.c: Likewise.
80591         * lib/mbscspn.c: Likewise.
80592         * lib/mbslen.c: Likewise.
80593         * lib/mbsncasecmp.c: Likewise.
80594         * lib/mbsnlen.c: Likewise.
80595         * lib/mbspbrk.c: Likewise.
80596         * lib/mbspcasecmp.c: Likewise.
80597         * lib/mbsrchr.c: Likewise.
80598         * lib/mbssep.c: Likewise.
80599         * lib/mbsspn.c: Likewise.
80600         * lib/mbsstr.c: Likewise.
80601         * lib/mbstok_r.c: Likewise.
80602         * lib/mbswidth.c: Likewise.
80603         * lib/mbswidth.h: Likewise.
80604         * lib/mbuiter.h: Likewise.
80605         * lib/memcasecmp.c: Likewise.
80606         * lib/memcasecmp.h: Likewise.
80607         * lib/memchr.c: Likewise.
80608         * lib/memcmp.c: Likewise.
80609         * lib/memcoll.c: Likewise.
80610         * lib/memcoll.h: Likewise.
80611         * lib/memcpy.c: Likewise.
80612         * lib/memrchr.c: Likewise.
80613         * lib/mkancesdirs.c: Likewise.
80614         * lib/mkdir-p.c: Likewise.
80615         * lib/mkdir-p.h: Likewise.
80616         * lib/mkdir.c: Likewise.
80617         * lib/mkdirat.c: Likewise.
80618         * lib/mkdtemp.c: Likewise.
80619         * lib/mkstemp-safer.c: Likewise.
80620         * lib/mkstemp.c: Likewise.
80621         * lib/modechange.c: Likewise.
80622         * lib/modechange.h: Likewise.
80623         * lib/mountlist.c: Likewise.
80624         * lib/mountlist.h: Likewise.
80625         * lib/mpsort.c: Likewise.
80626         * lib/nanosleep.c: Likewise.
80627         * lib/obstack.c: Likewise.
80628         * lib/obstack.h: Likewise.
80629         * lib/open-safer.c: Likewise.
80630         * lib/open.c: Likewise.
80631         * lib/openat-die.c: Likewise.
80632         * lib/openat-priv.h: Likewise.
80633         * lib/openat-proc.c: Likewise.
80634         * lib/openat.c: Likewise.
80635         * lib/openat.h: Likewise.
80636         * lib/pagealign_alloc.c: Likewise.
80637         * lib/pagealign_alloc.h: Likewise.
80638         * lib/physmem.c: Likewise.
80639         * lib/physmem.h: Likewise.
80640         * lib/pipe-safer.c: Likewise.
80641         * lib/pipe.c: Likewise.
80642         * lib/pipe.h: Likewise.
80643         * lib/posixtm.c: Likewise.
80644         * lib/posixtm.h: Likewise.
80645         * lib/posixver.c: Likewise.
80646         * lib/printf-frexp.c: Likewise.
80647         * lib/printf-frexp.h: Likewise.
80648         * lib/printf-frexpl.c: Likewise.
80649         * lib/printf-frexpl.h: Likewise.
80650         * lib/printf.c: Likewise.
80651         * lib/progname.c: Likewise.
80652         * lib/progname.h: Likewise.
80653         * lib/progreloc.c: Likewise.
80654         * lib/putenv.c: Likewise.
80655         * lib/quote.c: Likewise.
80656         * lib/quote.h: Likewise.
80657         * lib/quotearg.c: Likewise.
80658         * lib/quotearg.h: Likewise.
80659         * lib/raise.c: Likewise.
80660         * lib/readline.c: Likewise.
80661         * lib/readline.h: Likewise.
80662         * lib/readlink.c: Likewise.
80663         * lib/readtokens.c: Likewise.
80664         * lib/readtokens.h: Likewise.
80665         * lib/readtokens0.c: Likewise.
80666         * lib/readtokens0.h: Likewise.
80667         * lib/readutmp.c: Likewise.
80668         * lib/readutmp.h: Likewise.
80669         * lib/realloc.c: Likewise.
80670         * lib/relocwrapper.c: Likewise.
80671         * lib/rename-dest-slash.c: Likewise.
80672         * lib/rename.c: Likewise.
80673         * lib/rmdir.c: Likewise.
80674         * lib/rpmatch.c: Likewise.
80675         * lib/safe-read.c: Likewise.
80676         * lib/safe-read.h: Likewise.
80677         * lib/safe-write.c: Likewise.
80678         * lib/safe-write.h: Likewise.
80679         * lib/same-inode.h: Likewise.
80680         * lib/same.c: Likewise.
80681         * lib/same.h: Likewise.
80682         * lib/save-cwd.c: Likewise.
80683         * lib/save-cwd.h: Likewise.
80684         * lib/savedir.c: Likewise.
80685         * lib/savedir.h: Likewise.
80686         * lib/savewd.c: Likewise.
80687         * lib/savewd.h: Likewise.
80688         * lib/search.in.h: Likewise.
80689         * lib/setenv.c: Likewise.
80690         * lib/setenv.h: Likewise.
80691         * lib/settime.c: Likewise.
80692         * lib/sh-quote.c: Likewise.
80693         * lib/sh-quote.h: Likewise.
80694         * lib/sig2str.c: Likewise.
80695         * lib/sig2str.h: Likewise.
80696         * lib/signal.in.h: Likewise.
80697         * lib/signbitd.c: Likewise.
80698         * lib/signbitf.c: Likewise.
80699         * lib/signbitl.c: Likewise.
80700         * lib/sigprocmask.c: Likewise.
80701         * lib/sincosl.c: Likewise.
80702         * lib/sleep.c: Likewise.
80703         * lib/sprintf.c: Likewise.
80704         * lib/sqrtl.c: Likewise.
80705         * lib/stat-time.h: Likewise.
80706         * lib/stdio--.h: Likewise.
80707         * lib/stdio-safer.h: Likewise.
80708         * lib/stdlib--.h: Likewise.
80709         * lib/stdlib-safer.h: Likewise.
80710         * lib/stdlib.in.h: Likewise.
80711         * lib/stpcpy.c: Likewise.
80712         * lib/stpncpy.c: Likewise.
80713         * lib/strchrnul.c: Likewise.
80714         * lib/strcspn.c: Likewise.
80715         * lib/strerror.c: Likewise.
80716         * lib/strftime.c: Likewise.
80717         * lib/strftime.h: Likewise.
80718         * lib/striconveh.c: Likewise.
80719         * lib/striconveh.h: Likewise.
80720         * lib/striconveha.c: Likewise.
80721         * lib/striconveha.h: Likewise.
80722         * lib/stripslash.c: Likewise.
80723         * lib/strnlen1.c: Likewise.
80724         * lib/strnlen1.h: Likewise.
80725         * lib/strtod.c: Likewise.
80726         * lib/strtoimax.c: Likewise.
80727         * lib/strtok_r.c: Likewise.
80728         * lib/strtol.c: Likewise.
80729         * lib/strtoll.c: Likewise.
80730         * lib/strtoul.c: Likewise.
80731         * lib/strtoull.c: Likewise.
80732         * lib/sysexits.in.h: Likewise.
80733         * lib/tempname.c: Likewise.
80734         * lib/tempname.h: Likewise.
80735         * lib/timespec.h: Likewise.
80736         * lib/tls.c: Likewise.
80737         * lib/tls.h: Likewise.
80738         * lib/tmpdir.c: Likewise.
80739         * lib/tmpdir.h: Likewise.
80740         * lib/tmpfile-safer.c: Likewise.
80741         * lib/tmpfile.c: Likewise.
80742         * lib/trigl.c: Likewise.
80743         * lib/trigl.h: Likewise.
80744         * lib/trim.c: Likewise.
80745         * lib/trim.h: Likewise.
80746         * lib/trunc.c: Likewise.
80747         * lib/truncf.c: Likewise.
80748         * lib/truncl.c: Likewise.
80749         * lib/tsearch.c: Likewise.
80750         * lib/unicodeio.c: Likewise.
80751         * lib/unicodeio.h: Likewise.
80752         * lib/unistd--.h: Likewise.
80753         * lib/unistd-safer.h: Likewise.
80754         * lib/unistdio/ulc-fprintf.c: Likewise.
80755         * lib/unistdio/ulc-vfprintf.c: Likewise.
80756         * lib/unlinkdir.c: Likewise.
80757         * lib/unlinkdir.h: Likewise.
80758         * lib/unlocked-io.h: Likewise.
80759         * lib/unsetenv.c: Likewise.
80760         * lib/userspec.c: Likewise.
80761         * lib/utime.c: Likewise.
80762         * lib/utimecmp.c: Likewise.
80763         * lib/utimecmp.h: Likewise.
80764         * lib/utimens.c: Likewise.
80765         * lib/verify.h: Likewise.
80766         * lib/verror.c: Likewise.
80767         * lib/verror.h: Likewise.
80768         * lib/version-etc-fsf.c: Likewise.
80769         * lib/version-etc.c: Likewise.
80770         * lib/version-etc.h: Likewise.
80771         * lib/vfprintf.c: Likewise.
80772         * lib/vprintf.c: Likewise.
80773         * lib/vsprintf.c: Likewise.
80774         * lib/w32spawn.h: Likewise.
80775         * lib/wait-process.c: Likewise.
80776         * lib/wait-process.h: Likewise.
80777         * lib/wcwidth.c: Likewise.
80778         * lib/write-any-file.c: Likewise.
80779         * lib/xalloc-die.c: Likewise.
80780         * lib/xalloc.h: Likewise.
80781         * lib/xasprintf.c: Likewise.
80782         * lib/xgetcwd.c: Likewise.
80783         * lib/xgetcwd.h: Likewise.
80784         * lib/xgetdomainname.c: Likewise.
80785         * lib/xgetdomainname.h: Likewise.
80786         * lib/xgethostname.c: Likewise.
80787         * lib/xmalloc.c: Likewise.
80788         * lib/xmalloca.c: Likewise.
80789         * lib/xmalloca.h: Likewise.
80790         * lib/xmemcoll.c: Likewise.
80791         * lib/xnanosleep.c: Likewise.
80792         * lib/xreadlink.c: Likewise.
80793         * lib/xreadlink.h: Likewise.
80794         * lib/xsetenv.c: Likewise.
80795         * lib/xsetenv.h: Likewise.
80796         * lib/xstriconv.c: Likewise.
80797         * lib/xstriconv.h: Likewise.
80798         * lib/xstrndup.c: Likewise.
80799         * lib/xstrndup.h: Likewise.
80800         * lib/xstrtod.c: Likewise.
80801         * lib/xstrtod.h: Likewise.
80802         * lib/xstrtol-error.c: Likewise.
80803         * lib/xstrtol.c: Likewise.
80804         * lib/xstrtol.h: Likewise.
80805         * lib/xtime.h: Likewise.
80806         * lib/xvasprintf.c: Likewise.
80807         * lib/xvasprintf.h: Likewise.
80808         * lib/yesno.c: Likewise.
80809         * lib/yesno.h: Likewise.
80810         * posix-modules: Likewise.
80811         * tests/test-alloca-opt.c: Likewise.
80812         * tests/test-arcfour.c: Likewise.
80813         * tests/test-arctwo.c: Likewise.
80814         * tests/test-argmatch.c: Likewise.
80815         * tests/test-argp-2.sh: Likewise.
80816         * tests/test-argp.c: Likewise.
80817         * tests/test-arpa_inet.c: Likewise.
80818         * tests/test-array_list.c: Likewise.
80819         * tests/test-array_oset.c: Likewise.
80820         * tests/test-atexit.c: Likewise.
80821         * tests/test-avltree_list.c: Likewise.
80822         * tests/test-avltree_oset.c: Likewise.
80823         * tests/test-avltreehash_list.c: Likewise.
80824         * tests/test-base64.c: Likewise.
80825         * tests/test-binary-io.c: Likewise.
80826         * tests/test-byteswap.c: Likewise.
80827         * tests/test-c-ctype.c: Likewise.
80828         * tests/test-c-strcasecmp.c: Likewise.
80829         * tests/test-c-strcasestr.c: Likewise.
80830         * tests/test-c-strncasecmp.c: Likewise.
80831         * tests/test-c-strstr.c: Likewise.
80832         * tests/test-canonicalize-lgpl.c: Likewise.
80833         * tests/test-canonicalize.c: Likewise.
80834         * tests/test-carray_list.c: Likewise.
80835         * tests/test-ceilf.c: Likewise.
80836         * tests/test-ceill.c: Likewise.
80837         * tests/test-count-one-bits.c: Likewise.
80838         * tests/test-crc.c: Likewise.
80839         * tests/test-dirname.c: Likewise.
80840         * tests/test-fbufmode.c: Likewise.
80841         * tests/test-fcntl.c: Likewise.
80842         * tests/test-fflush.c: Likewise.
80843         * tests/test-floorf.c: Likewise.
80844         * tests/test-floorl.c: Likewise.
80845         * tests/test-fopen.c: Likewise.
80846         * tests/test-fprintf-posix.c: Likewise.
80847         * tests/test-fprintf-posix.h: Likewise.
80848         * tests/test-fpurge.c: Likewise.
80849         * tests/test-freadable.c: Likewise.
80850         * tests/test-freadahead.c: Likewise.
80851         * tests/test-freading.c: Likewise.
80852         * tests/test-freopen.c: Likewise.
80853         * tests/test-frexp.c: Likewise.
80854         * tests/test-frexpl.c: Likewise.
80855         * tests/test-fseek.c: Likewise.
80856         * tests/test-fseeko.c: Likewise.
80857         * tests/test-fseterr.c: Likewise.
80858         * tests/test-fstrcmp.c: Likewise.
80859         * tests/test-ftell.c: Likewise.
80860         * tests/test-ftello.c: Likewise.
80861         * tests/test-fwritable.c: Likewise.
80862         * tests/test-fwriting.c: Likewise.
80863         * tests/test-getaddrinfo.c: Likewise.
80864         * tests/test-getpass.c: Likewise.
80865         * tests/test-gettimeofday.c: Likewise.
80866         * tests/test-hmac-md5.c: Likewise.
80867         * tests/test-hmac-sha1.c: Likewise.
80868         * tests/test-iconv.c: Likewise.
80869         * tests/test-iconvme.c: Likewise.
80870         * tests/test-inttypes.c: Likewise.
80871         * tests/test-isnan.c: Likewise.
80872         * tests/test-isnanf.c: Likewise.
80873         * tests/test-isnanl-nolibm.c: Likewise.
80874         * tests/test-isnanl.c: Likewise.
80875         * tests/test-isnanl.h: Likewise.
80876         * tests/test-ldexpl.c: Likewise.
80877         * tests/test-linked_list.c: Likewise.
80878         * tests/test-linkedhash_list.c: Likewise.
80879         * tests/test-locale.c: Likewise.
80880         * tests/test-localename.c: Likewise.
80881         * tests/test-lock.c: Likewise.
80882         * tests/test-lseek.c: Likewise.
80883         * tests/test-malloca.c: Likewise.
80884         * tests/test-math.c: Likewise.
80885         * tests/test-mbscasecmp.c: Likewise.
80886         * tests/test-mbscasestr1.c: Likewise.
80887         * tests/test-mbscasestr2.c: Likewise.
80888         * tests/test-mbscasestr3.c: Likewise.
80889         * tests/test-mbscasestr4.c: Likewise.
80890         * tests/test-mbschr.c: Likewise.
80891         * tests/test-mbscspn.c: Likewise.
80892         * tests/test-mbsncasecmp.c: Likewise.
80893         * tests/test-mbspbrk.c: Likewise.
80894         * tests/test-mbspcasecmp.c: Likewise.
80895         * tests/test-mbsrchr.c: Likewise.
80896         * tests/test-mbsspn.c: Likewise.
80897         * tests/test-mbsstr1.c: Likewise.
80898         * tests/test-mbsstr2.c: Likewise.
80899         * tests/test-mbsstr3.c: Likewise.
80900         * tests/test-md5.c: Likewise.
80901         * tests/test-memmem.c: Likewise.
80902         * tests/test-netinet_in.c: Likewise.
80903         * tests/test-open.c: Likewise.
80904         * tests/test-printf-frexp.c: Likewise.
80905         * tests/test-printf-frexpl.c: Likewise.
80906         * tests/test-printf-posix.c: Likewise.
80907         * tests/test-printf-posix.h: Likewise.
80908         * tests/test-rbtree_list.c: Likewise.
80909         * tests/test-rbtree_oset.c: Likewise.
80910         * tests/test-rbtreehash_list.c: Likewise.
80911         * tests/test-read-file.c: Likewise.
80912         * tests/test-rijndael.c: Likewise.
80913         * tests/test-search.c: Likewise.
80914         * tests/test-signbit.c: Likewise.
80915         * tests/test-sleep.c: Likewise.
80916         * tests/test-snprintf-posix.c: Likewise.
80917         * tests/test-snprintf-posix.h: Likewise.
80918         * tests/test-snprintf.c: Likewise.
80919         * tests/test-sprintf-posix.c: Likewise.
80920         * tests/test-sprintf-posix.h: Likewise.
80921         * tests/test-stat-time.c: Likewise.
80922         * tests/test-stdbool.c: Likewise.
80923         * tests/test-stdint.c: Likewise.
80924         * tests/test-stdio.c: Likewise.
80925         * tests/test-stdlib.c: Likewise.
80926         * tests/test-stpncpy.c: Likewise.
80927         * tests/test-strcasestr.c: Likewise.
80928         * tests/test-striconv.c: Likewise.
80929         * tests/test-striconveh.c: Likewise.
80930         * tests/test-striconveha.c: Likewise.
80931         * tests/test-string.c: Likewise.
80932         * tests/test-sys_select.c: Likewise.
80933         * tests/test-sys_socket.c: Likewise.
80934         * tests/test-sys_stat.c: Likewise.
80935         * tests/test-sys_time.c: Likewise.
80936         * tests/test-sysexits.c: Likewise.
80937         * tests/test-time.c: Likewise.
80938         * tests/test-tls.c: Likewise.
80939         * tests/test-trunc.c: Likewise.
80940         * tests/test-truncf.c: Likewise.
80941         * tests/test-truncl.c: Likewise.
80942         * tests/test-unistd.c: Likewise.
80943         * tests/test-vasnprintf-posix.c: Likewise.
80944         * tests/test-vasnprintf-posix2.c: Likewise.
80945         * tests/test-vasnprintf.c: Likewise.
80946         * tests/test-vasprintf-posix.c: Likewise.
80947         * tests/test-vasprintf.c: Likewise.
80948         * tests/test-verify.c: Likewise.
80949         * tests/test-vfprintf-posix.c: Likewise.
80950         * tests/test-vprintf-posix.c: Likewise.
80951         * tests/test-vsnprintf-posix.c: Likewise.
80952         * tests/test-vsnprintf.c: Likewise.
80953         * tests/test-vsprintf-posix.c: Likewise.
80954         * tests/test-wchar.c: Likewise.
80955         * tests/test-wctype.c: Likewise.
80956         * tests/test-wcwidth.c: Likewise.
80957         * tests/test-xstrtol.c: Likewise.
80958         * tests/test-xvasprintf.c: Likewise.
80959         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
80960         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
80961         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
80962         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
80963         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
80964         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
80965         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
80966         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
80967         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
80968         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
80969         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
80970         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
80971         * tests/uniname/test-uninames.c: Likewise.
80972         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
80973         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
80974         * tests/unistdio/test-u16-printf1.h: Likewise.
80975         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
80976         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
80977         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
80978         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
80979         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
80980         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
80981         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
80982         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
80983         * tests/unistdio/test-u32-printf1.h: Likewise.
80984         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
80985         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
80986         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
80987         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
80988         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
80989         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
80990         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
80991         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
80992         * tests/unistdio/test-u8-printf1.h: Likewise.
80993         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
80994         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
80995         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
80996         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
80997         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
80998         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
80999         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
81000         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
81001         * tests/unistdio/test-ulc-printf1.h: Likewise.
81002         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
81003         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
81004         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
81005         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
81006         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
81007         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
81008         * tests/uniwidth/test-u16-strwidth.c: Likewise.
81009         * tests/uniwidth/test-u16-width.c: Likewise.
81010         * tests/uniwidth/test-u32-strwidth.c: Likewise.
81011         * tests/uniwidth/test-u32-width.c: Likewise.
81012         * tests/uniwidth/test-u8-strwidth.c: Likewise.
81013         * tests/uniwidth/test-u8-width.c: Likewise.
81014         * tests/uniwidth/test-uc_width.c: Likewise.
81015         * config/srclist-update: Likewise.
81016         (fixlicense): Update to GPLv3+.
81018         Change copyright notice from LGPLv2.1+ to LGPLv3+.
81019         * tests/test-tsearch.c: Change copyright notice.
81021         Change copyright notice from LGPLv2.0+ to LGPLv3+.
81022         * lib/c-strcaseeq.h: Change copyright notice.
81023         * lib/streq.h: Likewise.
81024         * lib/uniconv.h: Likewise.
81025         * lib/uniconv/u-conv-from-enc.h: Likewise.
81026         * lib/uniconv/u-conv-to-enc.h: Likewise.
81027         * lib/uniconv/u-strconv-from-enc.h: Likewise.
81028         * lib/uniconv/u-strconv-to-enc.h: Likewise.
81029         * lib/uniconv/u16-conv-from-enc.c: Likewise.
81030         * lib/uniconv/u16-conv-to-enc.c: Likewise.
81031         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
81032         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
81033         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
81034         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
81035         * lib/uniconv/u32-conv-from-enc.c: Likewise.
81036         * lib/uniconv/u32-conv-to-enc.c: Likewise.
81037         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
81038         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
81039         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
81040         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
81041         * lib/uniconv/u8-conv-from-enc.c: Likewise.
81042         * lib/uniconv/u8-conv-to-enc.c: Likewise.
81043         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
81044         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
81045         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
81046         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
81047         * lib/uniname.h: Likewise.
81048         * lib/uniname/uniname.c: Likewise.
81049         * lib/unistdio.h: Likewise.
81050         * lib/unistdio/u-asnprintf.h: Likewise.
81051         * lib/unistdio/u-asprintf.h: Likewise.
81052         * lib/unistdio/u-printf-args.c: Likewise.
81053         * lib/unistdio/u-printf-args.h: Likewise.
81054         * lib/unistdio/u-printf-parse.h: Likewise.
81055         * lib/unistdio/u-snprintf.h: Likewise.
81056         * lib/unistdio/u-sprintf.h: Likewise.
81057         * lib/unistdio/u-vasprintf.h: Likewise.
81058         * lib/unistdio/u-vsnprintf.h: Likewise.
81059         * lib/unistdio/u-vsprintf.h: Likewise.
81060         * lib/unistdio/u16-asnprintf.c: Likewise.
81061         * lib/unistdio/u16-asprintf.c: Likewise.
81062         * lib/unistdio/u16-printf-parse.c: Likewise.
81063         * lib/unistdio/u16-snprintf.c: Likewise.
81064         * lib/unistdio/u16-sprintf.c: Likewise.
81065         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
81066         * lib/unistdio/u16-u16-asprintf.c: Likewise.
81067         * lib/unistdio/u16-u16-snprintf.c: Likewise.
81068         * lib/unistdio/u16-u16-sprintf.c: Likewise.
81069         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
81070         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
81071         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
81072         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
81073         * lib/unistdio/u16-vasnprintf.c: Likewise.
81074         * lib/unistdio/u16-vasprintf.c: Likewise.
81075         * lib/unistdio/u16-vsnprintf.c: Likewise.
81076         * lib/unistdio/u16-vsprintf.c: Likewise.
81077         * lib/unistdio/u32-asnprintf.c: Likewise.
81078         * lib/unistdio/u32-asprintf.c: Likewise.
81079         * lib/unistdio/u32-printf-parse.c: Likewise.
81080         * lib/unistdio/u32-snprintf.c: Likewise.
81081         * lib/unistdio/u32-sprintf.c: Likewise.
81082         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
81083         * lib/unistdio/u32-u32-asprintf.c: Likewise.
81084         * lib/unistdio/u32-u32-snprintf.c: Likewise.
81085         * lib/unistdio/u32-u32-sprintf.c: Likewise.
81086         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
81087         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
81088         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
81089         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
81090         * lib/unistdio/u32-vasnprintf.c: Likewise.
81091         * lib/unistdio/u32-vasprintf.c: Likewise.
81092         * lib/unistdio/u32-vsnprintf.c: Likewise.
81093         * lib/unistdio/u32-vsprintf.c: Likewise.
81094         * lib/unistdio/u8-asnprintf.c: Likewise.
81095         * lib/unistdio/u8-asprintf.c: Likewise.
81096         * lib/unistdio/u8-printf-parse.c: Likewise.
81097         * lib/unistdio/u8-snprintf.c: Likewise.
81098         * lib/unistdio/u8-sprintf.c: Likewise.
81099         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
81100         * lib/unistdio/u8-u8-asprintf.c: Likewise.
81101         * lib/unistdio/u8-u8-snprintf.c: Likewise.
81102         * lib/unistdio/u8-u8-sprintf.c: Likewise.
81103         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
81104         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
81105         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
81106         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
81107         * lib/unistdio/u8-vasnprintf.c: Likewise.
81108         * lib/unistdio/u8-vasprintf.c: Likewise.
81109         * lib/unistdio/u8-vsnprintf.c: Likewise.
81110         * lib/unistdio/u8-vsprintf.c: Likewise.
81111         * lib/unistdio/ulc-asnprintf.c: Likewise.
81112         * lib/unistdio/ulc-asprintf.c: Likewise.
81113         * lib/unistdio/ulc-printf-parse.c: Likewise.
81114         * lib/unistdio/ulc-snprintf.c: Likewise.
81115         * lib/unistdio/ulc-sprintf.c: Likewise.
81116         * lib/unistdio/ulc-vasnprintf.c: Likewise.
81117         * lib/unistdio/ulc-vasprintf.c: Likewise.
81118         * lib/unistdio/ulc-vsnprintf.c: Likewise.
81119         * lib/unistdio/ulc-vsprintf.c: Likewise.
81120         * lib/unistr.h: Likewise.
81121         * lib/unistr/u-cpy-alloc.h: Likewise.
81122         * lib/unistr/u-cpy.h: Likewise.
81123         * lib/unistr/u-endswith.h: Likewise.
81124         * lib/unistr/u-move.h: Likewise.
81125         * lib/unistr/u-set.h: Likewise.
81126         * lib/unistr/u-startswith.h: Likewise.
81127         * lib/unistr/u-stpcpy.h: Likewise.
81128         * lib/unistr/u-stpncpy.h: Likewise.
81129         * lib/unistr/u-strcat.h: Likewise.
81130         * lib/unistr/u-strcpy.h: Likewise.
81131         * lib/unistr/u-strcspn.h: Likewise.
81132         * lib/unistr/u-strdup.h: Likewise.
81133         * lib/unistr/u-strlen.h: Likewise.
81134         * lib/unistr/u-strncat.h: Likewise.
81135         * lib/unistr/u-strncpy.h: Likewise.
81136         * lib/unistr/u-strnlen.h: Likewise.
81137         * lib/unistr/u-strpbrk.h: Likewise.
81138         * lib/unistr/u-strspn.h: Likewise.
81139         * lib/unistr/u-strstr.h: Likewise.
81140         * lib/unistr/u-strtok.h: Likewise.
81141         * lib/unistr/u16-check.c: Likewise.
81142         * lib/unistr/u16-chr.c: Likewise.
81143         * lib/unistr/u16-cmp.c: Likewise.
81144         * lib/unistr/u16-cpy-alloc.c: Likewise.
81145         * lib/unistr/u16-cpy.c: Likewise.
81146         * lib/unistr/u16-endswith.c: Likewise.
81147         * lib/unistr/u16-mblen.c: Likewise.
81148         * lib/unistr/u16-mbsnlen.c: Likewise.
81149         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81150         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81151         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81152         * lib/unistr/u16-mbtouc.c: Likewise.
81153         * lib/unistr/u16-mbtoucr.c: Likewise.
81154         * lib/unistr/u16-move.c: Likewise.
81155         * lib/unistr/u16-next.c: Likewise.
81156         * lib/unistr/u16-prev.c: Likewise.
81157         * lib/unistr/u16-set.c: Likewise.
81158         * lib/unistr/u16-startswith.c: Likewise.
81159         * lib/unistr/u16-stpcpy.c: Likewise.
81160         * lib/unistr/u16-stpncpy.c: Likewise.
81161         * lib/unistr/u16-strcat.c: Likewise.
81162         * lib/unistr/u16-strchr.c: Likewise.
81163         * lib/unistr/u16-strcmp.c: Likewise.
81164         * lib/unistr/u16-strcpy.c: Likewise.
81165         * lib/unistr/u16-strcspn.c: Likewise.
81166         * lib/unistr/u16-strdup.c: Likewise.
81167         * lib/unistr/u16-strlen.c: Likewise.
81168         * lib/unistr/u16-strmblen.c: Likewise.
81169         * lib/unistr/u16-strmbtouc.c: Likewise.
81170         * lib/unistr/u16-strncat.c: Likewise.
81171         * lib/unistr/u16-strncmp.c: Likewise.
81172         * lib/unistr/u16-strncpy.c: Likewise.
81173         * lib/unistr/u16-strnlen.c: Likewise.
81174         * lib/unistr/u16-strpbrk.c: Likewise.
81175         * lib/unistr/u16-strrchr.c: Likewise.
81176         * lib/unistr/u16-strspn.c: Likewise.
81177         * lib/unistr/u16-strstr.c: Likewise.
81178         * lib/unistr/u16-strtok.c: Likewise.
81179         * lib/unistr/u16-to-u32.c: Likewise.
81180         * lib/unistr/u16-to-u8.c: Likewise.
81181         * lib/unistr/u16-uctomb-aux.c: Likewise.
81182         * lib/unistr/u16-uctomb.c: Likewise.
81183         * lib/unistr/u32-check.c: Likewise.
81184         * lib/unistr/u32-chr.c: Likewise.
81185         * lib/unistr/u32-cmp.c: Likewise.
81186         * lib/unistr/u32-cpy-alloc.c: Likewise.
81187         * lib/unistr/u32-cpy.c: Likewise.
81188         * lib/unistr/u32-endswith.c: Likewise.
81189         * lib/unistr/u32-mblen.c: Likewise.
81190         * lib/unistr/u32-mbsnlen.c: Likewise.
81191         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81192         * lib/unistr/u32-mbtouc.c: Likewise.
81193         * lib/unistr/u32-mbtoucr.c: Likewise.
81194         * lib/unistr/u32-move.c: Likewise.
81195         * lib/unistr/u32-next.c: Likewise.
81196         * lib/unistr/u32-prev.c: Likewise.
81197         * lib/unistr/u32-set.c: Likewise.
81198         * lib/unistr/u32-startswith.c: Likewise.
81199         * lib/unistr/u32-stpcpy.c: Likewise.
81200         * lib/unistr/u32-stpncpy.c: Likewise.
81201         * lib/unistr/u32-strcat.c: Likewise.
81202         * lib/unistr/u32-strchr.c: Likewise.
81203         * lib/unistr/u32-strcmp.c: Likewise.
81204         * lib/unistr/u32-strcpy.c: Likewise.
81205         * lib/unistr/u32-strcspn.c: Likewise.
81206         * lib/unistr/u32-strdup.c: Likewise.
81207         * lib/unistr/u32-strlen.c: Likewise.
81208         * lib/unistr/u32-strmblen.c: Likewise.
81209         * lib/unistr/u32-strmbtouc.c: Likewise.
81210         * lib/unistr/u32-strncat.c: Likewise.
81211         * lib/unistr/u32-strncmp.c: Likewise.
81212         * lib/unistr/u32-strncpy.c: Likewise.
81213         * lib/unistr/u32-strnlen.c: Likewise.
81214         * lib/unistr/u32-strpbrk.c: Likewise.
81215         * lib/unistr/u32-strrchr.c: Likewise.
81216         * lib/unistr/u32-strspn.c: Likewise.
81217         * lib/unistr/u32-strstr.c: Likewise.
81218         * lib/unistr/u32-strtok.c: Likewise.
81219         * lib/unistr/u32-to-u16.c: Likewise.
81220         * lib/unistr/u32-to-u8.c: Likewise.
81221         * lib/unistr/u32-uctomb.c: Likewise.
81222         * lib/unistr/u8-check.c: Likewise.
81223         * lib/unistr/u8-chr.c: Likewise.
81224         * lib/unistr/u8-cmp.c: Likewise.
81225         * lib/unistr/u8-cpy-alloc.c: Likewise.
81226         * lib/unistr/u8-cpy.c: Likewise.
81227         * lib/unistr/u8-endswith.c: Likewise.
81228         * lib/unistr/u8-mblen.c: Likewise.
81229         * lib/unistr/u8-mbsnlen.c: Likewise.
81230         * lib/unistr/u8-mbtouc-aux.c: Likewise.
81231         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81232         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81233         * lib/unistr/u8-mbtouc.c: Likewise.
81234         * lib/unistr/u8-mbtoucr.c: Likewise.
81235         * lib/unistr/u8-move.c: Likewise.
81236         * lib/unistr/u8-next.c: Likewise.
81237         * lib/unistr/u8-prev.c: Likewise.
81238         * lib/unistr/u8-set.c: Likewise.
81239         * lib/unistr/u8-startswith.c: Likewise.
81240         * lib/unistr/u8-stpcpy.c: Likewise.
81241         * lib/unistr/u8-stpncpy.c: Likewise.
81242         * lib/unistr/u8-strcat.c: Likewise.
81243         * lib/unistr/u8-strchr.c: Likewise.
81244         * lib/unistr/u8-strcmp.c: Likewise.
81245         * lib/unistr/u8-strcpy.c: Likewise.
81246         * lib/unistr/u8-strcspn.c: Likewise.
81247         * lib/unistr/u8-strdup.c: Likewise.
81248         * lib/unistr/u8-strlen.c: Likewise.
81249         * lib/unistr/u8-strmblen.c: Likewise.
81250         * lib/unistr/u8-strmbtouc.c: Likewise.
81251         * lib/unistr/u8-strncat.c: Likewise.
81252         * lib/unistr/u8-strncmp.c: Likewise.
81253         * lib/unistr/u8-strncpy.c: Likewise.
81254         * lib/unistr/u8-strnlen.c: Likewise.
81255         * lib/unistr/u8-strpbrk.c: Likewise.
81256         * lib/unistr/u8-strrchr.c: Likewise.
81257         * lib/unistr/u8-strspn.c: Likewise.
81258         * lib/unistr/u8-strstr.c: Likewise.
81259         * lib/unistr/u8-strtok.c: Likewise.
81260         * lib/unistr/u8-to-u16.c: Likewise.
81261         * lib/unistr/u8-to-u32.c: Likewise.
81262         * lib/unistr/u8-uctomb-aux.c: Likewise.
81263         * lib/unistr/u8-uctomb.c: Likewise.
81264         * lib/unitypes.h: Likewise.
81265         * lib/uniwidth.h: Likewise.
81266         * lib/uniwidth/cjk.h: Likewise.
81267         * lib/uniwidth/u16-strwidth.c: Likewise.
81268         * lib/uniwidth/u16-width.c: Likewise.
81269         * lib/uniwidth/u32-strwidth.c: Likewise.
81270         * lib/uniwidth/u32-width.c: Likewise.
81271         * lib/uniwidth/u8-strwidth.c: Likewise.
81272         * lib/uniwidth/u8-width.c: Likewise.
81273         * lib/uniwidth/width.c: Likewise.
81275 2007-10-07  Bruno Haible  <bruno@clisp.org>
81277         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
81278         The file is still under LGPL (see modules/inttypes).
81280 2007-10-06  Bruno Haible  <bruno@clisp.org>
81282         * modules/trunc (Dependencies): Add 'extensions'.
81283         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
81284         Reported by Ben Pfaff <blp@gnu.org>.
81286 2007-10-06  Bruno Haible  <bruno@clisp.org>
81288         * modules/freopen-tests: New file.
81289         * tests/test-freopen.c: New file.
81291         * modules/fopen-tests: New file.
81292         * tests/test-fopen.c: New file.
81294         * modules/fopen: New file.
81295         * lib/fopen.c: New file.
81296         * m4/fopen.m4: New file.
81297         * modules/freopen: New file.
81298         * lib/freopen.c: New file.
81299         * m4/freopen.m4: New file.
81300         * lib/stdio.in.h (fopen, freopen): New declarations.
81301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
81302         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
81303         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
81304         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
81305         * doc/functions/fopen.texi: Mention the 'fopen' module.
81306         * doc/functions/freopen.texi: Mention the 'freopen' module.
81308 2007-10-06  Bruno Haible  <bruno@clisp.org>
81310         * modules/open-tests: New file.
81311         * tests/test-open.c: New file.
81313         * modules/open: New file.
81314         * lib/open.c: New file.
81315         * m4/open.m4: New file.
81316         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
81317         lib/open.c does.
81318         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
81319         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
81320         macros.
81321         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
81322         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
81323         REPLACE_OPEN.
81324         * doc/functions/open.texi: Mention the 'open' module.
81326 2007-10-04  Bruno Haible  <bruno@clisp.org>
81328         * modules/ceill-tests: New file.
81329         * tests/test-ceill.c: New file.
81331         * modules/ceill: New file.
81332         * lib/ceill.c: Replace entire file.
81333         * m4/ceill.m4: New file.
81334         * lib/math.in.h (ceill): Replace declaration.
81335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
81336         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
81337         * doc/functions/ceill.texi: Mention the 'ceill' module.
81338         * modules/mathl (Files): Remove lib/ceill.c.
81339         (Depends-on): Add ceill.
81341 2007-10-04  Bruno Haible  <bruno@clisp.org>
81343         * modules/ceilf-tests: New file.
81344         * tests/test-ceilf.c: New file.
81346         * modules/ceilf: New file.
81347         * lib/ceil.c: New file.
81348         * lib/ceilf.c: New file.
81349         * m4/ceilf.m4: New file.
81350         * lib/math.in.h (ceilf): New declaration.
81351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
81352         HAVE_DECL_CEILF.
81353         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
81354         HAVE_DECL_CEILF.
81355         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
81357 2007-10-04  Bruno Haible  <bruno@clisp.org>
81359         * modules/floorl-tests: New file.
81360         * tests/test-floorl.c: New file.
81362         * modules/floorl: New file.
81363         * lib/floorl.c: Replace entire file.
81364         * m4/floorl.m4: New file.
81365         * lib/math.in.h (floorl): Replace declaration.
81366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
81367         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
81368         * doc/functions/floorl.texi: Mention the 'floorl' module.
81369         * modules/mathl (Files): Remove lib/floorl.c.
81370         (Depends-on): Add floorl.
81372 2007-10-04  Bruno Haible  <bruno@clisp.org>
81374         * modules/floorf-tests: New file.
81375         * tests/test-floorf.c: New file.
81377         * modules/floorf: New file.
81378         * lib/floor.c: New file.
81379         * lib/floorf.c: New file.
81380         * m4/floorf.m4: New file.
81381         * lib/math.in.h (floorf): New declaration.
81382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
81383         HAVE_DECL_FLOORF.
81384         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
81385         HAVE_DECL_FLOORF.
81386         * doc/functions/floorf.texi: Mention the 'floorf' module.
81388 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
81389             Bruno Haible  <bruno@clisp.org>
81391         Advertise for the Git server instead of the CVS server.
81392         * doc/gnulib-intro.texi (Steady Development): Mention the Git
81393         repository instead of the CVS one.
81394         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
81395         about all VCS systems generically.
81396         * doc/gnulib.texi (Introduction): Capitalize `Git'.
81398 2007-10-04  Bruno Haible  <bruno@clisp.org>
81400         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
81401         means.
81402         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
81404 2007-10-04  Bruno Haible  <bruno@clisp.org>
81406         * modules/truncl-tests: New file.
81407         * tests/test-truncl.c: New file.
81409         * modules/truncl: New file.
81410         * lib/truncl.c: New file.
81411         * m4/truncl.m4: New file.
81412         * lib/math.in.h (truncl): New declaration.
81413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
81414         HAVE_DECL_TRUNCL.
81415         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
81416         HAVE_DECL_TRUNCL.
81417         * doc/functions/truncl.texi: Mention the 'truncl' module.
81419 2007-10-04  Bruno Haible  <bruno@clisp.org>
81421         * modules/truncf-tests: New file.
81422         * tests/test-truncf.c: New file.
81424         * modules/truncf: New file.
81425         * lib/trunc.c: Make paramerizable through USE_* macros.
81426         * lib/truncf.c: New file.
81427         * m4/truncf.m4: New file.
81428         * lib/math.in.h (truncf): New declaration.
81429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
81430         HAVE_DECL_TRUNCF.
81431         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
81432         HAVE_DECL_TRUNCF.
81433         * doc/functions/truncf.texi: Mention the 'truncf' module.
81435 2007-10-03  Bruno Haible  <bruno@clisp.org>
81437         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
81438         augmentation also for tests modules.
81439         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
81440         * modules/atexit-tests (Makefile.am): Likewise.
81441         * modules/binary-io-tests (Makefile.am): Likewise.
81442         * modules/c-strcase-tests (Makefile.am): Likewise.
81443         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
81444         * modules/canonicalize-tests (Makefile.am): Likewise.
81445         * modules/closein-tests (Makefile.am): Likewise.
81446         * modules/fprintf-posix-tests (Makefile.am): Likewise.
81447         * modules/freadahead-tests (Makefile.am): Likewise.
81448         * modules/fseek-tests (Makefile.am): Likewise.
81449         * modules/fseeko-tests (Makefile.am): Likewise.
81450         * modules/ftell-tests (Makefile.am): Likewise.
81451         * modules/ftello-tests (Makefile.am): Likewise.
81452         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
81453         * modules/isnanl-tests (Makefile.am): Likewise.
81454         * modules/lseek-tests (Makefile.am): Likewise.
81455         * modules/mbscasecmp-tests (Makefile.am): Likewise.
81456         * modules/mbscasestr-tests (Makefile.am): Likewise.
81457         * modules/mbschr-tests (Makefile.am): Likewise.
81458         * modules/mbscspn-tests (Makefile.am): Likewise.
81459         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
81460         * modules/mbspbrk-tests (Makefile.am): Likewise.
81461         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
81462         * modules/mbsrchr-tests (Makefile.am): Likewise.
81463         * modules/mbsspn-tests (Makefile.am): Likewise.
81464         * modules/mbsstr-tests (Makefile.am): Likewise.
81465         * modules/printf-posix-tests (Makefile.am): Likewise.
81466         * modules/snprintf-posix-tests (Makefile.am): Likewise.
81467         * modules/sprintf-posix-tests (Makefile.am): Likewise.
81468         * modules/tsearch-tests (Makefile.am): Likewise.
81469         * modules/uniname/uniname-tests (Makefile.am): Likewise.
81470         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
81471         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
81472         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
81473         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
81474         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
81475         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
81476         * modules/vprintf-posix-tests (Makefile.am): Likewise.
81477         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
81478         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
81479         * modules/xstrtoimax-tests (Makefile.am): Likewise.
81480         * modules/xstrtol-tests (Makefile.am): Likewise.
81481         * modules/xstrtoumax-tests (Makefile.am): Likewise.
81482         * modules/yesno-tests (Makefile.am): Likewise.
81484 2007-10-03  Bruno Haible  <bruno@clisp.org>
81486         * modules/trunc-tests: New file.
81487         * tests/test-trunc.c: New file.
81489         * modules/trunc: New file.
81490         * lib/trunc.c: New file.
81491         * m4/trunc.m4: New file.
81492         * lib/math.in.h (trunc): New declaration.
81493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
81494         HAVE_DECL_TRUNC.
81495         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
81496         HAVE_DECL_TRUNC.
81497         * doc/functions/trunc.texi: Mention the 'trunc' module.
81499 2007-10-03  Bruno Haible  <bruno@clisp.org>
81501         * tests/test-fpending.c: New file, mostly copied
81502         from coreutils/lib/t-fpending.c.
81503         * modules/fpending-tests: New file.
81505 2007-10-03  Bruno Haible  <bruno@clisp.org>
81507         Port the stdio extensions to QNX (untested).
81508         * lib/fseterr.c (fseterr): Add support for QNX.
81509         * lib/fbufmode.c (fbufmode): Likewise.
81510         * lib/freadable.c (freadable): Likewise.
81511         * lib/fwritable.c (fwritable): Likewise.
81512         * lib/freading.c (freading): Likewise.
81513         * lib/fwriting.c (fwriting): Likewise.
81514         * lib/freadahead.c (freadahed): Likewise.
81515         * lib/fpurge.c (fpurge): Likewise.
81516         * lib/fseeko.c (rpl_fseeko): Likewise.
81518 2007-10-03  Bruno Haible  <bruno@clisp.org>
81519             Jim Meyering  <jim@meyering.net>
81520             Eric Blake  <ebb9@byu.net>
81522         * doc/relocatable.texi: Use @command instead of @program.
81524 2007-10-02  Jim Meyering  <jim@meyering.net>
81526         Perform one more "_.h" -> ".in.h" substitution.
81527         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
81528         instead of unistd_.h here, too.
81530 2007-10-01  Bruno Haible  <bruno@clisp.org>
81532         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
81533         Needed for the alloca-opt module.
81535 2007-09-30  Bruno Haible  <bruno@clisp.org>
81537         * lib/alloca.in.h: Renamed from lib/alloca_.h.
81538         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
81539         alloca_.h.
81540         * lib/argz.in.h: Renamed from lib/argz_.h.
81541         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
81542         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
81543         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
81544         byteswap_.h.
81545         * lib/dirent.in.h: Renamed from lib/dirent_.h.
81546         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
81547         dirent_.h.
81548         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
81549         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
81550         fcntl_.h.
81551         * lib/float.in.h: Renamed from lib/float_.h.
81552         * modules/float (Files, Makefile.am): Use float.in.h instead of
81553         float_.h.
81554         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
81555         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
81556         fnmatch_.h.
81557         * lib/getopt.in.h: Renamed from lib/getopt_.h.
81558         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
81559         getopt_.h.
81560         * lib/glob.in.h: Renamed from lib/glob_.h.
81561         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
81562         * lib/iconv.in.h: Renamed from lib/iconv_.h.
81563         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
81564         iconv_.h.
81565         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
81566         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
81567         inttypes_.h.
81568         * lib/locale.in.h: Renamed from lib/locale_.h.
81569         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
81570         locale_.h.
81571         * lib/math.in.h: Renamed from lib/math_.h.
81572         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
81573         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
81574         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
81575         of netinet_in_.h. Add dependency.
81576         * lib/poll.in.h: Renamed from lib/poll_.h.
81577         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
81578         * lib/search.in.h: Renamed from lib/search_.h.
81579         * modules/search (Files, Makefile.am): Use search.in.h instead of
81580         search_.h.
81581         * lib/signal.in.h: Renamed from lib/signal_.h.
81582         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
81583         _signal.h.
81584         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
81585         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
81586         stdbool_.h.
81587         * lib/stdint.in.h: Renamed from lib/stdint_.h.
81588         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
81589         stdint_.h.
81590         * lib/stdio.in.h: Renamed from lib/stdio_.h.
81591         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
81592         stdio_.h.
81593         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
81594         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
81595         stdlib_.h.
81596         * lib/string.in.h: Renamed from lib/string_.h.
81597         * modules/string (Files, Makefile.am): Use string.in.h instead of
81598         string_.h.
81599         * doc/gnulib-tool.texi (Initial import): Update.
81600         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
81601         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
81602         of sys_select_.h. Add dependency.
81603         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
81604         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
81605         of sys_socket_.h.
81606         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
81607         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
81608         sys_stat_.h.
81609         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
81610         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
81611         sys_time_.h.
81612         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
81613         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
81614         sysexits_.h.
81615         * lib/time.in.h: Renamed from lib/time_.h.
81616         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
81617         * lib/unistd.in.h: Renamed from lib/unistd_.h.
81618         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
81619         unistd_.h.
81620         * lib/wchar.in.h: Renamed from lib/wchar_.h.
81621         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
81622         wchar_.h.
81623         * lib/wctype.in.h: Renamed from lib/wctype_.h.
81624         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
81625         wctype_.h.
81626         * build-aux/bootstrap (slurp): Update.
81627         * lib/.cppi-disable: Update.
81629 2007-09-30  Bruno Haible  <bruno@clisp.org>
81631         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
81632         Needed on BeOS.
81634 2007-09-30  Bruno Haible  <bruno@clisp.org>
81636         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
81638 2007-09-29  Bruno Haible  <bruno@clisp.org>
81640         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
81642 2007-09-29  Bruno Haible  <bruno@clisp.org>
81644         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
81645         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
81646         * build-aux/install-reloc: Compile also areadlink.c.
81647         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
81649 2007-09-29  Bruno Haible  <bruno@clisp.org>
81651         * gnulib-tool (func_emit_initmacro_done): Indentation.
81653 2007-09-29  Bruno Haible  <bruno@clisp.org>
81655         * README: Add CVS checkout update instructions.
81656         Info from Bob Proulx <bob@proulx.com>.
81658 2007-09-28  Eric Blake  <ebb9@byu.net>
81660         Provide move-if-change.
81661         * build-aux/move-if-change: New file, based on best practice
81662         rather than any canonical upstream location.
81664 2007-09-28  Jim Meyering  <jim@meyering.net>
81666         Fix canonicalize loop-detection corner case.
81667         Do not attempt to stat the symlink values stored via seen_triple.
81668         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
81669         on linux-2.6.18, (but not 2.6.22).
81670         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
81671         triple_compare.  The former compares dev,ino,filename, while the latter
81672         would actually stat dirname(filename) when dev and ino were equal.
81673         * lib/hash-triple.c: Install <string.h>.
81674         (STREQ): Define.
81675         (triple_compare_ino_str): New function.
81676         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
81678 2007-09-28  Eric Blake  <ebb9@byu.net>
81680         Enforce that AC_REPLACE_FUNCS files exist.
81681         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
81682         override check for typos.
81684         Fix test-closein on Solaris 10.
81685         * tests/test-closein.c (main): Don't assume stdin can be inherited
81686         closed on all systems.
81687         * tests/test-closein.sh: Likewise.
81688         Reported by Piotr Tarnowski.
81690 2007-09-28  Jim Meyering  <jim@meyering.net>
81692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
81694 2007-09-27  Jim Meyering  <jim@meyering.net>
81696         canonicalize: Avoid a false-positive cycle failure.
81697         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
81698         Sort.  Remove cycle-check.
81699         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
81700         not cycle-check.h.
81701         (seen_triple): New function.
81702         (canonicalize_filename_mode): Use it instead of cycle-check.
81703         * tests/test-canonicalize.c: Add a test for this bug.
81704         * tests/test-canonicalize.sh: Set up and run the test.
81706         New module, file-set, from coreutils.
81707         * modules/file-set: Define it.
81708         * lib/file-set.c, lib/file-set.h: Implement.
81710         New module, hash-triple, from coreutils.
81711         * modules/hash-triple: Define it.
81712         * lib/hash-triple.c, lib/hash-triple.h: Implement.
81714 2007-09-25  Eric Blake  <ebb9@byu.net>
81716         Fix strerror on Interix.
81717         * lib/string_.h (strerror): Declare replacement.
81718         * doc/functions/strerror.texi (strerror): Document the Interix
81719         shortcoming.
81720         * modules/string (Makefile.am): Support new hooks.
81721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
81722         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
81723         gl_FUNC_STRERROR_SEPARATE.
81724         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
81725         * lib/strerror.c (rpl_strerror): Provide replacement.
81726         * modules/strerror (Depends-on): Add string.
81727         (configure.ac): Detect use of module.
81728         * tests/test-strerror.c: New file.
81729         * modules/strerror-tests: New test module.
81730         * modules/argp (Depends-on): Add strerror.
81731         * modules/error (Depends-on): Likewise.
81732         Reported by Martin Koeppe.
81734 2007-09-24  Bruno Haible  <bruno@clisp.org>
81736         * README: Update git instructions.
81738 2007-09-24  Eric Blake  <ebb9@byu.net>
81740         Revert fpending breakage from 2007-09-08.
81741         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
81742         __fpending.c.
81744 2007-09-24  Jim Meyering  <jim@meyering.net>
81746         filenamecat.c: Add a test.
81747         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
81748         showing how the function works when DIR is the empty string.
81750 2007-09-21  Simon Josefsson  <simon@josefsson.org>
81752         * tests/test-canonicalize.sh: Turn on executable bit.
81754 2007-09-19  Eric Blake  <ebb9@byu.net>
81756         * README: Update CVS instructions.
81758 2007-09-18  Bruno Haible  <bruno@clisp.org>
81760         * modules/areadlink: New file.
81761         * lib/areadlink.h (areadlink): New declaration.
81762         * lib/areadlink.c: New file, based on lib/xreadlink.c.
81764 2007-09-17  Jim Meyering  <jim@meyering.net>
81766         * lib/savewd.c (ESTALE) [!defined]: Define.
81767         Reported to be required on Interix by Martin Koeppe.
81769 2007-09-17  Bruno Haible  <bruno@clisp.org>
81771         * gnulib-tool (func_version): Use $version.
81773 2007-09-16  Bruno Haible  <bruno@clisp.org>
81775         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
81776         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
81777         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
81778         Reported by Greg Schafer <gschafer@zip.com.au>.
81780 2007-09-15  Bruno Haible  <bruno@clisp.org>
81782         * gnulib-tool (sed): Try a little harder to make bash understand the
81783         alias.
81784         Reported by Bruce Korb <bruce.korb@gmail.com>.
81786 2007-09-13  Eric Blake  <ebb9@byu.net>
81788         * ChangeLog: Remove conflict markers.
81790 2007-09-13  Simon Josefsson  <simon@josefsson.org>
81792         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
81793         Reported by Bruno Haible <bruno@clisp.org>.
81795 2007-09-12  Bruno Haible  <bruno@clisp.org>
81797         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
81798         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
81799         is not defined.
81801 2007-09-12  Eric Blake  <ebb9@byu.net>
81803         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
81804         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
81805         Autoconf definition.
81806         * modules/euidaccess (Depends-on): Add extensions, for
81807         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
81808         * modules/fnmatch (Depends-on): Likewise.
81809         * modules/getaddrinfo (Depends-on): Likewise.
81810         * modules/getdelim (Depends-on): Likewise.
81811         * modules/getline (Depends-on): Likewise.
81812         * modules/getsubopt (Depends-on): Likewise.
81813         * modules/gettext (Depends-on): Likewise.
81814         * modules/group-member (Depends-on): Likewise.
81815         * modules/mbchar (Depends-on): Likewise.
81816         * modules/memmem (Depends-on): Likewise.
81817         * modules/mempcpy (Depends-on): Likewise.
81818         * modules/memrchr (Depends-on): Likewise.
81819         * modules/pagealign_alloc (Depends-on): Likewise.
81820         * modules/readutmp (Depends-on): Likewise.
81821         * modules/stpcpy (Depends-on): Likewise.
81822         * modules/stpncpy (Depends-on): Likewise.
81823         * modules/strchrnul (Depends-on): Likewise.
81824         * modules/strndup (Depends-on): Likewise.
81825         * modules/strsep (Depends-on): Likewise.
81826         * modules/strverscmp (Depends-on): Likewise.
81827         * modules/vasprintf (Depends-on): Likewise.
81828         * modules/wcwidth (Depends-on): Likewise.
81829         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
81830         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
81831         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
81832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
81833         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
81834         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81835         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
81836         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81837         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
81838         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
81839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
81840         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
81841         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
81842         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
81843         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
81844         * m4/readutmp.m4 (gl_READUTMP): Likewise.
81845         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
81846         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
81847         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
81848         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
81849         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
81850         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
81851         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
81852         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
81853         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
81854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
81855         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
81856         so that lock.m4 can be used in gettext without extensions module.
81858 2007-09-11  Bruno Haible  <bruno@clisp.org>
81860         * m4/isc-posix.m4: Remove file.
81861         Suggested by Eric Blake.
81863 2007-09-11  Eric Blake  <ebb9@byu.net>
81865         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
81867 2007-09-10  Bruno Haible  <bruno@clisp.org>
81869         * posix-modules: Fix typo in error message.
81870         Reported by Matt <mkraai@beckman.com>.
81872 2007-09-09  Bruno Haible  <bruno@clisp.org>
81874         * doc/functions/getdelim.texi: Update list of platforms lacking the
81875         function.
81876         * doc/functions/getline.texi: Likewise.
81878 2007-09-09  Jim Meyering  <jim@meyering.net>
81880         * lib/hash.c (hash_initialize): Detect calloc failure.
81881         Reported by Bruno Haible.
81883 2007-09-09  Bruno Haible  <bruno@clisp.org>
81885         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
81886         malloc or realloc fails.
81888 2007-09-09  Bruno Haible  <bruno@clisp.org>
81890         * modules/getcwd (Depends-on): Add malloc-posix.
81891         * modules/glob (Depends-on): Likewise.
81892         * modules/putenv (Depends-on): Likewise.
81893         * modules/strdup (Depends-on): Likewise.
81894         * modules/getdelim (Depends-on): Add realloc-posix.
81895         * modules/read-file (Depends-on): Likewise.
81897 2007-09-09  Bruno Haible  <bruno@clisp.org>
81899         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
81900         (gl_FUNC_MALLOC_POSIX): Require it.
81901         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
81902         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
81903         * modules/realloc (Files): Add m4/malloc.m4.
81904         * modules/calloc (Files): Likewise.
81906 2007-09-09  Bruno Haible  <bruno@clisp.org>
81908         * modules/malloc-posix: New file.
81909         * modules/malloc (Depends-on): Add malloc-posix.
81910         * lib/malloc.c: Include errno.h.
81911         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
81912         and a POSIX-compatible malloc into a single function. Set ENOMEM
81913         when returning NULL.
81914         * m4/malloc.m4: New file.
81915         * doc/functions/malloc.texi: Mention the malloc-posix module.
81916         * lib/stdlib_.h (malloc): New declaration.
81917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81918         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
81919         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
81920         and HAVE_MALLOC_POSIX.
81922 2007-09-09  Bruno Haible  <bruno@clisp.org>
81924         * modules/realloc-posix: New file.
81925         * modules/realloc (Depends-on): Add realloc-posix.
81926         * lib/realloc.c: Include errno.h.
81927         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
81928         and a POSIX-compatible realloc into a single function. Set ENOMEM
81929         when returning NULL.
81930         * m4/realloc.m4: New file.
81931         * doc/functions/realloc.texi: Mention the realloc-posix module.
81932         * lib/stdlib_.h (realloc): New declaration.
81933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81934         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
81935         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
81936         and HAVE_REALLOC_POSIX.
81938 2007-09-09  Bruno Haible  <bruno@clisp.org>
81940         * modules/calloc-posix: New file.
81941         * modules/calloc (Depends-on): Add calloc-posix.
81942         * lib/calloc.c: Include errno.h.
81943         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
81944         and a POSIX-compatible calloc into a single function. Set ENOMEM
81945         when returning NULL.
81946         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
81947         * doc/functions/calloc.texi: Mention the calloc-posix module.
81948         * lib/stdlib_.h (calloc): New declaration.
81949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81950         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
81951         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
81952         and HAVE_CALLOC_POSIX.
81954 2007-09-09  Bruno Haible  <bruno@clisp.org>
81956         Allow for modules to show an arbitrary notice.
81957         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
81958         * gnulib-tool: New option --extract-notice.
81959         (func_usage): Document it.
81960         (sed_extract_prog): Update.
81961         (func_get_notice): New function.
81962         (func_modules_notice): New function.
81963         (func_import, func_create_testdir): Invoke it.
81964         Suggested by Jim Meyering.
81966 2007-09-09  Bruno Haible  <bruno@clisp.org>
81968         * gnulib-tool: New options --verbose, --quiet.
81969         (func_usage): Document them.
81970         (verbose): New variable.
81971         (func_execute_command): New function.
81972         (func_import): Don't show the module list and the file list if
81973         $verbose < 0.
81974         (func_create_testdir): Likewise. Use func_execute_command.
81975         (func_create_megatestdir): Use func_execute_command.
81977 2007-09-08  Bruno Haible  <bruno@clisp.org>
81979         * gnulib-tool (func_import): Prefer rsync over wget when available,
81980         for fetching the PO files.
81982 2007-09-08  Bruno Haible  <bruno@clisp.org>
81984         * posix-modules: New file. Portions copied from gnulib-tool.
81985         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
81987 2007-09-08  Jim Meyering  <jim@meyering.net>
81989         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
81990         * lib/fpending.h: Rename from __fpending.h.
81991         * lib/fpending.c: Rename from __fpending.c.
81992         Include "fpending.h", not "__fpending.h".
81993         * lib/__fpending.h, lib/__fpending.c: Remove files.
81994         * modules/fpending (Files): Reflect new file names.
81995         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
81997 2007-09-08  Bruno Haible  <bruno@clisp.org>
81999         * m4/inttypes-h.m4: Remove stub file.
82001 2007-09-07  Simon Josefsson  <simon@josefsson.org>
82003         * doc/headers/stdint.texi: Discuss #include_next issue.
82005 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82007         * build-aux/bootstrap: Remove obsolete comment about wget --help.
82009 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82011         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
82012         in variable name.
82014 2007-09-03  Jim Meyering  <jim@meyering.net>
82016         New module: git-version-gen.
82017         * modules/git-version-gen: New file.
82019         Import changes from coreutils for bootstrap script.
82021         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
82023         bootstrap: uses rsync to download the .po files
82024         * build-aux/bootstrap (po_download_command_format): New global.
82025         (download_po_files): Use rsync.
82026         (update_po_files): Don't remove .po files after download,
82027         so future rsync runs can take advantage of the copies.
82029         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
82031         Solve the unnecessary-.po-file-regeneration problem once and for all.
82032         * build-aux/bootstrap (download_po_files): New function, renamed from
82033         get_translations.  Now, downloads, but doesn't update LINGUAS.
82034         (update_po_files): New function.
82036         bootstrap: Ignore more.
82037         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
82038         uniwidth to e.g., lib/.gitignore.
82039         (slurp): Handle the sys_stat_.h -> sys mapping, too.
82041         * build-aux/bootstrap: New setting: vc_ignore.
82042         (insert_sorted_if_absent): Create $file if absent.
82043         Adapt to new, possibly empty, list: $vc_ignore.
82045         bootstrap: generate more ignorable names
82046         * build-aux/bootstrap (slurp): When generating ignorable names,
82047         also map .sin to .sed, .gperf to .c, and .y to .c.
82049 2007-09-03  Jim Meyering  <jim@meyering.net>
82051         * build-aux/git-version-gen: New file, from coreutils.  For details, see
82052         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
82054 2007-09-02  Bruno Haible  <bruno@clisp.org>
82056         Fix mis-recognition of 'mcs' on QNX 6.
82057         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
82058         output contains the string "Mono".
82059         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
82060         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
82062 2007-09-01  Bruno Haible  <bruno@clisp.org>
82064         Fix collision between uniwidth/* and linebreak modules.
82065         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
82066         u32_width): Remove declarations.
82067         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
82068         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
82069         streq3, streq2, streq1, streq0): Remove functions.
82070         (STREQ): Remove macro.
82071         (is_cjk_encoding): Remove function.
82072         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
82073         (uc_width, u8_width, u16_width, u32_width): Remove functions.
82074         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
82075         * NEWS: Document the change.
82077 2007-09-01  Bruno Haible  <bruno@clisp.org>
82079         * lib/streq.h: Add double-inclusion guard.
82081 2007-09-01  Karl Berry  <karl@gnu.org>
82083         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
82085 2007-08-28  Jim Meyering  <jim@meyering.net>
82087         Rename mreadlink_with_size to areadlink_with_size.
82088         * NEWS: Document the change.
82089         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
82090         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
82091         * lib/mreadlink.h: Rename this to...
82092         * lib/areadlink.h: ...this.
82093         * modules/mreadlink-with-size: Rename this to...
82094         * modules/areadlink-with-size: ...this.
82095         * lib/canonicalize.c: Reflect the renaming.
82096         * modules/canonicalize: Likewise.
82098 2007-08-26  Bruno Haible  <bruno@clisp.org>
82100         * gnulib-tool (func_import): When deciding which files to remove,
82101         consider also dangling symbolic links.
82102         Reported by Eric Blake.
82104 2007-08-26  Bruno Haible  <bruno@clisp.org>
82106         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
82108 2007-08-23  Simon Josefsson  <simon@josefsson.org>
82110         * lib/readline.c: Don't include getline.h, the prototype is now
82111         found in stdio.h.
82113 2007-08-23  Jim Meyering  <jim@meyering.net>
82115         Getdelim touchup.
82116         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
82117         around the funlockfile call, since funlockfile never sets errno.
82118         Don't set errno upon failed realloc.
82120 2007-08-22  Eric Blake  <ebb9@byu.net>
82122         Getline touchups.
82123         * lib/getdelim.c (getdelim): Revert regression that required *n to
82124         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
82125         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
82126         getdelim, rather than whether implementation is missing.
82127         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
82128         * lib/stdio_.h (getline): Also declare if replacement is
82129         required.
82130         * doc/functions/getdelim.texi: New file.
82131         * doc/functions/getline.texi: Likewise.
82132         * doc/gnulib.texi (Function Substitutes): Add new files.
82133         Reported by Bruno Haible.
82135 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
82137         * users.txt: Add Guile.
82139 2007-08-22  Eric Blake  <ebb9@byu.net>
82141         * tests/test-getdelim.c (main): Use remove, not unlink.
82142         * tests/test-getline.c (main): Likewise.
82144         Move getline and getdelim into stdio.h, per POSIX 200x.
82145         * modules/getline (Files): Remove getline.h.
82146         (Depends-on): Add stdio.
82147         (configure.ac): Add module indicator.
82148         * modules/getdelim (Files): Remove getdelim.h.
82149         (Depends-on): Add stdio.
82150         (configure.ac): Add module indicator.
82151         * modules/stdio (Makefile.am): Work with new indicators.
82152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
82153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
82154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82155         * lib/getdelim.h: Delete.
82156         * lib/getline.h: Delete.
82157         * lib/stdio_.h (getdelim, getline): Declare.
82158         * modules/getdelim-tests: New module.
82159         * modules/getline-tests: Likewise.
82160         * tests/test-getdelim.c: New file.
82161         * tests/test-getline.c: Likewise.
82162         * NEWS: Document the change.
82163         * lib/getline.c: Update choice of header.
82164         * lib/csharpcomp.c: Likewise.
82165         * lib/getpass.c: Likewise.
82166         * lib/javacomp.c: Likewise.
82167         * lib/javaversion.c: Likewise.
82168         * lib/yesno.c: Likewise.
82169         * lib/getdelim.c: Likewise.
82170         (getdelim): Set errno on failure, and avoid memory leak.
82172 2007-08-19  Bruno Haible  <bruno@clisp.org>
82174         * modules/closein (Depends-on): Add freadahead.
82175         * lib/closein.c: Include freadahead.h.
82176         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
82177         is zero.
82179 2007-08-19  Bruno Haible  <bruno@clisp.org>
82181         * modules/freadahead-tests: New file.
82182         * tests/test-freadahead.sh: New file.
82183         * tests/test-freadahead.c: New file.
82185         * modules/freadahead: New file.
82186         * lib/freadahead.h: New file.
82187         * lib/freadahead.c: New file.
82188         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
82189         fbufmode, fpurge, freadable, fwritable.
82191 2007-08-19  Eric Blake  <ebb9@byu.net>
82193         Test yesno in combination with closein.
82194         * lib/yesno.c (yesno): Document use of stdin.
82195         * modules/yesno-tests (Files): New module.
82196         * tests/test-yesno.c (main): New file.
82197         * tests/test-yesno.sh: Likewise.
82199 2007-08-19  Bruno Haible  <bruno@clisp.org>
82201         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
82202         * lib/fseeko.c (rpl_fseeko): Likewise.
82203         * lib/fseterr.c (fseterr): Likewise.
82205 2007-08-19  Bruno Haible  <bruno@clisp.org>
82207         * tests/test-lseek.c (main): Disable a test for BeOS.
82208         * doc/functions/lseek.texi: Document the BeOS bug.
82210 2007-08-19  Bruno Haible  <bruno@clisp.org>
82211             Eric Blake  <ebb9@byu.net>
82213         * lib/lseek.c: Include <sys/stat.h>.
82214         (rpl_lseek): Add workaround code also for Unix platforms.
82215         Needed for BeOS.
82216         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
82217         * doc/functions/lseek.texi: Document BeOS definiency.
82219 2007-08-18  Bruno Haible  <bruno@clisp.org>
82221         * modules/fstrcmp-tests: New file.
82222         * tests/test-fstrcmp.c: New file.
82224 2007-08-18  Bruno Haible  <bruno@clisp.org>
82226         * modules/fstrcmp: New file, from GNU gettext with modifications.
82227         * lib/fstrcmp.h: New file, from GNU gettext.
82228         * lib/fstrcmp.c: New file, from GNU gettext.
82229         * MODULES.html.sh (String handling): Add fstrcmp.
82231 2007-08-18  Bruno Haible  <bruno@clisp.org>
82233         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
82234         'bool'.
82235         (diag, compareseq): Remove const from the ctxt argument.
82236         (USE_HEURISTIC): Undefine at the end.
82238 2007-08-18  Jim Meyering  <jim@meyering.net>
82240         New file: lib/idcache.h
82241         * NEWS: Mention the addition.
82242         * modules/idcache (Files): Add lib/idcache.h
82243         * lib/idcache.c: Include "idcache.h".
82244         Don't include <sys/types.h>.
82245         Add a FIXME comment.
82246         Move file-scoped "static" declarations to the top.
82247         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
82249 2007-08-17  Bruno Haible  <bruno@clisp.org>
82250         and Paul Eggert  <eggert@cs.ucla.edu>
82252         * MODULES.html.sh: Add diffseq.
82253         * modules/diffseq: New file.
82254         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
82255         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
82257 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82259         Import changes from coreutils for bootstrap script.
82261         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
82263         * build-aux/bootstrap (slurp): Work even in environments where
82264         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
82265         current code does not slurp files whose names start with ".", and
82266         this looks like it might be a troublesome area.
82268         2007-07-11  Jim Meyering  <jim@meyering.net>
82270         If there's a GPL vN copyright comment, require that N == 3.
82272         2007-07-08  Jim Meyering  <jim@meyering.net>
82274         Run the coreutils-specific code only if tests/Makefile.am.in exists.
82275         * build-aux/bootstrap (mam_template): Move definition out of loop.
82277         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
82279         * build-aux/bootstrap (symlink_to_dir): Rename function from
82280         symlink_to_gnulib.  Add a directory parameter.  Update all
82281         callers.
82282         (cp_mark_as_generated): Also check for -- and link to -- files in
82283         gl/.
82285         2007-07-08  Jim Meyering  <jim@meyering.net>
82287         Adapt to deeper hierarchy in gnulib.
82288         * build-aux/bootstrap (symlink_to_dir): If the destination
82289         directory doesn't exist, create it. This is required at least for
82290         "lib/uniwidth/cjk.h".
82292         2007-05-15  Jim Meyering  <jim@meyering.net>
82294         * build-aux/bootstrap: Now that generated Makefile.am files
82295         are no longer under version control, they must be created at
82296         bootstrap time.
82298 2007-08-14  Ben Pfaff  <blp@gnu.org>
82300         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
82302 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
82304         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
82305         given the changes below.
82306         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
82307         even on hosts that have padding bits beyond the supported 64.
82309 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
82311         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
82312         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
82313         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
82314         depends on it.
82315         (xstrtol_error): Remove.
82316         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
82317         but with a different signature.
82318         (ATTRIBUTE_NORETURN, __attribute__): New macros.
82319         * lib/xstrtol-error.c: Include exitfail.h.
82320         (xstrtol_fatal): New function, with a different signature from the
82321         old xstrtol_error, so that the caller need not worry about passing
82322         in an exit status, or about storage management of the option argument.
82323         (xstrtol_error): Now a static function.  Redo signature to
82324         implement xstrtol_fatal.  Output the correct number of hyphens in
82325         front of the option so that the caller need not worry about
82326         storage management.
82327         (N_): New macro.
82328         (_): Remove; not used now.
82329         * modules/xstrtol: Depend on getopt.
82330         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
82331         of old STRTOL_FATAL_ERROR macro.
82332         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
82333         of test program.
82334         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
82335         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
82337 2007-08-08  Eric Blake  <ebb9@byu.net>
82339         * lib/xstrtol-error.c: Add missing include.
82341         Move xstrtol messages into gnulib domain, when --pobase is used.
82342         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
82343         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
82344         * modules/xstrtol (Files): Distribute new file.
82345         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
82346         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
82347         * tests/test-xstrtol.c: ...into new file.
82348         * tests/test-xstrtoul.c: Also test xstrtoul.
82349         * tests/test-xstrtoimax.c: Also test xstrtoimax.
82350         * tests/test-xstrtoumax.c: Also test xstrtoumax.
82351         * tests/test-xstrtol.sh: Drive the tests.
82352         * tests/test-xstrtoimax.sh: Likewise.
82353         * tests/test-xstrtoumax.sh: Likewise.
82354         * modules/xstrtol-tests: New module.
82355         * modules/xstrtoimax-tests: Likewise.
82356         * modules/xstrtoumax-tests: Likewise.
82358 2007-08-08  Jim Meyering  <jim@meyering.net>
82360         New function: mfile_name_concat.
82361         * lib/filenamecat.c (mfile_name_concat): New function, just like
82362         file_name_concat, but return NULL upon failure rather than exiting
82363         with a diagnostic.
82364         * lib/filenamecat.h: Declare it.
82366 2007-08-07  Bruno Haible  <bruno@clisp.org>
82368         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
82369         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
82370         warning from gcc.
82371         Reported by Eric Blake.
82373 2007-08-07  Simon Josefsson  <simon@josefsson.org>
82375         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
82376         * modules/crypto/arcfour (License): Likewise.
82377         * modules/crypto/des-tests (License): Likewise.
82378         * modules/crypto/gc-arctwo-tests (License): Likewise.
82379         * modules/crypto/gc-des-tests (License): Likewise.
82380         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
82381         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
82382         * modules/crypto/gc-md2-tests (License): Likewise.
82383         * modules/crypto/gc-md4-tests (License): Likewise.
82384         * modules/crypto/gc-md5-tests (License): Likewise.
82385         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
82386         * modules/crypto/gc-rijndael-tests (License): Likewise.
82387         * modules/crypto/gc-sha1-tests (License): Likewise.
82388         * modules/crypto/gc-tests (License): Likewise.
82389         * modules/crypto/hmac-md5 (License): Likewise.
82390         * modules/crypto/hmac-sha1 (License): Likewise.
82391         * modules/crypto/md2-tests (License): Likewise.
82392         * modules/crypto/md4-tests (License): Likewise.
82393         * modules/crypto/md5 (License): Likewise.
82394         * modules/crypto/rijndael (License): Likewise.
82395         * modules/crypto/sha1 (License): Likewise.
82396         * modules/memxor (License): Likewise.
82398 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82399         and Bruno Haible  <bruno@clisp.org>
82401         * NEWS: Describe interface changes to human, xstrtol.
82402         * lib/human.h: Include <xstrtol.h>.
82403         (human_options): Return enum strtol_error, not int.  Remove
82404         bool arg; take int * instead.
82405         * lib/human.c: Don't include "gettext.h".
82406         (_): Remove; no longer used.
82407         Don't include <xstrtol.h>, since human.h does it.
82408         (human_options): Adjust to abovementioned interface changes.
82409         Do not report error to stderr; that's now the caller's
82410         responsibility.
82411         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
82412         interface change.
82413         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
82414         Str, Argument_type_string.  All uses changed.  Put " argument"
82415         in diagnostics to make them clearer.  Change wording of suffix
82416         message for clarity.
82417         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
82418         Argument_type_string.
82419         (STRTOL_FATAL_WARN): Remove; no longer used.
82420         * modules/human (Depends-on): Remove gettext-h.
82422 2007-08-06  Simon Josefsson  <simon@josefsson.org>
82424         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
82426 2007-07-31  Bruno Haible  <bruno@clisp.org>
82428         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
82429         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
82430         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
82432 2007-07-31  Bruno Haible  <bruno@clisp.org>
82434         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
82435         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
82437 2007-07-30  Bruno Haible  <bruno@clisp.org>
82439         * modules/base64 (License): Use the synonymous term "LGPLv2+".
82440         * modules/c-ctype (License): Likewise.
82441         * modules/c-strcase (License): Likewise.
82442         * modules/check-version (License): Likewise.
82443         * modules/iconv (License): Likewise.
82444         * modules/iconv_open (License): Likewise.
82445         * modules/read-file (License): Likewise.
82446         * modules/striconv (License): Likewise.
82447         * modules/strverscmp (License): Likewise.
82448         * modules/vasprintf (License): Likewise.
82449         * modules/crypto/des (License): Likewise.
82450         * modules/crypto/gc (License): Likewise.
82451         * modules/crypto/gc-arcfour (License): Likewise.
82452         * modules/crypto/gc-arctwo (License): Likewise.
82453         * modules/crypto/gc-des (License): Likewise.
82454         * modules/crypto/gc-hmac-md5 (License): Likewise.
82455         * modules/crypto/gc-hmac-sha1 (License): Likewise.
82456         * modules/crypto/gc-md2 (License): Likewise.
82457         * modules/crypto/gc-md4 (License): Likewise.
82458         * modules/crypto/gc-md5 (License): Likewise.
82459         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
82460         * modules/crypto/gc-random (License): Likewise.
82461         * modules/crypto/gc-rijndael (License): Likewise.
82462         * modules/crypto/gc-sha1 (License): Likewise.
82463         * modules/crypto/md2 (License): Likewise.
82464         * modules/crypto/md4 (License): Likewise.
82466 2007-07-30  Jim Meyering  <jim@meyering.net>
82468         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
82469         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
82470         it has valid stat data.  This bug would cause du not to count the
82471         sizes of inaccessible directories.
82472         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
82473         in <http://bugzilla.redhat.com/250077>.
82475 2007-07-25  Peter O'Gorman  <peter@pogma.com>
82476             Bruno Haible  <bruno@clisp.org>
82478         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
82479         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
82480         #include_next, gives a diagnostic about it, but reports no error in
82481         the exit code.
82482         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
82484 2007-07-24  Ben Pfaff  <blp@gnu.org>
82486         Improve name: "count-one-bits" is better than "popcount".
82487         * MODULES.html.sh: Update name.
82488         * lib/popcount.h: Renamed lib/count-one-bits.h.
82489         (popcount): Renamed count_one_bits.
82490         (popcountl): Renamed count_one_bits_l.
82491         (popcountll): Renamed count_one_bits_ll.
82492         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
82493         * modules/popcount: Renamed module/count-one-bits.
82494         * modules/popcount-tests: Renamed module/count-one-bits-tests.
82495         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
82497 2007-07-23  Ben Pfaff  <blp@gnu.org>
82499         * lib/popcount.h (popcount32): Reduce size of constants, to allow
82500         better code generation, and add U to large constants to avoid
82501         warnings, in non-GCC case.
82502         Suggested by Bruno Haible.
82504 2007-07-23  Ben Pfaff  <blp@gnu.org>
82506         * lib/popcount.h: Use verify_true instead of if...abort.
82507         * modules/popcount: Depend on verify module.
82508         Suggested by Jim Meyering.
82510 2007-07-23  Bruno Haible  <bruno@clisp.org>
82512         * gnulib-tool (func_import): Create a .cvsignore file also when the
82513         directory is not yet in CVS but the toplevel directory is. When
82514         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
82515         Reported by Karl Berry.
82517 2007-07-22  Ben Pfaff  <blp@gnu.org>
82519         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
82520         case.
82521         Suggested by Eric Blake.
82523 2007-07-22  Ben Pfaff  <blp@gnu.org>
82525         New module: popcount.
82526         * MODULES.html.sh: Add popcount.
82527         * modules/popcount: New file.
82528         * modules/popcount-tests: New file.
82529         * tests/test-popcount.c: New file.
82530         * lib/popcount.h: New file.
82531         * m4/popcount.m4: New file.
82533 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
82535         * build-aux/announce-gen: Update to GPLv3.
82537         * build-aux/config.guess: Update from config.
82539 2007-07-21  Bruno Haible  <bruno@clisp.org>
82541         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
82542         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
82544 2007-07-20  Jim Meyering  <jim@meyering.net>
82546         * check-module: Diagnose a self-dependency.
82548 2007-07-19  Bruno Haible  <bruno@clisp.org>
82550         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
82551         empty.
82552         Reported by Eric Blake.
82554 2007-07-18  Bruno Haible  <bruno@clisp.org>
82556         * gnulib-tool: New options --po-base, --po-domain.
82557         (func_usage): Document them.
82558         (pobase, po_domain): New variables.
82559         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
82560         DEFAULT_TEXT_DOMAIN.
82561         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
82562         (func_import): Consider pobase and po_domain. Create a po/ directory.
82563         (func_create_testdir): Set pobase and po_domain to empty.
82564         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
82565         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
82567 2007-07-18  Bruno Haible  <bruno@clisp.org>
82569         * gnulib-tool (func_get_automake_snippet): Synthesize also an
82570         EXTRA_DIST augmentation for files in build-aux/.
82572 2007-07-16  Bruno Haible  <bruno@clisp.org>
82574         * modules/lseek (License): Use the synonymous term "LGPLv2+".
82575         * modules/getdelim (License): Likewise.
82577 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82579         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
82580         * modules/d-type (License): Likewise.
82581         * modules/extensions (License): Likewise.
82582         * modules/fnmatch (License): Likewise.
82583         * modules/fseeko (License): Likewise.
82584         * modules/getaddrinfo (License): Likewise.
82585         * modules/getline (License): Likewise.
82586         * modules/getlogin_r (License): Likewise.
82587         * modules/getpass (License): Likewise.
82588         * modules/gettimeofday (License): Likewise.
82589         * modules/glob (License): Likewise.
82590         * modules/inet_ntop (License): Likewise.
82591         * modules/malloc (License): Likewise.
82592         * modules/malloca (License): Likewise.
82593         * modules/memmem (License): Likewise.
82594         * modules/mempcpy (License): Likewise.
82595         * modules/memset (License): Likewise.
82596         * modules/minmax (License): Likewise.
82597         * modules/mktime (License): Likewise.
82598         * modules/netinet_in (License): Likewise.
82599         * modules/pathmax (License): Likewise.
82600         * modules/poll (License): Likewise.
82601         * modules/regex (License): Likewise.
82602         * modules/snprintf (License): Likewise.
82603         * modules/stdbool (License): Likewise.
82604         * modules/stdint (License): Likewise.
82605         * modules/stdio (License): Likewise.
82606         * modules/strcase (License): Likewise.
82607         * modules/strcasestr (License): Likewise.
82608         * modules/strdup (License): Likewise.
82609         * modules/string (License): Likewise.
82610         * modules/strndup (License): Likewise.
82611         * modules/strnlen (License): Likewise.
82612         * modules/strpbrk (License): Likewise.
82613         * modules/strptime (License): Likewise.
82614         * modules/strsep (License): Likewise.
82615         * modules/sys_select (License): Likewise.
82616         * modules/sys_socket (License): Likewise.
82617         * modules/sys_stat (License): Likewise.
82618         * modules/sys_time (License): Likewise.
82619         * modules/time (License): Likewise.
82620         * modules/time_r (License): Likewise.
82621         * modules/timegm (License): Likewise.
82622         * modules/unistd (License): Likewise.
82623         * modules/vsnprintf (License): Likewise.
82624         * modules/wctype (License): Likewise.
82626 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82628         * modules/argz (License): LGPLv2+.
82630 2007-07-15  Karl Berry  <karl@gnu.org>
82632         * doc/gnulib.texi: revise node structure per new fdl.texi.
82634 2007-07-14  Bruno Haible  <bruno@clisp.org>
82636         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
82637         the output file.
82638         * lib/uniname/uninames.h: Regenerated.
82640 2007-07-14  Karl Berry  <karl@gnu.org>
82642         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
82643         omitting sectioning and index commands.
82645 2007-07-13  Bruno Haible  <bruno@clisp.org>
82647         New gnulib-tool option --more-symlinks.
82648         * gnulib-tool (func_usage): Document --more-symlinks.
82649         (do_copyrights): New variable.
82650         Recognize option --more-symlinks.
82651         (func_import): Don't add a copyright notice transform to
82652         sed_transform_lib_file if do_copyrights is empty.
82654 2007-07-13  Bruno Haible  <bruno@clisp.org>
82656         * lib/vasnprintf.c (decimal_point_char): Define also if
82657         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
82658         && !NEED_PRINTF_DIRECTIVE_A.
82659         Reported by Clemens Koller <clemens.koller@anagramm.de> via
82660         Gary V. Vaughan <gary@gnu.org>.
82662 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
82664         * lib/inttypes_.h: Undo previous change, since it was fixed
82665         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
82667 2007-07-13  Bruno Haible  <bruno@clisp.org>
82669         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
82670         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
82672 2007-07-13  Jim Meyering  <jim@meyering.net>
82674         df: Don't fail for Tru64's "file-on-file mount".
82675         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
82676         so we fall through and use statfs instead.  Details here:
82677         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
82678         Reported by Albert Chin.
82680 2007-07-13  Bruno Haible  <bruno@clisp.org>
82682         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
82683         * modules/configmake (License): Likewise.
82684         * modules/gettext (License): Likewise.
82685         * modules/gettext-h (License): Likewise.
82686         * modules/include_next (License): Likewise.
82687         * modules/link-warning (License): Likewise.
82688         * modules/localcharset (License): Likewise.
82689         * modules/localename (License): Likewise.
82690         * modules/lock (License): Likewise.
82691         * modules/relocatable-lib-lgpl (License): Likewise.
82692         * modules/size_max (License): Likewise.
82693         * modules/vasnprintf (License): Likewise.
82694         * modules/wchar (License): Likewise.
82695         * modules/xsize (License): Likewise.
82697 2007-07-13  Bruno Haible  <bruno@clisp.org>
82699         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
82700         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
82702 2007-07-12  Bruno Haible  <bruno@clisp.org>
82704         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
82705         in the modules files.
82707 2007-07-11  Karl Berry  <karl@gnu.org>
82709         * MODULES.html.sh (func_module): use
82710          sed -e '\|^'"${includefile}"'$|d'
82711          instead of /.../d, to avoid errors on $includefile's containing /.
82713 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82715         * gnulib-tool (func_import): Avoid duplication of --avoid
82716         statements
82717         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
82718         names to `_' in variable names.
82720 2007-07-10  Eric Blake  <ebb9@byu.net>
82722         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
82723         * NEWS: Document this change.
82725 2007-07-08  Bruno Haible  <bruno@clisp.org>
82727         Update to Unicode 5.0.
82728         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
82729         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
82730         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
82731         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
82732         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
82733         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
82734         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
82735         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
82736         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
82737         U+10A3F, U+1D242..U+1D244.
82738         (nonspacing_table_ind): Update.
82739         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
82740         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
82742 2007-07-08  Bruno Haible  <bruno@clisp.org>
82744         Update to Unicode 5.0.
82745         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
82746         code transform. Extend the name index field of unicode_name_to_code and
82747         unicode_code_to_name from 16 to 24 bits.
82748         * lib/uniname/uniname.c (unicode_character_name,
82749         unicode_name_character): Add the range 0x12xxx to the code transform.
82750         * lib/uniname/uninames.h: Regenerated.
82751         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
82753 2007-07-07  Bruno Haible  <bruno@clisp.org>
82755         * modules/wcwidth-tests: New file.
82756         * tests/test-wcwidth.c: New file.
82758         Work around MacOS X wcwidth() bug.
82759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
82760         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
82761         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
82762         original wcwidth in non-UTF-8 locales.
82763         * modules/wcwidth (Depends-on): Add localcharset, streq,
82764         uniwidth/width.
82765         * doc/functions/wcwidth.texi: Update.
82767 2007-07-07  Bruno Haible  <bruno@clisp.org>
82769         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
82770         (wcwidth): New declaration.
82771         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
82772         macros.
82773         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
82774         here. Prepare for creating <wchar.h> unconditionally.
82775         * modules/wchar (Depends-on): Add link-warning.
82776         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
82777         REPLACE_WCWIDTH, and GL_LINK_WARNING.
82778         * lib/wcwidth.h: Remove file.
82779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
82780         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
82781         * modules/wcwidth (Files): Remove lib/wcwidth.h.
82782         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
82783         (Include): Replace wcwidth.h with <wchar.h>.
82784         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
82785         * lib/mbchar.h: Don't include wcwidth.h.
82786         * lib/mbswidth.c: Likewise.
82787         * NEWS: Mention the change.
82789 2007-07-07  Bruno Haible  <bruno@clisp.org>
82791         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
82792         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
82793         definition with an external declaration.
82794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
82795         defined as a function. Remove AC_C_INLINE requirement.
82796         * modules/wcwidth (Files): Add lib/wcwidth.c.
82797         (Makefile.am): Remove redundant statement.
82799 2007-07-07  Bruno Haible  <bruno@clisp.org>
82801         * MODULES.html.sh (Unicode string functions): Add the new modules.
82803         * tests/uniwidth/test-u32-strwidth.c: New file.
82804         * modules/uniwidth/u32-strwidth-tests: New file.
82806         * lib/uniwidth/u32-strwidth.c: New file.
82807         * modules/uniwidth/u32-strwidth: New file.
82809         * tests/uniwidth/test-u16-strwidth.c: New file.
82810         * modules/uniwidth/u16-strwidth-tests: New file.
82812         * lib/uniwidth/u16-strwidth.c: New file.
82813         * modules/uniwidth/u16-strwidth: New file.
82815         * tests/uniwidth/test-u8-strwidth.c: New file.
82816         * modules/uniwidth/u8-strwidth-tests: New file.
82818         * lib/uniwidth/u8-strwidth.c: New file.
82819         * modules/uniwidth/u8-strwidth: New file.
82821         * tests/uniwidth/test-u32-width.c: New file.
82822         * modules/uniwidth/u32-width-tests: New file.
82824         * lib/uniwidth/u32-width.c: New file.
82825         * modules/uniwidth/u32-width: New file.
82827         * tests/uniwidth/test-u16-width.c: New file.
82828         * modules/uniwidth/u16-width-tests: New file.
82830         * lib/uniwidth/u16-width.c: New file.
82831         * modules/uniwidth/u16-width: New file.
82833         * tests/uniwidth/test-u8-width.c: New file.
82834         * modules/uniwidth/u8-width-tests: New file.
82836         * lib/uniwidth/u8-width.c: New file.
82837         * modules/uniwidth/u8-width: New file.
82839         * tests/uniwidth/test-uc_width.c: New file.
82840         * modules/uniwidth/width-tests: New file.
82842         * lib/uniwidth/width.c: New file, from GNU libiconv.
82843         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
82844         * modules/uniwidth/width: New file.
82846         * lib/uniwidth.h: New file, from GNU libiconv.
82847         * modules/uniwidth/base: New file.
82849 2007-07-07  Bruno Haible  <bruno@clisp.org>
82851         * lib/uniname.h: New file, from GNU gettext.
82852         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
82853         * lib/uniname/uninames.h: New file, from GNU gettext.
82854         * lib/uniname/uniname.c: New file, from GNU gettext.
82855         * tests/uniname/test-uninames.sh: New file.
82856         * tests/uniname/test-uninames.c: New file, from GNU gettext.
82857         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
82858         * modules/uniname/base: New file.
82859         * modules/uniname/uniname: New file.
82860         * modules/uniname/uniname-tests: New file.
82861         * MODULES.html.sh (Unicode string functions): Add the new modules.
82863 2007-07-06  Bruno Haible  <bruno@clisp.org>
82865         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
82867 2007-07-06  Bruno Haible  <bruno@clisp.org>
82869         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
82870         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
82871         includes <cygwin/sys_time.h> which includes <sys/select.h> which
82872         include <sys/time.h>.
82873         Reported by Eric Blake.
82875 2007-07-06  Eric Blake  <ebb9@byu.net>
82877         Fix testing canonicalize on cygwin.
82878         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
82879         Revert patch from 2007-06-19.
82880         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
82881         canonicalize module is also in use.
82882         * tests/test-canonicalize.c: New file.
82883         * tests/test-canonicalize.sh: Likewise.
82884         * modules/canonicalize-tests: Likewise.
82886 2007-07-06  Jim Meyering  <jim@meyering.net>
82888         * lib/getugroups.c (getugroups): Detect getgrent failure.
82889         Adjust comment to reflect reality: this function may return -1.
82891 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
82893         * build-aux/bootstrap (TP_URL,get_translations): Update to use
82894         the new TP address.
82895         (usage): Fix typo
82896         (gnulib_mk): New variable.
82898 2007-07-05  Jim Meyering  <jim@meyering.net>
82900         Don't let endgrent clobber errno, no matter how improbable.
82901         * lib/getugroups.c (getugroups): Save and restore errno around
82902         endgrent call.
82904         Close the group DB even when failing with 2^31 or more members.
82905         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
82907 2007-07-04  Jim Meyering  <jim@meyering.net>
82909         * lib/getugroups.h: New file.
82910         * lib/getugroups.c: Include "getugroups.h".
82911         Remove uses of "register" keyword.
82912         Move local variable, "cp", down into scope where used.
82913         Give "username" parameter the "const" attribute.
82914         * modules/getugroups (Files): Add lib/getugroups.h
82916 2007-07-04  Karl Berry  <karl@gnu.org>
82918         * MODULES.html.sh (func_all_modules): Complete rename of
82919         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
82921 2007-07-02  Bruno Haible  <bruno@clisp.org>
82923         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
82924         mode, when inttypes.h comes from gnulib.
82925         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
82927 2007-07-02  Simon Josefsson  <simon@josefsson.org>
82929         * NEWS: Mention lgpl module name change.
82931         * modules/lgpl-2.1: Renamed from lgpl.
82933         * NEWS: Mention gpl module name change.
82935         * modules/gpl-3.0: New file, based on gpl-2.0.
82937         * modules/gpl-2.0: Renamed from gpl.
82939         * modules/gpl: Fix filename, doc/gpl.texi is now found at
82940         doc/gpl-2.0.texi.
82942 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82944         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
82945         #define __STDC_LIMIT_MACROS temporarily while including
82946         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
82947         Problem reported by Joel E. Denny in
82948         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
82950 2007-07-01  Bruno Haible  <bruno@clisp.org>
82952         * lib/unistdio.h: New file.
82953         * lib/unistdio/u-asnprintf.h: New file.
82954         * lib/unistdio/u-asprintf.h: New file.
82955         * lib/unistdio/u-printf-args.c: New file.
82956         * lib/unistdio/u-printf-args.h: New file.
82957         * lib/unistdio/u-printf-parse.h: New file.
82958         * lib/unistdio/u-snprintf.h: New file.
82959         * lib/unistdio/u-sprintf.h: New file.
82960         * lib/unistdio/u-vasprintf.h: New file.
82961         * lib/unistdio/u-vsnprintf.h: New file.
82962         * lib/unistdio/u-vsprintf.h: New file.
82963         * lib/unistdio/ulc-asnprintf.c: New file.
82964         * lib/unistdio/ulc-asprintf.c: New file.
82965         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
82966         * lib/unistdio/ulc-printf-parse.c: New file.
82967         * lib/unistdio/ulc-snprintf.c: New file.
82968         * lib/unistdio/ulc-sprintf.c: New file.
82969         * lib/unistdio/ulc-vasnprintf.c: New file.
82970         * lib/unistdio/ulc-vasprintf.c: New file.
82971         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
82972         * lib/unistdio/ulc-vsnprintf.c: New file.
82973         * lib/unistdio/ulc-vsprintf.c: New file.
82974         * lib/unistdio/u8-asnprintf.c: New file.
82975         * lib/unistdio/u8-asprintf.c: New file.
82976         * lib/unistdio/u8-printf-parse.c: New file.
82977         * lib/unistdio/u8-snprintf.c: New file.
82978         * lib/unistdio/u8-sprintf.c: New file.
82979         * lib/unistdio/u8-vasnprintf.c: New file.
82980         * lib/unistdio/u8-vasprintf.c: New file.
82981         * lib/unistdio/u8-vsnprintf.c: New file.
82982         * lib/unistdio/u8-vsprintf.c: New file.
82983         * lib/unistdio/u8-u8-asnprintf.c: New file.
82984         * lib/unistdio/u8-u8-asprintf.c: New file.
82985         * lib/unistdio/u8-u8-snprintf.c: New file.
82986         * lib/unistdio/u8-u8-sprintf.c: New file.
82987         * lib/unistdio/u8-u8-vasnprintf.c: New file.
82988         * lib/unistdio/u8-u8-vasprintf.c: New file.
82989         * lib/unistdio/u8-u8-vsnprintf.c: New file.
82990         * lib/unistdio/u8-u8-vsprintf.c: New file.
82991         * lib/unistdio/u16-asnprintf.c: New file.
82992         * lib/unistdio/u16-asprintf.c: New file.
82993         * lib/unistdio/u16-printf-parse.c: New file.
82994         * lib/unistdio/u16-snprintf.c: New file.
82995         * lib/unistdio/u16-sprintf.c: New file.
82996         * lib/unistdio/u16-vasnprintf.c: New file.
82997         * lib/unistdio/u16-vasprintf.c: New file.
82998         * lib/unistdio/u16-vsnprintf.c: New file.
82999         * lib/unistdio/u16-vsprintf.c: New file.
83000         * lib/unistdio/u16-u16-asnprintf.c: New file.
83001         * lib/unistdio/u16-u16-asprintf.c: New file.
83002         * lib/unistdio/u16-u16-snprintf.c: New file.
83003         * lib/unistdio/u16-u16-sprintf.c: New file.
83004         * lib/unistdio/u16-u16-vasnprintf.c: New file.
83005         * lib/unistdio/u16-u16-vasprintf.c: New file.
83006         * lib/unistdio/u16-u16-vsnprintf.c: New file.
83007         * lib/unistdio/u16-u16-vsprintf.c: New file.
83008         * lib/unistdio/u32-asnprintf.c: New file.
83009         * lib/unistdio/u32-asprintf.c: New file.
83010         * lib/unistdio/u32-printf-parse.c: New file.
83011         * lib/unistdio/u32-snprintf.c: New file.
83012         * lib/unistdio/u32-sprintf.c: New file.
83013         * lib/unistdio/u32-vasnprintf.c: New file.
83014         * lib/unistdio/u32-vasprintf.c: New file.
83015         * lib/unistdio/u32-vsnprintf.c: New file.
83016         * lib/unistdio/u32-vsprintf.c: New file.
83017         * lib/unistdio/u32-u32-asnprintf.c: New file.
83018         * lib/unistdio/u32-u32-asprintf.c: New file.
83019         * lib/unistdio/u32-u32-snprintf.c: New file.
83020         * lib/unistdio/u32-u32-sprintf.c: New file.
83021         * lib/unistdio/u32-u32-vasnprintf.c: New file.
83022         * lib/unistdio/u32-u32-vasprintf.c: New file.
83023         * lib/unistdio/u32-u32-vsnprintf.c: New file.
83024         * lib/unistdio/u32-u32-vsprintf.c: New file.
83025         * tests/unistdio/test-ulc-asnprintf1.c: New file.
83026         * tests/unistdio/test-ulc-asnprintf1.h: New file.
83027         * tests/unistdio/test-ulc-printf1.h: New file.
83028         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
83029         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
83030         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
83031         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
83032         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
83033         * tests/unistdio/test-ulc-vasprintf1.c: New file.
83034         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
83035         * tests/unistdio/test-ulc-vsprintf1.c: New file.
83036         * tests/unistdio/test-u8-asnprintf1.c: New file.
83037         * tests/unistdio/test-u8-asnprintf1.h: New file.
83038         * tests/unistdio/test-u8-printf1.h: New file.
83039         * tests/unistdio/test-u8-vasnprintf1.c: New file.
83040         * tests/unistdio/test-u8-vasnprintf2.c: New file.
83041         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
83042         * tests/unistdio/test-u8-vasnprintf3.c: New file.
83043         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
83044         * tests/unistdio/test-u8-vasprintf1.c: New file.
83045         * tests/unistdio/test-u8-vsnprintf1.c: New file.
83046         * tests/unistdio/test-u8-vsprintf1.c: New file.
83047         * tests/unistdio/test-u16-asnprintf1.c: New file.
83048         * tests/unistdio/test-u16-asnprintf1.h: New file.
83049         * tests/unistdio/test-u16-printf1.h: New file.
83050         * tests/unistdio/test-u16-vasnprintf1.c: New file.
83051         * tests/unistdio/test-u16-vasnprintf2.c: New file.
83052         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
83053         * tests/unistdio/test-u16-vasnprintf3.c: New file.
83054         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
83055         * tests/unistdio/test-u16-vasprintf1.c: New file.
83056         * tests/unistdio/test-u16-vsnprintf1.c: New file.
83057         * tests/unistdio/test-u16-vsprintf1.c: New file.
83058         * tests/unistdio/test-u32-asnprintf1.c: New file.
83059         * tests/unistdio/test-u32-asnprintf1.h: New file.
83060         * tests/unistdio/test-u32-printf1.h: New file.
83061         * tests/unistdio/test-u32-vasnprintf1.c: New file.
83062         * tests/unistdio/test-u32-vasnprintf2.c: New file.
83063         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
83064         * tests/unistdio/test-u32-vasnprintf3.c: New file.
83065         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
83066         * tests/unistdio/test-u32-vasprintf1.c: New file.
83067         * tests/unistdio/test-u32-vsnprintf1.c: New file.
83068         * tests/unistdio/test-u32-vsprintf1.c: New file.
83069         * modules/unistdio/base: New file.
83070         * modules/unistdio/u-printf-args: New file.
83071         * modules/unistdio/ulc-asnprintf: New file.
83072         * modules/unistdio/ulc-asprintf: New file.
83073         * modules/unistdio/ulc-fprintf: New file.
83074         * modules/unistdio/ulc-printf-parse: New file.
83075         * modules/unistdio/ulc-snprintf: New file.
83076         * modules/unistdio/ulc-sprintf: New file.
83077         * modules/unistdio/ulc-vasnprintf: New file.
83078         * modules/unistdio/ulc-vasprintf: New file.
83079         * modules/unistdio/ulc-vfprintf: New file.
83080         * modules/unistdio/ulc-vsnprintf: New file.
83081         * modules/unistdio/ulc-vsprintf: New file.
83082         * modules/unistdio/u8-asnprintf: New file.
83083         * modules/unistdio/u8-asprintf: New file.
83084         * modules/unistdio/u8-printf-parse: New file.
83085         * modules/unistdio/u8-snprintf: New file.
83086         * modules/unistdio/u8-sprintf: New file.
83087         * modules/unistdio/u8-vasnprintf: New file.
83088         * modules/unistdio/u8-vasprintf: New file.
83089         * modules/unistdio/u8-vsnprintf: New file.
83090         * modules/unistdio/u8-vsprintf: New file.
83091         * modules/unistdio/u8-u8-asnprintf: New file.
83092         * modules/unistdio/u8-u8-asprintf: New file.
83093         * modules/unistdio/u8-u8-snprintf: New file.
83094         * modules/unistdio/u8-u8-sprintf: New file.
83095         * modules/unistdio/u8-u8-vasnprintf: New file.
83096         * modules/unistdio/u8-u8-vasprintf: New file.
83097         * modules/unistdio/u8-u8-vsnprintf: New file.
83098         * modules/unistdio/u8-u8-vsprintf: New file.
83099         * modules/unistdio/u16-asnprintf: New file.
83100         * modules/unistdio/u16-asprintf: New file.
83101         * modules/unistdio/u16-printf-parse: New file.
83102         * modules/unistdio/u16-snprintf: New file.
83103         * modules/unistdio/u16-sprintf: New file.
83104         * modules/unistdio/u16-vasnprintf: New file.
83105         * modules/unistdio/u16-vasprintf: New file.
83106         * modules/unistdio/u16-vsnprintf: New file.
83107         * modules/unistdio/u16-vsprintf: New file.
83108         * modules/unistdio/u16-u16-asnprintf: New file.
83109         * modules/unistdio/u16-u16-asprintf: New file.
83110         * modules/unistdio/u16-u16-snprintf: New file.
83111         * modules/unistdio/u16-u16-sprintf: New file.
83112         * modules/unistdio/u16-u16-vasnprintf: New file.
83113         * modules/unistdio/u16-u16-vasprintf: New file.
83114         * modules/unistdio/u16-u16-vsnprintf: New file.
83115         * modules/unistdio/u16-u16-vsprintf: New file.
83116         * modules/unistdio/u32-asnprintf: New file.
83117         * modules/unistdio/u32-asprintf: New file.
83118         * modules/unistdio/u32-printf-parse: New file.
83119         * modules/unistdio/u32-snprintf: New file.
83120         * modules/unistdio/u32-sprintf: New file.
83121         * modules/unistdio/u32-vasnprintf: New file.
83122         * modules/unistdio/u32-vasprintf: New file.
83123         * modules/unistdio/u32-vsnprintf: New file.
83124         * modules/unistdio/u32-vsprintf: New file.
83125         * modules/unistdio/u32-u32-asnprintf: New file.
83126         * modules/unistdio/u32-u32-asprintf: New file.
83127         * modules/unistdio/u32-u32-snprintf: New file.
83128         * modules/unistdio/u32-u32-sprintf: New file.
83129         * modules/unistdio/u32-u32-vasnprintf: New file.
83130         * modules/unistdio/u32-u32-vasprintf: New file.
83131         * modules/unistdio/u32-u32-vsnprintf: New file.
83132         * modules/unistdio/u32-u32-vsprintf: New file.
83133         * modules/unistdio/ulc-asnprintf-tests: New file.
83134         * modules/unistdio/ulc-vasnprintf-tests: New file.
83135         * modules/unistdio/ulc-vasprintf-tests: New file.
83136         * modules/unistdio/ulc-vsnprintf-tests: New file.
83137         * modules/unistdio/ulc-vsprintf-tests: New file.
83138         * modules/unistdio/u8-asnprintf-tests: New file.
83139         * modules/unistdio/u8-vasnprintf-tests: New file.
83140         * modules/unistdio/u8-vasprintf-tests: New file.
83141         * modules/unistdio/u8-vsnprintf-tests: New file.
83142         * modules/unistdio/u8-vsprintf-tests: New file.
83143         * modules/unistdio/u16-asnprintf-tests: New file.
83144         * modules/unistdio/u16-vasnprintf-tests: New file.
83145         * modules/unistdio/u16-vasprintf-tests: New file.
83146         * modules/unistdio/u16-vsnprintf-tests: New file.
83147         * modules/unistdio/u16-vsprintf-tests: New file.
83148         * modules/unistdio/u32-asnprintf-tests: New file.
83149         * modules/unistdio/u32-vasnprintf-tests: New file.
83150         * modules/unistdio/u32-vasprintf-tests: New file.
83151         * modules/unistdio/u32-vsnprintf-tests: New file.
83152         * modules/unistdio/u32-vsprintf-tests: New file.
83153         * MODULES.html.sh (Unicode string functions): Add the new modules.
83155 2007-07-01  Bruno Haible  <bruno@clisp.org>
83157         * lib/sprintf.c (sprintf): Limit the available length estimation,
83158         to avoid address wraparound.
83159         * lib/vsprintf.c (vsprintf): Likewise.
83160         * modules/sprintf-posix (Dependencies): Add stdint.
83161         * modules/vsprintf-posix (Dependencies): Likewise.
83163 2007-07-01  Bruno Haible  <bruno@clisp.org>
83165         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
83166         Windows PATH as well. Conservative double-quoting. Comments.
83168 2007-07-01  Bruno Haible  <bruno@clisp.org>
83169             Eric Blake  <ebb9@byu.net>
83170             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83172         * gnulib-tool (self_abspathname): Fix algorithm to cope with
83173         empty components in $PATH, denoting '.'.
83175 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83177         * gnulib-tool: Fix indentation.
83178         (func_create_megatestdir): Likewise.
83179         Report by Bruno Haible.
83181 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83183         Sync from Automake.
83184         * build-aux/gnupload: Fix shell portability issues with for loops.
83185         Report by Karl Berry.
83187 2007-06-29  Simon Josefsson  <simon@josefsson.org>
83189         * build-aux/maint.mk (POURL): Use translationproject.org.
83191 2007-06-27  Simon Josefsson  <simon@josefsson.org>
83192             Bruno Haible  <bruno@clisp.org>
83194         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
83195         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
83196         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
83197         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
83198         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
83200 2007-06-27  Bruno Haible  <bruno@clisp.org>
83202         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
83203         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
83205 2007-06-26  Karl Berry  <karl@gnu.org>
83207         * MODULES.html.sh: remove xreadlink-with-size.
83209 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83211         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
83212         method that I hope also handles the double-include problem noted
83213         by Bruno Haible in
83214         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
83216 2007-06-23  Bruno Haible  <bruno@clisp.org>
83218         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83219         Don't let the 'mostlyclean' target fail if the last subdirectory could
83220         not be removed.
83221         Reported by Karl Berry.
83223 2007-06-23  Bruno Haible  <bruno@clisp.org>
83225         * gnulib-tool (echo): Add a speedier workaround for ksh.
83226         * tests/test-echo.sh: Likewise.
83228 2007-06-23  Bruno Haible  <bruno@clisp.org>
83230         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
83231         * tests/test-echo.sh: Likewise.
83233 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83235         * gnulib-tool (IFS): Initialize early, so we don't set it to
83236         empty later.
83237         (self_abspathname): Rewrite algorithm to set it, reindent.
83238         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
83239         (func_create_megatestdir): Merge some sed scripts.
83241 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83243         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
83244         exposed by Sun Studio 11 cc on Solaris 8.
83246 2007-06-22  Bruno Haible  <bruno@clisp.org>
83248         * gnulib-tool (echo): Ensure the echo primitive does not interpret
83249         backslashes.
83250         * tests/test-echo.sh: New file.
83252 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83254         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
83255         simplify `sed_replace_build_aux' scripts, they are portable but
83256         echoing them with `echo' is not.
83257         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
83259 2007-06-21  Karl Berry  <karl@gnu.org>
83261         * config/srclist.txt: guess we can't handle the licenses via
83262         srclist at the moment.
83264 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
83266         * MODULES.html.sh: Add include_next.
83267         * modules/include_next: New file.
83269 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
83271         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
83272         INCLUDE_NEXT.
83273         (gl_CHECK_NEXT_HEADERS): New macro.
83274         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
83275         the obsolescent gl_ABSOLUTE_HEADER.
83276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
83277         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
83278         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
83279         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
83280         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
83281         * m4/math_h.m4 (gl_MATH_H): Likewise.
83282         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
83283         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
83284         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
83285         * m4/stdint.m4 (gl_STDINT_H): Likewise.
83286         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
83287         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
83288         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
83289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
83290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
83291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
83292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
83293         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
83294         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
83295         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
83296         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
83297         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
83298         * m4/inttypes.m4 (gl_INTTYPES_H): Define
83299         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
83300         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
83301         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
83302         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
83303         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
83304         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
83305         * lib/float_.h: Likewise.
83306         * lib/inttypes_.h: Likewise.
83307         * lib/math_.h: Likewise.
83308         * lib/search_.h: Likewise.
83309         * lib/signal_.h: Likewise.
83310         * lib/stdint_.h: Likewise.
83311         * lib/stdio_.h: Likewise.
83312         * lib/stdlib_.h: Likewise.
83313         * lib/string_.h: Likewise.
83314         * lib/sys_stat_.h: Likewise.
83315         * lib/sys_time_.h: Likewise.
83316         * lib/time_.h: Likewise.
83317         * lib/unistd_.h: Likewise.
83318         * lib/wchar_.h: Likewise.
83319         * lib/wctype_.h: Likewise.
83320         * lib/dirent_.h: Likewise.
83321         * lib/iconv_.h: Likewise.
83322         * lib/locale_.h: Likewise.
83323         * lib/netinet_in_.h: Likewise.
83324         * lib/sys_select_.h: Likewise.
83325         * lib/sys_socket_.h: Likewise.
83326         * lib/sysexits_.h: Likewise.
83327         * modules/fcntl (Depends-on): Depend on include_next, not
83328         absolute_header.
83329         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
83330         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
83331         * modules/fchdir: Likewise.
83332         * modules/float: Likewise.
83333         * modules/iconv_open: Likewise.
83334         * modules/inttypes: Likewise.
83335         * modules/locale: Likewise.
83336         * modules/math: Likewise.
83337         * modules/netinet_in: Likewise.
83338         * modules/search: Likewise.
83339         * modules/signal: Likewise.
83340         * modules/stdint: Likewise.
83341         * modules/stdio: Likewise.
83342         * modules/stdlib: Likewise.
83343         * modules/string: Likewise.
83344         * modules/sys_select: Likewise.
83345         * modules/sys_socket: Likewise.
83346         * modules/sys_stat: Likewise.
83347         * modules/sys_time: Likewise.
83348         * modules/sysexits: Likewise.
83349         * modules/time: Likewise.
83350         * modules/unistd: Likewise.
83351         * modules/wchar: Likewise.
83352         * modules/wctype: Likewise.
83353         * modules/sys_stat: Change maintainer to "all".
83354         * modules/unistd: Likewise.
83356 2007-06-20  Karl Berry  <karl@gnu.org>
83358         * config/srclist.txt: track www changes in license files.
83360 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
83362         * build-aux/bootstrap: Remove stray dot.
83363         Make sure build_aux settings are honored when linking
83364         gnulib_extra_files.
83366 2007-06-19  Eric Blake  <ebb9@byu.net>
83368         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83369         Allow compilation on cygwin.
83371 2007-06-19  Jim Meyering  <jim@meyering.net>
83373         xreadlink-with-size: Remove module.  No longer used.
83374         Ex-callers now use xreadlink or mreadlink-with-size.
83375         * modules/xreadlink-with-size: Remove module.
83376         * lib/xreadlink-with-size.c: Remove file.
83377         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
83378         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
83379         just before the function definition *is* accurate.
83381         Eliminate one way canonicalize_filename_mode could exit.
83382         * lib/canonicalize.c (canonicalize_filename_mode):
83383         Use mreadlink_with_size, not xreadlink_with_size.
83385 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
83387         Detect porting problems to FreeBSD/arm, which has time_t wider than
83388         long int.  Original problem reported for GNU diff by Xin Li in
83389         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
83390         * modules/getdate (Depends-on): Add intprops, verify.
83391         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
83392         is an integer type no wider than long int.
83394 2007-06-18  Jim Meyering  <jim@meyering.net>
83396         New module: mreadlink-with-size.
83397         * MODULES.html.sh: Add mreadlink-with-size.
83398         * modules/mreadlink-with-size: New module
83399         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
83400         not xreadlink-with-size.
83401         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
83403 2007-06-16  Bruno Haible  <bruno@clisp.org>
83405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
83406         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
83407         Reported by Gary V. Vaughan <gary@gnu.org>.
83409 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
83411         Revamp lchown so that it lives in unistd.h where it belongs.
83412         * lib/lchown.h: Remove.
83413         * lib/dirchownmod.c: Don't include lib/lchown.h.
83414         * lib/fchownat.c: Likewise.
83415         * lib/openat.c: Likewise.
83416         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
83417         does not follow symlinks.
83418         (EOPNOTSUPP): Define if not defined.
83419         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
83420         is defined to 0.
83421         (lchown): New decl.
83422         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
83423         Do not check for lchown decl.
83424         Set REPLACE_LCHOWN.
83425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
83426         REPLACE_LCHOWN.
83427         * modules/chown: Make it clear it follows symlinks.
83428         * modules/lchown: Make it clear it doesn't follow symlinks.
83429         (Files): Remove lib/lchown.h
83430         (Depends-on): Add unistd.
83431         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
83432         (Include): Include <unistd.h>, not "lchown.h".
83433         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
83434         REPLACE_LCHOWN.
83436 2007-06-15  Jim Meyering  <jim@meyering.net>
83438         Change license (GPL to LGPL) of fsusage and dependents.
83439         * modules/fsusage (License): Change to LGPL.
83440         * modules/full-read (License): Likewise.
83441         * modules/full-write (License): Likewise.
83442         * modules/safe-read (License): Likewise.
83443         * modules/safe-write (License): Likewise.
83445 2007-06-14  Ben Pfaff  <blp@gnu.org>
83447         Missing part of allocsa -> malloca transition.
83448         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
83449         gl_MALLOCA.
83451 2007-06-12  Bruno Haible  <bruno@clisp.org>
83453         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
83454         to ia64, x86_64, i386.
83455         Reported by Eric Blake.
83457 2007-06-12  Bruno Haible  <bruno@clisp.org>
83459         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
83460         cross-compiling to x86_64.
83462 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
83464         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
83465         glitch reported by Ralf Wildenhues in
83466         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
83468         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
83469         Vin Shelton.
83471 2007-06-11  Bruno Haible  <bruno@clisp.org>
83473         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
83474         replacement string.
83475         Reported by Eric Blake.
83477 2007-06-10  Bruno Haible  <bruno@clisp.org>
83479         Prepare vasnprintf code for use with Unicode strings.
83480         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
83481         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
83482         TYPE_U32_STRING.
83483         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
83484         a_u32_string variants.
83485         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
83486         * lib/printf-args.c: Don't include config.h and the specification
83487         header if PRINTF_FETCHARGS is already defined.
83488         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
83489         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
83490         TYPE_U16_STRING, TYPE_U32_STRING.
83491         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
83492         u16_directive, u16_directives, u32_directive, u32_directives): New
83493         types.
83494         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
83495         New declarations.
83496         * lib/printf-parse.c: Don't include config.h and the specification
83497         header if PRINTF_PARSE is already defined. Eliminate the set of
83498         parameters for WIDE_CHAR_VERSION; the user of this file must provide
83499         them now. Include c-ctype.h.
83500         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
83501         directive and CHAR_T_ONLY_ASCII.
83502         * lib/vasnprintf.c: Don't include config.h and the specification header
83503         if VASNPRINTF is already defined.
83504         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
83505         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
83506         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
83507         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
83508         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
83509         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
83510         code accordingly.
83511         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
83512         pad_ourselves also in this case, with the 'c' and 's' directives, and
83513         with a different notion of "width".
83514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
83516 2007-06-10  Bruno Haible  <bruno@clisp.org>
83518         * modules/unistr/u32-mbsnlen: New file.
83519         * lib/unistr/u32-mbsnlen.c: New file.
83521         * modules/unistr/u16-mbsnlen: New file.
83522         * lib/unistr/u16-mbsnlen.c: New file.
83524         * modules/unistr/u8-mbsnlen: New file.
83525         * lib/unistr/u8-mbsnlen.c: New file.
83527         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
83528         declarations.
83530 2007-06-10  Bruno Haible  <bruno@clisp.org>
83532         * lib/string_.h (mbsnlen): New declaration.
83533         * lib/mbsnlen.c: New file.
83534         * m4/mbsnlen.m4: New file.
83535         * modules/mbsnlen: New file.
83536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
83537         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
83538         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
83540 2007-06-10  Bruno Haible  <bruno@clisp.org>
83542         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
83544 2007-06-10  Bruno Haible  <bruno@clisp.org>
83546         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
83547         * lib/mbuiter.h: Likewise.
83549 2007-06-10  Bruno Haible  <bruno@clisp.org>
83551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
83552         declaration.
83554 2007-06-10  Karl Berry  <karl@gnu.org>
83556         * config/srclist.txt: remove gettext entries, Bruno prefers
83557         to update individually.
83559 2007-06-10  Bruno Haible  <bruno@clisp.org>
83561         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
83562         'maxlen'. Ensure only length + width bytes are allocated, not
83563         length + 1 + width.
83565 2007-06-09  Bruno Haible  <bruno@clisp.org>
83567         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
83568         (CHAR_T): Remove macro.
83569         (VASNPRINTF): Update.
83571 2007-06-09  Bruno Haible  <bruno@clisp.org>
83573         * MODULES.html.sh (Unicode string functions): Add the new modules.
83575         * modules/uniconv/u32-conv-to-enc: New file.
83576         * lib/uniconv/u32-conv-to-enc.c: New file.
83577         * modules/uniconv/u32-conv-to-enc-tests: New file.
83578         * tests/uniconv/test-u32-conv-to-enc.c: New file.
83580         * modules/uniconv/u16-conv-to-enc: New file.
83581         * lib/uniconv/u16-conv-to-enc.c: New file.
83582         * lib/uniconv/u-conv-to-enc.h: New file.
83583         * modules/uniconv/u16-conv-to-enc-tests: New file.
83584         * tests/uniconv/test-u16-conv-to-enc.c: New file.
83586         * modules/uniconv/u8-conv-to-enc: New file.
83587         * lib/uniconv/u8-conv-to-enc.c: New file.
83588         * modules/uniconv/u8-conv-to-enc-tests: New file.
83589         * tests/uniconv/test-u8-conv-to-enc.c: New file.
83591         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83592         u32_conv_to_encoding): New declarations.
83594 2007-06-09  Bruno Haible  <bruno@clisp.org>
83596         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
83598 2007-06-09  Bruno Haible  <bruno@clisp.org>
83600         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
83601         * modules/malloca: Renamed from modules/allocsa, updated.
83602         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
83603         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
83604         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
83605         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
83606         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
83607         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
83608         * modules/xmalloca: Renamed from modules/xallocsa, updated.
83609         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
83610         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
83611         * modules/c-strcasestr (Depends-on): Update.
83612         * lib/c-strcasestr.c: Update.
83613         * modules/c-strstr (Depends-on): Update.
83614         * lib/c-strstr.c: Update.
83615         * modules/canonicalize-lgpl (Depends-on): Update.
83616         * lib/canonicalize-lgpl.c: Update.
83617         * modules/clean-temp (Depends-on): Update.
83618         * lib/clean-temp.c: Update.
83619         * modules/csharpcomp (Depends-on): Update.
83620         * lib/csharpcomp.c: Update.
83621         * modules/csharpexec (Depends-on): Update.
83622         * lib/csharpexec.c: Update.
83623         * modules/javacomp (Depends-on): Update.
83624         * lib/javacomp.c: Update.
83625         * modules/javaexec (Depends-on): Update.
83626         * lib/javaexec.c: Update.
83627         * modules/mbscasestr (Depends-on): Update.
83628         * lib/mbscasestr.c: Update.
83629         * modules/mbsstr (Depends-on): Update.
83630         * lib/mbsstr.c: Update.
83631         * modules/setenv (Depends-on): Update.
83632         * lib/setenv.c: Update.
83633         * modules/strcasestr (Depends-on): Update.
83634         * lib/strcasestr.c: Update.
83635         * modules/striconveha (Depends-on): Update.
83636         * lib/striconveha.c: Update.
83637         * modules/relocatable-prog-wrapper (Files): Update.
83638         * lib/relocwrapper.c: Update.
83639         * build-aux/install-reloc: Update.
83640         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
83642 2007-06-08  Bruno Haible  <bruno@clisp.org>
83644         Port to uClibc.
83645         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
83646         * lib/fpurge.c (fpurge): Likewise.
83647         * lib/freading.c (freading): Likewise.
83648         * lib/fseeko.c (rpl_fseeko): Likewise.
83649         * lib/fseterr.c (fseterr): Likewise.
83650         * lib/fwriting.c (fwriting): Likewise.
83651         * tests/test-fflush.c (main): Avoid a failure on uClibc.
83653 2007-06-08  Bruno Haible  <bruno@clisp.org>
83655         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
83656         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
83657         * modules/gettext (Files): Add m4/intlmacosx.m4.
83659 2007-06-07  Bruno Haible  <bruno@clisp.org>
83661         * modules/localename-tests: New file.
83662         * tests/test-localename.c: New file.
83664         New module 'localename'.
83665         * lib/localename.h: New file.
83666         * lib/localename.c: New file, from GNU gettext.
83667         * m4/localename.m4: New file.
83668         * modules/localename: New file.
83670 2007-06-07  Bruno Haible  <bruno@clisp.org>
83672         Work around the lack of <wchar.h> on some builds of uClibc.
83673         * doc/headers/wchar.texi: Update.
83674         * lib/wchar_.h: Include <wchar.h> only if it exists.
83675         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
83676         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
83677         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
83678         doesn't exist.
83679         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
83680         * modules/mbfile (Depends-on): Add wchar.
83681         * modules/mbiter (Depends-on): Likewise.
83682         * modules/mbuiter (Depends-on): Likewise.
83683         Reported by Simon Josefsson.
83685 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83687         Work around problem reported by Steven M. Schweda in
83688         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
83689         Tru64 5.1B with the Compaq compiler environment installed declares
83690         an 'isblank' function but does not define it in the C library.
83691         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
83692         * lib/regex_internal.h (isblank): Likewise.
83693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
83694         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83696 2007-06-05  Bruno Haible  <bruno@clisp.org>
83698         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
83699         ia64.
83700         * modules/printf-safe: New file.
83701         * modules/fprintf-posix (Depends-on): Add printf-safe.
83702         * modules/printf-posix (Depends-on): Likewise.
83703         * modules/snprintf-posix (Depends-on): Likewise.
83704         * modules/sprintf-posix (Depends-on): Likewise.
83705         * modules/vasnprintf-posix (Depends-on): Likewise.
83706         * modules/vasprintf-posix (Depends-on): Likewise.
83707         * modules/vfprintf-posix (Depends-on): Likewise.
83708         * modules/vprintf-posix (Depends-on): Likewise.
83709         * modules/vsnprintf-posix (Depends-on): Likewise.
83710         * modules/vsprintf-posix (Depends-on): Likewise.
83711         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
83712         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
83713         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
83714         "no" on i386, x86_64, ia64.
83715         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
83716         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83717         on i386, x86_64, ia64.
83718         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
83719         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83720         on i386, x86_64, ia64.
83721         * tests/test-vasnprintf-posix.c: Include float.h.
83722         (LDBL80_WORDS): New macro.
83723         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83724         on i386, x86_64, ia64.
83725         * tests/test-vasprintf-posix.c: Include float.h.
83726         (LDBL80_WORDS): New macro.
83727         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83728         on i386, x86_64, ia64.
83729         * tests/test-snprintf-posix.c: Include float.h.
83730         * tests/test-sprintf-posix.c: Likewise.
83731         * tests/test-vsnprintf-posix.c: Likewise.
83732         * tests/test-vsprintf-posix.c: Likewise.
83734 2007-06-05  Bruno Haible  <bruno@clisp.org>
83736         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
83737         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
83738         non-IEEE numbers on i386, x86_64, ia64.
83739         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
83740         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
83741         * tests/test-isnanl.h: Include float.h.
83742         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
83744 2007-06-05  Bruno Haible  <bruno@clisp.org>
83746         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
83747         also the %a / %A. Handle the %a / %A code before this extra handling.
83749 2007-06-05  Bruno Haible  <bruno@clisp.org>
83751         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
83752         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
83754 2007-06-05  Bruno Haible  <bruno@clisp.org>
83756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
83757         typo in variable name.
83759 2007-06-05  Eric Blake  <ebb9@byu.net>
83761         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
83762         Reported by Simon Josefsson.
83764 2007-06-04  Bruno Haible  <bruno@clisp.org>
83766         Avoid test failures on some PowerPC platforms.
83767         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
83768         Define differently for PowerPC.
83769         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
83770         Reported by Gary V. Vaughan <gary@gnu.org>.
83772 2007-06-02  Bruno Haible  <bruno@clisp.org>
83774         Fix test-stdint failure on FreeBSD/ia64.
83775         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
83776         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
83777         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
83778         * doc/headers/stdint.texi: Update.
83780 2007-06-01  Bruno Haible  <bruno@clisp.org>
83782         * tests/test-binary-io.c (main): Pass a third argument to open().
83783         Reported by Gary V. Vaughan <gary@gnu.org>.
83785 2007-06-01  Bruno Haible  <bruno@clisp.org>
83787         * doc/functions/frexpl.texi: Update for mingw.
83789 2007-06-01  Bruno Haible  <bruno@clisp.org>
83791         * tests/test-lseek.c (main): Disable test of errno for invalid third
83792         argument.
83793         * doc/functions/lseek.texi: Update.
83794         Reported by Gary V. Vaughan <gary@gnu.org>.
83796 2007-05-28  Bruno Haible  <bruno@clisp.org>
83798         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
83800 2007-05-31  Eric Blake  <ebb9@byu.net>
83802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
83803         cross compiling.
83805 2007-05-30  Eric Blake  <ebb9@byu.net>
83806         and Bruno Haible  <bruno@clisp.org>
83808         Work around mingw test failures exposed by m4-1.4.9b.
83809         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
83810         * tests/test-unistd.c: Disable uid_t and git_t tests for the
83811         moment.
83813 2007-05-30  Bruno Haible  <bruno@clisp.org>
83815         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
83816         assuming that they are closed. Needed on HP-UX 11.
83818 2007-05-29  Bruno Haible  <bruno@clisp.org>
83820         Fix a problem with #include_next.
83821         * lib/dirent_.h: Split the double-inclusion guard.
83822         * lib/fcntl_.h: Likewise.
83823         * lib/float_.h: Likewise.
83824         * lib/iconv_.h: Likewise.
83825         * lib/inttypes_.h: Likewise.
83826         * lib/locale_.h: Likewise.
83827         * lib/math_.h: Likewise.
83828         * lib/netinet_in_.h: Likewise.
83829         * lib/search_.h: Likewise.
83830         * lib/signal_.h: Likewise.
83831         * lib/stdint_.h: Likewise.
83832         * lib/stdio_.h: Likewise.
83833         * lib/stdlib_.h: Likewise.
83834         * lib/string_.h: Likewise.
83835         * lib/sys_select_.h: Likewise.
83836         * lib/sys_socket_.h: Likewise.
83837         * lib/sys_stat_.h: Likewise.
83838         * lib/sys_time_.h: Likewise.
83839         * lib/sysexits_.h: Likewise.
83840         * lib/time_.h: Likewise.
83841         * lib/unistd_.h: Likewise.
83842         * lib/wchar_.h: Likewise.
83843         * lib/wctype_.h: Likewise.
83845 2007-05-29  Bruno Haible  <bruno@clisp.org>
83847         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
83848         for the moment.
83850 2007-05-29  Bruno Haible  <bruno@clisp.org>
83852         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
83853         invocation.
83854         Reported by Eric Blake.
83856 2007-05-29  Bruno Haible  <bruno@clisp.org>
83858         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
83859         compiling case.
83861 2007-05-29  Eric Blake  <ebb9@byu.net>
83862             Bruno Haible  <bruno@clisp.org>
83864         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
83865         cross compiles.
83867 2007-05-28  Eric Blake  <ebb9@byu.net>
83869         * modules/closein-tests (test_closein_LDADD): Support test on
83870         cygwin with libtool.
83872 2007-05-28  Bruno Haible  <bruno@clisp.org>
83874         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
83875         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
83876         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
83877         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
83878         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
83879         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
83880         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
83881         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
83882         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
83884 2007-05-28  Eric Blake  <ebb9@byu.net>
83886         Unconditionally include <config.h> in unit tests.
83887         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
83888         * tests/test-allocsa.c, tests/test-arcfour.c,
83889         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
83890         tests/test-array_list.c, tests/test-array_oset.c,
83891         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
83892         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
83893         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
83894         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
83895         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
83896         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
83897         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
83898         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
83899         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
83900         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
83901         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
83902         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
83903         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
83904         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
83905         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
83906         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
83907         test-md5.c, test-memmem.c, test-printf-posix.c,
83908         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
83909         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
83910         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
83911         test-strcasestr.c, test-striconv.c, test-striconveh.c,
83912         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
83913         test-vasnprintf-posix2.c, test-vasnprintf.c,
83914         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
83915         test-vfprintf-posix.c, test-vprintf-posix.c,
83916         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
83917         test-xvasprintf.c: Likewise.
83919 2007-05-28  Bruno Haible  <bruno@clisp.org>
83921         * gnulib-tool (func_import): Remember the --with-tests command-line
83922         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
83923         Reported by Eric Blake.
83925 2007-05-28  Bruno Haible  <bruno@clisp.org>
83927         * modules/ftell-tests: New file.
83928         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
83929         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
83931         * lib/ftell.c: New file.
83932         * modules/ftell: New file.
83933         * m4/ftell.m4: New file.
83934         * doc/functions/ftell.texi: Update.
83935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
83936         REPLACE_FTELL.
83937         * lib/stdio_.h (rpl_ftell): New declaration.
83938         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
83939         REPLACE_FTELL.
83941 2007-05-28  Eric Blake  <ebb9@byu.net>
83943         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
83945 2007-05-28  Bruno Haible  <bruno@clisp.org>
83947         * modules/fseek-tests: New file.
83948         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
83949         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
83951         * lib/fseek.c: New file.
83952         * modules/fseek: New file.
83953         * m4/fseek.m4: New file.
83954         * doc/functions/fseek.texi: Update.
83955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
83956         REPLACE_FSEEK.
83957         * lib/stdio_.h (rpl_fseek): New declaration.
83958         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
83959         REPLACE_FSEEK.
83961 2007-05-28  Bruno Haible  <bruno@clisp.org>
83963         * lib/stdio_.h (fflush): More comments.
83965 2007-05-28  Bruno Haible  <bruno@clisp.org>
83967         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
83968         runtime test.
83970 2007-05-28  Eric Blake  <ebb9@byu.net>
83972         Improve lseek module.
83973         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
83974         * lib/unistd_.h (lseek): Scale back link warning message.
83975         * tests/test-lseek.c: Beef up test.
83976         * tests/test-lseek.sh: Exercise more facets of lseek.
83977         Reported by Bruno Haible.
83979 2007-05-28  Bruno Haible  <bruno@clisp.org>
83981         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
83982         to define.
83984 2007-05-27  Bruno Haible  <bruno@clisp.org>
83986         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
83988 2007-05-27  Bruno Haible  <bruno@clisp.org>
83990         * modules/openmp: New file.
83991         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
83992         Noah Misch.
83994 2007-05-26  Bruno Haible  <bruno@clisp.org>
83996         * modules/chdir-long (Depends-on): Add fchdir.
83997         * modules/chdir-safer (Depends-on): Likewise.
83998         * modules/fts (Depends-on): Likewise.
83999         * modules/fts-lgpl (Depends-on): Likewise.
84000         * modules/openat (Depends-on): Likewise.
84001         * modules/savewd (Depends-on): Likewise.
84003 2007-05-24  Eric Blake  <ebb9@byu.net>
84005         Fix lseek on mingw.
84006         * modules/lseek: New module.
84007         * m4/lseek.m4: New file.
84008         * lib/lseek.c: New file.
84009         * modules/lseek-tests: New file.
84010         * tests/test-lseek.c: New file.
84011         * tests/test-lseek.sh: New file.
84012         * MODULES.html.sh: Document lseek module.
84013         * modules/fflush (Depends-on): Add lseek, fseeko.
84014         * modules/fseeko (Depends-on): Likewise.
84015         * modules/ftello (Depends-on): Likewise.
84016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
84017         broken.
84018         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
84019         broken.
84020         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
84021         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
84022         * lib/ftello.c (rpl_ftello): Likewise.
84023         * tests/test-fseeko.c (main): Test this.
84024         * tests/test-fseeko.sh: Likewise.
84025         * tests/test-ftello.c (main): Likewise.
84026         * tests/test-ftello.sh: Likewise.
84027         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
84028         implies replacing fseek.
84029         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
84030         HAVE_FTELLO.
84031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
84032         * modules/unistd (Makefile.am): Likewise.
84033         * lib/unistd_.h (lseek): Declare a replacement.
84034         * doc/functions/lseek.texi (lseek): Document this fix.
84035         * doc/functions/fseek.texi (fseek): Likewise.
84036         * doc/functions/ftell.texi (ftell): Likewise.
84038 2007-05-24  Bruno Haible  <bruno@clisp.org>
84040         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
84041         in the printed representation of a NaN.
84042         * tests/test-vasprintf-posix.c (test_function): Likewise.
84043         * tests/test-snprintf-posix.h (test_function): Likewise.
84044         * tests/test-sprintf-posix.h (test_function): Likewise.
84045         Reported by Eric Blake.
84047 2007-05-23  Eric Blake  <ebb9@byu.net>
84049         Fix fseeko/ftello on cygwin 1.5.24.
84050         * doc/functions/fseeko.texi (fseeko): Document the fix.
84051         * doc/functions/ftello.texi (ftello): Document the fix.
84052         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
84053         * doc/functions/stdout.text (stdout): New file.
84054         * doc/functions/stderr.text (stderr): New file.
84055         * doc/gnulib.texi (Function Substitutes): Use new files.
84056         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
84057         prior to 1.7.0.
84058         * tests/test-ftello.c (main): Likewise for ftello.
84059         * tests/test-fseeko.sh: New file.
84060         * tests/test-ftello.sh: New file.
84061         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
84062         with seekable stdin.
84063         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
84064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
84065         (gl_REPLACE_FSEEKO): New macro.
84066         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
84067         * modules/fseeko (Files): Distribute fseeko.c.
84068         * modules/ftello (Files): Distribute ftello.c.
84069         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
84070         mode.
84071         * lib/ftello.c (rpl_ftello): New file.
84072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
84073         fseeko, ftello.
84074         (gl_STDIN_LARGE_OFFSET): New macro.
84075         * modules/stdio (Makefile.am): Perform the replacement.
84076         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
84078 2007-05-23  Bruno Haible  <bruno@clisp.org>
84080         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
84081         GNULIB_POSIXCHECK is defined.
84083 2007-05-21  Bruno Haible  <bruno@clisp.org>
84085         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
84086         Check also the output for NaN arguments. When cross-compiling, guess
84087         no on IRIX.
84088         * lib/vasnprintf.c: Update comments.
84089         * tests/test-vasnprintf-posix.c (strisnan): New function.
84090         (test_function): Use it.
84091         * tests/test-vasprintf-posix.c (strisnan): New function.
84092         (test_function): Use it.
84093         * tests/test-snprintf-posix.h (strisnan): New function.
84094         (test_function): Use it.
84095         * tests/test-sprintf-posix.h (strisnan): New function.
84096         (test_function): Use it.
84097         Reported by Eric Blake.
84099 2007-05-20  Bruno Haible  <bruno@clisp.org>
84101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
84102         numbers that fails on BeOS.
84103         * doc/functions/frexpl.texi: Update.
84105 2007-05-20  Jim Meyering  <jim@meyering.net>
84107         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
84108         forced upon us by glibc-2.6.
84110 2007-05-20  Bruno Haible  <bruno@clisp.org>
84112         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
84113         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
84114         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
84115         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
84116         NEED_PRINTF_INFINITE.
84117         (is_infinitel): New function.
84118         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
84119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
84120         gl_PREREQ_VASNPRINTF_INFINITE.
84121         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
84122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84123         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
84124         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
84125         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
84126         gl_PREREQ_VASNPRINTF_INFINITE.
84127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84134         * doc/functions/fprintf.texi: Update.
84135         * doc/functions/printf.texi: Update.
84136         * doc/functions/snprintf.texi: Update.
84137         * doc/functions/sprintf.texi: Update.
84138         * doc/functions/vfprintf.texi: Update.
84139         * doc/functions/vprintf.texi: Update.
84140         * doc/functions/vsnprintf.texi: Update.
84141         * doc/functions/vsprintf.texi: Update.
84143 2007-05-20  Bruno Haible  <bruno@clisp.org>
84145         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
84146         was not found in libc.
84147         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
84149 2007-05-20  Bruno Haible  <bruno@clisp.org>
84151         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84152         printed as "-nan" instead of "nan".
84153         * tests/test-vasprintf-posix.c (test_function): Likewise.
84154         * tests/test-snprintf-posix.h (test_function): Likewise.
84155         * tests/test-sprintf-posix.h (test_function): Likewise.
84156         Needed for HP-UX 11.
84158 2007-05-20  Jim Meyering  <jim@meyering.net>
84160         Fix buggy test for the fchownat-deref bug.
84161         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
84162         symlink required for the run-test.  Without it, this test would
84163         always declare that fchownat doesn't work, and client code would
84164         unnecessarily use the replacement function with fixed libc.
84165         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
84166         Reported by Greg Schafer.
84168 2007-05-19  Bruno Haible  <bruno@clisp.org>
84170         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
84171         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
84172         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
84173         Needed for IRIX 6.5 and Solaris 2.5.1.
84175 2007-05-19  Bruno Haible  <bruno@clisp.org>
84177         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
84178         (test_function): Skip tests involving -0.0 on platforms where
84179         -0.0 = 0.0.
84180         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
84181         (test_function): Skip tests involving -0.0 on platforms where
84182         -0.0 = 0.0.
84183         * tests/test-snprintf-posix.h (have_minus_zero): New function.
84184         (test_function): Skip tests involving -0.0 on platforms where
84185         -0.0 = 0.0.
84186         * tests/test-sprintf-posix.h (have_minus_zero): New function.
84187         (test_function): Skip tests involving -0.0 on platforms where
84188         -0.0 = 0.0.
84189         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
84190         tests.
84191         * tests/test-printf-posix.h (test_function): Likewise.
84192         * tests/test-printf-posix.output: Remove all -0.0 related results.
84193         Needed for IRIX 6.5.
84195 2007-05-19  Bruno Haible  <bruno@clisp.org>
84197         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84198         printed as "nan0x7fffffff" instead of "nan".
84199         * tests/test-vasprintf-posix.c (test_function): Likewise.
84200         * tests/test-snprintf-posix.h (test_function): Likewise.
84201         * tests/test-sprintf-posix.h (test_function): Likewise.
84202         * tests/test-fprintf-posix.h (NaN): Remove macro.
84203         (test_function): Remove all NaN related tests.
84204         * tests/test-printf-posix.h (NaN): Remove macro.
84205         (test_function): Remove all NaN related tests.
84206         * tests/test-printf-posix.output: Remove all NaN related results.
84207         Needed for IRIX 6.5.
84209 2007-05-19  Bruno Haible  <bruno@clisp.org>
84211         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
84212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
84214 2007-05-19  Bruno Haible  <bruno@clisp.org>
84216         * lib/float_.h: New file.
84217         * m4/float_h.m4: New file.
84218         * modules/float: New file.
84219         * modules/isnanl (Dependencies): Add float.
84220         * modules/isnanl-nolibm (Dependencies): Likewise.
84221         * modules/mathl (Dependencies): Likewise.
84222         * modules/printf-frexpl (Dependencies): Likewise.
84223         * modules/signbit (Dependencies): Likewise.
84224         * modules/vasnprintf (Dependencies): Likewise.
84225         * doc/headers/float.texi: Update.
84227 2007-05-19  Jim Meyering  <jim@meyering.net>
84229         * lib/utimens.c (gl_futimens): Rename from futimens,
84230         now that glibc-2.6 declares futimens.
84231         * lib/utimens.h: Likewise.
84233 2007-05-19  Bruno Haible  <bruno@clisp.org>
84235         Avoid test failures on mingw.
84236         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
84237         * tests/test-printf-posix.sh: Likewise.
84238         * tests/test-vfprintf-posix.sh: Likewise.
84239         * tests/test-vprintf-posix.sh: Likewise.
84241 2007-05-19  Bruno Haible  <bruno@clisp.org>
84243         Fix *printf result for NaN, Inf, -0.0 on mingw.
84244         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
84245         * lib/vasnprintf.c: Include math.h and isnan.h.
84246         (is_infinite_or_zero): New function.
84247         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
84248         values in the %f, %F, %e, %E, %g, %G directives.
84249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
84250         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84251         gl_PRINTF_INFINITE and test its result. Invoke
84252         gl_PREREQ_VASNPRINTF_INFINITE.
84253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84254         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84260         * doc/functions/fprintf.texi: Update.
84261         * doc/functions/printf.texi: Update.
84262         * doc/functions/snprintf.texi: Update.
84263         * doc/functions/sprintf.texi: Update.
84264         * doc/functions/vfprintf.texi: Update.
84265         * doc/functions/vprintf.texi: Update.
84266         * doc/functions/vsnprintf.texi: Update.
84267         * doc/functions/vsprintf.texi: Update.
84269 2007-05-19  Bruno Haible  <bruno@clisp.org>
84271         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
84272         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
84273         Instead of multiplying with 10^k, set extra_zeroes to k.
84274         (scale10_round_long_double): Remove function.
84276 2007-05-18  Bruno Haible  <bruno@clisp.org>
84278         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
84279         introduced on 2007-05-06.
84281 2007-05-18  Bruno Haible  <bruno@clisp.org>
84283         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
84284         %g directives.
84285         * tests/test-vasprintf-posix.c (test_function): Likewise.
84286         * tests/test-snprintf-posix.h (test_function): Likewise.
84287         * tests/test-sprintf-posix.h (test_function): Likewise.
84289 2007-05-18  Bruno Haible  <bruno@clisp.org>
84291         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
84292         (strmatch): New function.
84293         (test_function): Test the %f directive on numbers of various exponents.
84294         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
84295         (strmatch): New function.
84296         (test_function): Test the %f directive on numbers of various exponents.
84297         * tests/test-snprintf-posix.h (strmatch): New function.
84298         (test_function): Test the %f directive on numbers of various exponents.
84299         * tests/test-sprintf-posix.h (strmatch): New function.
84300         (test_function): Test the %f directive on numbers of various exponents.
84301         * tests/test-snprintf-posix.c (SIZEOF): New macro.
84302         * tests/test-sprintf-posix.c (SIZEOF): New macro.
84303         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
84304         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
84306 2007-05-18  Bruno Haible  <bruno@clisp.org>
84308         Add support for 'long double' number output.
84309         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
84310         * lib/vasnprintf.c: Include math.h and float+.h.
84311         (mp_limb_t): New type.
84312         (GMP_LIMB_BITS): New macro.
84313         (mp_twolimb_t): New type.
84314         (GMP_TWOLIMB_BITS): New macro.
84315         (mpn_t): New type.
84316         (multiply, divide, convert_to_decimal, decode_long_double,
84317         scale10_round_long_double, scale10_round_decimal_long_double,
84318         floorlog10l): New functions.
84319         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
84320         for the %f, %F, %e, %E, %g, %G directives.
84321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
84322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84323         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
84324         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
84325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84332         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
84333         * modules/snprintf-posix (Depends-on): Likewise.
84334         * modules/sprintf-posix (Depends-on): Likewise.
84335         * modules/vasnprintf-posix (Depends-on): Likewise.
84336         * modules/vasprintf-posix (Depends-on): Likewise.
84337         * modules/vfprintf-posix (Depends-on): Likewise.
84338         * modules/vsnprintf-posix (Depends-on): Likewise.
84339         * modules/vsprintf-posix (Depends-on): Likewise.
84340         * modules/vasnprintf (Files): Add lib/float+.h.
84341         * doc/functions/fprintf.texi: Update.
84342         * doc/functions/printf.texi: Update.
84343         * doc/functions/snprintf.texi: Update.
84344         * doc/functions/sprintf.texi: Update.
84345         * doc/functions/vfprintf.texi: Update.
84346         * doc/functions/vprintf.texi: Update.
84347         * doc/functions/vsnprintf.texi: Update.
84348         * doc/functions/vsprintf.texi: Update.
84350 2007-05-18  Bruno Haible  <bruno@clisp.org>
84352         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
84354 2007-05-18  Bruno Haible  <bruno@clisp.org>
84356         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
84357         for printing 64-bit integers. Needed for mingw.
84359 2007-05-18  Bruno Haible  <bruno@clisp.org>
84361         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84362         gl_FUNC_FREXPL_WORKS.
84363         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
84365 2007-05-18  Bruno Haible  <bruno@clisp.org>
84367         * modules/frexpl-nolibm-tests: New file.
84369         * modules/frexpl-nolibm: New file.
84370         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
84372 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84374         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
84375         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84376         GCC 4.2, which otherwise issues a lot of warnings.
84377         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
84378         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
84379         Likewise.
84380         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
84381         * modules/iconv_open (iconv.h): Likewise.
84382         * modules/locale (locale.h): Likewise.
84383         * modules/netinet_in (netinet/in.h): Likewise.
84384         * modules/sys_select (sys_select.h): Likewise.
84385         * modules/sys_socket (sys/socket.h): Likewise.
84386         * modules/sys_stat (sys/stat.h): Likewise.
84387         * modules/sysexits (sysexits.h): Likewise.
84388         * modules/unistd (unistd.h): Likewise.
84390 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84392         * modules/closein-tests (Makefile.am): Distribute
84393         `test-closein.sh'.
84395 2007-05-17  Bruno Haible  <bruno@clisp.org>
84397         * tests/test-printf-posix.output: Renamed from
84398         tests/test-fprintf-posix.out.
84399         * modules/fprintf-posix-tests: Update.
84400         * modules/printf-posix-tests: Update.
84401         * modules/vfprintf-posix-tests: Update.
84402         * modules/vprintf-posix-tests: Update.
84403         * tests/test-fprintf-posix.sh: Update.
84404         * tests/test-printf-posix.sh: Update.
84405         * tests/test-vfprintf-posix.sh: Update.
84406         * tests/test-vprintf-posix.sh: Update.
84407         Reported by Ralf Wildenhues.
84409 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84411         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
84412         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84413         GCC 4.2, which otherwise issues a lot of warnings.
84414         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
84415         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
84416         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
84417         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
84418         it should no longer be needed.
84419         * lib/string_.h: Likewise.
84420         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
84421         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
84422         * modules/inttypes (inttypes.h): Likewise.
84423         * modules/math (math.h): Likewise.
84424         * modules/search (search.h): Likewise.
84425         * modules/signal (signal.h): Likewise.
84426         * modules/stdint (stdint.h): Likewise.
84427         * modules/stdio (stdio.h): Likewise.
84428         * modules/stdlib (stdlib.h): Likewise.
84429         * modules/string (string.h): Likewise.
84430         * modules/sys_time (sys/time.h): Likewise.
84431         * modules/time (time.h): Likewise.
84432         * modules/wchar (wchar.h): Likewise.
84433         * modules/wctype (wtype.h): Likewise.
84435 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
84437         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
84439 2007-05-13  Bruno Haible  <bruno@clisp.org>
84441         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
84442         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84443         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
84444         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
84445         (gl_PREREQ_STRTOK_R): Don't require it here.
84447 2007-05-13  Bruno Haible  <bruno@clisp.org>
84449         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
84450         when used in C++ mode.
84452 2007-05-12  Bruno Haible  <bruno@clisp.org>
84454         * lib/linebuffer.h: Tweak doc.
84455         * lib/linebuffer.c: Likewise.
84457 2007-05-12  James Youngman  <jay@gnu.org>
84459         * lib/linebuffer.c (readlinebuffer_delim): New function,
84460         like readlinebuffer, but use a caller-specified delimiter.
84461         (readlinebuffer): Just call readlinebuffer_delim with '\n'
84462         as the delimiter.
84463         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
84465 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
84467         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
84468         * modules/openat (Files): Remove openat-die.c.
84469         (Depends-on): Add openat-die.
84470         * modules/openat-die: New module.
84472 2007-05-06  Bruno Haible  <bruno@clisp.org>
84474         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
84475         Update with info about Cygwin.
84476         * doc/functions/fprintf.texi: Update.
84477         * doc/functions/printf.texi: Update.
84478         * doc/functions/snprintf.texi: Update.
84479         * doc/functions/sprintf.texi: Update.
84480         * doc/functions/vfprintf.texi: Update.
84481         * doc/functions/vprintf.texi: Update.
84482         * doc/functions/vsnprintf.texi: Update.
84483         * doc/functions/vsprintf.texi: Update.
84484         Reported by Eric Blake.
84486 2007-05-06  Bruno Haible  <bruno@clisp.org>
84488         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
84489         padding ourselves for the floating-point directives.
84490         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
84491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
84492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84493         gl_PRINTF_FLAG_ZERO and test its result. Invoke
84494         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
84495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
84497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84500         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84501         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84502         * tests/test-snprintf-posix.h (test_function): Also check the width
84503         and some flags in the %f directive.
84504         * tests/test-sprintf-posix.h (test_function): Likewise.
84505         * tests/test-vasnprintf-posix.c (test_function): Likewise.
84506         * tests/test-vasprintf-posix.c (test_function): Likewise.
84507         * doc/functions/fprintf.texi: Update.
84508         * doc/functions/printf.texi: Update.
84509         * doc/functions/snprintf.texi: Update.
84510         * doc/functions/sprintf.texi: Update.
84511         * doc/functions/vfprintf.texi: Update.
84512         * doc/functions/vprintf.texi: Update.
84513         * doc/functions/vsnprintf.texi: Update.
84514         * doc/functions/vsprintf.texi: Update.
84516 2007-05-06  Bruno Haible  <bruno@clisp.org>
84518         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
84519         pass the ' flag character to sprintf or snprintf.
84520         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
84521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
84522         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84523         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
84524         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
84525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
84527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84528         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84532         * tests/test-snprintf-posix.h (test_function): Also check the grouping
84533         flag.
84534         * tests/test-sprintf-posix.h (test_function): Likewise.
84535         * tests/test-vasnprintf-posix.c (test_function): Likewise.
84536         * tests/test-vasprintf-posix.c (test_function): Likewise.
84537         * doc/functions/fprintf.texi: Update.
84538         * doc/functions/printf.texi: Update.
84539         * doc/functions/snprintf.texi: Update.
84540         * doc/functions/sprintf.texi: Update.
84541         * doc/functions/vfprintf.texi: Update.
84542         * doc/functions/vprintf.texi: Update.
84543         * doc/functions/vsnprintf.texi: Update.
84544         * doc/functions/vsprintf.texi: Update.
84546 2007-05-01  Bruno Haible  <bruno@clisp.org>
84548         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
84550 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
84552         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
84553         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
84555 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
84557         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
84558         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
84559         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
84561 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
84563         * lib/argp-help.c (struct hol_entry): New member `ord'.
84564         (HOL_ENTRY_PTRCMP): Use ord for comparison
84565         (hol_sort): Initialize ord.
84567 2007-05-01  Bruno Haible  <bruno@clisp.org>
84569         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
84570         Reported by Eric Blake.
84571         * doc/gnulib.texi (Function Substitutes): Update.
84573 2007-05-01  Bruno Haible  <bruno@clisp.org>
84575         * doc/functions.texi: Remove file, now redundant through
84576         doc/functions/*.texi.
84578 2007-05-01  Bruno Haible  <bruno@clisp.org>
84580         * modules/argp (Depends-on): Add sleep.
84582 2007-05-01  Bruno Haible  <bruno@clisp.org>
84584         * modules/sleep-tests: New file.
84585         * tests/test-sleep.c: New file.
84587         * modules/sleep: New file.
84588         * lib/sleep.c: New file.
84589         * m4/sleep.m4: New file.
84590         * lib/unistd_.h (sleep): New declaration.
84591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
84592         HAVE_SLEEP.
84593         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
84594         * doc/functions/sleep.texi: Document the sleep module.
84596 2007-05-01  Bruno Haible  <bruno@clisp.org>
84598         * lib/sigprocmask.h: Remove file.
84599         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
84600         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
84601         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
84602         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
84603         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
84604         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
84605         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
84606         HAVE_SIGSET_T as a shell variable.
84607         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
84608         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
84609         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
84610         (Depends-on): Add signal. Remove verify.
84611         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
84612         (Include): Mention <signal.h> instead of sigprocmask.h.
84613         * NEWS: Mention the change.
84614         * lib/fatal-signal.c: Don't include sigprocmask.h.
84616 2007-05-01  Bruno Haible  <bruno@clisp.org>
84618         * modules/signal: New file.
84619         * lib/signal_.h: New file.
84620         * m4/signal_h.m4: New file.
84622 2007-05-01  Bruno Haible  <bruno@clisp.org>
84624         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
84625         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
84626         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
84627         HAVE_WCTYPE_CTMP_BUG into wctype.h.
84629 2007-05-01  Bruno Haible  <bruno@clisp.org>
84631         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
84632         configure time.
84633         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
84634         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
84635         * modules/sys_stat (Makefile.am): Substitute their values into
84636         sys/stat.h.
84638 2007-05-01  Bruno Haible  <bruno@clisp.org>
84640         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
84641         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
84642         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
84644 2007-05-01  Bruno Haible  <bruno@clisp.org>
84646         * doc/header/assert.texi: Undo last change: don't mention the gnulib
84647         'assert' module here.
84649 2007-05-01  Bruno Haible  <bruno@clisp.org>
84651         * doc/functions/*.texi: New files.
84652         * doc/functions/google-ranking.txt: New file.
84653         * doc/gnulib.texi (Function Substitutes): New chapter.
84654         (ctime, inet_ntoa): Remove sections.
84655         * doc/ctime.texi: Remove file.
84656         * doc/inet_ntoa.texi: Remove file.
84657         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
84658         dependencies.
84659         (%.info): New rule, specifying a --reference-limit.
84661 2007-05-01  Bruno Haible  <bruno@clisp.org>
84663         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
84665 2007-05-01  Bruno Haible  <bruno@clisp.org>
84667         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
84668         the portability of 'mkdir' to mingw systems.
84670 2007-05-01  Bruno Haible  <bruno@clisp.org>
84672         * doc/headers/google-ranking.txt: New file.
84674 2007-04-30  Eric Blake  <ebb9@byu.net>
84676         Prefer fseeko to fseek.
84677         * modules/getpass (Depends-on): Add fseeko.
84678         * lib/getpass.c (getpass): Use fseeko, not fseek.
84680 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
84682         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
84683         assumes the sorting is stable, while most qsort implementations
84684         are not.  Use argument addresses to ensure they never compare as
84685         equal.
84687         * tests/test-argp-2.sh (usage-indent test): Fix output
84688         (func_compare): Restore diff options
84689         * tests/test-argp.c: Restore #include "progname.h"
84691 2007-04-29  Bruno Haible  <bruno@clisp.org>
84693         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
84694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84695         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
84696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84697         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
84698         (configure.ac): Define CHECK_SNPRINTF_POSIX.
84699         (TESTS, check_PROGRAMS): Add test-snprintf.
84700         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
84701         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
84702         (TESTS, check_PROGRAMS): Add test-vsnprintf.
84703         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
84704         assertions that fail on HP-UX, OSF/1, or IRIX.
84705         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
84707 2007-04-29  Bruno Haible  <bruno@clisp.org>
84709         * MODULES.html.sh (posix_functions): Remove 'contents'.
84711 2007-04-29  Karl Berry  <karl@gnu.org>
84713         * config/srclist.txt (gendocs_template_min): new entry.
84715 2007-04-29  Bruno Haible  <bruno@clisp.org>
84717         Work around fpurge bug on BSD systems.
84718         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
84719         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
84720         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
84721         fpurge to rpl_fpurge if the system already has this function.
84722         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
84723         the case where the system already has this function. Correct invariants
84724         on BSD systems.
84725         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
84726         BSD systems.
84728 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
84730         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
84731         proposed by Sven Verdoolaege.
84733         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
84734         options.
84735         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
84736         (usage and help tests): Update
84738 2007-04-29  Bruno Haible  <bruno@clisp.org>
84740         * tests/test-fflush.c (main): Use a file of size 17, not 10.
84741         Print more information in case of failure. Disable a test on BeOS.
84743 2007-04-29  Bruno Haible  <bruno@clisp.org>
84745         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
84746         This helps debugging on systems on which no gdb is available.
84748 2007-04-29  Bruno Haible  <bruno@clisp.org>
84750         * lib/freading.h: Improve comments.
84751         * lib/fwriting.h: Likewise.
84752         * tests/test-freading.c (main): Don't check freading immediately after
84753         repositioning. Needed for glibc.
84755 2007-04-29  Bruno Haible  <bruno@clisp.org>
84757         * lib/freading.c (freading): Trivial simplification.
84759 2007-04-28  Bruno Haible  <bruno@clisp.org>
84761         * tests/test-fwriting.c (main): Also test the interaction between
84762         fflush and fwriting.
84763         * modules/fwriting-tests (Depends-on): Add fflush.
84765         * tests/test-freading.c (main): Also test the interaction between
84766         fflush and freading.
84767         * modules/freading-tests (Depends-on): Add fflush.
84769 2007-04-28  Bruno Haible  <bruno@clisp.org>
84771         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
84772         fseeko and ftello.
84773         Suggested by Eric Blake.
84775 2007-04-28  Jim Meyering  <jim@meyering.net>
84777         Avoid false-negative in gl_STDINT_H's C99 conformance test.
84778         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
84779         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
84781 2007-04-27  Eric Blake  <ebb9@byu.net>
84783         * doc/headers/assert.texi (assert.h): Document assert module use.
84785 2007-04-27  Bruno Haible  <bruno@clisp.org>
84787         * doc/headers/*.texi: New files.
84788         * doc/gnulib.texi (Header File Substitutes): New chapter.
84789         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
84790         dependencies.
84791         (standards.info ,standards.html, standards.dvi): Update dependencies.
84792         (mostlyclean, clean): New targets.
84794 2007-04-27  Bruno Haible  <bruno@clisp.org>
84796         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
84797         * modules/sysexits (Files, Makefile.am): Update.
84799         * lib/sys_socket_.h: Renamed from lib/socket_.h.
84800         * modules/sys_socket (Files, Makefile.am): Update.
84802         * lib/sys_stat_.h: Renamed from lib/stat_.h.
84803         * modules/sys_stat (Files, Makefile.am): Update.
84805 2007-04-27  Eric Blake  <ebb9@byu.net>
84807         * lib/freading.h: Improve comments.
84808         * lib/fwriting.h: Likewise.
84809         * lib/fflush.c: Likewise.
84811         Fix closein for mingw.
84812         * modules/closein-tests: Add tests for closein.
84813         * tests/test-closein.c: New file.
84814         * tests/test-closein.sh: Likewise.
84815         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
84816         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
84818 2007-04-27  Bruno Haible  <bruno@clisp.org>
84820         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
84821         version is < 6.
84822         * lib/math_.h [__DECC]: Likewise.
84823         * lib/stdio_.h [__DECC]: Likewise.
84824         * lib/stdlib_.h [__DECC]: Likewise.
84825         * lib/string_.h [__DECC]: Likewise.
84826         * lib/time_.h [__DECC]: Likewise.
84827         * lib/wchar_.h [__DECC]: Likewise.
84828         * lib/wctype_.h [__DECC]: Likewise.
84830 2007-04-27  Bruno Haible  <bruno@clisp.org>
84832         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
84834 2007-04-27  Bruno Haible  <bruno@clisp.org>
84836         * lib/fflush.c: Add comments.
84837         * modules/fpurge-tests (Depends-on): Add fflush.
84838         * modules/freadable-tests (Depends-on): Likewise.
84839         * modules/fwritable-tests (Depends-on): Likewise.
84841 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
84843         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
84844         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
84845         Report by Bruno Haible <bruno@clisp.org>.
84847 2007-04-26  Eric Blake  <ebb9@byu.net>
84849         Fix fflush on mingw.
84850         * modules/fflush (Depends-on): Add freading.
84851         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
84852         but unread data.
84854 2007-04-26  Eric Blake  <ebb9@byu.net>
84855         and Bruno Haible  <bruno@clisp.org>
84857         Implement freading and fwriting.
84858         * lib/freading.c: New file.
84859         * lib/freading.h: Likewise.
84860         * m4/freading.m4: Likewise.
84861         * modules/freading: Likewise.
84862         * modules/freading-tests: Likewise.
84863         * tests/test-freading.c: Likewise.
84864         * lib/fwriting.c: New file.
84865         * lib/fwriting.h: Likewise.
84866         * m4/fwriting.m4: Likewise.
84867         * modules/fwriting: Likewise.
84868         * modules/fwriting-tests: Likewise.
84869         * tests/test-fwriting.c: Likewise.
84870         * MODULES.html.sh (File stream based Input/Output): Mention them.
84872 2007-04-26  Bruno Haible  <bruno@clisp.org>
84874         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
84875         'long' when we assume it.
84876         Suggested by Eric Blake.
84878 2007-04-26  Bruno Haible  <bruno@clisp.org>
84880         Ensure fseeko, ftello are declared on glibc systems.
84881         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
84882         * modules/fseeko (configure.ac-early): Likewise.
84883         * modules/ftello (configure.ac-early): Likewise.
84884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
84885         AC_FUNC_FSEEKO for this.
84886         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
84887         (gl_CHECK_FSEEKO): Remove macro.
84889 2007-04-26  Bruno Haible  <bruno@clisp.org>
84891         * tests/test-fflush.c (main): Also check the ftell result after
84892         fflush and fseek/fseeko.
84893         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
84894         file descriptor position cache in the stream.
84895         * lib/fseeko.c (rpl_fseeko): Likewise.
84897 2007-04-26  Bruno Haible  <bruno@clisp.org>
84899         * modules/fflush-tests (Depends-on): Add fseeko.
84901 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
84902             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84904         * lib/argz_.h: ensure error_t definition is obtained in same
84905         mechanism system argz.h would have.
84906         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
84907         argz facilities are known bad.  Err on the side of caution if
84908         cross-compiling.
84910 2007-04-25  Eric Blake  <ebb9@byu.net>
84912         * lib/fpurge.c (includes): Use stdlib.h for free.
84913         * tests/test-fflush.c (main): Also test fflush-fseeko.
84915 2007-04-25  Bruno Haible  <bruno@clisp.org>
84917         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
84918         * lib/fseeko.c: New file.
84919         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
84920         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
84921         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
84922         gl_FUNC_FSEEKO.
84923         (gl_FUNC_FSEEKO): Invoke it.
84924         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
84925         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
84926         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
84928 2007-04-25  Bruno Haible  <bruno@clisp.org>
84930         * modules/fflush (Depends-on): Add ftello.
84932 2007-04-25  Bruno Haible  <bruno@clisp.org>
84934         * modules/ftello-tests: New file.
84935         * tests/test-ftello.c: New file.
84937         * modules/ftello: New file.
84938         * m4/ftello.m4: New file.
84939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
84940         HAVE_FTELLO.
84941         * lib/stdio_.h (ftello): New declaration.
84942         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
84943         HAVE_FTELLO.
84945 2007-04-25  Bruno Haible  <bruno@clisp.org>
84947         * modules/fseeko-tests: New file.
84948         * tests/test-fseeko.c: New file.
84950         * modules/fseeko: New file.
84951         * m4/fseeko.m4: New file.
84952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
84953         HAVE_FSEEKO.
84954         * lib/stdio_.h (fseeko): New declaration.
84955         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
84956         HAVE_FSEEKO.
84958 2007-04-25  Bruno Haible  <bruno@clisp.org>
84960         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
84962 2007-04-25  Bruno Haible  <bruno@clisp.org>
84964         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
84965         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
84966         * tests/test-unistd.c: Likewise.
84967         * tests/test-fcntl.c: Likewise.
84969 2007-04-23  Eric Blake  <ebb9@byu.net>
84971         * lib/fflush.c: Fix missing include.
84972         Reported by Bruno Haible.
84974 2007-04-23  Bruno Haible  <bruno@clisp.org>
84976         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
84977         Reported by Eric Blake.
84979 2007-04-23  Bruno Haible  <bruno@clisp.org>
84981         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
84983 2007-04-23  Bruno Haible  <bruno@clisp.org>
84985         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
84987 2007-04-23  Bruno Haible  <bruno@clisp.org>
84989         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
84990         Needed on HP-UX 11.
84992 2007-04-16  Eric Blake  <ebb9@byu.net>
84994         Make fflush rely on fpurge.
84995         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
84996         open coding all variants.
84997         * modules/fflush (Depends-on): Add fpurge and unistd.
84998         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
84999         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
85001         Fix --with-tests compilation on cygwin.
85002         * modules/argmatch-tests (Makefile.am): List gnulib library first
85003         in LDADD.
85004         * modules/argp-tests (Makefile.am): Likewise.
85005         * modules/array-list-tests (Makefile.am): Likewise.
85006         * modules/array-oset-tests (Makefile.am): Likewise.
85007         * modules/avltree-list-tests (Makefile.am): Likewise.
85008         * modules/avltree-oset-tests (Makefile.am): Likewise.
85009         * modules/avltreehash-list-tests (Makefile.am): Likewise.
85010         * modules/carray-list-tests (Makefile.am): Likewise.
85011         * modules/dirname-tests (Makefile.am): Likewise.
85012         * modules/frexp-tests (Makefile.am): Likewise.
85013         * modules/isnanl-tests (Makefile.am): Likewise.
85014         * modules/linked-list-tests (Makefile.am): Likewise.
85015         * modules/linkedhash-list-tests (Makefile.am): Likewise.
85016         * modules/lock-tests (Makefile.am): Likewise.
85017         * modules/rbtree-list-tests (Makefile.am): Likewise.
85018         * modules/rbtree-oset-tests (Makefile.am): Likewise.
85019         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
85020         * modules/tls-tests (Makefile.am): Likewise.
85021         * modules/tsearch-tests (Makefile.am): Likewise.
85022         * modules/xvasprintf-tests (Makefile.am): Likewise.
85024         Fix fpurge for cygwin.
85025         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
85026         value.
85027         * modules/fpurge-tests (Depends-on): Clean up trash.
85029 2007-04-16  Simon Josefsson  <simon@josefsson.org>
85031         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
85033         * m4/autobuild.m4: Re-indent.
85035 2007-04-13  Bruno Haible  <bruno@clisp.org>
85037         * modules/fpurge-tests: New file.
85038         * tests/test-fpurge.c: New file.
85040         * modules/fpurge: New file.
85041         * lib/fpurge.h: New file.
85042         * lib/fpurge.c: New file.
85043         * m4/fpurge.m4: New file.
85045 2007-04-13  Bruno Haible  <bruno@clisp.org>
85047         * modules/fbufmode-tests: New file.
85048         * tests/test-fbufmode.c: New file.
85050         * modules/fbufmode: New file.
85051         * lib/fbufmode.h: New file.
85052         * lib/fbufmode.c: New file.
85053         * m4/fbufmode.m4: New file.
85055 2007-04-13  Bruno Haible  <bruno@clisp.org>
85057         * modules/fwritable-tests: New file.
85058         * tests/test-fwritable.c: New file.
85060         * modules/fwritable: New file.
85061         * lib/fwritable.h: New file.
85062         * lib/fwritable.c: New file.
85063         * m4/fwritable.m4: New file.
85065 2007-04-13  Bruno Haible  <bruno@clisp.org>
85067         * modules/freadable-tests: New file.
85068         * tests/test-freadable.c: New file.
85070         * modules/freadable: New file.
85071         * lib/freadable.h: New file.
85072         * lib/freadable.c: New file.
85073         * m4/freadable.m4: New file.
85075 2007-04-13  Bruno Haible  <bruno@clisp.org>
85077         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
85078         MOSTLYCLEANFILES.
85080 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85082         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
85083         gzip bootstrap.conf to avoid dragging in i18n machinery.
85084         (gnulib_tool_option): Use it.
85086 2007-04-13  Bruno Haible  <bruno@clisp.org>
85088         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
85089         %F directives.
85090         * tests/test-vasprintf-posix.c (test_function): Likewise.
85091         * tests/test-snprintf-posix.h (test_function): Likewise.
85092         * tests/test-sprintf-posix.h (test_function): Likewise.
85093         * tests/test-fprintf-posix.h (test_function): Likewise.
85094         * tests/test-printf-posix.h (test_function): Likewise.
85095         * tests/test-fprintf-posix.out: Likewise.
85097 2007-04-13  Bruno Haible  <bruno@clisp.org>
85099         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
85100         * modules/tls-tests (configure.ac): Likewise.
85101         Reported by Arto C. Nirkko <anirkko@insel.ch>.
85103 2007-04-13  Bruno Haible  <bruno@clisp.org>
85105         * lib/tls.c (glthread_tls_get): Fix return type.
85106         Patch by Arto C. Nirkko <anirkko@insel.ch>.
85108 2007-04-12  Eric Blake  <ebb9@byu.net>
85110         * modules/gettime (Depends-on): Remove gettime.
85111         Reported by Dmitry V. Levin.
85113 2007-04-12  Bruno Haible  <bruno@clisp.org>
85115         * modules/fflush (Include): Mention <stdio.h>.
85116         * modules/strtoimax (Include): Mention <inttypes.h>.
85117         * modules/strtoumax (Include): Likewise.
85119 2007-04-12  Eric Blake  <ebb9@byu.net>
85121         * .cvsignore: New file.
85122         * .gitignore: Likewise.
85124 2007-04-12  Bruno Haible  <bruno@clisp.org>
85126         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
85127         not before, since $(LDADD) often contains libgnu.a.
85128         * modules/striconv-tests (test_striconv_LDADD): Likewise.
85129         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
85130         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
85131         Needed on Cygwin.
85133 2007-04-12  Eric Blake  <ebb9@byu.net>
85135         Work around glibc's failure to flush stdin on fclose.
85136         * lib/closein.c (close_stdin): Flush stdin before closing.
85138         Work around glibc's failure to reset seekable stdin on exit.
85139         * modules/closein: New module.
85140         * lib/closein.c: New file.
85141         * lib/closein.h: Likewise.
85142         * m4/closein.m4: Likewise.
85143         * MODULES.html.sh (File stream based Input/Output): Document it.
85145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85147         * gnulib-tool: Rename generated 'autobuild' script to
85148         'do-autobuild' in --create-megatestdir output.
85150         * doc/gnulib.texi (Build robot for gnulib): Fix.
85152 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85154         * modules/sysexits (Depends-on): Add absolute-header.
85156 2007-04-12  Eric Blake  <ebb9@byu.net>
85158         No need to preserve errno on success.
85159         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
85160         Reported by Bruno Haible.
85162 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85164         * MODULES.html.sh (Support for maintaining and releasing
85165         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
85167 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85169         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
85171 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85173         * modules/autobuild: New module.
85175         * m4/autobuild.m4: New file.
85177 2007-04-11  Bruno Haible  <bruno@clisp.org>
85179         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
85180         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
85181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
85182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
85183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85184         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85185         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85187         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85188         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
85190         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85191         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85192         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
85193         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85194         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
85196         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85197         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85198         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
85199         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85200         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85201         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
85202         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85203         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85204         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
85205         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85206         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85207         Reported by Eric Blake.
85209 2007-04-11  Bruno Haible  <bruno@clisp.org>
85211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
85213 2007-04-10  Bruno Haible  <bruno@clisp.org>
85215         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
85216         for NaN and Infinity. Needed on FreeBSD 6.1.
85217         * tests/test-vasnprintf-posix.c (test_function): Undo last change
85218         regarding results for "%010a" of Infinity and NaN.
85219         * tests/test-vasprintf-posix.c (test_function): Likewise.
85220         * tests/test-snprintf-posix.h (test_function): Likewise.
85221         * tests/test-sprintf-posix.h (test_function): Likewise.
85222         * tests/test-fprintf-posix.h (test_function): Likewise.
85223         * tests/test-printf-posix.h (test_function): Likewise.
85224         * tests/test-fprintf-posix.out: Likewise.
85226 2007-04-10  Bruno Haible  <bruno@clisp.org>
85228         * modules/locale-tests: New file.
85229         * tests/test-locale.c: New file.
85231         * modules/locale: New file.
85232         * lib/locale_.h: New file.
85233         * m4/locale_h.m4: New file.
85235 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
85236             Bruno Haible  <bruno@clisp.org>
85238         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
85239         be determined, test for availability of the copysignf, copysign,
85240         copysignl functions.
85241         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
85242         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
85243         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
85245 2007-04-09  Eric Blake  <ebb9@byu.net>
85247         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
85248         * modules/stdio (Makefile.am): Support fflush.
85249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85250         * modules/fflush: New file.
85251         * lib/fflush.c: Likewise.
85252         * m4/fflush.m4: Likewise.
85253         * modules/fflush-tests: New test.
85254         * tests/test-fflush.c: Likewise.
85255         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
85257 2007-04-06  Bruno Haible  <bruno@clisp.org>
85259         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
85260         (VASNPRINTF): Use signbit for faster determination whether to print a
85261         minus sign.
85262         * modules/vasnprintf (Files): Remove lib/float+.h.
85263         * modules/fprintf-posix (Depends-on): Add signbit.
85264         * modules/snprintf-posix (Depends-on): Likewise.
85265         * modules/sprintf-posix (Depends-on): Likewise.
85266         * modules/vasnprintf-posix (Depends-on): Likewise.
85267         * modules/vasprintf-posix (Depends-on): Likewise.
85268         * modules/vfprintf-posix (Depends-on): Likewise.
85269         * modules/vsnprintf-posix (Depends-on): Likewise.
85270         * modules/vsprintf-posix (Depends-on): Likewise.
85272 2007-04-06  Bruno Haible  <bruno@clisp.org>
85274         * tests/test-frexp.c (main): Test also the sign bit of zero results.
85275         * tests/test-frexpl.c (main): Likewise.
85276         * tests/test-ldexpl.c (main): Likewise.
85277         * modules/frexp-tests (Depends-on): Add signbit.
85278         * modules/frexpl-tests (Depdends-on): Likewise.
85279         * modules/ldexpl-tests (Depdends-on): Likewise.
85281 2007-04-06  Bruno Haible  <bruno@clisp.org>
85283         * modules/signbit-tests: New file.
85284         * tests/test-signbit.c: New file.
85286         * modules/signbit: New file.
85287         * lib/signbitf.c: New file.
85288         * lib/signbitd.c: New file.
85289         * lib/signbitl.c: New file.
85290         * m4/signbit.m4: New file.
85291         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
85292         (signbit): New macro.
85293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
85294         REPLACE_SIGNBIT.
85295         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
85296         REPLACE_FREXPL into math.h.
85298 2007-04-06  Bruno Haible  <bruno@clisp.org>
85300         * modules/isnanf-nolibm-tests: New file.
85301         * tests/test-isnanf.c: New file.
85303         * modules/isnanf-nolibm: New file.
85304         * lib/isnanf.h: New file.
85305         * lib/isnanf.c: New file.
85306         * lib/isnan.c: Consider the USE_FLOAT macro.
85307         * m4/isnanf.m4: New file.
85309 2007-04-06  Bruno Haible  <bruno@clisp.org>
85311         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
85312         (Link): New section.
85314         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
85316 2007-04-06  Bruno Haible  <bruno@clisp.org>
85318         Assume the 'long double' type.
85319         * m4/longdouble.m4: Remove file.
85320         * config/srclist.txt: Don't mention longdouble.m4.
85321         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
85322         * lib/float+.h: Likewise.
85323         * lib/frexp.c: Likewise.
85324         * lib/printf-args.h: Likewise.
85325         * lib/printf-args.c: Likewise.
85326         * lib/printf-frexp.c: Likewise.
85327         * lib/printf-parse.c: Likewise.
85328         * lib/vasnprintf.c: Likewise.
85329         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
85330         * m4/intl.m4: Likewise.
85331         * m4/isnanl.m4: Likewise.
85332         * m4/printf.m4: Likewise.
85333         * m4/printf-frexpl.m4: Likewise.
85334         * m4/vasnprintf.m4: Likewise.
85335         * modules/allocsa (Files): Remove m4/longdouble.m4.
85336         * modules/gettext (Files): Likewise.
85337         * modules/relocatable-prog-wrapper (Files): Likewise.
85338         * modules/vasnprintf (Files): Likewise.
85339         * modules/isnanl (Files): Likewise.
85340         (Include): Simplify.
85341         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
85342         (Include): Simplify.
85343         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
85344         (Include): Simplify.
85345         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
85346         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85347         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
85348         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85349         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85350         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85351         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
85352         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85353         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85354         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85355         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
85356         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85357         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
85358         * tests/test-isnanl.c: Likewise.
85359         * tests/test-snprintf-posix.h: Likewise.
85360         * tests/test-sprintf-posix.h: Likewise.
85361         * tests/test-vasnprintf-posix.c: Likewise.
85362         * tests/test-vasnprintf-posix2.c: Likewise.
85363         * tests/test-vasprintf-posix.c: Likewise.
85365 2007-04-06  Bruno Haible  <bruno@clisp.org>
85367         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
85368         * lib/math_.h [__DECC]: Include the overridden include file through
85369         #include_next, outside the double-inclusion guard.
85370         * lib/stdio_.h [__DECC]: Likewise.
85371         * lib/stdlib_.h [__DECC]: Likewise.
85372         * lib/string_.h [__DECC]: Likewise.
85373         * lib/time_.h [__DECC]: Likewise.
85374         * lib/wchar_.h [__DECC]: Likewise.
85375         * lib/wctype_.h [__DECC]: Likewise.
85376         * lib/inttypes_.h [__DECC]: Likewise.
85377         Reported by Albert Chin <china@thewrittenword.com> in
85378         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
85380 2007-04-04  Eric Blake  <ebb9@byu.net>
85382         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
85383         1.5.x.
85385 2007-04-04  Bruno Haible  <bruno@clisp.org>
85387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
85388         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
85390 2007-04-04  Bruno Haible  <bruno@clisp.org>
85392         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
85393         results for "%010a" of Infinity and NaN.
85394         * tests/test-vasprintf-posix.c (test_function): Likewise.
85395         * tests/test-snprintf-posix.h (test_function): Likewise.
85396         * tests/test-sprintf-posix.h (test_function): Likewise.
85397         * tests/test-fprintf-posix.h (test_function): Remove these tests.
85398         * tests/test-printf-posix.h (test_function): Likewise.
85399         * tests/test-fprintf-posix.out: Update.
85400         Needed for FreeBSD 6.1.
85402 2007-04-04  Bruno Haible  <bruno@clisp.org>
85404         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
85405         directly used by the gnulib modules nor by gnulib-tool.
85407 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85409         * DEPENDENCIES: Give overall description of version dependency
85410         desirability.  Use more-typical names for apps.
85411         Add shell, coreutils, diffutils, grep, tar, gzip.
85413 2007-04-04  Simon Josefsson  <simon@josefsson.org>
85415         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
85417 2007-04-04  Karl Berry  <karl@gnu.org>
85419         * MODULES.html.sh (func_module): missing '.
85421 2007-04-03  Bruno Haible  <bruno@clisp.org>
85423         * modules/argmatch-tests (Makefile.am): New variable
85424         test_argmatch_LDADD.
85425         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
85426         * modules/array-list-tests (Makefile.am): New variable
85427         test_array_list_LDADD.
85428         * modules/array-oset-tests (Makefile.am): New variable
85429         test_array_oset_LDADD.
85430         * modules/avltree-list-tests (Makefile.am): New variable
85431         test_avltree_list_LDADD.
85432         * modules/avltree-oset-tests (Makefile.am): New variable
85433         test_avltree_oset_LDADD.
85434         * modules/avltreehash-list-tests (Makefile.am): New variable
85435         test_avltreehash_list_LDADD.
85436         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
85437         test_canonicalize_lgpl_LDADD.
85438         * modules/carray-list-tests (Makefile.am): New variable
85439         test_carray_list_LDADD.
85440         * modules/dirname-tests (Makefile.am): New variable
85441         test_dirname_LDADD.
85442         * modules/linked-list-tests (Makefile.am): New variable
85443         test_linked_list_LDADD.
85444         * modules/linkedhash-list-tests (Makefile.am): New variable
85445         test_linkedhash_list_LDADD.
85446         * modules/rbtree-list-tests (Makefile.am): New variable
85447         test_rbtree_list_LDADD.
85448         * modules/rbtree-oset-tests (Makefile.am): New variable
85449         test_rbtree_oset_LDADD.
85450         * modules/rbtreehash-list-tests (Makefile.am): New variable
85451         test_rbtreehash_list_LDADD.
85452         * modules/xvasprintf-tests (Makefile.am): New variable
85453         test_xvasprintf_LDADD.
85454         Reported by Eric Blake.
85456 2007-04-03  Eric Blake  <ebb9@byu.net>
85458         * DEPENDENCIES: Weaken m4 requirements.
85460 2007-04-03  Bruno Haible  <bruno@clisp.org>
85462         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
85463         * modules/isnanl-tests (configure.ac): Likewise.
85465 2007-04-03  Ben Pfaff  <blp@gnu.org>
85467         * modules/iconv_open: Add $(srcdir)/ to source directory
85468         references in Makefile fragments that call gperf, to fix VPATH
85469         builds.
85471 2007-04-03  Bruno Haible  <bruno@clisp.org>
85473         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
85474         * lib/ldexpl.c: Undo last change.
85476 2007-04-03  Bruno Haible  <bruno@clisp.org>
85478         * modules/printf-frexpl (Depends-on): Undo last change.
85479         (Files): Add m4/ldexpl.m4.
85481 2007-04-03  Bruno Haible  <bruno@clisp.org>
85483         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
85484         * modules/isnanl (Link): New section.
85486         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
85487         * modules/frexp (Link): New section.
85489         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
85490         * modules/frexpl (Link): New section.
85492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
85493         * modules/ldexpl (Link): New section.
85495 2007-04-03  Bruno Haible  <bruno@clisp.org>
85497         * modules/TEMPLATE-EXTENDED: New file.
85498         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
85500 2007-04-03  Bruno Haible  <bruno@clisp.org>
85502         * DEPENDENCIES: New file.
85503         Suggested by Simon Josefsson.
85505 2007-04-03  Bruno Haible  <bruno@clisp.org>
85507         * doc/gnulib.texi: Escape @.
85509 2007-04-03  James Youngman  <jay@gnu.org>
85510         and Paul Eggert  <eggert@cs.ucla.edu>
85512         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
85513         birthtime on all systems that have birthtime, not just those which
85514         use st_birthtimensec rather than st_birthtim.  Putting zero in
85515         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
85516         that the birth time is not available for files on an NFS mount.
85518 2007-04-03  Simon Josefsson  <simon@josefsson.org>
85520         * modules/memxor: Move back from crypto/, suggested by Bruno.
85521         * modules/crypto/hmac-sha1: Fix memxor dependency.
85523         * modules/crypto/gc: Moved from ../.
85525 2007-04-02  Eric Blake  <ebb9@byu.net>
85527         * lib/ldexpl.c (includes): Avoid libm.
85529         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
85531 2007-04-02  Bruno Haible  <bruno@clisp.org>
85533         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
85534         on IRIX.
85536 2007-04-02  Bruno Haible  <bruno@clisp.org>
85538         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
85539         x86 or x86_64 platforms running MacOS X.
85540         Reported by Ryan Schmidt <@ryandesign.com>.
85542 2007-04-02  Bruno Haible  <bruno@clisp.org>
85544         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
85545         i386.
85547 2007-04-01  Simon Josefsson  <simon@josefsson.org>
85549         * modules/crypto/arcfour: Moved from ../.
85550         * modules/crypto/arcfour-tests: Moved from ../.
85551         * modules/crypto/arctwo: Moved from ../.
85552         * modules/crypto/arctwo-tests: Moved from ../.
85553         * modules/crypto/des: Moved from ../.
85554         * modules/crypto/des-tests: Moved from ../.
85555         * modules/crypto/gc-arcfour: Moved from ../.
85556         * modules/crypto/gc-arcfour-tests: Moved from ../.
85557         * modules/crypto/gc-arctwo: Moved from ../.
85558         * modules/crypto/gc-arctwo-tests: Moved from ../.
85559         * modules/crypto/gc-des: Moved from ../.
85560         * modules/crypto/gc-des-tests: Moved from ../.
85561         * modules/crypto/gc-hmac-md5: Moved from ../.
85562         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
85563         * modules/crypto/gc-hmac-sha1: Moved from ../.
85564         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
85565         * modules/crypto/gc-md2: Moved from ../.
85566         * modules/crypto/gc-md2-tests: Moved from ../.
85567         * modules/crypto/gc-md4: Moved from ../.
85568         * modules/crypto/gc-md4-tests: Moved from ../.
85569         * modules/crypto/gc-md5: Moved from ../.
85570         * modules/crypto/gc-md5-tests: Moved from ../.
85571         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
85572         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
85573         * modules/crypto/gc-random: Moved from ../.
85574         * modules/crypto/gc-rijndael: Moved from ../.
85575         * modules/crypto/gc-rijndael-tests: Moved from ../.
85576         * modules/crypto/gc-sha1: Moved from ../.
85577         * modules/crypto/gc-sha1-tests: Moved from ../.
85578         * modules/crypto/gc-tests: Moved from ../.
85579         * modules/crypto/hmac-md5: Moved from ../.
85580         * modules/crypto/hmac-md5-tests: Moved from ../.
85581         * modules/crypto/hmac-sha1: Moved from ../.
85582         * modules/crypto/hmac-sha1-tests: Moved from ../.
85583         * modules/crypto/md2: Moved from ../.
85584         * modules/crypto/md2-tests: Moved from ../.
85585         * modules/crypto/md4: Moved from ../.
85586         * modules/crypto/md4-tests: Moved from ../.
85587         * modules/crypto/md5: Moved from ../.
85588         * modules/crypto/md5-tests: Moved from ../.
85589         * modules/crypto/memxor: Moved from ../.
85590         * modules/crypto/rijndael: Moved from ../.
85591         * modules/crypto/rijndael-tests: Moved from ../.
85592         * modules/crypto/sha1: Moved from ../.
85594 2007-03-30  James Youngman  <jay@gnu.org>
85596         * tests/test-stat-time.c (prepare_test): use chmod() rather than
85597         rename() to change the ctime of a file (because ctime is unaffected
85598         by rename on jfs2 on AIX 5.1).
85599         (main): Start by doing cleanup, in case a previous run failed leaving
85600         test files behind.
85602 2007-03-31  Bruno Haible  <bruno@clisp.org>
85604         Support old proprietary implementations of iconv.
85605         * modules/iconv_open: New file.
85606         * lib/iconv_.h: New file.
85607         * m4/iconv_h.m4: New file.
85608         * lib/iconv_open.c: New file.
85609         * lib/iconv_open-aix.gperf: New file.
85610         * lib/iconv_open-hpux.gperf: New file.
85611         * lib/iconv_open-irix.gperf: New file.
85612         * lib/iconv_open-osf.gperf: New file.
85613         * m4/iconv_open.m4: New file.
85614         * modules/linebreak (Depends-on): Add iconv_open.
85615         * modules/striconv (Depends-on): Likewise.
85616         * modules/striconveh (Depends-on): Likewise.
85617         * modules/unicodeio (Depends-on): Likewise.
85618         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
85619         (iconv_t)(-1).
85620         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
85621         conversion if cd is (iconv_t)(-1).
85622         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
85623         is not possible.
85625 2007-03-31  Bruno Haible  <bruno@clisp.org>
85627         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85628         work on Solaris either. Protect also second use of "autodetect_jp".
85630 2007-03-31  Bruno Haible  <bruno@clisp.org>
85632         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
85633         the function is not present.
85635 2007-03-31  Bruno Haible  <bruno@clisp.org>
85637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
85638         the function is not present.
85640 2007-03-31  Bruno Haible  <bruno@clisp.org>
85642         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
85643         a bug in HP-UX iconv_open().
85645 2007-03-31  Bruno Haible  <bruno@clisp.org>
85647         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
85648         (Mathematics <math.h>): New section, add fpieee.
85649         (Input/output <stdio.h>): Add fseterr.
85650         (Mathematics <math.h>): New section, add printf-frexp.
85651         (Container data structures): Add sublist.
85652         (Core language properties): Add fpucw, inline.
85653         (Functions for greatest-width integer types <inttypes.h>): Add
85654         imaxabs, imaxdiv, inttypes.
85655         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
85656         isnanl-nolibm, ldexp.
85657         (Mathematics <math.h>): New section, add printf-frexpl.
85658         (Support for systems lacking POSIX:2001): Add fprintf-posix,
85659         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
85660         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
85661         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
85662         (Unicode string functions): Add unistr/u*-mbtoucr.
85663         (Java): Add javacomp-script, javaexec-script.
85664         (C#): Add csharpcomp-script, csharpexec-script.
85665         (Support for building libraries and executables): Add havelib,
85666         relocatable-*.
85667         (Support for maintaining and releasing projects): Renamed from
85668         'Support for maintaining and release projects'. Add announce-gen.
85670 2007-03-31  Bruno Haible  <bruno@clisp.org>
85672         * README: Talk primarily about git.
85673         (git and CVS): Renamed from CVS.
85674         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
85675         gnulib is available through git.
85676         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
85678 2007-03-30  Bruno Haible  <bruno@clisp.org>
85680         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
85681         * lib/poll_.h: Likewise.
85682         * lib/stat_.h: Likewise.
85683         * lib/sys_time_.h: Likewise.
85684         * lib/sysexit_.h: Likewise.
85685         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
85686         * lib/stdbool_.h: Likewise.
85687         * lib/byteswap_.h: Add double-inclusion guard.
85689 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
85691         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
85693 2007-03-30  Karl Berry  <karl@gnu.org>
85695         * config/srclist-update: double space after USA in the license
85696         substitution, since that's how it's usually (?) written.
85698 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85700         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
85701         reported by Bruno Haible.
85703 2007-03-29  Bruno Haible  <bruno@clisp.org>
85705         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
85706         a bug in AIX iconv().
85708 2007-03-29  Bruno Haible  <bruno@clisp.org>
85710         * modules/ldexpl-tests: New file.
85711         * tests/test-ldexpl.c: New file.
85713 2007-03-29  Bruno Haible  <bruno@clisp.org>
85715         * lib/ldexpl.c: Include fpucw.h.
85716         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
85717         multiplication.
85718         * modules/ldexpl (Depends-on): Add fpucw.
85720 2007-03-29  Bruno Haible  <bruno@clisp.org>
85722         * modules/ldexpl: New file.
85723         * m4/ldexpl.m4: New file.
85724         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
85725         set.
85726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
85727         REPLACE_LDEXPL.
85728         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
85729         REPLACE_LDEXPL.
85730         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85731         gl_FUNC_LDEXPL_WORKS.
85732         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
85733         * modules/mathl (Files): Remove lib/ldexpl.c.
85734         (Depends-on): Add ldexpl.
85736 2007-03-29  Bruno Haible  <bruno@clisp.org>
85738         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
85740 2007-03-29  Bruno Haible  <bruno@clisp.org>
85742         * tests/test-striconveh.c (main): Don't assume that a direct conversion
85743         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
85744         and possibly also HP-UX.
85745         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85746         work on AIX, IRIX, HP-UX, OSF/1.
85747         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
85748         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
85749         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
85750         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
85751         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
85752         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
85754 2007-03-29  Bruno Haible  <bruno@clisp.org>
85756         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
85758 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85760         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
85761         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
85763 2007-03-29  Eric Blake  <ebb9@byu.net>
85765         * lib/acl-internal.h: Remove redundant include.
85766         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
85767         Cygwin when a file is locked.
85769 2007-03-29  Bruno Haible  <bruno@clisp.org>
85771         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
85772         file.
85773         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
85775 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85777         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
85778         try to remove a parent directory if the child couldn't be removed
85779         (except for the first rmdir, which could fail because the child
85780         doesn't exist).  Problem reported by Jeff Blaine in
85781         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
85783 2007-03-28  Bruno Haible  <bruno@clisp.org>
85785         * lib/striconveh.c (utf8conv_carefully): New function.
85786         (mem_cd_iconveh_internal): Invoke it.
85788 2007-03-28  Bruno Haible  <bruno@clisp.org>
85790         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
85791         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
85792         input.
85793         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
85794         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
85795         unistr/u8-uctomb.
85797 2007-03-28  Bruno Haible  <bruno@clisp.org>
85799         * modules/unistr/u8-mbtoucr: New file.
85800         * lib/unistr/u8-mbtoucr.c: New file.
85801         * modules/unistr/u16-mbtoucr: New file.
85802         * lib/unistr/u16-mbtoucr.c: New file.
85803         * modules/unistr/u16-mbtoucr: New file.
85804         * lib/unistr/u16-mbtoucr.c: New file.
85805         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
85807 2007-03-27  Simon Josefsson  <simon@josefsson.org>
85808             Bruno Haible  <bruno@clisp.org>
85810         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
85811         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
85812         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
85814         * m4/stdio_h.m4: Add stubs for vasprintf too.
85816         * modules/stdio: Support vasprintf in sed command.
85818         * modules/vasprintf: Depend on stdio for prototypes.  Remove
85819         vasprintf.h.  Add stdio module indicator.
85821         * lib/stdio_.h: Declare asprintf and vasprintf, based on
85822         vasprintf.h.
85824         * lib/vasprintf.h: File removed.
85826         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
85827         * lib/vasprintf.c: Ditto.
85828         * lib/xvasprintf.c: Ditto.
85829         * tests/test-vasprintf-posix.c: Ditto.
85830         * tests/test-vasprintf.c: Ditto.
85832 2007-03-27  Bruno Haible  <bruno@clisp.org>
85834         Make vasnprintf multithread-safe.
85835         * lib/vasnprintf.c (decimal_point_char): New function.
85836         (VASNPRINTF): Use it.
85837         Suggested by Simon Josefsson.
85839 2007-03-27  Eric Blake  <ebb9@byu.net>
85841         Support sub-second birthtime on cygwin.
85842         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
85843         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
85844         (get_stat_birthtime): Also work with st_birthtim.
85846 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
85848         * lib/stat-time.h (USE_BIRTHTIME): Remove.
85849         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
85850         (get_stat_birthtime_ns): Do not try to use "spare" fields.
85851         (get_stat_birthtime_ns): Simplify compile-time tests.
85852         (get_stat_birthtime): Change the API to look like
85853         get_stat_mtime etc., except return a negative tv_nsec on error.
85854         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
85855         Don't check for "spare" fields.
85856         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
85857         or for struct stat.st_birthtime, as these tests aren't used.
85858         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
85860 2007-03-27  Bruno Haible  <bruno@clisp.org>
85862         * lib/stat-time.h: Include <sys/stat.h>.
85864 2007-03-27  James Youngman  <jay@gnu.org>
85866         * lib/stat-time.h (get_stat_birthtime): New function for
85867           retrieving st_birthtime as provided by UFS2 (hence *BSD).
85868         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
85869           and its variants.
85870         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
85871         * modules/stat-time-test: New file.
85872         * tests/test-stat-time.c: New test, devised by Bruno Haible.
85874 2007-03-26  Bruno Haible  <bruno@clisp.org>
85876         Better support of signalling NaNs.
85877         * lib/atanl.c: Include isnanl.h.
85878         (atanl): Perform test for NaN at the beginning of the function and
85879         through a call to isnanl.
85880         * lib/cosl.c: Include isnanl.h.
85881         (cosl): Perform test for NaN at the beginning of the function and
85882         through a call to isnanl.
85883         * lib/ldexpl.c: Include isnanl.h.
85884         (ldexpl): Perform test for NaN through a call to isnanl.
85885         * lib/logl.c: Include isnanl.h.
85886         (logl): Perform test for NaN at the beginning of the function and
85887         through a call to isnanl.
85888         * lib/sinl.c: Include isnanl.h.
85889         (sinl): Perform test for NaN at the beginning of the function and
85890         through a call to isnanl.
85891         * lib/sqrtl.c: Include isnanl.h.
85892         (sqrtl): Perform test for NaN at the beginning of the function and
85893         through a call to isnanl.
85894         * lib/tanl.c: Include isnanl.h.
85895         (tanl): Perform test for NaN at the beginning of the function and
85896         through a call to isnanl.
85897         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
85898         * modules/mathl (Depends-on): Add isnanl.
85900 2007-03-26  Eric Blake  <ebb9@byu.net>
85902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
85903         regression in logic sense of previous patch.
85905 2007-03-26  Bruno Haible  <bruno@clisp.org>
85907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
85908         unportable shell command "if ! ...".
85909         Reported by Ralf Wildenhues.
85911 2007-03-25  Bruno Haible  <bruno@clisp.org>
85913         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
85914         <sysexits.h> file, and only add EX_CONFIG.
85915         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
85916         absolute file name and whether it is sufficient. Substitute also
85917         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
85918         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
85919         ABSOLUTE_SYSEXITS_H into sysexits.h.
85921 2007-03-25  Bruno Haible  <bruno@clisp.org>
85923         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
85924         hints is NULL.
85926 2007-03-25  Bruno Haible  <bruno@clisp.org>
85928         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
85929         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
85931 2007-03-25  Bruno Haible  <bruno@clisp.org>
85933         * lib/vasnprintf.c: Include langinfo.h.
85934         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
85935         multithread-safe.
85936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
85937         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
85938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
85944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85945         Reported by Simon Josefsson.
85947 2007-03-25  Bruno Haible  <bruno@clisp.org>
85949         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
85950         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
85951         * modules/vasnprintf (Depends-on): Add stdint.
85953 2007-03-25  Bruno Haible  <bruno@clisp.org>
85955         * modules/fpieee: New file.
85956         * m4/fpieee.m4: New file.
85957         * modules/isnan-nolibm (Depends-on): Add fpieee.
85958         * modules/isnanl-nolibm (Depends-on): Add fpieee.
85959         * modules/isnanl (Depends-on): Add fpieee.
85961 2007-03-25  Bruno Haible  <bruno@clisp.org>
85963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
85965 2007-03-25  Bruno Haible  <bruno@clisp.org>
85967         Avoid test failures on IRIX 6.5.
85968         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
85969         (main): Use it.
85970         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
85971         macros.
85972         (main): Use them.
85974 2007-03-25  Bruno Haible  <bruno@clisp.org>
85976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
85977         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
85978         exists but doesn't work.
85979         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
85980         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
85981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
85982         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
85983         math.h.
85985 2007-03-25  Bruno Haible  <bruno@clisp.org>
85987         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
85988         returns inf. Needed on IRIX 6.5.
85990 2007-03-25  Bruno Haible  <bruno@clisp.org>
85992         * tests/test-frexpl.c: Include isnanl-nolibm.h.
85993         (main): Use isnanl instead of x != x idiom.
85994         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
85996         * tests/test-frexp.c: Include isnan.h.
85997         (main): Use isnan instead of x != x idiom.
85998         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
86000 2007-03-25  Bruno Haible  <bruno@clisp.org>
86002         * tests/test-frexp.c (NaN): New function/macro.
86003         (main): Use it instead of 0.0 / 0.0.
86004         * tests/test-isnan.c (NaN): New function/macro.
86005         (main): Use it instead of 0.0 / 0.0.
86006         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
86007         (test_function): Use it instead of 0.0 / 0.0.
86008         * tests/test-vasprintf-posix.c (NaN): New function/macro.
86009         (test_function): Use it instead of 0.0 / 0.0.
86010         * tests/test-snprintf-posix.h (NaN): New function/macro.
86011         (test_function): Use it instead of 0.0 / 0.0.
86012         * tests/test-sprintf-posix.h (NaN): New function/macro.
86013         (test_function): Use it instead of 0.0 / 0.0.
86014         * tests/test-fprintf-posix.h (NaN): New function/macro.
86015         (test_function): Use it instead of 0.0 / 0.0.
86016         * tests/test-printf-posix.h (NaN): New function/macro.
86017         (test_function): Use it instead of 0.0 / 0.0.
86019         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
86021 2007-03-25  Bruno Haible  <bruno@clisp.org>
86023         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
86025 2007-03-25  Bruno Haible  <bruno@clisp.org>
86027         * lib/regexec.c (merge_state_with_log): Make static.
86029 2007-03-25  Bruno Haible  <bruno@clisp.org>
86031         * lib/trigl.c (kernel_rem_pio2): Make static.
86033 2007-03-25  Bruno Haible  <bruno@clisp.org>
86035         * lib/sincosl.c (sincosl_table): Make static.
86037 2007-03-25  Bruno Haible  <bruno@clisp.org>
86039         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
86040         if the compiler does not support C99.
86042 2007-03-25  Bruno Haible  <bruno@clisp.org>
86044         * modules/time (Makefile.am): Ensure all rule action lines start with a
86045         tab.
86047 2007-03-24  Bruno Haible  <bruno@clisp.org>
86049         * modules/tsearch-tests: New file.
86050         * tests/test-tsearch.sh: New file.
86051         * tests/test-tsearch.c: New file, mostly copied from glibc.
86053         * modules/search-tests: New file.
86054         * tests/test-search.c: New file.
86056         * modules/search: New file.
86057         * lib/search_.h: New file, incorporating lib/tsearch.h.
86058         * m4/search_h.m4: New file.
86059         * lib/tsearch.h: Remove file.
86060         * lib/tsearch.c: Include search.h instead of tsearch.h.
86061         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
86062         HAVE_TSEARCH.
86063         * modules/tsearch (Files): Remove lib/tsearch.h.
86064         (Depends-on): Add search.
86065         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
86066         (Include): Change tsearch.h into search.h.
86068 2007-03-24  Bruno Haible  <bruno@clisp.org>
86070         * modules/fpucw: New file.
86071         * lib/fpucw.h: New file.
86072         * lib/frexp.c: Include fpucw.h.
86073         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86074         (FUNC): Use them.
86075         * lib/printf-frexp.c: Include fpucw.h.
86076         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86077         (FUNC): Use them.
86078         * lib/vasnprintf.c: Include fpucw.h.
86079         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
86080         'long double' calculations.
86081         * tests/test-frexpl.c: Include fpucw.h.
86082         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86083         * tests/test-printf-frexpl.c: Include fpucw.h.
86084         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86085         * modules/frexpl (Depends-on): Add fpucw.
86086         * modules/printf-frexpl (Depends-on): Likewise.
86087         * modules/fprintf-posix (Depends-on): Likewise.
86088         * modules/snprintf-posix (Depends-on): Likewise.
86089         * modules/sprintf-posix (Depends-on): Likewise.
86090         * modules/vasnprintf-posix (Depends-on): Likewise.
86091         * modules/vasprintf-posix (Depends-on): Likewise.
86092         * modules/vfprintf-posix (Depends-on): Likewise.
86093         * modules/vsnprintf-posix (Depends-on): Likewise.
86094         * modules/vsprintf-posix (Depends-on): Likewise.
86095         * modules/frexpl-tests (Depends-on): Likewise.
86096         * modules/printf-frexpl-tests (Depends-on): Likewise.
86098 2007-03-24  Bruno Haible  <bruno@clisp.org>
86100         * lib/float+.h: New file.
86101         * lib/isnan.c: Include float+.h.
86102         (SIZE): New macro.
86103         (FUNC): Compare only SIZE bytes of the value.
86104         * lib/vasnprintf.c: Include float+.h.
86105         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
86106         SIZEOF_LDBL or SIZEOF_DBL bytes.
86107         * modules/isnan-nolibm (Files): Add lib/float+.h.
86108         * modules/isnanl-nolibm (Files): Add lib/float+.h.
86109         * modules/isnanl (Files): Add lib/float+.h.
86110         * modules/vasnprintf (Files): Add lib/float+.h.
86112 2007-03-24  Bruno Haible  <bruno@clisp.org>
86114         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
86115         include isnanl-nolibm.h.
86117 2007-03-24  Bruno Haible  <bruno@clisp.org>
86119         * tests/test-read-file.c (main): Don't produce spurious output for
86120         expected situations. Make the test fail if it encountered unexpected
86121         results.
86123 2007-03-24  Bruno Haible  <bruno@clisp.org>
86125         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
86126         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
86128 2007-03-24  Bruno Haible  <bruno@clisp.org>
86130         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
86132 2007-03-24  Bruno Haible  <bruno@clisp.org>
86134         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
86135         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
86137         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
86138         * modules/utf8-ucs4: Turn into a symbolic link to module
86139         unistr/u8-mbtouc.
86141         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
86142         utf8-ucs4-unsafe.
86143         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
86144         unistr/u8-mbtouc-unsafe.
86146         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
86147         * modules/utf16-ucs4: Turn into a symbolic link to module
86148         unistr/u16-mbtouc.
86150         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
86151         utf16-ucs4-unsafe.
86152         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
86153         unistr/u16-mbtouc-unsafe.
86155         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
86156         * modules/ucs4-utf8: Turn into a symbolic link to module
86157         unistr/u8-ubtomb.
86159         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
86160         * modules/ucs4-utf16: Turn into a symbolic link to module
86161         unistr/u16-ubtomb.
86163 2007-03-24  Bruno Haible  <bruno@clisp.org>
86165         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
86166         Enable the function only if HAVE_INLINE.
86167         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
86168         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86169         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
86170         Enable the function only if HAVE_INLINE.
86171         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
86172         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86173         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
86174         Enable the function only if HAVE_INLINE.
86175         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
86176         Enable the function only if HAVE_INLINE.
86177         * modules/utf8-ucs4: Update.
86178         * modules/utf8-ucs4-unsafe: Update.
86179         * modules/utf16-ucs4: Update.
86180         * modules/utf16-ucs4-unsafe: Update.
86181         * modules/ucs4-utf8: Update.
86182         * modules/ucs4-utf16: Update.
86184 2007-03-24  Bruno Haible  <bruno@clisp.org>
86186         * lib/utf8-ucs4.h: Remove file.
86187         * lib/utf8-ucs4-unsafe.h: Remove file.
86188         * lib/utf16-ucs4.h: Remove file.
86189         * lib/utf16-ucs4-unsafe.h: Remove file.
86190         * lib/ucs4-utf8.h: Remove file.
86191         * lib/ucs4-utf16.h: Remove file.
86192         * lib/unistr.h: Include their previous contents.
86193         * m4/utf-ucs4.m4: Remove file.
86194         * m4/ucs4-utf.m4: Remove file.
86195         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
86196         (Depends-on): Add unistr/base.
86197         (configure.ac): Remove gl_UTF_UCS4.
86198         (Makefile.am): Update.
86199         (Include): Change to unistr.h.
86200         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
86201         (Depends-on): Add unistr/base.
86202         (configure.ac): Remove gl_UTF_UCS4.
86203         (Makefile.am): Update.
86204         (Include): Change to unistr.h.
86205         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
86206         (Depends-on): Add unistr/base.
86207         (configure.ac): Remove gl_UTF_UCS4.
86208         (Makefile.am): Update.
86209         (Include): Change to unistr.h.
86210         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
86211         (Depends-on): Add unistr/base.
86212         (configure.ac): Remove gl_UTF_UCS4.
86213         (Makefile.am): Update.
86214         (Include): Change to unistr.h.
86215         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
86216         (Depends-on): Add unistr/base.
86217         (configure.ac): Remove gl_UCS4_UTF.
86218         (Makefile.am): Update.
86219         (Include): Change to unistr.h.
86220         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
86221         (Depends-on): Add unistr/base.
86222         (configure.ac): Remove gl_UCS4_UTF.
86223         (Makefile.am): Update.
86224         (Include): Change to unistr.h.
86225         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
86226         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
86227         utf8-ucs4-unsafe.h.
86228         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
86229         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
86230         utf16-ucs4-unsafe.h.
86231         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
86232         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
86233         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
86234         * lib/unistr/u8-strchr.c: Likewise.
86235         * lib/unistr/u8-strrchr.c: Likewise.
86236         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
86237         * lib/unistr/u16-strchr.c: Likewise.
86238         * lib/unistr/u16-strrchr.c: Likewise.
86239         * lib/striconveh.c: Update.
86240         * lib/linebreak.c: Update.
86242 2007-03-24  Bruno Haible  <bruno@clisp.org>
86244         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
86245         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
86247 2007-03-22  Bruno Haible  <bruno@clisp.org>
86249         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
86251 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86253         * MODULES.html.sh (File system functions): New module write-any-file.
86254         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
86255         * m4/write-any-file.m4: New files.
86257 2007-03-23  Eric Blake  <ebb9@byu.net>
86259         * gnulib-tool: Rearrange space-tab sequences, since some editors
86260         like to eat them.
86262 2007-03-23  Eric Blake  <ebb9@byu.net>
86264         * lib/version-etc.c (version_etc_va): Update license wording to
86265         be more concise.  Recommended by Richard Stallman.
86267 2007-03-22  Bruno Haible  <bruno@clisp.org>
86269         * lib/poll.c (MSG_PEEK): New fallback definition.
86271 2007-03-22  Bruno Haible  <bruno@clisp.org>
86273         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
86274         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
86275         (main): Update.
86276         Fixes a compilation error on BeOS.
86278 2007-03-22  Bruno Haible  <bruno@clisp.org>
86280         * modules/frexpl-tests: New file.
86281         * tests/test-frexpl.c: New file.
86283         * modules/frexpl: New file.
86284         * m4/frexpl.m4: New file.
86285         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
86286         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
86287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
86288         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
86289         (Depends-on): Add frexpl. Remove isnanl-nolibm.
86290         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
86292 2007-03-22  Bruno Haible  <bruno@clisp.org>
86294         * lib/frexpl.c: Share code with lib/frexp.c.
86295         * modules/mathl (Files): Add lib/frexp.c.
86296         (Depends-on): Add isnanl-nolibm.
86298 2007-03-22  Bruno Haible  <bruno@clisp.org>
86300         * modules/printf-frexp (Files): Add m4/frexp.m4.
86301         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
86302         only if the found frexp function actually works.
86304 2007-03-22  Bruno Haible  <bruno@clisp.org>
86306         * lib/frexp.c: Remove older implementation that uses divisions.
86308 2007-03-21  Bruno Haible  <bruno@clisp.org>
86310         * modules/frexp-tests: New file.
86311         * tests/test-frexp.c: New file.
86313         * modules/frexp: New file.
86314         * lib/frexp.c: New file.
86315         * m4/frexp.m4: New file.
86316         * lib/math_.h (frexp): New declaration.
86317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
86318         REPLACE_FREXP.
86319         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
86321 2007-03-21  Bruno Haible  <bruno@clisp.org>
86323         * modules/isnanl-tests: New file.
86324         * tests/test-isnanl.c: New file.
86326         * modules/isnanl: New file.
86327         * lib/isnanl.h: New file.
86328         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
86329         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
86330         gl_FUNC_ISNANL_WORKS.
86331         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
86332         New macros.
86334 2007-03-21  Bruno Haible  <bruno@clisp.org>
86336         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
86337         lib/isnanl.h.
86338         (Include): Update.
86339         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
86340         * lib/vasnprintf.c: Update.
86341         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
86342         tests/test-isnanl.h, remove tests/test-isnanl.c.
86343         (Makefile.am): Update.
86344         * tests/test-isnanl-nolibm.c: New file.
86345         * tests/test-isnanl.h: New file.
86346         * tests/test-isnanl.c: Remove file.
86348 2007-03-21  Jim Meyering  <jim@meyering.net>
86350         When trying to open ".", treat ESTALE like EACCES.
86351         * lib/savewd.c (savewd_save): Resort to forking not just upon
86352         failure with EACCES, but also when errno is ESTALE.
86354 2007-03-20  Bruno Haible  <bruno@clisp.org>
86356         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
86357         Needed on AIX 5.1. Reported by Matthew Woehlke.
86359 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86361         Suggestions by Bruno Haible:
86362         * lib/acl-internal.h: Include "gettext.h" rather than rolling
86363         our own.
86364         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
86365         * modules/acl (Depends-on): Add gettext.
86367 2007-03-19  Bruno Haible  <bruno@clisp.org>
86369         * modules/iconvme: Remove file.
86370         * lib/iconvme.h: Remove file.
86371         * lib/iconvme.c: Remove file.
86372         * m4/iconvme.m4: Remove file.
86374 2007-03-19  Bruno Haible  <bruno@clisp.org>
86376         * doc/relocatable-maint.texi: Break long shell script line.
86377         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86379 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86381         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
86382         handle file_has_acl.
86383         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
86384         * lib/acl.c: Move header inclusions and related macro defns into
86385         lib/acl-internal.h.
86386         (S_ISLNK): Remove defn, since that's now done for us.
86387         (file_has_acl): Move to lib/file-has-acl.c.
86388         Call acl_trivial if available.  This is the crucial part of the fix.
86389         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
86390         shared within the library.  Rewrite a bit, partly to make it compatible
86391         with the GNU coding style.
86392         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
86393         Remove unnecessary double-quotes.
86394         Don't test for acl_to_text; the build will catch that.
86395         Replace acl_entries if it doesn't exist and it is needed.
86396         Check for -lsec and acl_trivial (as used on Solaris 10).
86397         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
86398         lib/file-has-acl.c.
86399         (Depends-on): Add sys_stat, for S_ISLNK.
86401 2007-03-19  Ben Pfaff  <blp@gnu.org>
86403         * doc/gnulib.texi: Fix typos.
86404         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86406 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86408         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
86409         If size is zero here, buf must be zero.
86411 2007-03-19  Simon Josefsson  <simon@josefsson.org>
86413         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
86414         <bruno@clisp.org>.
86416 2007-03-18  Bruno Haible  <bruno@clisp.org>
86418         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
86419         Suggested by Eric Blake.
86421 2007-03-18  Ben Pfaff  <blp@gnu.org>
86423         * doc/relocatable.texi: Recommend using as prefix a directory
86424         that does not exist and will never be created.  Based on
86425         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
86426         and others.
86428 2007-03-17  Bruno Haible  <bruno@clisp.org>
86430         * lib/fchownat.c: Include lchown.h.
86432 2007-03-17  Bruno Haible  <bruno@clisp.org>
86434         Fix endless loop when the given allocated size was > INT_MAX.
86435         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
86436         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
86437         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
86438         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
86439         * lib/sprintf.c (sprintf): Likewise.
86441 2007-03-17  Bruno Haible  <bruno@clisp.org>
86443         * tests/test-argp-2.sh (func_compare): Output a context diff.
86445 2007-03-17  Bruno Haible  <bruno@clisp.org>
86447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
86448         locale's decimal-point character.
86450 2007-03-17  Bruno Haible  <bruno@clisp.org>
86452         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
86453         before comparing it. Needed because on some platforms (e.g. x86) a
86454         'long double' occupies less bytes than sizeof (long double).
86456 2007-03-17  Bruno Haible  <bruno@clisp.org>
86458         * tests/test-crc.c (main): Make printf statements 64-bit clean.
86459         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
86460         * tests/test-getaddrinfo.c (simple): Likewise.
86461         * tests/test-read-file.c (main): Likewise.
86463 2007-03-17  Bruno Haible  <bruno@clisp.org>
86465         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
86467 2007-03-17  Bruno Haible  <bruno@clisp.org>
86469         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
86470         unused variable.
86472 2007-03-17  Bruno Haible  <bruno@clisp.org>
86474         * tests/test-c-strcasecmp.c: Include c-strcase.h.
86475         * tests/test-c-strncasecmp.c: Likewise.
86477 2007-03-17  Bruno Haible  <bruno@clisp.org>
86479         * modules/stdlib (Depends-on): Add unistd.
86480         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
86481         Needed for MacOS X 10.3.
86483 2007-03-17  Bruno Haible  <bruno@clisp.org>
86485         * lib/unistr/u-strdup.h: Include <stdlib.h>.
86487 2007-03-17  Bruno Haible  <bruno@clisp.org>
86489         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
86491 2007-03-17  Bruno Haible  <bruno@clisp.org>
86493         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
86494         to reflect files copied from gnulib (with or without modifications).
86495         Suggested by Jim Meyering.
86497 2007-03-17  Eric Blake  <ebb9@byu.net>
86499         * NEWS: Document stdlib change from 2007-02-18.
86501 2007-03-17  Jim Meyering  <jim@meyering.net>
86503         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
86504         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
86505         someone uses a name containing shell meta-characters.
86506         Reported by Alfred M. Szmidt.
86508         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
86510 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
86512         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
86513         and copy gettext configuration files only if configure.ac contains
86514         a use of AM_GNU_GETTEXT_VERSION.
86516 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
86518         * build-aux/bootstrap (gnulib_name): New variable.
86519         (gnulib_tool_options): Use it.
86521 2007-03-13  Simon Josefsson  <simon@josefsson.org>
86523         * tests/test-des.c: Use new namespace.
86525 2007-03-15  Bruno Haible  <bruno@clisp.org>
86527         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
86528         Reported by James Youngman <jay@gnu.org>.
86530 2007-03-15  Bruno Haible  <bruno@clisp.org>
86532         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
86533         declared prototype. Needed with cc on OSF/1 5.1.
86535 2007-03-15  Bruno Haible  <bruno@clisp.org>
86537         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
86538         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
86539         (struct gl_list_implementation): Add dispose_fn argument to the
86540         'create_empty', 'create' methods.
86541         (struct gl_list_impl_base): Add field 'dispose_fn'.
86542         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
86543         argument.
86544         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
86545         dispose_fn argument.
86546         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
86547         dispose_fn on the dropped values.
86548         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
86549         dispose_fn argument.
86550         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
86551         dropped values.
86552         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
86553         (gl_tree_remove_node): Call dispose_fn on the dropped value.
86554         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
86555         (gl_tree_remove_node): Call dispose_fn on the dropped value.
86556         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
86557         argument.
86558         (gl_tree_list_free): Call dispose_fn on the dropped values.
86559         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
86560         the dropped values.
86561         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
86562         Add dispose_fn argument.
86563         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
86564         Call dispose_fn on the dropped values.
86565         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
86566         Add dispose_fn argument.
86567         (gl_sublist_create): Initialize the 'dispose_fn' field.
86568         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
86569         * tests/test-array_list.c (main): Update.
86570         * tests/test-carray_list.c (main): Update.
86571         * tests/test-avltree_list.c (main): Update.
86572         * tests/test-rbtree_list.c (main): Update.
86573         * tests/test-avltreehash_list.c (main): Update.
86574         * tests/test-rbtreehash_list.c (main): Update.
86575         * tests/test-linked_list.c (main): Update.
86576         * tests/test-linkedhash_list.c (main): Update.
86577         * tests/test-array_oset.c (main): Update.
86579 2007-03-15  Bruno Haible  <bruno@clisp.org>
86581         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
86582         (gl_oset_create_empty): Add dispose_fn argument.
86583         (struct gl_oset_implementation): Add dispose_fn argument to
86584         'create_empty' method.
86585         (struct gl_oset_impl_base): Add dispose_fn field.
86586         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
86587         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
86588         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
86589         values.
86590         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
86591         (gl_tree_oset_free): Call dispose_fn on the dropped values.
86592         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86593         dropped value.
86594         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86595         dropped value.
86596         * tests/test-array_oset.c (main): Update.
86597         * tests/test-avltree_oset.c (main): Update.
86598         * tests/test-rbtree_oset.c (main): Update.
86599         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
86601 2007-03-13  Bruno Haible  <bruno@clisp.org>
86603         * tests/test-stdbool.c (i): Update after last patch.
86605 2007-03-12  Bruno Haible  <bruno@clisp.org>
86607         * lib/quotearg.c: Include <wctype.h> early, before the definition of
86608         the iswprint macro. Needed on Solaris 2.5.1.
86610 2007-03-12  Bruno Haible  <bruno@clisp.org>
86612         * tests/test-printf-frexp.c (main): Declare x as volatile.
86614 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86616         * doc/gnulib.texi (Build robot for gnulib): New section.
86618 2007-03-12  Jim Meyering  <jim@meyering.net>
86620         * build-aux/bootstrap: New file.
86621         * build-aux/bootstrap.conf: New file, from coreutils.
86623 2007-03-11  Bruno Haible  <bruno@clisp.org>
86625         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
86627 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86629         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
86630         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
86631         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
86633 2007-03-11  Bruno Haible  <bruno@clisp.org>
86635         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
86636         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
86638 2007-03-11  Bruno Haible  <bruno@clisp.org>
86640         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
86641         formula. Needed for SunPRO C 5.0.
86643 2007-03-11  Bruno Haible  <bruno@clisp.org>
86645         * modules/long-options (Depends-on): Add getopt.
86647 2007-03-11  Bruno Haible  <bruno@clisp.org>
86649         * modules/modechange (Depends-on): Add stdbool.
86651 2007-03-11  Bruno Haible  <bruno@clisp.org>
86653         * modules/i-ring (Depends-on): Add stdbool.
86655 2007-03-11  Bruno Haible  <bruno@clisp.org>
86657         * modules/gc-des (Depends-on): Add stdbool.
86659 2007-03-11  Bruno Haible  <bruno@clisp.org>
86661         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
86663 2007-03-11  Bruno Haible  <bruno@clisp.org>
86665         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
86667 2007-03-11  Bruno Haible  <bruno@clisp.org>
86669         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
86671 2007-03-11  Bruno Haible  <bruno@clisp.org>
86673         * lib/vasnprintf.c (sprintf): Undefine.
86675 2007-03-11  Bruno Haible  <bruno@clisp.org>
86677         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
86678         initializers in SunPRO C and Compaq C compilers.
86680 2007-03-11  Bruno Haible  <bruno@clisp.org>
86682         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
86683         decrementing code ANSI C compliant.
86685 2007-03-11  Bruno Haible  <bruno@clisp.org>
86687         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
86688         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
86690 2007-03-11  Bruno Haible  <bruno@clisp.org>
86692         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
86693         <stdbool.h> substitute doesn't pass.
86695 2007-03-11  Bruno Haible  <bruno@clisp.org>
86697         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
86699 2007-03-11  Bruno Haible  <bruno@clisp.org>
86701         * gnulib-tool (func_create_megatestdir): Create also an autobuild
86702         script, for submission to autobuild.josefsson.org.
86704 2007-03-10  Bruno Haible  <bruno@clisp.org>
86706         * modules/canonicalize-lgpl-tests: New file.
86707         * tests/test-canonicalize-lgpl.sh: New file.
86708         * tests/test-canonicalize-lgpl.c: New file.
86710         * modules/c-strcase-tests: New file.
86711         * tests/test-c-strcase.sh: New file.
86712         * tests/test-c-strcasecmp.c: New file.
86713         * tests/test-c-strncasecmp.c: New file.
86715         * modules/atexit-tests: New file.
86716         * tests/test-atexit.sh: New file.
86717         * tests/test-atexit.c: New file.
86719 2007-03-10  Bruno Haible  <bruno@clisp.org>
86721         * tests/test-binary-io.sh: Use temporary filenames that are not so
86722         likely to clash with those of other tests (in a parallel make).
86723         * tests/test-binary-io.c: Likewise.
86725 2007-03-10  Bruno Haible  <bruno@clisp.org>
86727         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
86728         fallback; use #error instead.
86729         Suggested by Simon Josefsson.
86731 2007-03-10  Bruno Haible  <bruno@clisp.org>
86733         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
86734         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
86735         first and the last.
86737 2007-03-10  Bruno Haible  <bruno@clisp.org>
86739         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
86741 2007-03-10  Bruno Haible  <bruno@clisp.org>
86743         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
86744         "make distcheck".
86745         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
86746         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
86747         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
86749 2007-03-10  Bruno Haible  <bruno@clisp.org>
86751         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
86752         variable.
86753         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
86754         variable.
86756 2007-03-09  Eric Blake  <ebb9@byu.net>
86757         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
86759         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
86760         types are not being provided by gnulib.
86761         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
86762         types are supported.
86764 2007-03-10  Bruno Haible  <bruno@clisp.org>
86766         * lib/stdio_.h (__attribute__): New macro.
86767         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
86768         vsprintf): Specify __attribute__ __format__ for GCC.
86769         Suggested by Eric Blake.
86771 2007-03-09  Bruno Haible  <bruno@clisp.org>
86773         * modules/printf-posix-tests: New file.
86774         * tests/test-printf-posix.sh: New file.
86775         * tests/test-printf-posix.c: New file.
86777         * modules/printf-posix: New file.
86778         * lib/printf.c: New file.
86779         * m4/printf-posix-rpl.m4: New file.
86780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
86781         REPLACE_PRINTF.
86782         * lib/stdio_.h (printf): New declaration.
86783         (format, __format__, ____printf____, ____scanf____, ____strftime____,
86784         ____strfmon____): New macros.
86785         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
86786         REPLACE_PRINTF.
86788 2007-03-09  Bruno Haible  <bruno@clisp.org>
86790         * tests/test-vasnprintf-posix2.sh: New file.
86791         * tests/test-vasnprintf-posix2.c: New file.
86792         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
86793         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86794         (Makefile.am): Activate test-vasnprintf-posix2.sh.
86796         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
86797         a locale dependent decimal point, rather than always '.'.
86799 2007-03-09  Eric Blake  <ebb9@byu.net>
86801         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
86802         spite of platforms like Tandem/NSK that define it to -1.
86804 2007-03-08  Bruno Haible  <bruno@clisp.org>
86806         * modules/vprintf-posix-tests: New file.
86807         * tests/test-vprintf-posix.sh: New file.
86808         * tests/test-vprintf-posix.c: New file.
86809         * tests/test-printf-posix.h: New file.
86811         * modules/vprintf-posix: New file.
86812         * lib/vprintf.c: New file.
86813         * m4/vprintf-posix.m4: New file.
86814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
86815         REPLACE_VPRINTF.
86816         * lib/stdio_.h (vprintf): New declaration.
86817         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
86818         REPLACE_VPRINTF.
86820 2007-03-08  Bruno Haible  <bruno@clisp.org>
86822         * modules/fprintf-posix-tests: New file.
86823         * tests/test-fprintf-posix.sh: New file.
86824         * tests/test-fprintf-posix.c: New file.
86826         * modules/fprintf-posix: New file.
86827         * lib/fprintf.c: New file.
86828         * m4/fprintf-posix.m4: New file.
86829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
86830         REPLACE_FPRINTF.
86831         * lib/stdio_.h (fprintf): New declaration.
86832         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
86833         REPLACE_FPRINTF.
86835 2007-03-08  Bruno Haible  <bruno@clisp.org>
86837         * modules/vfprintf-posix-tests: New file.
86838         * tests/test-vfprintf-posix.sh: New file.
86839         * tests/test-vfprintf-posix.c: New file.
86840         * tests/test-fprintf-posix.h: New file.
86841         * tests/test-fprintf-posix.out: New file.
86843         * modules/vfprintf-posix: New file.
86844         * lib/vfprintf.c: New file.
86845         * m4/vfprintf-posix.m4: New file.
86846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
86847         REPLACE_VFPRINTF.
86848         * lib/stdio_.h (vfprintf): New declaration.
86849         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
86850         REPLACE_VFPRINTF.
86852 2007-03-08  Bruno Haible  <bruno@clisp.org>
86854         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
86856 2007-03-08  Bruno Haible  <bruno@clisp.org>
86858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
86859         instead of 'expr' invocations.
86860         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86865         Suggested by Paul Eggert.
86867 2007-03-08  Bruno Haible  <bruno@clisp.org>
86869         * modules/fseterr-tests: New file.
86870         * tests/test-fseterr.c: New file.
86872         * modules/fseterr: New file.
86873         * lib/fseterr.h: New file.
86874         * lib/fseterr.c: New file.
86876 2007-03-08  Bruno Haible  <bruno@clisp.org>
86878         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
86879         * lib/getopt_.h: Likewise.
86880         * lib/mbswidth.h: Likewise.
86881         * lib/setenv.h: Likewise.
86882         * lib/vasnprintf.h: Likewise.
86883         * lib/vasprintf.h: Likewise.
86884         * lib/verror.h: Likewise.
86885         * lib/xsetenv.h: Likewise.
86886         * lib/xvasprintf.h: Likewise.
86888 2007-03-08  Jim Meyering  <jim@meyering.net>
86890         * users.txt: Add parted.
86892         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
86894 2007-03-07  Bruno Haible  <bruno@clisp.org>
86896         * m4/printf.m4: Make the shell script snippets copy&pastable.
86898 2007-03-02  Bruno Haible  <bruno@clisp.org>
86900         * lib/netinet_in_.h: New file.
86901         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
86902         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
86903         * modules/netinet_in (Files): Add lib/netinet_in_.h.
86904         (Depends-on): Add absolute-header.
86905         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
86906         into netinet/in.h.
86908 2007-03-03  Bruno Haible  <bruno@clisp.org>
86910         * lib/sys_select_.h: New file.
86911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
86912         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
86913         * modules/sys_select (Files): Add lib/sys_select_.h.
86914         (Depends-on): Add absolute-header.
86915         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
86916         into sys/select.h.
86918 2007-03-02  Bruno Haible  <bruno@clisp.org>
86920         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
86921         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
86922         values.
86923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
86924         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
86925         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
86926         * modules/sys_socket (Depends-on): Add absolute-header.
86927         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
86928         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
86929         (Include): Remove requirement of inclusion of <sys/types.h>.
86931 2007-03-02  Bruno Haible  <bruno@clisp.org>
86933         * lib/byteswap_.h (bswap_32): Fix formula.
86935 2007-03-06  Bruno Haible  <bruno@clisp.org>
86937         * modules/sprintf-posix-tests: New file.
86938         * tests/test-sprintf-posix.c: New file.
86940         * modules/sprintf-posix: New file.
86941         * lib/sprintf.c: New file.
86942         * m4/sprintf-posix.m4: New file.
86943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
86944         REPLACE_SPRINTF.
86945         * lib/stdio_.h (sprintf): New declaration.
86946         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
86947         REPLACE_SPRINTF.
86949 2007-03-06  Bruno Haible  <bruno@clisp.org>
86951         * modules/vsprintf-posix-tests: New file.
86952         * tests/test-vsprintf-posix.c: New file.
86953         * tests/test-sprintf-posix.h: New file.
86955         * modules/vsprintf-posix: New file.
86956         * lib/vsprintf.c: New file.
86957         * m4/vsprintf-posix.m4: New file.
86958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
86959         REPLACE_VSPRINTF.
86960         * lib/stdio_.h (vsprintf): New declaration.
86961         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
86962         REPLACE_VSPRINTF.
86964 2007-03-06  Bruno Haible  <bruno@clisp.org>
86966         * modules/vsnprintf (Depend-on): Remove minmax.
86968 2007-03-06  Bruno Haible  <bruno@clisp.org>
86970         * modules/snprintf-posix-tests: New file.
86971         * tests/test-snprintf-posix.c: New file.
86973         * modules/snprintf-posix: New file.
86974         * m4/snprintf-posix.m4: New file.
86975         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
86976         gl_FUNC_SNPRINTF.
86977         (gl_FUNC_SNPRINTF): Invoke it.
86978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
86979         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
86980         is set.
86981         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
86983 2007-03-06  Bruno Haible  <bruno@clisp.org>
86985         * modules/vsnprintf-posix-tests: New file.
86986         * tests/test-vsnprintf-posix.c: New file.
86987         * tests/test-snprintf-posix.h: New file.
86989         * modules/vsnprintf-posix: New file.
86990         * m4/vsnprintf-posix.m4: New file.
86991         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
86992         gl_FUNC_VSNPRINTF.
86993         (gl_FUNC_VSNPRINTF): Invoke it.
86994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
86995         * lib/stdio_.h (vsnprintf): Define as a replacement if
86996         REPLACE_VSNPRINTF is set.
86997         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
86999 2007-03-06  Bruno Haible  <bruno@clisp.org>
87001         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
87002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
87004 2007-03-06  Bruno Haible  <bruno@clisp.org>
87006         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
87007         (asinl): Declare also if HAVE_DECL_ASINL is set.
87008         (atanl): Declare also if HAVE_DECL_ATANL is set.
87009         (ceill): Declare also if HAVE_DECL_CEILL is set.
87010         (cosl): Declare also if HAVE_DECL_COSL is set.
87011         (expl): Declare also if HAVE_DECL_EXPL is set.
87012         (floorl): Declare also if HAVE_DECL_FLOORL is set.
87013         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
87014         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
87015         (logl): Declare also if HAVE_DECL_LOGL is set.
87016         (sinl): Declare also if HAVE_DECL_SINL is set.
87017         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
87018         (tanl): Declare also if HAVE_DECL_TANL is set.
87019         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
87020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
87021         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
87022         declaration of frexpl, ldexpl.
87023         * modules/printf-frexpl (Depends-on): Add math.
87024         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
87026 2007-03-05  Bruno Haible  <bruno@clisp.org>
87028         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
87029         frexpl and ldexpl are declared.
87030         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
87032 2007-03-05  Bruno Haible  <bruno@clisp.org>
87034         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
87035         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
87037 2007-03-05  Bruno Haible  <bruno@clisp.org>
87039         * lib/stdio_.h: Include <stddef.h>.
87041 2007-03-05  Bruno Haible  <bruno@clisp.org>
87043         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
87045 2007-03-05  Bruno Haible  <bruno@clisp.org>
87047         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
87048         NetBSD 4, from Ralf Wildenhues.
87050 2007-03-04  Bruno Haible  <bruno@clisp.org>
87052         * lib/vasprintf.h: Update #if logic for the case when the functions
87053         exist but are overridden.
87055 2007-03-04  Bruno Haible  <bruno@clisp.org>
87057         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
87058         implementations: glibc-2.4 and MacOS X 10.3.
87059         * tests/test-vasnprintf-posix.c (test_function): Test also the case
87060         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
87061         * tests/test-vasprintf-posix.c (test_function): Likewise.
87063 2007-03-04  Bruno Haible  <bruno@clisp.org>
87065         * modules/vasprintf-posix-tests: New file.
87066         * tests/test-vasprintf-posix.c: New file.
87068         * modules/vasprintf-posix: New file.
87069         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
87070         defined.
87071         * m4/vasprintf-posix.m4: New file.
87072         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
87073         gl_FUNC_VASPRINTF.
87074         (gl_FUNC_VASPRINTF): Invoke it.
87075         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
87076         here.
87077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
87079 2007-03-04  Bruno Haible  <bruno@clisp.org>
87081         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
87082         REPLACE_GETTIMEOFDAY.
87083         * modules/sys_time (Makefile.am): Likewise.
87084         * m4/sys_time_h.m4: Likewise.
87085         * m4/gettimeofday.m4: Likewise.
87087 2007-03-04  Bruno Haible  <bruno@clisp.org>
87089         * modules/vasnprintf-posix-tests: New file.
87090         * tests/test-vasnprintf-posix.c: New file.
87092         * modules/vasnprintf-posix: New file.
87093         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
87094         printf-frexpl.h.
87095         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
87096         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
87097         REPLACE_VASNPRINTF is defined.
87098         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
87099         gl_FUNC_VASNPRINTF.
87100         (gl_FUNC_VASNPRINTF): Invoke it.
87101         * m4/vasnprintf-posix.m4: New file.
87102         * m4/printf.m4: New file.
87104 2007-03-04  Bruno Haible  <bruno@clisp.org>
87106         Compile progreloc.c only if --enable-relocatable is specified.
87107         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
87108         if --enable-relocatable was specified.
87109         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
87110         lib_SOURCES.
87112 2007-03-04  Jim Meyering  <jim@meyering.net>
87114         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
87115         Use it consistently, rather than enumerating errno constants.
87117 2007-03-04  Bruno Haible  <bruno@clisp.org>
87119         * modules/xvasprintf-tests: New file.
87120         * tests/test-xvasprintf.c: New file.
87122         * modules/vasprintf-tests: New file.
87123         * tests/test-vasprintf.c: New file.
87125         * modules/vasnprintf-tests: New file.
87126         * tests/test-vasnprintf.c: New file.
87128         * modules/vsnprintf-tests: New file.
87129         * tests/test-vsnprintf.c: New file.
87131         * modules/snprintf-tests: New file.
87132         * tests/test-snprintf.c: New file.
87134 2007-03-04  Bruno Haible  <bruno@clisp.org>
87136         Compile relocatable.c only if --enable-relocatable is specified.
87137         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
87138         gl_RELOCATABLE_LIBRARY.
87139         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
87140         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
87141         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
87142         gl_RELOCATABLE_LIBRARY.
87143         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
87144         (Makefile.am): Remove lib_SOURCES.
87145         * modules/relocatable-lib-lgpl (configure.ac): Invoke
87146         gl_RELOCATABLE_LIBRARY.
87147         (Makefile.am): Remove lib_SOURCES.
87148         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
87149         always.
87150         * modules/relocatable-prog-wrapper (configure.ac): Invoke
87151         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
87153 2007-03-04  Bruno Haible  <bruno@clisp.org>
87155         * modules/argmatch-tests: New file.
87156         * tests/test-argmatch.c: New file.
87158         * tests/test-allocsa.c (main): Halve the number of loop runs.
87160         * modules/alloca-opt-tests: New file.
87161         * tests/test-alloca-opt.c: New file.
87163 2007-03-04  Jim Meyering  <jim@meyering.net>
87165         Work around difference between Linux ACLs and Solaris 10 ZFS.
87166         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
87167         for EINVAL.
87169 2007-03-03  Bruno Haible  <bruno@clisp.org>
87171         * modules/relocatable-prog (Depends-on): Add back progreloc's
87172         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
87174 2007-03-03  Bruno Haible  <bruno@clisp.org>
87176         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
87177         * modules/relocatable-lib: New file.
87179 2007-03-03  Bruno Haible  <bruno@clisp.org>
87181         * modules/relocatable-prog: Renamed from modules/relocatable.
87182         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
87184 2007-03-03  Bruno Haible  <bruno@clisp.org>
87186         * modules/relocatable-script (Files): Add doc/relocatable.texi,
87187         m4/relocatable-lib.m4.
87188         (Depends-on): Remove 'relocatable'.
87189         (configure.ac): Add gl_RELOCATABLE_NOP.
87191 2007-03-03  Bruno Haible  <bruno@clisp.org>
87193         * modules/relocatable-prog-wrapper: New file.
87194         * modules/relocatable (Depends-on): Add it. Remove all other
87195         dependencies except progname.
87196         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
87198         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
87199         (gl_FUNC_STRERROR): Nop.
87200         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
87202         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
87203         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
87205         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
87206         (gl_FUNC_READLINK): Update.
87208         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
87210 2007-03-03  Bruno Haible  <bruno@clisp.org>
87212         * lib/xreadlink.c: Include <unistd.h> unconditionally.
87213         * modules/xreadlink (Depends-on): Add unistd.
87214         * modules/xreadlink-with-size (Depends-on): Likewise.
87216 2007-03-03  Bruno Haible  <bruno@clisp.org>
87218         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
87219         extracted from gt_FUNC_SETENV.
87220         (gt_FUNC_SETENV): Remove macro.
87221         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
87222         remove gt_FUNC_SETENV.
87224 2007-03-03  Bruno Haible  <bruno@clisp.org>
87226         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
87227         ENABLE_RELOCATABLE here.
87228         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
87230 2007-03-03  Bruno Haible  <bruno@clisp.org>
87232         * modules/rbtreehash-list-tests (Depends-on): Add progname.
87233         * tests/test-rbtreehash_list.c: Include progname.h.
87234         (main): Call set_program_name.
87236         * modules/rbtree-oset-tests (Depends-on): Add progname.
87237         * tests/test-rbtree_oset.c: Include progname.h.
87238         (main): Call set_program_name.
87240         * modules/rbtree-list-tests (Depends-on): Add progname.
87241         * tests/test-rbtree_list.c: Include progname.h.
87242         (main): Call set_program_name.
87244         * modules/linked-list-tests (Depends-on): Add progname.
87245         * tests/test-linked_list.c: Include progname.h.
87246         (main): Call set_program_name.
87248 2007-03-03  Bruno Haible  <bruno@clisp.org>
87250         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
87251         All uses of __restrict changed to _Restrict_.
87252         * lib/glob_.h (__restrict): Remove macro.
87254 2007-03-02  Bruno Haible  <bruno@clisp.org>
87256         * modules/gettext (configure.ac): Require gettext infrastructure
87257         from version 0.16.1.
87259 2007-03-02  Bruno Haible  <bruno@clisp.org>
87261         * modules/linkedhash-list-tests (Depends-on): Add progname.
87262         * tests/test-linkedhash_list.c: Include progname.h.
87263         (main): Call set_program_name.
87265         * modules/carray-list-tests (Depends-on): Add progname.
87266         * tests/test-carray_list.c: Include progname.h.
87267         (main): Call set_program_name.
87269         * modules/avltreehash-list-tests (Depends-on): Add progname.
87270         * tests/test-avltreehash_list.c: Include progname.h.
87271         (main): Call set_program_name.
87273         * modules/avltree-oset-tests (Depends-on): Add progname.
87274         * tests/test-avltree_oset.c: Include progname.h.
87275         (main): Call set_program_name.
87277         * modules/avltree-list-tests (Depends-on): Add progname.
87278         * tests/test-avltree_list.c: Include progname.h.
87279         (main): Call set_program_name.
87281         * modules/array-oset-tests (Depends-on): Add progname.
87282         * tests/test-array_oset.c: Include progname.h.
87283         (main): Call set_program_name.
87285         * modules/array-list-tests (Depends-on): Add progname.
87286         * tests/test-array_list.c: Include progname.h.
87287         (main): Call set_program_name.
87289         * modules/argp-tests (Depends-on): Add progname.
87290         * tests/test-argp.c: Include argp.h first. Include progname.h.
87291         (main): Call set_program_name.
87293 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
87295         * doc/gnulib-tool.texi (Initial import): Reword description of
87296         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
87297         limited effect even if defined after the first system include.
87299 2007-03-01  Bruno Haible  <bruno@clisp.org>
87301         * build-aux/config.libpath: Update to libtool-1.5.22.
87302         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87304 2007-03-01  Bruno Haible  <bruno@clisp.org>
87306         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
87307         foo_CFLAGS.
87308         Reported by Ralf Wildenhues.
87310 2007-03-01  Bruno Haible  <bruno@clisp.org>
87312         * build-aux/install-reloc: Remove object files left over by some
87313         compilers.
87314         Reported by Ralf Wildenhues.
87316 2007-03-01  Bruno Haible  <bruno@clisp.org>
87318         * build-aux/install-reloc: Break long lines.
87320 2007-03-01  Bruno Haible  <bruno@clisp.org>
87322         * doc/relocatable.texi: Document that it may not work on OpenBSD.
87323         Reported by Ralf Wildenhues.
87325 2007-03-01  Bruno Haible  <bruno@clisp.org>
87327         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
87328         include ordering constraints.
87330 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87332         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
87333         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
87334         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
87335         as another example.
87336         * lib/time_.h: Fix misspelling.
87337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87338         Require gl_HEADER_TIME_H_DEFAULTS.
87339         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
87340         * m4/time_r.m4 (gl_TIME_R): Likewise.
87341         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
87343 2007-03-01  Bruno Haible  <bruno@clisp.org>
87345         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
87346         * m4/utimens.m4 (gl_UTIMENS): Likewise.
87348 2007-03-01  Jim Meyering  <jim@meyering.net>
87350         * modules/xreadlink (Maintainer): Add my name.
87351         * modules/xreadlink-with-size (Depends-on): Alphabetize.
87353 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
87354             Bruno Haible  <bruno@clisp.org>
87356         * build-aux/install-reloc: Compile also c-ctype.c.
87357         * build-aux/relocatable.sh.in: New file.
87358         * doc/relocatable.texi: New file.
87359         * doc/relocatable-maint.texi: New file.
87360         * doc/gnulib.texi: Include relocatable-maint.texi.
87361         * lib/progreloc.c: Include unistd.h unconditionally.
87362         * lib/relocwrapper.c: Include unistd.h unconditionally.
87363         Include c-ctype.h.
87364         (add_dotbin): Use c_tolower.
87365         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
87366         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
87367         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
87368         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
87369         to m4/relocatable-lib.m4.
87370         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
87371         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
87372         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
87373         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
87374         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
87375         * modules/relocatable: New file.
87376         * modules/relocatable-lib: New file.
87377         * modules/relocatable-script: New file.
87379 2007-02-28  Bruno Haible  <bruno@clisp.org>
87381         Import --enable-relocatable infrastructure.
87382         * build-aux/config.libpath: New file, from GNU gettext.
87383         * build-aux/install-reloc: New file, from GNU gettext.
87384         * build-aux/reloc-ldflags: New file, from GNU gettext.
87385         * lib/relocatable.h: New file, from GNU gettext.
87386         * lib/relocatable.c: New file, from GNU gettext.
87387         * lib/relocwrapper.c: New file, from GNU gettext.
87388         * m4/relocatable.m4: New file, from GNU gettext.
87390 2007-02-28  Bruno Haible  <bruno@clisp.org>
87392         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
87394         * modules/xreadlink: New file, from GNU gettext with modifications.
87395         * lib/xreadlink.c: New file, from GNU gettext.
87396         * lib/xreadlink.h: Add comments.
87397         (xreadlink): New declaration.
87399         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
87400         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
87401         lib/xreadlink-with-size.c.
87402         (configure.ac): Remove gl_XREADLINK invocation.
87403         (Makefile.am): Augment lib_SOURCES.
87404         * m4/xreadlink.m4: Remove file.
87405         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
87406         (xreadlink_with_size): Renamed from xreadink.
87407         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
87408         * modules/canonicalize (Depends-on): Replace xreadlink with
87409         xreadlink-with-size.
87410         * lib/canonicalize.c (canonicalize_filename_mode): Update.
87412 2007-02-25  Jim Meyering  <jim@meyering.net>
87414         * build-aux/announce-gen: When complaining about excess arguments,
87415         list them.
87417 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87419         * README: Document signed integer overflow situation more
87420         accurately.
87422 2007-02-25  Bruno Haible  <bruno@clisp.org>
87424         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
87425         'a' or 'A' conversion.
87427 2007-02-25  Bruno Haible  <bruno@clisp.org>
87429         * modules/filename: Renamed from modules/pathname.
87430         (Files): Replace lib/pathname.h with lib/filename.h. Replace
87431         lib/concatpath.c with lib/concat-filename.c.
87432         (Makefile.am): Update.
87433         (Include): Replace pathname.h with filename.h.
87434         * lib/filename.h: Renamed from lib/pathname.h.
87435         (concatenated_filename): Renamed from concatenated_pathname.
87436         * lib/concat-filename.c: Renamed from lib/concatpath.c.
87437         (concatenated_filename): Renamed from concatenated_pathname.
87438         * lib/findprog.c: Include filename.h instead of pathname.h.
87439         (find_in_path): Update.
87440         * lib/javacomp.c: Include filename.h instead of pathname.h.
87441         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
87442         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
87443         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
87444         is_oldgcj_14_13_usable, is_javac_usable): Update.
87445         * lib/javaexec.c: Include filename.h instead of pathname.h.
87446         (execute_java_class): Update.
87447         * modules/findprog: Update.
87448         * modules/javacomp: Update.
87449         * modules/javaexec: Update.
87450         * MODULES.html.sh (File system functions): Add 'filename', remove
87451         'pathname'.
87453 2007-02-25  Bruno Haible  <bruno@clisp.org>
87455         * modules/printf-frexpl-tests: New file.
87456         * tests/test-printf-frexpl.c: New file.
87458         * modules/printf-frexpl: New file.
87459         * lib/printf-frexpl.h: New file.
87460         * lib/printf-frexpl.c: New file.
87461         * m4/printf-frexpl.m4: New file.
87463 2007-02-25  Bruno Haible  <bruno@clisp.org>
87465         * modules/printf-frexp-tests: New file.
87466         * tests/test-printf-frexp.c: New file.
87468         * modules/printf-frexp: New file.
87469         * lib/printf-frexp.h: New file.
87470         * lib/printf-frexp.c: New file.
87471         * m4/printf-frexp.m4: New file.
87473 2007-02-25  Bruno Haible  <bruno@clisp.org>
87475         Assume automake >= 1.10 for the tests.
87476         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
87477         * modules/arctwo-tests: Likewise.
87478         * modules/argp-tests: Likewise.
87479         * modules/avltree-list-tests: Likewise.
87480         * modules/avltree-oset-tests: Likewise.
87481         * modules/avltreehash-list-tests: Likewise.
87482         * modules/carray-list-tests: Likewise.
87483         * modules/crc-tests: Likewise.
87484         * modules/des-tests: Likewise.
87485         * modules/gc-arcfour-tests: Likewise.
87486         * modules/gc-arctwo-tests: Likewise.
87487         * modules/gc-des-tests: Likewise.
87488         * modules/gc-hmac-md5-tests: Likewise.
87489         * modules/gc-hmac-sha1-tests: Likewise.
87490         * modules/gc-md2-tests: Likewise.
87491         * modules/gc-md4-tests: Likewise.
87492         * modules/gc-md5-tests: Likewise.
87493         * modules/gc-pbkdf2-sha1-tests: Likewise.
87494         * modules/gc-rijndael-tests: Likewise.
87495         * modules/gc-sha1-tests: Likewise.
87496         * modules/gc-tests: Likewise.
87497         * modules/getaddrinfo-tests: Likewise.
87498         * modules/hmac-md5-tests: Likewise.
87499         * modules/hmac-sha1-tests: Likewise.
87500         * modules/linked-list-tests: Likewise.
87501         * modules/linkedhash-list-tests: Likewise.
87502         * modules/lock-tests: Likewise.
87503         * modules/md2-tests: Likewise.
87504         * modules/md4-tests: Likewise.
87505         * modules/md5-tests: Likewise.
87506         * modules/rbtree-list-tests: Likewise.
87507         * modules/rbtree-oset-tests: Likewise.
87508         * modules/rbtreehash-list-tests: Likewise.
87509         * modules/read-file-tests: Likewise.
87510         * modules/rijndael-tests: Likewise.
87511         * modules/stdint-tests: Likewise.
87512         * modules/tls-tests: Likewise.
87514 2007-02-24  Bruno Haible  <bruno@clisp.org>
87516         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
87517         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
87518         function; instead check whether isnan with a double argument links.
87519         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
87520         function; instead check whether isnan with a 'long double' argument
87521         links.
87522         Reported by Eric Blake <ebb9@byu.net>.
87524 2007-02-24  Bruno Haible  <bruno@clisp.org>
87526         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
87527         defined.
87528         * lib/isnanl.c: Remove all code. Just include isnan.c.
87529         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
87531 2007-02-25  Jim Meyering  <jim@meyering.net>
87533         Avoid conflicting types for 'unsetenv' on FreeBSD.
87534         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
87535         conflicting with FreeBSD's (5.0 and 6.1) function declaration
87536         in stdlib.h.
87538 2007-02-24  Bruno Haible  <bruno@clisp.org>
87540         * modules/isnanl-nolibm-tests: New file.
87541         * tests/test-isnanl.c: New file.
87543         * modules/isnanl-nolibm: New file.
87544         * lib/isnanl.h: New file.
87545         * lib/isnanl.c: New file.
87546         * m4/isnanl.m4: New file.
87548 2007-02-24  Bruno Haible  <bruno@clisp.org>
87550         * modules/isnan-nolibm-tests: New file.
87551         * tests/test-isnan.c: New file.
87553         * modules/isnan-nolibm: New file.
87554         * lib/isnan.h: New file.
87555         * lib/isnan.c: New file.
87556         * m4/isnan.m4: New file.
87558 2007-02-24  Bruno Haible  <bruno@clisp.org>
87560         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
87561         assume that an exponent fits in 20 bits.
87563 2007-02-24  Jim Meyering  <jim@meyering.net>
87565         * m4/regex.m4: Update the description of the configure-time option,
87566         --without-included-regex, to state accurately what the defaults are,
87567         and perhaps to give people an idea why using this option is risky.
87569 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
87571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
87572         loops on small arguments.  This attempts to avoid the problem
87573         Bruno Haible reported for AIX 4.3.2 in
87574         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
87576 2007-02-23  Bruno Haible  <bruno@clisp.org>
87578         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
87579         Needed for help2man.
87581 2007-02-23  Karl Berry  <karl@gnu.org>
87583         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
87584         exists, foo.h should be cvs-ignored, not committed.
87586 2007-02-23  Eric Blake  <ebb9@byu.net>
87588         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
87589         * lib/stat-time.h (includes): Likewise.
87590         * lib/utimecmp.c (includes): Likewise.
87591         * lib/utimens.h (includes): Likewise.
87592         * lib/getdate.y (includes): Also include "timespec.h" for use
87593         internal to the module.
87594         * modules/utimens (Depends-on): Revert yesterday's patch.
87595         * modules/nanosleep (Depends-on): Add missing dependency.
87597 2007-02-22  Bruno Haible  <bruno@clisp.org>
87599         * lib/glob.c: Don't include getlogin_r.h.
87601 2007-02-22  Jim Meyering  <jim@meyering.net>
87603         * modules/utimens (Depends-on): Add timespec, required for
87604         utimens.h's inclusion of timespec.h.
87606 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
87608         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
87609         long unreadable paths in GNU/Linux.  Problem reported by Andreas
87610         Schwab in
87611         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
87612         I'll try to think of a better way to fix the Solaris problem.
87614         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
87615         like glibc; on Solaris 10, it fails with errno == EINVAL.
87616         POSIX says the behavior is unspecified if the first argument is NULL,
87617         so play it safe and never pass NULL to the system getcwd.
87619 2007-02-21  Jim Meyering  <jim@meyering.net>
87621         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
87622         of gettimeofday.  It would conflict with the one now always
87623         provided via sys_time_.h.  Reported by Matthew Woehlke, as
87624         an IRIX 6.5 build failure.
87626 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
87628         Minor fixups to port to Solaris 10 with Sun C 5.8.
87629         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
87630         * modules/getcwd (Depends-on): Add dirfd.
87631         * lib/putenv.c (putenv): #undef it.
87632         (rpl_putenv): New decl.
87633         (malloc, free): Include <stdlib.h> rather than prototyping separately.
87635 2007-02-20  Bruno Haible  <bruno@clisp.org>
87637         * modules/stdio-tests: New file.
87638         * tests/test-stdio.c: New file.
87640         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
87641         (Depends-on): Add stdio.
87642         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87643         (Include): Use <stdio.h> instead of vsnprintf.h.
87644         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87645         HAVE_DECL_VSNPRINTF.
87646         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
87648         * modules/snprintf (Files): Remove lib/snprintf.h.
87649         (Depends-on): Add stdio.
87650         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87651         (Include): Use <stdio.h> instead of snprintf.h.
87652         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87653         HAVE_DECL_SNPRINTF.
87654         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
87655         * lib/getaddrinfo.c: Likewise.
87657         * modules/stdio: New file.
87658         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
87659         * lib/snprintf.h: Remove file.
87660         * lib/vsnprintf.h: Remove file.
87661         * lib/.cppi-disable: Remove snprintf.h.
87662         * m4/stdio_h.m4: New file.
87663         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
87665 2007-02-20  Jim Meyering  <jim@meyering.net>
87667         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
87668         used by e.g., mingw.  From Bruno Haible.
87670 2007-02-19  Bruno Haible  <bruno@clisp.org>
87672         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
87673         warnings.
87674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
87676 2007-02-19  Bruno Haible  <bruno@clisp.org>
87678         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
87679         from mingw users.
87681 2007-02-19  Bruno Haible  <bruno@clisp.org>
87683         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
87684         warnings.
87685         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
87687 2007-02-19  Jim Meyering  <jim@meyering.net>
87689         Don't use FD after a successful "fdopendir (fd)".
87690         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
87691         Reset it by calling dirfd on the just-obtained DIR*.
87693         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
87694         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
87696 2007-02-18  Bruno Haible  <bruno@clisp.org>
87698         * lib/readlink.c: Include <unistd.h>.
87699         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
87700         HAVE_READLINK.
87701         * modules/readlink (Depends-on): Add unistd.
87702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87703         (Include): Add <unistd.h>.
87705         * lib/getlogin_r.h: Remove file.
87706         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
87707         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
87708         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
87709         HAVE_DECL_GETLOGIN_R.
87710         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
87711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87712         (Include): Use <unistd.h> instead of getlogin_r.h.
87714         * lib/getcwd.h: Remove file.
87715         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
87716         * lib/xgetcwd.c: Likewise.
87717         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
87718         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
87719         * modules/getcwd (Files): Remove lib/getcwd.h.
87720         (Depends-on): Add unistd.
87721         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87722         (Include): Use <unistd.h> instad of getcwd.h.
87724         * lib/ftruncate.c: Include <unistd.h> first.
87725         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
87726         Set HAVE_FTRUNCATE.
87727         * modules/ftruncate (Depends-on): Add unistd.
87728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87730         * lib/fchdir.c: Include <unistd.h> first.
87731         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
87732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
87733         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
87734         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87735         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
87737         * lib/dup2.c: Include <unistd.h> first.
87738         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
87739         HAVE_DUP2.
87740         * modules/dup2 (Depends-on): Add unistd.
87741         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87743         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
87744         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
87745         REPLACE_CHOWN. Don't define chown as a macro here.
87746         * modules/chown (Depends-on): Add unistd.
87747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87749         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
87750         Add definition for GL_LINK_WARNING.
87751         (chown, dup2): New declarations.
87752         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
87753         link warning.
87754         (ftruncate): New declaration.
87755         (getcwd): New declaration, taken from old getcwd.h.
87756         (getlogin_r): New declaration, taken from old getlogin_r.h.
87757         (readlink): New declaration.
87758         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
87759         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
87760         (gl_PREREQ_UNISTD): Remove macro.
87761         (gl_UNISTD_MODULE_INDICATOR): New macro.
87762         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
87763         many new variables. Don't set UNISTD_H.
87764         * modules/unistd (Description): Change.
87765         (Depends-on): Add link-warning.
87766         (configure.ac): Update.
87767         (Makefile.am): Create unistd.h always. Substitute many new variables
87768         into it.
87770 2007-02-18  Bruno Haible  <bruno@clisp.org>
87772         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
87773         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
87774         HAVE_GETSUBOPT.
87775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
87776         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
87777         * lib/getsubopt.h: Remove file.
87778         * modules/getsubopt (Files): Remove lib/getsubopt.h.
87779         (Depends-on): Add stdlib.
87780         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87781         (Includes): Use <stdlib.h> instead of getsubopt.h.
87782         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
87783         Set HAVE_GETSUBOPT.
87784         * lib/getsubopt.c: Don't include getsubopt.h.
87786 2007-02-18  Bruno Haible  <bruno@clisp.org>
87788         * modules/fchdir (Depends-on): Add dup2.
87790 2007-02-18  Bruno Haible  <bruno@clisp.org>
87792         * lib/stdlib_.h: Handle glibc's special invocation convention
87793         specially.
87795 2007-02-18  Bruno Haible  <bruno@clisp.org>
87797         * modules/stdlib-tests: New file.
87798         * tests/test-stdlib.c: New file.
87800         * modules/mkstemp (Files): Remove lib/mkstemp.h.
87801         (Depends-on): Add stdlib.
87802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87803         (Includes): Use <stdlib.h> instead of mkstemp.h.
87804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87805         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
87806         * lib/mkstemp.c: Don't include mkstemp.h.
87807         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
87808         * lib/stdlib--.h: Don't include mkstemp.h.
87810         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
87811         (Depends-on): Add stdlib.
87812         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87813         (Includes): Use <stdlib.h> instead of mkdtemp.h.
87814         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87815         HAVE_MKDTEMP.
87816         * lib/mkdtemp.c: Don't include mkdtemp.h.
87817         * lib/clean-temp.c: Don't include mkdtemp.h.
87819         * modules/exit (Files): Remove lib/exit.h.
87820         (Depends-on): Add stdlib.
87821         (Makefile.am): Remove lib_SOURCES.
87822         (Include): Use <stdlib.h> instead of exit.h.
87823         * lib/argmatch.c: Don't include exit.h.
87824         * lib/execute.c: Likewise.
87825         * lib/pagealign_alloc.c: Likewise.
87826         * lib/pipe.c: Likewise.
87827         * lib/wait-process.c: Likewise.
87828         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
87829         * lib/exitfail.c: Likewise.
87830         * lib/savewd.c: Likewise.
87831         * lib/xsetenv.c: Likewise.
87833         * modules/stdlib: New file.
87834         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
87835         and extra comments about mkstemp().
87836         * lib/exit.h: Remove file.
87837         * lib/mkdtemp.h: Remove file.
87838         * lib/mkstemp.h: Remove file.
87839         * m4/stdlib_h.m4: New file.
87840         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
87842 2007-02-18  Bruno Haible  <bruno@clisp.org>
87844         * modules/math-tests: New file.
87845         * tests/test-math.c: New file.
87847         * modules/math: New file.
87848         * modules/mathl (Files): Remove lib/mathl.h.
87849         (Depends-on): Add math.
87850         (Makefile.am): Don't mention mathl.h.
87851         (Include): Use <math.h> instead of mathl.h.
87852         * lib/math_.h: New file.
87853         * lib/mathl.h: Remove file.
87854         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
87855         mathl.h.
87856         * lib/asinl.c: Likewise.
87857         * lib/atanl.c: Likewise.
87858         * lib/ceill.c: Likewise.
87859         * lib/cosl.c: Likewise.
87860         * lib/expl.c: Likewise.
87861         * lib/floorl.c: Likewise.
87862         * lib/frexpl.c: Likewise.
87863         * lib/ldexpl.c: Likewise.
87864         * lib/logl.c: Likewise.
87865         * lib/sincosl.c: Likewise.
87866         * lib/sinl.c: Likewise.
87867         * lib/sqrtl.c: Likewise.
87868         * lib/tanl.c: Likewise.
87869         * lib/trigl.c: Likewise.
87870         * m4/math_h.m4: New file.
87871         * MODULES.html.sh (Mathematics): Add math.
87873 2007-02-17  Bruno Haible  <bruno@clisp.org>
87875         * modules/wctype-tests: New file.
87876         * tests/test-wctype.c: New file.
87878         * modules/wchar-tests: New file.
87879         * tests/test-wchar.c: New file.
87881         * modules/unistd-tests: New file.
87882         * tests/test-unistd.c: New file.
87884         * modules/time-tests: New file.
87885         * tests/test-time.c: New file.
87887         * modules/sysexits-tests: New file.
87888         * tests/test-sysexits.c: New file.
87890         * modules/sys_time-tests: New file.
87891         * tests/test-sys_time.c: New file.
87893         * modules/sys_stat-tests: New file.
87894         * tests/test-sys_stat.c: New file.
87896         * modules/sys_socket-tests: New file.
87897         * tests/test-sys_socket.c: New file.
87899         * modules/sys_select-tests: New file.
87900         * tests/test-sys_select.c: New file.
87902         * modules/string-tests: New file.
87903         * tests/test-string.c: New file.
87905         * modules/stdbool-tests: New file.
87906         * tests/test-stdbool.c: New file.
87908         * modules/netinet_in-tests: New file.
87909         * tests/test-netinet_in.c: New file.
87911         * modules/inttypes-tests: New file.
87912         * tests/test-inttypes.c: New file.
87914         * modules/fcntl-tests: New file.
87915         * tests/test-fcntl.c: New file.
87917         * modules/byteswap-tests: New file.
87918         * tests/test-byteswap.c: New file.
87920         * modules/arpa_inet-tests: New file.
87921         * tests/test-arpa_inet.c: New file.
87923 2007-02-17  Bruno Haible  <bruno@clisp.org>
87925         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
87926         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
87927         if the corresponding module is not enabled. Emit link warnings if
87928         the function is used nevertheless.
87929         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
87930         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
87931         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
87932         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
87933         * modules/inttypes (Depends-on): Add link-warning.
87934         (Makefile.am): Copy the contents of build-aux/link-warning.h into
87935         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
87936         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
87937         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
87938         * modules/imaxdiv (configure.ac): Likewise.
87939         * modules/strtoimax (configure.ac): Likewise.
87940         * modules/strtoumax (configure.ac): Likewise.
87942 2007-02-17  Bruno Haible  <bruno@clisp.org>
87944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
87945         gl_STRING_MODULE_INDICATOR_DEFAULTS.
87946         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
87947         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
87949 2007-02-17  Bruno Haible  <bruno@clisp.org>
87951         * modules/link-warning: New file.
87952         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
87953         * lib/string_.h (GL_LINK_WARNING): Remove definition.
87954         * modules/string (Depends-on): Add link-warning.
87955         (Makefile.am): Copy the contents of build-aux/link-warning.h into
87956         string.h.
87957         * MODULES.html.sh (Support for building libraries and executables): Add
87958         link-warning.
87960 2007-02-17  Bruno Haible  <bruno@clisp.org>
87962         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
87963         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
87964         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
87965         long lines.
87967 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
87968             Bruno Haible  <bruno@clisp.org>
87970         * modules/tmpfile: New file.
87971         * lib/tmpfile.c: New file.
87972         * m4/tmpfile.m4: New file.
87973         * MODULES.html.sh (func_all_modules): New section "Input/output".
87975 2007-02-15  Bruno Haible  <bruno@clisp.org>
87977         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
87978         (supports_delete_on_close): New function.
87979         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
87981 2007-02-14  Bruno Haible  <bruno@clisp.org>
87983         * modules/mbspcasecmp-tests: New file.
87984         * tests/test-mbspcasecmp.sh: New file.
87985         * tests/test-mbspcasecmp.c: New file.
87987         New module mbspcasecmp.
87988         * modules/mbspcasecmp: New file.
87989         * lib/mbspcasecmp.c: New file.
87990         * lib/string_.h (strncasecmp): Change warning message.
87991         (mbspcasecmp): New declaration.
87992         * m4/mbspcasecmp.m4: New file.
87993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87994         GNULIB_MBSPCASECMP.
87995         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
87996         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
87998 2007-02-14  Bruno Haible  <bruno@clisp.org>
88000         * modules/mbsncasecmp-tests: New file.
88001         * tests/test-mbsncasecmp.sh: New file.
88002         * tests/test-mbsncasecmp.c: New file.
88004         New module mbsncasecmp.
88005         * modules/mbsncasecmp: New file.
88006         * lib/mbsncasecmp.c: New file.
88007         * lib/string_.h (mbsncasecmp): New declaration.
88008         * m4/mbsncasecmp.m4: New file.
88009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88010         GNULIB_MBSNCASECMP.
88011         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
88012         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
88014 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
88016         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
88017         Verify that it doesn't overlap with our flags.
88018         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
88019         do not have the desired effect in multibyte locales; instead, use
88020         mbscasecmp.
88021         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
88022         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
88023         we don't require GNU fnmatch ourselves (if our users require it, they
88024         should do so explicitly).
88026         Fix regex code so it doesn't rely on strcasecmp.
88027         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
88028         Otherwise, include gnulib's langinfo.h.
88029         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
88030         undesirable behavior in non-C locales.  Instead, rely on localecharset.
88031         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
88032         * modules/regex (FILES): Remove m4/codeset.m4.
88033         (Depends-on): Add localcharset.  Remove strcase.
88035 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88037         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
88038         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
88040 2007-02-13  Bruno Haible  <bruno@clisp.org>
88042         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
88043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88045 2007-02-12  Bruno Haible  <bruno@clisp.org>
88047         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88048         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
88049         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
88050         time warning rather than a link error.
88052 2007-02-12  Bruno Haible  <bruno@clisp.org>
88054         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
88055         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
88056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88058 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88060         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
88061         args, not 2.
88063 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88065         New module 'time', so that apps can include <time.h> as per
88066         POSIX and GNU instead of separate include files like time_r.h
88067         and timegm.h.  This implementation tries out a simpler approach
88068         for replacing decls in standard include files (as compared to
88069         the string module), somewhat as an experiment.
88071         * config/srclist.txt: Comment out mktime.c for now.
88072         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
88073         since it doesn't apply any more.  Use generic wording instead.
88074         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
88075         'time'.
88076         * lib/time_.h, m4/time_h.m4, modules/time: New files.
88077         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
88078         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
88079         Don't include <sys/types.h>; no longer needed since we assume C89.
88080         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
88081         * lib/strftime.c: Likewise.
88082         * lib/time_r.c: Likewise.
88083         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
88084         * lib/nanosleep.c: Include <time.h> first, to check interface.
88085         * lib/strptime.c: Likewise.
88086         * lib/time_r.c: Likewise.
88087         * lib/timegm.c: Likewise.
88088         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
88089         needed.
88090         * lib/timegm.c: Don't include timegm.h; no longer needed.
88091         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
88092         time.h now handles any problems in that area.
88093         (struct timespec, nanosleep): Remove; time.h now arranges for these.
88094         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
88095         that time.h defines struct timespec.
88096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
88097         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
88098         handles that.
88099         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
88100         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
88101         needed.  Set REPLACE_LOCALTIME.
88102         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
88103         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
88104         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
88105         nanosleep; time_h.m4 now does that.  Don't require
88106         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
88107         module handles this now.
88108         * modules/getdate (Depends-on): Remove timespec.  Add time.
88109         * modules/nanosleep (Depends-on): Likewise.
88110         * modules/stat-time (Depends-on): Likewise.
88111         * modules/nanosleep (Include): Include time.h, not timespec.h.
88112         * modules/strptime (Files): Remove lib/strptime.h.
88113         (Depends-on): Add extensions, time.
88114         (Include): Include time.h, not strptime.h.
88115         * modules/time_r (Files): Remove lib/time_r.h.
88116         (Depends-on): Add time.
88117         (Include): Include time.h, not time_r.h.
88118         * modules/timegm: Likewise.
88119         * modules/timespec (Description): Now does timespec-related decls
88120         of our own, instead of struct timespec itself.
88121         (Depends-on): Add time; remove extensions.
88122         (Maintainer): Add self.
88123         * modules/utimecmp (Depends-on): Add time; remove timespec.
88124         * modules/utimens (Depends-on): Likewise.
88125         * modules/xnanosleep (Depends-on): Likewise.
88127 2007-02-11  Bruno Haible  <bruno@clisp.org>
88129         * lib/c-strstr.c: Include allocsa.h.
88130         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88131         * lib/c-strcasestr.c: Include allocsa.h.
88132         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88133         * lib/strcasestr.c: Include allocsa.h.
88134         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88135         * lib/mbsstr.c: Include allocsa.h.
88136         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88137         allocsa/freesa instead of malloc/free.
88138         * lib/mbscasestr.c: Include allocsa.h.
88139         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88140         allocsa/freesa instead of malloc/free.
88141         * modules/c-strstr (Depends-on): Add allocsa.
88142         * modules/c-strcasestr (Depends-on): Likewise.
88143         * modules/strcasestr (Depends-on): Likewise.
88144         * modules/mbsstr (Depends-on): Likewise.
88145         * modules/mbscasestr (Depends-on): Likewise.
88147 2007-02-11  Bruno Haible  <bruno@clisp.org>
88149         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
88151         * modules/mbsspn-tests: New file.
88152         * tests/test-mbsspn.sh: New file.
88153         * tests/test-mbsspn.c: New file.
88155 2007-02-11  Bruno Haible  <bruno@clisp.org>
88157         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
88159         * modules/mbspbrk-tests: New file.
88160         * tests/test-mbspbrk.sh: New file.
88161         * tests/test-mbspbrk.c: New file.
88163 2007-02-11  Bruno Haible  <bruno@clisp.org>
88165         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
88166         unneeded cast.
88168         * modules/mbscspn-tests: New file.
88169         * tests/test-mbscspn.sh: New file.
88170         * tests/test-mbscspn.c: New file.
88172 2007-02-11  Bruno Haible  <bruno@clisp.org>
88174         * modules/mbscasecmp-tests: New file.
88175         * tests/test-mbscasecmp.sh: New file.
88176         * tests/test-mbscasecmp.c: New file.
88178 2007-02-11  Bruno Haible  <bruno@clisp.org>
88180         Ensure O(n) worst-case complexity of mbscasestr.
88181         * lib/mbscasestr.c: Include stdbool.h.
88182         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88183         functions.
88184         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
88185         the bookkeeping indicates that it's worth it.
88186         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
88188         * modules/mbscasestr-tests: New file.
88189         * tests/test-mbscasestr1.c: New file.
88190         * tests/test-mbscasestr2.sh: New file.
88191         * tests/test-mbscasestr2.c: New file.
88192         * tests/test-mbscasestr3.sh: New file.
88193         * tests/test-mbscasestr3.c: New file.
88194         * tests/test-mbscasestr4.sh: New file.
88195         * tests/test-mbscasestr4.c: New file.
88196         * m4/locale-tr.m4: New file.
88198 2007-02-11  Bruno Haible  <bruno@clisp.org>
88200         Ensure O(n) worst-case complexity of mbsstr.
88201         * lib/mbsstr.c: Include stdbool.h.
88202         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88203         functions.
88204         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
88205         bookkeeping indicates that it's worth it.
88206         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
88208         * modules/mbsstr-tests: New file.
88209         * tests/test-mbsstr1.c: New file.
88210         * tests/test-mbsstr2.sh: New file.
88211         * tests/test-mbsstr2.c: New file.
88212         * tests/test-mbsstr3.sh: New file.
88213         * tests/test-mbsstr3.c: New file.
88214         * m4/locale-fr.m4: New file.
88216 2007-02-11  Bruno Haible  <bruno@clisp.org>
88218         * lib/mbsrchr.c (mbsrchr): Fix bug.
88220         * modules/mbsrchr-tests: New file.
88221         * tests/test-mbsrchr.sh: New file.
88222         * tests/test-mbsrchr.c: New file.
88224 2007-02-11  Bruno Haible  <bruno@clisp.org>
88226         * lib/mbschr.c (mbschr): Fix bug.
88228         * modules/mbschr-tests: New file.
88229         * tests/test-mbschr.sh: New file.
88230         * tests/test-mbschr.c: New file.
88231         * m4/locale-zh.m4: New file.
88233 2007-02-11  Bruno Haible  <bruno@clisp.org>
88235         Support for copying multibyte string iterators.
88236         * lib/mbiter.h: Include <string.h>.
88237         (mbiter_multi_copy): New function.
88238         (mbi_copy): New macro.
88239         * lib/mbuiter.h: Include <string.h>.
88240         (mbuiter_multi_copy): New function.
88241         (mbui_copy): New macro.
88243 2007-02-11  Bruno Haible  <bruno@clisp.org>
88245         New module mbslen.
88246         * modules/mbslen: New file.
88247         * lib/mbslen.c: New file.
88248         * lib/string_.h (mbslen): New declaration.
88249         * m4/mbslen.m4: New file.
88250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88251         GNULIB_MBSLEN.
88252         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
88253         * MODULES.html.sh (Internationalization functions): Add mbslen.
88255 2007-02-11  Bruno Haible  <bruno@clisp.org>
88257         Ensure O(n) worst-case complexity of strcasestr substitute.
88258         * lib/strcasestr.c: Include stdbool.h.
88259         (knuth_morris_pratt): New function.
88260         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88261         bookkeeping indicates that it's worth it.
88262         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
88264         * modules/strcasestr-tests: New file.
88265         * tests/test-strcasestr.c: New file.
88267 2007-02-11  Bruno Haible  <bruno@clisp.org>
88269         Ensure O(n) worst-case complexity of c_strcasestr.
88270         * lib/c-strcasestr.c: Include stdbool.h, string.h.
88271         (knuth_morris_pratt): New function.
88272         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
88273         the bookkeeping indicates that it's worth it.
88274         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
88276         * modules/c-strcasestr-tests: New file.
88277         * tests/test-c-strcasestr.c: New file.
88279 2007-02-11  Bruno Haible  <bruno@clisp.org>
88281         Ensure O(n) worst-case complexity of c_strstr.
88282         * lib/c-strstr.c: Include stdbool.h, string.h.
88283         (knuth_morris_pratt): New function.
88284         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88285         bookkeeping indicates that it's worth it.
88286         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
88288         * lib/c-strstr.c: Complete rewrite for maintainability.
88290         * modules/c-strstr-tests: New file.
88291         * tests/test-c-strstr.c: New file.
88293 2007-02-11  Bruno Haible  <bruno@clisp.org>
88295         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
88296         5.2.1 and earlier, whereby \055 was treated just like the range
88297         delimiter '-'.
88298         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88300 2007-02-08  Bruno Haible  <bruno@clisp.org>
88302         * modules/regex (Depends-on): Add stdbool.
88303         Reported by Dalibor Topic <robilad@kaffe.org>.
88305 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
88307         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
88308         Prefer returning from main to exiting from it.
88309         Remove unnecessary parens after sizeof.
88311 2007-02-05  Bruno Haible  <bruno@clisp.org>
88313         New module mbssep.
88314         * modules/mbssep: New file.
88315         * lib/mbssep.c: New file.
88316         * lib/string_.h (strsep): Add a conditional link warning.
88317         (mbssep): New declaration.
88318         * m4/mbssep.m4: New file.
88319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88320         GNULIB_MBSSEP.
88321         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
88322         * MODULES.html.sh (Internationalization functions): Add mbssep.
88324 2007-02-05  Bruno Haible  <bruno@clisp.org>
88326         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
88327         Optimize search in case of 1 delimiter.
88329 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
88331         * lib/acl.h: Include sys/types.h before sys/acl.h.
88333 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
88335         Merge upstream fix for glibc bugzilla #3957:
88337         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
88339         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
88340         bit for RE_HAT_LISTS_NOT_NEWLINE.
88341         (build_charclass_op): Remove bogus comment.
88343 2007-02-05  Simon Josefsson  <simon@josefsson.org>
88345         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
88347 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88349         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
88350         * lib/memmem.c [!defined _LIBC]: Include config.h.
88352 2007-02-04  Bruno Haible  <bruno@clisp.org>
88354         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
88355         warning message.
88357 2007-02-04  Bruno Haible  <bruno@clisp.org>
88359         New module mbstok_r.
88360         * modules/mbstok_r: New file.
88361         * lib/mbstok_r.c: New file.
88362         * lib/string_.h (strtok_r): Change argument names to match the
88363         comments. Add a conditional link warning.
88364         (mbstok_r): New declaration.
88365         * m4/mbstok_r.m4: New file.
88366         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88367         GNULIB_MBSTOK_R.
88368         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
88369         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
88371 2007-02-04  Bruno Haible  <bruno@clisp.org>
88373         New module mbsspn.
88374         * modules/mbsspn: New file.
88375         * lib/mbsspn.c: New file.
88376         * lib/string_.h (strspn): Add a conditional link warning.
88377         (mbsspn): New declaration.
88378         * m4/mbsspn.m4: New file.
88379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88380         GNULIB_MBSSPN.
88381         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
88382         * MODULES.html.sh (Internationalization functions): Add mbsspn.
88384 2007-02-04  Bruno Haible  <bruno@clisp.org>
88386         New module mbspbrk.
88387         * modules/mbspbrk: New file.
88388         * lib/mbspbrk.c: New file.
88389         * lib/string_.h (strpbrk): Add a conditional link warning.
88390         (mbspbrk): New declaration.
88391         * m4/mbspbrk.m4: New file.
88392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88393         GNULIB_MBSPBRK.
88394         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
88395         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
88397 2007-02-04  Bruno Haible  <bruno@clisp.org>
88399         New module mbscspn.
88400         * modules/mbscspn: New file.
88401         * lib/mbscspn.c: New file.
88402         * lib/string_.h (strcspn): Add a conditional link warning.
88403         (mbscspn): New declaration.
88404         * m4/mbscspn.m4: New file.
88405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88406         GNULIB_MBSCSPN.
88407         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
88408         * MODULES.html.sh (Internationalization functions): Add mbscspn.
88410 2007-02-04  Bruno Haible  <bruno@clisp.org>
88412         New module mbscasestr, reduced goal of strcasestr.
88413         * modules/mbscasestr: New file.
88414         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
88415         (mbscasestr): Renamed from strcasestr.
88416         * lib/strcasestr.c: Don't include mbuiter.h.
88417         (strcasestr): Remove support for multibyte locales.
88418         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
88419         Change the conditional link warning.
88420         (mbscasestr): New declaration.
88421         * m4/mbscasestr.m4: New file.
88422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
88423         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
88424         REPLACE_STRCASESTR.
88425         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
88426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88427         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
88428         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
88429         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
88430         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
88431         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
88432         (Depends-on): Remove mbuiter.
88433         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
88435 2007-02-04  Bruno Haible  <bruno@clisp.org>
88437         Simplify handling of strncasecmp.
88438         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
88439         the conditional link warning.
88440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88441         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
88442         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
88443         * modules/strcase (configure.ac): Don't invoke
88444         gl_STRING_MODULE_INDICATOR.
88445         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
88447 2007-02-04  Bruno Haible  <bruno@clisp.org>
88449         New module mbscasecmp, reduced goal of strcasecmp.
88450         * modules/mbscasecmp: New file.
88451         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
88452         (mbscasecmp): Renamed from strcasecmp.
88453         * lib/strcasecmp.c: Don't include mbuiter.h.
88454         (strcasecmp): Remove support for multibyte locales.
88455         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
88456         Change the conditional link warning.
88457         (mbscasecmp): New declaration.
88458         * m4/mbscasecmp.m4: New file.
88459         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
88460         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
88461         REPLACE_STRCASECMP.
88462         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
88463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88464         GNULIB_MBSCASECMP.
88465         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
88466         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
88467         * modules/strcase (Files): Remove m4/mbrtowc.m4.
88468         (Depends-on): Remove mbuiter.
88469         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
88471 2007-02-04  Bruno Haible  <bruno@clisp.org>
88473         New module mbsstr. Remove module strstr.
88474         * modules/mbsstr: New file.
88475         * modules/strstr: Remove file.
88476         * lib/mbsstr.c: Renamed from lib/strstr.c.
88477         (mbsstr): Renamed from strstr.
88478         * lib/string_.h (strstr): Remove declaration. Change the conditional
88479         link warning.
88480         (mbsstr): New declaration.
88481         * m4/mbsstr.m4: New file.
88482         * m4/strstr.m4: Remove file.
88483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
88484         REPLACE_STRSTR.
88485         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
88486         Don't initialize GNULIB_STRSTR.
88487         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
88488         substitute GNULIB_STRSTR and REPLACE_STRSTR.
88489         * MODULES.html.sh (Internationalization functions): Add mbsstr.
88490         (Support for systems lacking ANSI C 89): Remove strstr.
88492 2007-02-04  Bruno Haible  <bruno@clisp.org>
88494         New module mbsrchr.
88495         * modules/mbsrchr: New file.
88496         * lib/mbsrchr.c: New file.
88497         * lib/string_.h (strrchr): Add a conditional link warning.
88498         (mbsrchr): New declaration.
88499         * m4/mbsrchr.m4: New file.
88500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88501         GNULIB_MBSRCHR.
88502         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
88503         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
88505 2007-02-04  Bruno Haible  <bruno@clisp.org>
88507         New module mbschr.
88508         * modules/mbschr: New file.
88509         * lib/mbschr.c: New file.
88510         * lib/string_.h (strchr): Add a conditional link warning.
88511         (mbschr): New declaration.
88512         * m4/mbschr.m4: New file.
88513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88514         GNULIB_MBSCHR.
88515         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
88516         * MODULES.html.sh (Internationalization functions): Add mbschr.
88518 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88520         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
88522         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
88524 2007-02-04  Bruno Haible  <bruno@clisp.org>
88526         New module description section 'configure.ac-early'.
88527         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
88528         (func_get_autoconf_early_snippet): New function.
88529         (func_import, func_create_testdir): Use it. Remove special cases for
88530         modules 'extensions' and 'lock'.
88531         * modules/extensions (configure.ac-early): Require
88532         gl_USE_SYSTEM_EXTENSIONS.
88533         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
88535 2007-02-04  Bruno Haible  <bruno@clisp.org>
88537         Make use of gcj-4.3's -fsource and -ftarget option.
88538         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
88539         and if so try the options -fsource and -ftarget.
88540         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
88541         source_version, ftarget_option, target_version arguments.
88542         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
88543         (is_envjavac_oldgcj_14_14_usable): Renamed from
88544         is_envjavac_gcj_14_14_usable.
88545         (is_envjavac_oldgcj_14_13_usable): Renamed from
88546         is_envjavac_gcj_14_13_usable.
88547         (is_gcj_present): Update.
88548         (is_gcj_43, is_gcj43_usable): New functions.
88549         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
88550         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
88551         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
88552         try the options -fsource and -ftarget.
88554 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88556         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
88557         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
88558         larger value.
88560 2007-02-03  Jim Meyering  <jim@meyering.net>
88562         Give tools a better chance to allocate space for very large buffers.
88563         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
88565         Make pwd and readlink work also when run with an unreadable parent dir
88566         on systems with openat support.
88567         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
88568         provided getcwd function, even when we have openat support.
88569         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
88571 2007-02-02  Bruno Haible  <bruno@clisp.org>
88573         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88574         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
88575         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
88576         portability problems if one of these functions is only used on specific
88577         platforms.
88578         Reported by Paul Eggert.
88580 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
88582         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
88583         is causing more trouble than it's curing.
88584         * lib/regex_internal.h (__mempcpy): Remove.
88585         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
88586         (and make the code a tad smaller to boot).
88587         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
88589 2007-02-02  Jim Meyering  <jim@meyering.net>
88591         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
88592         section, not in the Makefile.am: one.
88594 2007-02-02  Eric Blake  <ebb9@byu.net>
88596         * lib/strchrnul.c: Always include config.h first.
88598         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
88599         gnulib strstr is not necessary here.
88601 2007-02-02  Simon Josefsson  <simon@josefsson.org>
88603         * m4/socklen.m4: Fix typo.
88605 2007-02-02  Eric Blake  <ebb9@byu.net>
88607         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
88608         * modules/netinet_in (Makefile.am): Likewise.
88610 2007-02-01  Bruno Haible  <bruno@clisp.org>
88612         * lib/string_.h (GL_LINK_WARNING): New macro.
88613         (strcasecmp, strstr, strcasestr): If provided by the system,
88614         conditionally define as a macro that leads to a warning instead of to
88615         an error.
88616         (strncasecmp): Conditionally define as a macro that leads to a warning.
88618 2007-02-01  Karl Berry  <karl@gnu.org>
88620         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
88622 2007-02-01  Bruno Haible  <bruno@clisp.org>
88624         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
88625         renamings.
88627 2007-02-01  Eric Blake  <ebb9@byu.net>
88629         * modules/regex (Depends-on): Revert dependence on mempcpy.
88630         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
88631         module's definition of mempcpy.
88632         Reported by Paul Eggert.
88634 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88636         * lib/string_.h: If the gnulib module XYZ is not present, undefine
88637         the symbol XYZ before redefining it.  This fixes a problem with
88638         programs that don't use XYZ, when compiled on systems that define
88639         XYZ to something else.
88641 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
88643         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
88644         occurs when "mkdir -m foo" creates a setgid directory that is (1)
88645         writeable to group or other and (2) is intended to have a special
88646         mode bit that is set or cleared.  In such a case, the directory
88647         should be neither group- nor other-writeable until the special
88648         mode bits are right.
88650 2007-01-31  Eric Blake  <ebb9@byu.net>
88652         * modules/mountlist (Depends-on): Add strstr.
88654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
88655         bug.
88656         * modules/string (Makefile.am): Remove redundant replacement.
88657         * modules/regex (Depends-on): Add mempcpy.
88659 2007-01-31  Bruno Haible  <bruno@clisp.org>
88661         New module description field 'Link'.
88662         * gnulib-tool (func_usage): Document --extract-link-directive.
88663         (sed_extract_prog): Recognize 'Link' directive.
88664         (func_get_link_directive): New function.
88665         (func_import): Show summary of link directives.
88666         Handle --extract-link-directive option.
88667         * modules/acl (Link): New section.
88668         * modules/clock-time (Link): New section.
88669         * modules/euidaccess (Link): New section.
88670         * modules/gettext (Link): New section.
88671         * modules/iconv (Link): New section.
88672         * modules/lock (Link): New section.
88673         * modules/nanosleep (Link): New section.
88674         * modules/readline (Link): New section.
88676 2007-01-27  Bruno Haible  <bruno@clisp.org>
88678         Enforce the use of gnulib modules for unportable <string.h> functions.
88679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
88680         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
88681         (gl_HEADER_STRING_H_BODY): Require it.
88682         * lib/string_.h: If the gnulib module XYZ is not present, redefine
88683         the symbol XYZ to one that gives a link error.
88684         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
88685         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
88686         * modules/mempcpy (configure.ac): Likewise.
88687         * modules/memrchr (configure.ac): Likewise.
88688         * modules/stpcpy (configure.ac): Likewise.
88689         * modules/stpncpy (configure.ac): Likewise.
88690         * modules/strcase (configure.ac): Likewise.
88691         * modules/strcasestr (configure.ac): Likewise.
88692         * modules/strchrnul (configure.ac): Likewise.
88693         * modules/strdup (configure.ac): Likewise.
88694         * modules/strndup (configure.ac): Likewise.
88695         * modules/strnlen (configure.ac): Likewise.
88696         * modules/strpbrk (configure.ac): Likewise.
88697         * modules/strsep (configure.ac): Likewise.
88698         * modules/strstr (configure.ac): Likewise.
88699         * modules/strtok_r (configure.ac): Likewise.
88701 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
88703         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
88705 2007-01-30  Jim Meyering  <jim@meyering.net>
88707         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
88709 2007-01-29  Bruno Haible  <bruno@clisp.org>
88711         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
88712         * lib/execute.c: Likewise.
88713         * lib/pipe.c: Likewise.
88714         * lib/printf-args.h: Likewise.
88715         * lib/printf-args.c: Likewise.
88716         * lib/printf-parse.c: Likewise.
88717         * lib/vasnprintf.c: Likewise.
88719 2007-01-29  Eric Blake  <ebb9@byu.net>
88721         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
88722         declaration.
88724 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
88726         * lib/strptime.h (strptime): Use 'restrict' for args where
88727         POSIX requires this.
88728         * lib/strptime.c (strptime): Likewise.
88729         Change license notice from LGPL to GPL, since gnulib-tool will
88730         change this as needed.
88731         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
88732         defined.
88733         Include "strptime.h" first, to check interface.
88734         Do not #undef _LIBC and _NL_CURRENT.
88735         Do not include <stdlib.h>; no longer needed.
88736         Include "time_r.h" and declare ptime_locale_status
88737         only if _LIBC is not defined.
88738         (__P): Remove unused macro.
88739         (match_string): Bring back glibc version, but use it only if _LIBC
88740         is defined.
88741         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
88742         Remove unnecessary assertion and abort() call.
88743         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
88744         * m4/strptime.m4: Fix serial number comment.
88745         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
88746         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
88747         (Depends-on): Add time_r.
88749 2007-01-29  Bruno Haible  <bruno@clisp.org>
88751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88752         strptime.
88753         * modules/strptime (Depends-on): Add stdbool.
88754         * lib/strptime.h: Include <time.h> always. Add comments.
88756 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88758         * modules/strptime: New file.
88759         * lib/strptime.h: New file.
88760         * lib/strptime.c: New file.
88761         * m4/strptime.m4: New file.
88763 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88765         * MODULES.html.sh: New module mpsort.
88766         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
88768         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
88769         a circularity problem with HP-UX ia64 reported by Bob Proulx in
88770         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
88771         All uses changed.
88772         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
88773         All uses changed.
88774         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
88775         to _Restrict_.
88776         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
88777         the parameter matches the prototype.
88779 2007-01-28  Jim Meyering  <jim@meyering.net>
88781         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
88782         sys/time.h here, reverting that part of the previous patch:
88783         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
88785 2007-01-28  Bruno Haible  <bruno@clisp.org>
88787         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
88788         value of $(SYS_TIME_H).
88789         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
88790         remove it conditionally, too. [added by Jim Meyering]
88791         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
88792         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
88793         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
88794         GETTIMEOFDAY_REPLACEMENT to 1.
88796 2007-01-28  Bruno Haible  <bruno@clisp.org>
88798         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
88799         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
88800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
88801         Set UNISTD_H instead of UNISTD_H2.
88802         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
88804 2007-01-28  Bruno Haible  <bruno@clisp.org>
88806         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
88807         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
88809 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88811         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
88812         (func_create_testdir): Ensure C locale for `grep' and `tr'
88813         character ranges.
88814         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
88815         ACLOCAL_AMFLAGS parsing state machine.
88817 2007-01-27  Bruno Haible  <bruno@clisp.org>
88819         * modules/unistr/base: Update.
88821 2007-01-27  Bruno Haible  <bruno@clisp.org>
88823         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
88824         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
88825         * modules/unistr/u32-mbtouc-unsafe: Renamed from
88826         modules/unistr/u32-mbtouc.
88827         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
88828         * lib/unistr.h: Update.
88829         * lib/linebreak.c: Update.
88830         * modules/unistr/u32-mbtouc: Renamed from
88831         modules/unistr/u32-mbtouc-safe.
88832         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
88833         * lib/unistr.h: Update.
88834         * lib/unistr/u32-to-u8.c: Update.
88835         * lib/unistr/u32-to-u16.c: Update.
88837 2007-01-27  Bruno Haible  <bruno@clisp.org>
88839         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
88840         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
88841         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
88842         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
88843         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
88844         * modules/unistr/u16-mbtouc-unsafe: Renamed from
88845         modules/unistr/u16-mbtouc.
88846         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
88847         * lib/unistr.h: Update.
88848         * lib/linebreak.c: Update.
88849         * modules/linebreak: Update.
88850         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
88851         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
88852         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
88853         * modules/unistr/u16-mbtouc: Renamed from
88854         modules/unistr/u16-mbtouc-safe.
88855         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
88856         * lib/unistr.h: Update.
88857         * lib/unistr/u16-to-u8.c: Update.
88858         * modules/unistr/u16-to-u8: Update.
88859         * lib/unistr/u16-to-u32.c: Update.
88860         * modules/unistr/u16-to-u32: Update.
88862 2007-01-27  Bruno Haible  <bruno@clisp.org>
88864         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
88865         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
88866         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
88867         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
88868         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
88869         * modules/unistr/u8-mbtouc-unsafe: Renamed from
88870         modules/unistr/u8-mbtouc.
88871         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
88872         * lib/unistr.h: Update.
88873         * lib/striconveh.c: Update.
88874         * modules/striconveh: Update.
88875         * lib/linebreak.c: Update.
88876         * modules/linebreak: Update.
88877         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
88878         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
88879         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
88880         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
88881         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
88882         * lib/unistr.h: Update.
88883         * lib/striconveh.c: Update.
88884         * modules/striconveh: Update.
88885         * lib/unistr/u8-to-u16.c: Update.
88886         * modules/unistr/u8-to-u16: Update.
88887         * lib/unistr/u8-to-u32.c: Update.
88888         * modules/unistr/u8-to-u32: Update.
88890 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88892         Sync from Libtool.
88893         * lib/argz.c: Do not include strings.h nor memory.h, include
88894         string.h unconditionally.  Patch by Simon Josefsson.
88896 2007-01-27  Bruno Haible  <bruno@clisp.org>
88898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
88899         from gl_HEADER_STRING_H_BODY.
88900         (gl_HEADER_STRING_H_BODY): Require it.
88901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
88902         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
88903         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
88904         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
88905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88906         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
88907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88908         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
88909         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
88910         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
88911         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
88912         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
88913         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
88914         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88915         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88917 2007-01-27  Bruno Haible  <bruno@clisp.org>
88919         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
88920         check_PROGRAMS into noinst_PROGRAMS.
88921         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
88922         check_PROGRAMS in this case.
88923         (func_import): Set for_test to false.
88924         (func_create_testdir): Set for_test to true.
88926 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88927             Bruno Haible  <bruno@clisp.org>
88929         * modules/strcasestr (Files): Remove lib/strcasestr.h.
88930         (Depends-on): Add string.
88931         (Includes): Use <string.h> instead of strcasestr.h.
88932         * modules/string (Makefile.am): Also substitute the value of
88933         REPLACE_STRCASESTR.
88934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
88935         assume strcasestr is declared in <string.h> not <strings.h>. Also
88936         set REPLACE_STRCASESTR.
88937         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
88938         REPLACE_STRCASESTR.
88939         * lib/strcasestr.h: Remove file.
88940         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
88941         * lib/string_.h (strcasestr): New declaration.
88943 2007-01-27  Bruno Haible  <bruno@clisp.org>
88945         * lib/string_.h: Use 'extern'.
88947 2007-01-27  Jim Meyering  <jim@meyering.net>
88949         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
88950         of set-but-not-used local, "q".
88952         * lib/mempcpy.c: Include <config.h> before <string.h>.
88953         This fixes a compilation error on HP-UX, due to the system's
88954         "restrict"-using mempcpy prototype.
88956 2007-01-26  Bruno Haible  <bruno@clisp.org>
88958         Small optimization.
88959         * lib/javacomp.c: Include c-strstr.h.
88960          (is_envjavac_gcj): Use c_strstr instead of strstr.
88961         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
88963 2007-01-26  Bruno Haible  <bruno@clisp.org>
88965         * MODULES.html.sh (Unicode string functions): Add the new modules.
88967         * modules/uniconv/u32-strconv-to-locale: New file.
88968         * lib/uniconv/u32-strconv-to-locale.c: New file.
88970         * modules/uniconv/u16-strconv-to-locale: New file.
88971         * lib/uniconv/u16-strconv-to-locale.c: New file.
88973         * modules/uniconv/u8-strconv-to-locale: New file.
88974         * lib/uniconv/u8-strconv-to-locale.c: New file.
88976         * modules/uniconv/u32-strconv-from-locale: New file.
88977         * lib/uniconv/u32-strconv-from-locale.c: New file.
88979         * modules/uniconv/u16-strconv-from-locale: New file.
88980         * lib/uniconv/u16-strconv-from-locale.c: New file.
88982         * modules/uniconv/u8-strconv-from-locale: New file.
88983         * lib/uniconv/u8-strconv-from-locale.c: New file.
88985         * modules/uniconv/u32-strconv-to-enc: New file.
88986         * lib/uniconv/u32-strconv-to-enc.c: New file.
88987         * modules/uniconv/u32-strconv-to-enc-tests: New file.
88988         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
88990         * modules/uniconv/u16-strconv-to-enc: New file.
88991         * lib/uniconv/u16-strconv-to-enc.c: New file.
88992         * lib/uniconv/u-strconv-to-enc.h: New file.
88993         * modules/uniconv/u16-strconv-to-enc-tests: New file.
88994         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
88996         * modules/uniconv/u8-strconv-to-enc: New file.
88997         * lib/uniconv/u8-strconv-to-enc.c: New file.
88998         * modules/uniconv/u8-strconv-to-enc-tests: New file.
88999         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
89001         * modules/uniconv/u32-strconv-from-enc: New file.
89002         * lib/uniconv/u32-strconv-from-enc.c: New file.
89003         * modules/uniconv/u32-strconv-from-enc-tests: New file.
89004         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
89006         * modules/uniconv/u16-strconv-from-enc: New file.
89007         * lib/uniconv/u16-strconv-from-enc.c: New file.
89008         * modules/uniconv/u16-strconv-from-enc-tests: New file.
89009         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
89011         * modules/uniconv/u8-strconv-from-enc: New file.
89012         * lib/uniconv/u8-strconv-from-enc.c: New file.
89013         * lib/uniconv/u-strconv-from-enc.h: New file.
89014         * modules/uniconv/u8-strconv-from-enc-tests: New file.
89015         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
89017         * modules/uniconv/u32-conv-from-enc: New file.
89018         * lib/uniconv/u32-conv-from-enc.c: New file.
89019         * modules/uniconv/u32-conv-from-enc-tests: New file.
89020         * tests/uniconv/test-u32-conv-from-enc.c: New file.
89022         * modules/uniconv/u16-conv-from-enc: New file.
89023         * lib/uniconv/u16-conv-from-enc.c: New file.
89024         * lib/uniconv/u-conv-from-enc.h: New file.
89025         * modules/uniconv/u16-conv-from-enc-tests: New file.
89026         * tests/uniconv/test-u16-conv-from-enc.c: New file.
89028         * modules/uniconv/u8-conv-from-enc: New file.
89029         * lib/uniconv/u8-conv-from-enc.c: New file.
89030         * modules/uniconv/u8-conv-from-enc-tests: New file.
89031         * tests/uniconv/test-u8-conv-from-enc.c: New file.
89033         * modules/uniconv/base: New file.
89034         * lib/uniconv.h: New file.
89036 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
89038         * doc/gnulib-tool.texi (Initial import): Update to match current
89039         behavior with strdup module.
89040         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
89041         * lib/memmem.h: Remove; all uses removed.  This is now done
89042         by <string.h>.
89043         * lib/mempcpy.h: Likewise.
89044         * lib/memrchr.h: Likewise.
89045         * lib/stpcpy.h: Likewise.
89046         * lib/stpncpy.h: Likewise.
89047         * lib/strcase.h: Likewise.
89048         * lib/strchrnul.h: Likewise.
89049         * lib/strdup.h: Likewise.
89050         * lib/strndup.h: Likewise.
89051         * lib/strnlen.h: Likewise.
89052         * lib/strpbrk.h: Likewise.
89053         * lib/strsep.h: Likewise.
89054         * lib/strstr.h: Likewise.
89055         * lib/strtok_r.h: Likewise.
89056         * lib/string_.h: New file.
89057         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
89058         Rely on <string.h> instead.
89059         * lib/canon-host.c: Likewise.
89060         * lib/chdir-long.c: Likewise.
89061         * lib/concatpath.c: Likewise.
89062         * lib/exclude.c: Likewise.
89063         * lib/fchdir.c: Likewise.
89064         * lib/getaddrinfo.c: Likewise.
89065         * lib/getcwd.c: Likewise.
89066         * lib/getsubopt.c: Likewise.
89067         * lib/glob.c: Likewise.
89068         * lib/hard-locale.c: Likewise.
89069         * lib/iconvme.c: Likewise.
89070         * lib/javacomp.c: Likewise.
89071         * lib/mempcpy.c: Likewise.
89072         * lib/memrchr.c: Likewise.
89073         * lib/regex_internal.h: Likewise.
89074         * lib/stpncpy.c: Likewise.
89075         * lib/strcasecmp.c: Likewise.
89076         * lib/strchrnul.c: Likewise.
89077         * lib/strdup.c: Likewise.
89078         * lib/striconv.c: Likewise.
89079         * lib/striconveh.c: Likewise.
89080         * lib/striconveha.c: Likewise.
89081         * lib/strncasecmp.c: Likewise.
89082         * lib/strndup.c: Likewise.
89083         * lib/strnlen.c: Likewise.
89084         * lib/strsep.c: Likewise.
89085         * lib/strstr.c: Likewise.
89086         * lib/strtok_r.c: Likewise.
89087         * lib/userspec.c: Likewise.
89088         * lib/w32spawn.h: Likewise.
89089         * lib/xstrndup.c: Likewise.
89090         * lib/mountlist.c (strstr): Remove decl.
89091         * m4/string_h.m4: New file.
89092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
89093         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
89094         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
89095         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
89096         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
89097         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
89098         Set REPLACE_STRCASECMP if necessary.
89099         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
89100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
89101         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
89102         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
89103         HAVE_DECL_STRDUP if necessary.
89104         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
89105         since gl_FUNC_STRNDUP does that now.
89106         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
89107         Check for decl here...
89108         (gl_PREREQ_STRNLEN): ... not here.
89109         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
89110         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
89111         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
89112         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
89113         necessary.
89114         * modules/string: New file.
89115         * modules/memmem (Files): Remove special-purpose include file.
89116         (Depends-on): Add string.
89117         (Include): Include <string.h>, not the removed file.
89118         * modules/mempcpy: Likewise.
89119         * modules/memrchr: Likewise.
89120         * modules/stpcpy: Likewise.
89121         * modules/stpncpy: Likewise.
89122         * modules/strcase: Likewise.
89123         * modules/strchrnul: Likewise.
89124         * modules/strdup: Likewise.
89125         * modules/strndup: Likewise.
89126         * modules/strnlen: Likewise.
89127         * modules/strpbrk: Likewise.
89128         * modules/strsep: Likewise.
89129         * modules/strstr: Likewise.
89130         * modules/strtok_r: Likewise.
89131         * tests/test-dirname.c: Don't include "strdup.h", since
89132         <string.h> now suffices.
89133         * tests/test-memmem.c: Don't include "memmem.h", since
89134         <string.h> now suffices.
89136 2007-01-25  Bruno Haible  <bruno@clisp.org>
89138         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
89139         *resultp is 0.
89141         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
89142         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
89143         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
89144         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
89146         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
89147         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
89148         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
89149         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
89150         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
89151         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
89153 2007-01-24  Bruno Haible  <bruno@clisp.org>
89155         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
89156         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
89157         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
89158         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
89159         gl_FUNC_FTS_CORE.
89160         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
89161         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
89162         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89163         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
89164         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
89165         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
89166         gl_FUNC_FCHOWNAT.
89167         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
89168         gl_FUNC_STRFTIME.
89169         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
89170         Reported by Ralf Wildenhues.
89172 2007-01-24  Bruno Haible  <bruno@clisp.org>
89174         Drop AC_REQUIRE calls that are redundant with the module dependencies.
89175         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
89176         gl_GETADDRINFO.
89177         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
89178         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
89179         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
89181 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
89183         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
89184         Don't use 'exit'; just return from 'main'.
89185         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
89187         * lib/fnmatch_.h: Readjust white space and comments to match
89188         glibc, to avoid spurious diffs.
89190 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89192         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
89193         2004-12-01 change by Jakub Jelinek, since this code won't compile
89194         if !LIBC.  Problem reported by Bob Proulx.
89196 2007-01-23  Bruno Haible  <bruno@clisp.org>
89198         * lib/striconveh.c: Include c-strcaseeq.h.
89199         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
89200         * modules/striconveh (Depends-on): Add c-strcaseeq.
89202 2007-01-23  Bruno Haible  <bruno@clisp.org>
89204         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
89206         * modules/c-strcaseeq: New file.
89207         * lib/c-strcaseeq.h: New file.
89209         * modules/streq: New file.
89210         * lib/streq.h: New file.
89212 2007-01-23  Bruno Haible  <bruno@clisp.org>
89214         * modules/striconveha-tests: New file.
89215         * tests/test-striconveha.c: New file.
89217         * lib/striconveha.h: Include <stdbool.h>.
89218         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
89219         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
89220         (mem_iconveha_notranslit): Renamed from mem_iconveha.
89221         (mem_iconveha): New function.
89222         (str_iconveha_notranslit): Renamed from str_iconveha.
89223         (str_iconveha): New function.
89224         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
89225         c-strcase.
89227 2007-01-23  Bruno Haible  <bruno@clisp.org>
89229         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
89230         encodings without forgiving before trying any encoding with handler.
89231         (str_iconveha): Try all encodings without forgiving before trying any
89232         encoding with handler.
89234 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89236         Import the following changes from libc.
89238         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
89240         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
89242         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89244         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
89245         normal_bracket label.
89247         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
89249         [BZ #361]
89250         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
89251         to normal_bracket after fetching the next character.
89253 2007-01-22  Bruno Haible  <bruno@clisp.org>
89255         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
89256         argument.
89257         * lib/striconveh.c (iconv_carefully_1): New function.
89258         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
89259         argument.
89260         (str_cd_iconveh): Update.
89261         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
89262         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
89263         * tests/test-striconveh.c (MAGIC): New macro.
89264         (new_offsets): New function.
89265         (main): Test call with and without offsets.
89267 2007-01-22  Bruno Haible  <bruno@clisp.org>
89269         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
89270         * modules/sys_select (Makefile.am): Likewise.
89271         * modules/sys_socket (Makefile.am): Likewise.
89272         * modules/sys_time (Makefile.am): Likewise.
89274 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
89276         * modules/gettimeofday (License): Change from GPL to LGPL, since
89277         gettimeofday is a library function.
89279 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89281         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
89283 2007-01-21  Bruno Haible  <bruno@clisp.org>
89285         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
89287 2007-01-21  Bruno Haible  <bruno@clisp.org>
89289         * modules/striconveha: New file.
89290         * lib/striconveha.h: New file.
89291         * lib/striconveha.c: New file.
89292         * MODULES.html.sh (Internationalization functions): Add striconveha.
89293         * lib/striconv.c (str_iconv): Optimize the case of an empty input
89294         string.
89295         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
89297 2007-01-21  Bruno Haible  <bruno@clisp.org>
89299         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
89300         * lib/striconveh.c (str_iconveh): Likewise.
89302 2007-01-21  Bruno Haible  <bruno@clisp.org>
89304         * lib/striconveh.h (mem_iconveh): New declaration.
89305         * lib/striconveh.c (mem_iconveh): New function.
89306         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
89308 2007-01-21  Bruno Haible  <bruno@clisp.org>
89310         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
89312         * lib/striconveh.h (mem_cd_iconveh): Change specification.
89313         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
89314         original result buffer.
89315         (str_cd_iconveh): Update.
89316         * tests/test-striconveh.c (main): Update.
89318         * lib/striconv.h (mem_cd_iconv): Change specification.
89319         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
89320         result buffer.
89321         (str_cd_iconv): Update.
89322         * tests/test-striconv.c (main): Update.
89324 2007-01-21  Bruno Haible  <bruno@clisp.org>
89326         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
89328 2007-01-20  Jim Meyering  <jim@meyering.net>
89330         * lib/userspec.c (parse_with_separator): If a user or group string
89331         starts with "+", skip the corresponding name-to-ID look-up, since
89332         such a look-up must fail: user and group names may not include "+".
89334 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89336         * lib/poll.c: Include sys/time.h and time.h unconditionally,
89337         since we now assume the sys_time module.
89338         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
89339         check for sys/time.h; no longer needed.
89340         * modules/poll (Depends-on): Depend on sys_time.
89342 2007-01-18  Bruno Haible  <bruno@clisp.org>
89344         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
89345         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89347         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
89348         gettimeofday.
89350         * tests/test-gettimeofday.c: Include <time.h>.
89351         (dummy): Remove variable.
89353         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
89354         gl_HEADER_SYS_TIME_H.
89355         (gl_HEADER_SYS_TIME_H): New macro.
89357         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
89358         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89359         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
89360         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
89361         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89362         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
89363         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
89364         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89365         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
89366         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
89367         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89369         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
89370         last change; it caused a compilation error when cross-compiling to
89371         Cygwin.
89373 2007-01-18  Jim Meyering  <jim@meyering.net>
89375         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
89376         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
89377         than the race-prone "test -d sys || mkdir sys".
89378         (configure.ac): Use AC_PROG_MKDIR_P.
89379         * modules/sys_select: Likewise.
89380         * modules/sys_socket: Likewise.
89381         * modules/sys_time: Likewise.
89383 2007-01-18  Eric Blake  <ebb9@byu.net>
89385         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
89386         replace gettimeofday.
89387         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
89388         name, to avoid infinite recursion.
89390 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
89392         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
89393         module sys_time.
89394         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
89395         assume timespec.h defines struct timeval.
89396         * lib/settime.c: Likewise.
89397         * lib/utimens.c: Likewise.
89398         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
89399         since we now assume the gettimeofday module.
89400         * lib/tempname.c (__gen_tempname): Likewise.
89401         * lib/gettimeofday.h: Remove.
89402         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
89403         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
89404         Include <time.h>, for 'time()'.
89405         (localtime_buffer_addr): Also use this workaround if
89406         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
89407         to simplify the uses.  All uses changed.
89408         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
89409         that #undef is inside {}, and 'const' follows type name consistently.
89410         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
89411         (gettimeofday): Do not use the maximum possible value for
89412         tv->tv_usec, since that might break usages other than ls.c.
89413         Instead, we'll leave ls.c alone.  This undoes today's patch
89414         by Bruno.  Add a compile-time warning for 1s-clock resolution;
89415         we've never observed the problem but might as well keep the
89416         canary.
89417         * lib/nanosleep.c: Include timespec.h first, for interface check.
89418         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
89419         now assume the sys_time module.
89420         * lib/tempname.c: Likewise.
89421         * lib/timespec.h: Likewise.
89422         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
89423         needed.
89424         * lib/strftime.c: Likewise.
89425         * lib/timespec.h: Likewise.
89426         * lib/posixtm.c: Include posixtm.h first, for interface check.
89427         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
89428         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
89429         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
89430         * lib/sys_time_.h: New file.
89431         * lib/timespec.h (struct timespec): Use long int, not long.
89432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
89433         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
89434         Remove obsolescent call to AC_HEADER_TIME.
89435         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
89436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
89437         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89438         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
89439         Likewise.
89440         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
89441         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
89442         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
89443         into the sys_time module.  Check for gettimeofday just once.
89444         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
89445         for gettimeofday signature to just check the signature.  Merely
89446         compile it, since linking doesn't test signature.  Improve test for
89447         whether gettimeofday.o is actually needed.
89448         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
89449         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
89450         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
89451         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89452         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
89453         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
89454         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
89455         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
89456         than worrying about sys/time.h.
89457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89458         Don't bother worrying about TIME_WITH_SYS_TIME.
89459         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
89460         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
89461         * m4/sys_time_h.m4: New file.
89462         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
89463         Don't include sys/time.h.  Return from main rather than exiting.
89464         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
89465         all uses changed.
89466         * modules/gethrxtime (Depends-on): Add sys_time.
89467         * modules/gettime (Depends-on): Likewise.
89468         * modules/gettimeofday (Depends-on): Likewise.
89469         * modules/nanosleep (Depends-on): Likewise.
89470         * modules/settime (Depends-on): Likewise.
89471         * modules/tempname (Depends-on): Likewise.
89472         * modules/utimens (Depends-on): Likewise.
89473         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
89474         (Include): Change back to <sys/time.h>.
89475         (Maintainer): Add self.
89476         * modules/sys_time: New file.
89477         * modules/tempname (Depends-on): Add gettimeofday.
89478         * tests/test-gettimeofday.c: Include <sys/time.h>
89479         rather than gettimeofday.h.
89481 2007-01-17  Bruno Haible  <bruno@clisp.org>
89483         * gnulib-tool (func_get_license): Revert last patch. Instead, let
89484         the license default to GPL.
89485         (func_create_testdir): Don't complain if a module is LGPL and its
89486         tests module depends on GPLed modules.
89488 2007-01-17  Bruno Haible  <bruno@clisp.org>
89490         * lib/gettimeofday.c (gettimeofday): Add code for the case
89491         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
89492         maximum possible value for tv->tv_usec, rather than the minimum one.
89494 2005-10-08  Martin Lambers  <marlam@marlam.de>
89495 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89496 2007-01-16  Bruno Haible  <bruno@clisp.org>
89498         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
89499         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
89500         gl_FUNC_GETTIMEOFDAY.
89501         (Include): Add gettimeofday.h.
89502         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
89503         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
89504         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
89505         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
89506         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
89507         * lib/gettimeofday.h: New file.
89508         * lib/gettimeofday.c: Include <sys/timeb.h>.
89509         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
89510         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89511         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
89512         fall back on time().
89514         * tests/test-gettimeofday.c: New file.
89515         * modules/gettimeofday-tests: New file.
89517 2007-01-16  Eric Blake  <ebb9@byu.net>
89519         * modules/fnmatch (Depends-on): Depend on wchar.
89520         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
89521         * m4/fnmatch.m4: Likewise.
89522         * modules/mbchar (Makefile.am): Assume <wchar.h>.
89523         * m4/mbchar.m4: Likewise.
89524         * modules/mbswidth (Depends-on): Depend on wchar.
89525         * lib/mbswidth.c: Assume <wchar.h>.
89526         * m4/mbswidth.m4: Likewise.
89527         * modules/quotearg (Depends-on): Depend on wchar.
89528         * lib/quotearg.c: Assume <wchar.h>.
89529         * m4/quotearg.m4: Likewise.
89530         * modules/regex (Depends-on): Depend on wchar.
89531         * lib/regex_internal.h: Assume <wchar.h>.
89532         * m4/regex.m4: Likewise.
89533         * modules/stdint (Depends-on): Depend on wchar.
89534         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
89535         * m4/stdint.m4: Likewise.
89536         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
89537         * modules/strftime (Depends-on): Depend on wchar.
89538         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
89539         * modules/strtol (Depends-on): Depend on wchar.
89540         * lib/strtol.c: Assume <wchar.h>.
89541         * modules/wcwidth (Depends-on): Depend on wchar.
89542         * lib/wcwidth.h: Assume <wchar.h>.
89543         * m4/wcwidth.m4: Likewise.
89545 2007-01-16  Bruno Haible  <bruno@clisp.org>
89547         * modules/csharpexec-script: New, created from...
89548         * modules/csharpexec: ... this.
89550 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
89552         * modules/javaexec-script: New, created from...
89553         * modules/javaexec: ... this.
89555 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89557         * modules/poll (Dependencies): Add sys_select.
89559 2007-01-15  Jim Meyering  <jim@meyering.net>
89561         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
89562         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
89563         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
89564         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
89566 2007-01-15  Bruno Haible  <bruno@clisp.org>
89568         * modules/striconveh: New file.
89569         * lib/striconveh.h: New file.
89570         * lib/striconveh.c: New file.
89571         * MODULES.html.sh (Internationalization functions): Add striconveh.
89573         * modules/striconveh-tests: New file.
89574         * tests/test-striconveh.c: New file.
89576 2007-01-15  Bruno Haible  <bruno@clisp.org>
89578         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
89579         not from GNU libiconv or GNU libc.
89581 2007-01-15  Bruno Haible  <bruno@clisp.org>
89583         * doc/gnulib-intro.texi (Copyright): Explain the different license
89584         terms for module descriptions, autoconf macros, tests, documentation.
89586 2007-01-14  Bruno Haible  <bruno@clisp.org>
89588         * modules/striconv-tests: New file.
89589         * tests/test-striconv.c: New file.
89591 2007-01-14  Bruno Haible  <bruno@clisp.org>
89593         * modules/iconv-tests: New file.
89594         * tests/test-iconv.c: New file.
89596 2007-01-14  Bruno Haible  <bruno@clisp.org>
89598         * gnulib-tool (func_get_license): For test modules, use the license of
89599         the main module.
89601 2007-01-14  Bruno Haible  <bruno@clisp.org>
89603         * modules/iconv (Include): Clarify that <iconv.h> can only be included
89604         if iconv is found to exist.
89606 2007-01-14  Bruno Haible  <bruno@clisp.org>
89608         * modules/c-ctype-tests: New file.
89609         * tests/test-c-ctype.c: New file.
89611 2007-01-14  Bruno Haible  <bruno@clisp.org>
89613         * modules/binary-io-tests: New file.
89614         * tests/test-binary-io.sh: New file.
89615         * tests/test-binary-io.c: New file.
89617 2007-01-14  Bruno Haible  <bruno@clisp.org>
89619         * modules/array-oset-tests: New file.
89620         * tests/test-array_oset.c: New file.
89622 2007-01-14  Bruno Haible  <bruno@clisp.org>
89624         * modules/array-list-tests: New file.
89625         * tests/test-array_list.c: New file.
89627 2007-01-14  Bruno Haible  <bruno@clisp.org>
89629         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
89630         and make.
89631         Reported by Simon Josefsson in
89632         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
89634 2007-01-14  Bruno Haible  <bruno@clisp.org>
89636         * modules/allocsa-tests: New file.
89637         * tests/test-allocsa.c: New file.
89639 2007-01-14  Bruno Haible  <bruno@clisp.org>
89641         * modules/fchdir (Depends-on): Add absolute-header.
89642         * modules/unistd (Depends-on): Likewise.
89644 2006-12-30  Bruno Haible  <bruno@clisp.org>
89646         * modules/fchdir: New file.
89647         * modules/unistd (Files): Add lib/unistd_.h.
89648         (Makefile.am): Generate unistd.h from unistd_.h.
89649         * lib/fchdir.c: New file.
89650         * lib/dirent_.h: New file.
89651         * lib/unistd_.h: New file.
89652         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
89653         * m4/fchdir.m4: New file.
89654         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
89655         (gl_HEADER_UNISTD): Invoke it.
89656         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
89657         function.
89658         * lib/backupfile.c (opendir, closedir): Undefine.
89659         * lib/chown.c (open, close): Undefine.
89660         * lib/clean-temp.c (open, close): Undefine.
89661         * lib/copy-file.c (open, close): Undefine.
89662         * lib/execute.c (open, close): Undefine.
89663         * lib/fsusage.c (open, close): Undefine.
89664         * lib/gc-gnulib.c (open, close): Undefine.
89665         * lib/getcwd.c (opendir, closedir): Undefine.
89666         * lib/glob.c (opendir, closedir): Undefine.
89667         * lib/javacomp.c (open, close): Undefine.
89668         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
89669         * lib/openat-proc.c (open, close): Undefine.
89670         * lib/pagealign_alloc.c (open, close): Undefine.
89671         * lib/pipe.c (open, close): Undefine.
89672         * lib/progreloc.c (open, close): Undefine.
89673         * lib/savedir.c (opendir, closedir): Undefine.
89674         * lib/utime.c (open, close): Undefine.
89675         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
89677 2007-01-10  Bruno Haible  <bruno@clisp.org>
89679         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
89681 2007-01-12  Eric Blake  <ebb9@byu.net>
89683         Provide a robust <wchar.h>.  Further simplifications are now
89684         possible in other modules, but not included here.
89685         * modules/wchar: New module.
89686         * m4/wchar.m4: New file.
89687         * lib/wchar_.h: Likewise.
89688         * modules/mbchar (Depends-on): Depend on wchar, as the first use
89689         of the new module.
89690         * MODULES.html.sh (Extended multibyte and wide character utilities):
89691         New section.
89693 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
89695         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
89696         to a reasonable default for memory allocation.
89697         (xreadlink): Don't allocate a huge buffer, to work around a buggy
89698         file system that reports garbage st_size values for symlinks.
89699         Problem reported by Liyang Hu.
89701 2007-01-11  Simon Josefsson  <simon@josefsson.org>
89703         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
89704         Emacs .#* auto-save files).
89706 2007-01-11  Bruno Haible  <bruno@clisp.org>
89708         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
89709         directory.
89711 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
89713         Use @...@ consistently in lib/wctype_.h.
89714         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
89715         on it being set to 1 or 0.
89716         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
89717         go back to AC_SUBSTing it.
89718         * modules/wctype (Makefile.am): Undo previous change.
89720 2007-01-10  Eric Blake  <ebb9@byu.net>
89722         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
89723         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
89724         * modules/wctype (Makefile.am): Likewise.
89725         Reported by Chris McGuire.
89727 2007-01-10  Jim Meyering  <jim@meyering.net>
89729         fts.c: a small readability/maintainability improvement
89730         * lib/fts.c (fts_read): Make this code slightly more readable and
89731         maintainable by hoisting the "sp->fts_cur = p" assignments to
89732         immediately follow the statements that set P.  Derived from
89733         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
89735 2007-01-10  Eric Blake  <ebb9@byu.net>
89737         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
89738         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
89739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
89740         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
89741         Reported by Chris McGuire.
89743 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89745         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
89746         in sed script.
89748 2007-01-09  Bruno Haible  <bruno@clisp.org>
89750         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
89751         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
89752         variables.
89753         (func_module): Use them.
89755 2007-01-09  Bruno Haible  <bruno@clisp.org>
89757         * modules/unistr/base: New file.
89758         * lib/unistr.h: New file.
89760         * modules/unistr/u8-to-u16: New file.
89761         * lib/unistr/u8-to-u16.c: New file.
89763         * modules/unistr/u8-to-u32: New file.
89764         * lib/unistr/u8-to-u32.c: New file.
89766         * modules/unistr/u16-to-u8: New file.
89767         * lib/unistr/u16-to-u8.c: New file.
89769         * modules/unistr/u16-to-u32: New file.
89770         * lib/unistr/u16-to-u32.c: New file.
89772         * modules/unistr/u32-to-u8: New file.
89773         * lib/unistr/u32-to-u8.c: New file.
89775         * modules/unistr/u32-to-u16: New file.
89776         * lib/unistr/u32-to-u16.c: New file.
89778         * modules/unistr/u8-check: New file.
89779         * modules/unistr/u16-check: New file.
89780         * modules/unistr/u32-check: New file.
89781         * lib/unistr/u8-check.c: New file.
89782         * lib/unistr/u16-check.c: New file.
89783         * lib/unistr/u32-check.c: New file.
89785         * modules/unistr/u8-chr: New file.
89786         * modules/unistr/u16-chr: New file.
89787         * modules/unistr/u32-chr: New file.
89788         * lib/unistr/u8-chr.c: New file.
89789         * lib/unistr/u16-chr.c: New file.
89790         * lib/unistr/u32-chr.c: New file.
89792         * modules/unistr/u8-cmp: New file.
89793         * modules/unistr/u16-cmp: New file.
89794         * modules/unistr/u32-cmp: New file.
89795         * lib/unistr/u8-cmp.c: New file.
89796         * lib/unistr/u16-cmp.c: New file.
89797         * lib/unistr/u32-cmp.c: New file.
89799         * modules/unistr/u8-cpy: New file.
89800         * modules/unistr/u16-cpy: New file.
89801         * modules/unistr/u32-cpy: New file.
89802         * lib/unistr/u8-cpy.c: New file.
89803         * lib/unistr/u16-cpy.c: New file.
89804         * lib/unistr/u32-cpy.c: New file.
89805         * lib/unistr/u-cpy.h: New file.
89807         * modules/unistr/u8-cpy-alloc: New file.
89808         * modules/unistr/u16-cpy-alloc: New file.
89809         * modules/unistr/u32-cpy-alloc: New file.
89810         * lib/unistr/u8-cpy-alloc.c: New file.
89811         * lib/unistr/u16-cpy-alloc.c: New file.
89812         * lib/unistr/u32-cpy-alloc.c: New file.
89813         * lib/unistr/u-cpy-alloc.h: New file.
89815         * modules/unistr/u8-endswith: New file.
89816         * modules/unistr/u16-endswith: New file.
89817         * modules/unistr/u32-endswith: New file.
89818         * lib/unistr/u8-endswith.c: New file.
89819         * lib/unistr/u16-endswith.c: New file.
89820         * lib/unistr/u32-endswith.c: New file.
89821         * lib/unistr/u-endswith.h: New file.
89823         * modules/unistr/u8-mblen: New file.
89824         * modules/unistr/u16-mblen: New file.
89825         * modules/unistr/u32-mblen: New file.
89826         * lib/unistr/u8-mblen.c: New file.
89827         * lib/unistr/u16-mblen.c: New file.
89828         * lib/unistr/u32-mblen.c: New file.
89830         * modules/unistr/u8-mbtouc: New file.
89831         * modules/unistr/u16-mbtouc: New file.
89832         * modules/unistr/u32-mbtouc: New file.
89833         * lib/unistr/u8-mbtouc.c: New file.
89834         * lib/unistr/u16-mbtouc.c: New file.
89835         * lib/unistr/u32-mbtouc.c: New file.
89837         * modules/unistr/u8-mbtouc-safe: New file.
89838         * modules/unistr/u16-mbtouc-safe: New file.
89839         * modules/unistr/u32-mbtouc-safe: New file.
89840         * lib/unistr/u8-mbtouc-safe.c: New file.
89841         * lib/unistr/u16-mbtouc-safe.c: New file.
89842         * lib/unistr/u32-mbtouc-safe.c: New file.
89844         * modules/unistr/u8-move: New file.
89845         * modules/unistr/u16-move: New file.
89846         * modules/unistr/u32-move: New file.
89847         * lib/unistr/u8-move.c: New file.
89848         * lib/unistr/u16-move.c: New file.
89849         * lib/unistr/u32-move.c: New file.
89850         * lib/unistr/u-move.h: New file.
89852         * modules/unistr/u8-next: New file.
89853         * modules/unistr/u16-next: New file.
89854         * modules/unistr/u32-next: New file.
89855         * lib/unistr/u8-next.c: New file.
89856         * lib/unistr/u16-next.c: New file.
89857         * lib/unistr/u32-next.c: New file.
89859         * modules/unistr/u8-prev: New file.
89860         * modules/unistr/u16-prev: New file.
89861         * modules/unistr/u32-prev: New file.
89862         * lib/unistr/u8-prev.c: New file.
89863         * lib/unistr/u16-prev.c: New file.
89864         * lib/unistr/u32-prev.c: New file.
89866         * modules/unistr/u8-set: New file.
89867         * modules/unistr/u16-set: New file.
89868         * modules/unistr/u32-set: New file.
89869         * lib/unistr/u8-set.c: New file.
89870         * lib/unistr/u16-set.c: New file.
89871         * lib/unistr/u32-set.c: New file.
89872         * lib/unistr/u-set.h: New file.
89874         * modules/unistr/u8-startswith: New file.
89875         * modules/unistr/u16-startswith: New file.
89876         * modules/unistr/u32-startswith: New file.
89877         * lib/unistr/u8-startswith.c: New file.
89878         * lib/unistr/u16-startswith.c: New file.
89879         * lib/unistr/u32-startswith.c: New file.
89880         * lib/unistr/u-startswith.h: New file.
89882         * modules/unistr/u8-stpcpy: New file.
89883         * modules/unistr/u16-stpcpy: New file.
89884         * modules/unistr/u32-stpcpy: New file.
89885         * lib/unistr/u8-stpcpy.c: New file.
89886         * lib/unistr/u16-stpcpy.c: New file.
89887         * lib/unistr/u32-stpcpy.c: New file.
89888         * lib/unistr/u-stpcpy.h: New file.
89890         * modules/unistr/u8-stpncpy: New file.
89891         * modules/unistr/u16-stpncpy: New file.
89892         * modules/unistr/u32-stpncpy: New file.
89893         * lib/unistr/u8-stpncpy.c: New file.
89894         * lib/unistr/u16-stpncpy.c: New file.
89895         * lib/unistr/u32-stpncpy.c: New file.
89896         * lib/unistr/u-stpncpy.h: New file.
89898         * modules/unistr/u8-strcat: New file.
89899         * modules/unistr/u16-strcat: New file.
89900         * modules/unistr/u32-strcat: New file.
89901         * lib/unistr/u8-strcat.c: New file.
89902         * lib/unistr/u16-strcat.c: New file.
89903         * lib/unistr/u32-strcat.c: New file.
89904         * lib/unistr/u-strcat.h: New file.
89906         * modules/unistr/u8-strchr: New file.
89907         * modules/unistr/u16-strchr: New file.
89908         * modules/unistr/u32-strchr: New file.
89909         * lib/unistr/u8-strchr.c: New file.
89910         * lib/unistr/u16-strchr.c: New file.
89911         * lib/unistr/u32-strchr.c: New file.
89913         * modules/unistr/u8-strcmp: New file.
89914         * modules/unistr/u16-strcmp: New file.
89915         * modules/unistr/u32-strcmp: New file.
89916         * lib/unistr/u8-strcmp.c: New file.
89917         * lib/unistr/u16-strcmp.c: New file.
89918         * lib/unistr/u32-strcmp.c: New file.
89920         * modules/unistr/u8-strcpy: New file.
89921         * modules/unistr/u16-strcpy: New file.
89922         * modules/unistr/u32-strcpy: New file.
89923         * lib/unistr/u8-strcpy.c: New file.
89924         * lib/unistr/u16-strcpy.c: New file.
89925         * lib/unistr/u32-strcpy.c: New file.
89926         * lib/unistr/u-strcpy.h: New file.
89928         * modules/unistr/u8-strcspn: New file.
89929         * modules/unistr/u16-strcspn: New file.
89930         * modules/unistr/u32-strcspn: New file.
89931         * lib/unistr/u8-strcspn.c: New file.
89932         * lib/unistr/u16-strcspn.c: New file.
89933         * lib/unistr/u32-strcspn.c: New file.
89934         * lib/unistr/u-strcspn.h: New file.
89936         * modules/unistr/u8-strdup: New file.
89937         * modules/unistr/u16-strdup: New file.
89938         * modules/unistr/u32-strdup: New file.
89939         * lib/unistr/u8-strdup.c: New file.
89940         * lib/unistr/u16-strdup.c: New file.
89941         * lib/unistr/u32-strdup.c: New file.
89942         * lib/unistr/u-strdup.h: New file.
89944         * modules/unistr/u8-strlen: New file.
89945         * modules/unistr/u16-strlen: New file.
89946         * modules/unistr/u32-strlen: New file.
89947         * lib/unistr/u8-strlen.c: New file.
89948         * lib/unistr/u16-strlen.c: New file.
89949         * lib/unistr/u32-strlen.c: New file.
89950         * lib/unistr/u-strlen.h: New file.
89952         * modules/unistr/u8-strmblen: New file.
89953         * modules/unistr/u16-strmblen: New file.
89954         * modules/unistr/u32-strmblen: New file.
89955         * lib/unistr/u8-strmblen.c: New file.
89956         * lib/unistr/u16-strmblen.c: New file.
89957         * lib/unistr/u32-strmblen.c: New file.
89959         * modules/unistr/u8-strmbtouc: New file.
89960         * modules/unistr/u16-strmbtouc: New file.
89961         * modules/unistr/u32-strmbtouc: New file.
89962         * lib/unistr/u8-strmbtouc.c: New file.
89963         * lib/unistr/u16-strmbtouc.c: New file.
89964         * lib/unistr/u32-strmbtouc.c: New file.
89966         * modules/unistr/u8-strncat: New file.
89967         * modules/unistr/u16-strncat: New file.
89968         * modules/unistr/u32-strncat: New file.
89969         * lib/unistr/u8-strncat.c: New file.
89970         * lib/unistr/u16-strncat.c: New file.
89971         * lib/unistr/u32-strncat.c: New file.
89972         * lib/unistr/u-strncat.h: New file.
89974         * modules/unistr/u8-strncmp: New file.
89975         * modules/unistr/u16-strncmp: New file.
89976         * modules/unistr/u32-strncmp: New file.
89977         * lib/unistr/u8-strncmp.c: New file.
89978         * lib/unistr/u16-strncmp.c: New file.
89979         * lib/unistr/u32-strncmp.c: New file.
89981         * modules/unistr/u8-strncpy: New file.
89982         * modules/unistr/u16-strncpy: New file.
89983         * modules/unistr/u32-strncpy: New file.
89984         * lib/unistr/u8-strncpy.c: New file.
89985         * lib/unistr/u16-strncpy.c: New file.
89986         * lib/unistr/u32-strncpy.c: New file.
89987         * lib/unistr/u-strncpy.h: New file.
89989         * modules/unistr/u8-strnlen: New file.
89990         * modules/unistr/u16-strnlen: New file.
89991         * modules/unistr/u32-strnlen: New file.
89992         * lib/unistr/u8-strnlen.c: New file.
89993         * lib/unistr/u16-strnlen.c: New file.
89994         * lib/unistr/u32-strnlen.c: New file.
89995         * lib/unistr/u-strnlen.h: New file.
89997         * modules/unistr/u8-strpbrk: New file.
89998         * modules/unistr/u16-strpbrk: New file.
89999         * modules/unistr/u32-strpbrk: New file.
90000         * lib/unistr/u8-strpbrk.c: New file.
90001         * lib/unistr/u16-strpbrk.c: New file.
90002         * lib/unistr/u32-strpbrk.c: New file.
90003         * lib/unistr/u-strpbrk.h: New file.
90005         * modules/unistr/u8-strrchr: New file.
90006         * modules/unistr/u16-strrchr: New file.
90007         * modules/unistr/u32-strrchr: New file.
90008         * lib/unistr/u8-strrchr.c: New file.
90009         * lib/unistr/u16-strrchr.c: New file.
90010         * lib/unistr/u32-strrchr.c: New file.
90012         * modules/unistr/u8-strspn: New file.
90013         * modules/unistr/u16-strspn: New file.
90014         * modules/unistr/u32-strspn: New file.
90015         * lib/unistr/u8-strspn.c: New file.
90016         * lib/unistr/u16-strspn.c: New file.
90017         * lib/unistr/u32-strspn.c: New file.
90018         * lib/unistr/u-strspn.h: New file.
90020         * modules/unistr/u8-strstr: New file.
90021         * modules/unistr/u16-strstr: New file.
90022         * modules/unistr/u32-strstr: New file.
90023         * lib/unistr/u8-strstr.c: New file.
90024         * lib/unistr/u16-strstr.c: New file.
90025         * lib/unistr/u32-strstr.c: New file.
90026         * lib/unistr/u-strstr.h: New file.
90028         * modules/unistr/u8-strtok: New file.
90029         * modules/unistr/u16-strtok: New file.
90030         * modules/unistr/u32-strtok: New file.
90031         * lib/unistr/u8-strtok.c: New file.
90032         * lib/unistr/u16-strtok.c: New file.
90033         * lib/unistr/u32-strtok.c: New file.
90034         * lib/unistr/u-strtok.h: New file.
90036         * modules/unistr/u8-uctomb: New file.
90037         * modules/unistr/u16-uctomb: New file.
90038         * modules/unistr/u32-uctomb: New file.
90039         * lib/unistr/u8-uctomb.c: New file.
90040         * lib/unistr/u16-uctomb.c: New file.
90041         * lib/unistr/u32-uctomb.c: New file.
90043         * MODULES.html.sh (Unicode string functions): Add the new modules.
90045 2007-01-08  Bruno Haible  <bruno@clisp.org>
90047         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
90048         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
90049         subdirectories.
90051 2007-01-08  Karl Berry  <karl@gnu.org>
90053         * doc/error.texi: mention that main() fns must set program_name
90054         when progname is used.
90056 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
90058         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
90059         WCTYPE_H is empty, for the benefit of builds from non-distclean
90060         directories.  Problem reported by Eric Blake in
90061         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
90063 2007-01-08  Bruno Haible  <bruno@clisp.org>
90065         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
90066         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
90067         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
90068         PROVIDE_CANONICALIZE_FILENAME_MODE.
90069         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
90071 2007-01-08  Bruno Haible  <bruno@clisp.org>
90073         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
90074         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
90075         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
90076         * lib/fts.c: Likewise.
90077         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
90079 2006-12-25  Bruno Haible  <bruno@clisp.org>
90081         * modules/utf8-ucs4-safe: New file.
90082         * lib/utf8-ucs4-safe.h: New file.
90083         * lib/unistr/utf8-ucs4-safe.c: New file.
90085         * modules/utf16-ucs4-safe: New file.
90086         * lib/utf16-ucs4-safe.h: New file.
90087         * lib/unistr/utf16-ucs4-safe.c: New file.
90089         * MODULES.html.sh (Unicode string functions): Add the new modules.
90091 2007-01-08  Bruno Haible  <bruno@clisp.org>
90093         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
90094         (Depends-on): Add unitypes.
90095         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90096         (u8_mbtouc_aux): Move out to separate file.
90097         (u8_mbtouc): Use ucs4_t, uint8_t types.
90098         * lib/unistr/utf8-ucs4.c: New file.
90100         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
90101         (Depends-on): Add unitypes.
90102         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90103         (u16_mbtouc_aux): Move out to separate file.
90104         (u16_mbtouc): Use ucs4_t, uint16_t types.
90105         * lib/unistr/utf16-ucs4.c: New file.
90107         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
90108         (Depends-on): Add unitypes.
90109         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
90110         (u8_uctomb_aux): Move out to separate file.
90111         (u8_uctomb): Use ucs4_t, uint8_t types.
90112         * lib/unistr/ucs4-utf8.c: New file.
90114         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
90115         (Depends-on): Add unitypes.
90116         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
90117         (u16_uctomb_aux): Move out to separate file.
90118         (u16_uctomb): Use ucs4_t, uint16_t types.
90119         * lib/unistr/ucs4-utf16.c: New file.
90121 2006-12-25  Bruno Haible  <bruno@clisp.org>
90123         * modules/unitypes: New file.
90124         * lib/unitypes.h: New file.
90125         * MODULES.html.sh (func_all_modules): New section "Unicode string
90126         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
90127         this section. Add unitypes.
90129 2007-01-08  Bruno Haible  <bruno@clisp.org>
90131         Avoid variable names that conflict with those from libtool.
90132         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
90133         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
90134         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
90135         library_names_spec to acl_library_names_spec, hardcode_* to
90136         acl_hardcode_*.
90137         Reported by Ralf Wildenhues.
90139 2007-01-08  Bruno Haible  <bruno@clisp.org>
90141         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
90142         definition.
90143         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
90144         definition.
90145         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
90146         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
90147         definition.
90148         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
90149         definition.
90150         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
90151         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
90152         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
90153         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
90154         definition.
90155         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
90156         definition.
90157         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
90158         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
90159         GC_USE_<algorithm>.
90160         * lib/gc-libgcrypt.c: Likewise.
90161         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
90162         * modules/gc-arctwo (configure.ac): Likewise.
90163         * modules/gc-des (configure.ac): Likewise.
90164         * modules/gc-hmac-md5 (configure.ac): Likewise.
90165         * modules/gc-hmac-sha1 (configure.ac): Likewise.
90166         * modules/gc-md2 (configure.ac): Likewise.
90167         * modules/gc-md4 (configure.ac): Likewise.
90168         * modules/gc-md5 (configure.ac): Likewise.
90169         * modules/gc-random (configure.ac): Likewise.
90170         * modules/gc-rijndael (configure.ac): Likewise.
90171         * modules/gc-sha1 (configure.ac): Likewise.
90173 2007-01-08  Bruno Haible  <bruno@clisp.org>
90175         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
90176         macro definition.
90177         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
90178         definition.
90179         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
90180         definition.
90181         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
90182         * modules/fcntl-safer (configure.ac): Likewise.
90183         * modules/fopen-safer (configure.ac): Likewise.
90184         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
90185         GNULIB_FWRITEERROR macro definition.
90187 2007-01-08  Bruno Haible  <bruno@clisp.org>
90189         * m4/gnulib-common.m4: New file.
90190         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
90191         (func_get_filelist): Add m4/gnulib-common.m4.
90193 2007-01-08  Bruno Haible  <bruno@clisp.org>
90195         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
90196         command.
90198 2007-01-08  Jim Meyering  <jim@meyering.net>
90200         Use a more robust test for a "can't happen" condition.
90201         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
90202         narrowed the st_size value.  Presuming the "can't happen" condition
90203         is true, that narrowing could conceivably convert an invalid st_size
90204         value into a valid one.  Instead, use a change based on Matthew
90205         Woehlke's original patch.
90207         Slight readability improvement: use an assert-like macro
90208         in place of literal "abort ()" uses.
90209         * lib/fts.c (fts_assert): Define.
90210         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
90211         Use this macro instead of a bare 'abort'.
90213 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
90215         Don't worry about using IRIX 5.3's wctype.h broken definitions;
90216         simply work around them.
90217         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
90218         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
90219         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
90220         declaring.
90221         Don't bother to define as macros, since the standard doesn't require it.
90222         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
90223         longer worry about IRIX 5.3.
90224         (HAVE_WCTYPE_CTMP_BUG): Remove.
90226 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
90228         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
90229         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
90230         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
90231         Problems reported by Georg Schwarz for IRIX 5.3.
90233         * gnulib-tool (autoconf_minversion): Take the maximum version number
90234         found, not the minimum.  Problem reported by James Youngman.
90236 2007-01-03  Karl Berry  <karl@gnu.org>
90238         * doc/error.texi: new file, explaining interaction with progname.
90239         * doc/gnulib.texi: include it.  Update copyright.
90241 2007-01-03  Simon Josefsson  <simon@josefsson.org>
90243         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
90244         AC_CANONICAL_HOST, to improve autobuild outputs.
90246 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
90247             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
90249         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
90250         sockets, server sockets, and other file descriptors.  Count errors
90251         to compute the return value.  Reorder the code a bit to be easier
90252         to follow.  Don't set event bits that were not requested (except
90253         POLLERR and POLLHUP).
90255 2007-01-01  Bruno Haible  <bruno@clisp.org>
90257         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
90259 2007-01-03  Jim Meyering  <jim@meyering.net>
90261         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
90263 2007-01-02  Bruno Haible  <bruno@clisp.org>
90265         * modules/settime (Include): Require timespec.h.
90266         * modules/nanosleep (Include): Likewise.
90268 2007-01-01  Bruno Haible  <bruno@clisp.org>
90270         * gnulib-tool (func_emit_copyright_notice): Bump year.
90271         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
90273 2007-01-01  Bruno Haible  <bruno@clisp.org>
90275         Improve support for OpenBSD.
90276         * build-aux/config.rpath (libname_spec): Export.
90277         (library_names_spec): New variable. Export.
90278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
90279         library_names_spec from the config.rpath output. Locate shared library
90280         through the name pattern in library_names_spec.
90282 2007-01-01  Eric Blake  <ebb9@byu.net>
90284         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
90286 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
90288         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
90289         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
90290         assume the C locale, and avoid an "eval" that could cause trouble.
90291         Problem with SORT reported by Bob Proulx.
90293         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
90294         Define.  Trivial patch from Henning Nielsen Lund, originally
90295         sent to bug-grep@gnu.org today.
90297 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
90299         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
90300         struct stat.  Problem reported by Henning Nielsen Lund.
90301         * lib/acl.c: Include acl.h first, to check interface.  Don't
90302         bother to include sys/types.h and sys/stat.h again.
90304 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
90306         Import the following change from libc; problem reported by
90307         Sven Verdoolaege.
90309         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
90311         [BZ #1373]
90312         * lib/argp.h: Remove __NTH for __argp_usage inline function.
90314 2006-12-28  Jim Meyering  <jim@meyering.net>
90316         * build-aux/announce-gen: Do not assume that the package
90317         builds any of tar.gz, tar.bz2, and .xdelta files.
90318         Suggestion from Simon Josefsson.
90320 2006-12-28  Simon Josefsson  <simon@josefsson.org>
90322         * modules/announce-gen: New file.
90324 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
90326         * lib/mbchar.h: Just include <wctype.h>; the wctype module
90327         handles its gotchas now.
90328         * lib/mbswidth.c: Likewise.
90329         * lib/wcwidth.h: Likewise.
90330         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
90331         and iswcntrl; the wctype module does this stuff now.
90332         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
90333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90334         * modules/mbchar (Depends-on): Add wctype.
90335         * modules/mbswidth (Depends-on): Likewise.
90336         * modules/wcwidth (Depends-on): Likewise.
90338 2006-12-27  Eric Blake  <ebb9@byu.net>
90340         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
90341         module uses more than what <wctype.h> is required to provide.
90343 2006-12-26  Eric Blake  <ebb9@byu.net>
90345         * gnulib-tool (sed_extract_prog): Avoid space-tab.
90347 2006-12-26  Eric Blake  <ebb9@byu.net>
90349         * modules/absolute-header: New module.
90350         * modules/fcntl (Depends-on): Depend on it.
90351         * modules/inttypes (Depends-on): Likewise.
90352         * modules/stdint (Depends-on): Likewise.
90353         * modules/sys_stat (Depends-on): Likewise.
90354         * modules/wctype (Depends-on): Likewise.
90355         * MODULES.html.sh (Support for building libraries and
90356         executables): Document it.
90358 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
90360         * gnulib-tool (SED): Remove, undoing previous change.
90361         The problem was that it broke coreutils on Solaris, because
90362         "sed --posix" leaked into a makefile.
90363         (sed): New alias, if 'alias' and GNU sed.
90365 2006-12-24  Jim Meyering  <jim@meyering.net>
90367         Work around an fchownat bug in glibc-2.4:
90368         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
90369         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
90370         in spite of the -P option.
90371         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
90372         New macros.
90373         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
90374         * modules/openat (Files): Add lib/fchownat.c.
90375         * lib/openat.c (fchownat): Don't define here.  Move to...
90376         * lib/fchownat.c: ...this new file.
90378 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
90380         Fix bug reported by Bruno Haible in
90381         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
90382         where quotearg.c didn't compile on Mac OS X 10.2 because it
90383         lacks <wchar.h> and wint_t.
90384         * lib/wctype_.h (__wctype_wint_t): New type.
90385         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
90386         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
90387         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
90388         Arg is now of type __wctype_wint_t, not wint_t.
90389         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
90390         substitute HAVE_WINT_T.
90391         * modules/wctype (Files): Add m4/wint_t.m4.
90392         (wctype.h): Substitute HAVE_WINT_T.
90394 2006-12-23  Bruno Haible  <bruno@clisp.org>
90396         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
90398 2006-12-23  Bruno Haible  <bruno@clisp.org>
90400         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
90401         S_ISLNK.
90402         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
90403         mingw.
90405 2006-12-22  Bruno Haible  <bruno@clisp.org>
90407         * lib/copy-file.c: Include acl.h.
90408         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
90409         Close the file descriptors only after being done with copy_acl.
90410         * modules/copy-file (Depends-on): Add acl.
90412 2006-12-22  Bruno Haible  <bruno@clisp.org>
90414         * gnulib-tool (SED): New variable.
90415         Use $SED instead of sed everywhere.
90417 2006-12-22  Bruno Haible  <bruno@clisp.org>
90419         * modules/no-c++: New file.
90420         * m4/no-c++.m4: New file.
90421         * MODULES.html.sh (Support for building libraries and executables):
90422         Add no-c++.
90424 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
90426         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
90427         Include <limits.h>, and use its INT_MAX to rewrite the
90428         j loop so that it does not overflow 'int'.  Problem reported by
90429         Ralf Wildenhues in
90430         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
90431         Play it safe by shifting left by 1 rather than multiplying by 2,
90432         as GCC is less likely to optimize this away when the value
90433         is signed (when it assumes overflow leads to undefined behavior).
90434         Also, don't assume time_t uses two's complement.
90436 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
90438         * MODULES.html.sh: New module wctype.
90439         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
90440         * lib/fnmatch.c: Don't bother to include <wchar.h> before
90441         <wctype.h>, since the new wctype module should fix this.
90442         * lib/quotearg.c: Include <wctype.h> unconditionally, since
90443         the wctype module should arrange for it.
90444         * lib/regex_internal.h: Likewise.
90445         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
90446         since the wctype module should handle this now.
90447         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
90448         * modules/fnmatch (Depends-on): Add wctype.
90449         * modules/quotearg (Depends-on): Likewise.
90450         * modules/regex (Depends-on): Likewise.
90452 2006-12-19  Bruno Haible  <bruno@clisp.org>
90454         * lib/strdup.h [C++]: Wrap definitions in extern "C".
90455         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
90457 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90459         * modules/savewd (Depends-on): Fix dependency on fcntl.
90461 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
90463         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
90464         conforms to C99, rather than relying on the user's environment
90465         setting of STDINT_H.
90467 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
90468         and Eric Blake  <ebb9@byu.net>
90470         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
90471         This is more consistent with the other defines here.
90472         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
90473         Port to z/OS.  Problem reported by Paul Gilmartin.
90474         Change local vars to use gl_ prefix rather than ac_.
90475         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
90476         with other defines.
90477         * modules/double-slash-root: New module.
90478         * modules/dirname (Files): Remove m4/double-slash-root.m4.
90479         (Depends-on): Add double-slash-root.
90480         * MODULES.html.sh (File system functions): Mention new module.
90482 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
90484         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
90485         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
90486         This is for the benefit of gzip, which doesn't do i18n.
90488 2006-12-12  Jim Meyering  <jim@meyering.net>
90490         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
90491         Reported by Andreas Schwab <schwab@suse.de>.
90493 2006-12-12  Bruno Haible  <bruno@clisp.org>
90495         Merge these changes.
90496         2006-09-05  Bruno Haible  <bruno@clisp.org>
90497         * lib/iconvme.c (iconv_string): No need to save and restore errno when
90498         iconv_alloc succeeded.
90499         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
90500         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
90501         test for " && dest " at the end - dest is always != NULL there. Call
90502         iconv with 4xNULL arguments initially, to reset the state. Call iconv
90503         with 2xNULL arguments, also to flush the state storage. Handle the
90504         IRIX iconv behaviour. Realloc the final result, to throw away unused
90505         memory.
90507 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
90509         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
90510         and fchmodat unconditionally, since glibc 2.4 has them.
90511         Problem reported by Arkadiusz Miskiewicz.
90513 2006-12-10  Bruno Haible  <bruno@clisp.org>
90515         * gnulib-tool (func_import): Show the include files only for those
90516         modules that are copied and specified.
90517         Reported by Karl Berry.
90519 2006-12-08  Jim Meyering  <jim@meyering.net>
90521         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
90522         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
90524         * build-aux/announce-gen: Add two new options, both optional:
90525         --bootstrap-tools=TOOL_LIST
90526               a comma-separated list of tools, e.g.,
90527               autoconf,automake,bison,gnulib
90528         --gnulib-snapshot-date=DATE
90529               if gnulib is in the bootstrap tool list,
90530               then report this as the snapshot date.
90531               If not specified, use the current date/time.
90532               If you specify a date here, be sure it's UTC.
90534 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90536         * tests/test-argp-2.sh: Fix test to match actual output.
90537         (func_compare): Fix sed script to be portable.
90539 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
90541         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
90542         workaround for this case.  It is not autoconfigured now; offhand
90543         it's hard to see how to autoconfigure it.
90545 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
90547         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
90548         a directory that is about to be chowned.  Such a directory's
90549         initial file permissions should permit the owner only and this
90550         should not be changed until after the chown, since the group and
90551         other bits would be incorrect if they granted permission before
90552         the chown.
90554         Fix porting problem for iswctype reported by Georg Schwarz in:
90555         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
90556         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
90557         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
90558         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
90559         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
90561 2006-12-03  Jim Meyering  <jim@meyering.net>
90563         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
90564         p->fts_statp may not yet be defined.
90565         (fts_read): Instead, set it in the caller, once p->fts_statp is
90566         sure to be defined, and corresponds to a top-level directory.
90567         This bug made du -x fail.  Here's the coreutils test case:
90568         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
90569         Reported by Mike Frysinger.
90571 2006-12-01  Jim Meyering  <jim@meyering.net>
90573         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
90574         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
90575         Reported by Simon Josefsson.
90577 2006-11-30  Jim Meyering  <jim@meyering.net>
90579         * m4/warning.m4: Use the all-permissive copyright notice
90580         recommended by RMS (rather than LGPL).
90581         * m4/vararrays.m4: Likewise.
90582         * m4/flexmember.m4: Likewise.
90584 2006-11-29  Bruno Haible  <bruno@clisp.org>
90586         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90587         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
90588         using +=.
90589         Reported by Simon Josefsson <simon@josefsson.org>.
90591 2006-11-28  James Youngman  <jay@gnu.org>
90593         * README: Advise users that they might find the bug-gnulib@gnu.org
90594         and autotools-announce@gnu.org mailing lists useful.
90596 2006-11-28  Bruno Haible  <bruno@clisp.org>
90598         * m4/ptrdiff_max.m4: Remove file.
90600 2006-11-21  Bruno Haible  <bruno@clisp.org>
90602         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
90603         _AC_COMPUTE_INT.
90604         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90605         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
90606         _AC_COMPUTE_INT.
90607         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90608         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
90609         _AC_COMPUTE_INT.
90610         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90612 2006-11-28  Jim Meyering  <jim@meyering.net>
90614         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
90615         warning from "gcc -Wshadow" about shadowing the builtin.
90617 2006-11-27  Bruno Haible  <bruno@clisp.org>
90619         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
90620         _AC_COMPUTE_INT.
90621         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90623 2006-11-27  Bruno Haible  <bruno@clisp.org>
90624             Paul Eggert  <eggert@cs.ucla.edu>
90626         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
90628 2006-11-26  Bruno Haible  <bruno@clisp.org>
90630         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90631         noinst_LTLIBRARIES.
90633 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
90634             Bruno Haible  <bruno@clisp.org>
90636         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
90637         if compiling with "gcc -ansi".
90639 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
90641         Fix some incompatibilities with gcc -ansi -pedantic.
90642         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
90643         if compiling pedantically with GCC, unless it's C99 or later.
90644         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
90645         it mishandles gcc -ansi -pedantic as well.
90646         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
90647         if gcc -pedantic.
90648         * lib/regexec.c (check_node_accept_bytes): Don't use auto
90649         initializers for struct if -pedantic, unless it's C99 or later.
90651 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
90653         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
90654         Don't close an fd more than once. Identical atimes indicate
90655         success, not failure.
90657 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
90659         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
90661 2006-11-23  Jim Meyering  <jim@meyering.net>
90663         * build-aux/announce-gen: New file.  From coreutils.
90665 2006-11-22  Jim Meyering  <jim@meyering.net>
90667         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
90668         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
90669         (fts_read): Use a temporary to narrow the overused st_size member
90670         before using it in a switch statement.  Reported by Matthew Woehlke.
90672         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
90673         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
90675 2006-11-20  Bruno Haible  <bruno@clisp.org>
90677         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
90678         changequote instead of pairs of brackets.
90679         Reported by Andreas Schwab <schwab@suse.de>.
90681 2006-11-21  Jim Meyering  <jim@meyering.net>
90683         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
90684         so as to remain compatible with older compilers.
90685         Patch from Michael Deutschmann.
90687 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90689         * MODULES.html.sh (File system functions): Add openat.
90691         * lib/openat.h (rpl_fstatat): New macro, if
90692         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
90693         (fstatat): Define to rpl_fstatat under the same conditions,
90694         unless COMPILING_FSTATAT.
90695         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
90696         seems to have the bug.
90697         * lib/fstatat.c: New file.
90698         * modules/openat (Files): Add it.
90700 2006-11-20  Bruno Haible  <bruno@clisp.org>
90702         * Makefile: New file.
90704 2006-11-20  Jim Meyering  <jim@meyering.net>
90706         The beginnings of syntax-related checks for gnulib.
90707         * lib/Makefile: New file.
90708         * lib/t-idcache: New script.  Ensure that the two halves of
90709         idcache.c stay in sync.
90711         * lib/idcache.c: Adjust comments in user- and group- portions to
90712         be more accurate, and to be consistent with one another.
90714 2006-11-20  Jim Meyering  <jim@meyering.net>
90716         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
90717         continue using the flexible array member (thus, this module performs
90718         half as many malloc calls), with the addition that...
90719         (getgroup, getuser): Consistently record a non-match via an empty
90720         "name" string, and map an empty string match to a NULL return value.
90721         * modules/idcache (Depends-on): Re-add flexmember.
90723         * lib/idcache.c (getuser): Remove all uses of the register keyword.
90724         (getuidbyname, getgroup, getgidbyname): Likewise.
90726         Use cleaner syntax: NULL rather than 0.
90727         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
90729 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90731         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
90732         It mishandled the case where the group was missing.
90733         Problem reported by Greg Schafer.
90734         * modules/idcache: Likewise.
90736 2006-11-18  Jim Meyering  <jim@meyering.net>
90738         * check-module (%exempt_header): Add exception for some
90739         conditionally-included headers.
90741         * modules/i-ring (Depends-on): Add verify.
90742         (License): Change to LGPL.
90744 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90746         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
90747         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
90748         and inttostr.h.  Use snprintf rather than uinttostr, so that
90749         LGPLed code doesn't depend on GPLed.
90751 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90753         * modules/inline (License): Change from GPL to LGPL.
90755 2006-11-17  Jim Meyering  <jim@meyering.net>
90757         * modules/d-type (License): Switch to LGPL.
90759 2006-11-15  Bruno Haible  <bruno@clisp.org>
90761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
90763 2006-11-15  Eric Blake  <ebb9@byu.net>
90765         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
90766         the module dependency.
90768 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90769             Bruno Haible  <bruno@clisp.org>
90771         * gnulib-tool (func_create_testdir): Add license consistency check.
90773 2006-11-15  Eric Blake  <ebb9@byu.net>
90775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
90776         random "(cached)" in configure output.
90778 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90780         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
90781         test for conforming inttypes.h is both announced and cached.
90783         * MODULES.html.sh (seen_modules, seen_files): New variables.
90784         (func_module): Rewrite to use a few less gnulib-tool and sed
90785         invocations.  Avoid a couple of quadratic algorithms for ...
90786         (missed_modules, missed_files): ... these, with ...
90787         (func_append, func_tmpdir): ... these new functions, from
90788         gnulib-tool.  Analogously, install traps for cleanup.
90790         * tests/test-gc.c (main): Remove unused variables.
90791         * tests/test-read-file.c: Include stdlib.h, for 'free'.
90793 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
90795         * modules/inttostr (License): Change to LGPL.
90797 2006-11-14  Eric Blake  <ebb9@byu.net>
90799         * modules/tempname (License): Change to LGPL.
90801 2006-11-14  Eric Blake  <ebb9@byu.net>
90803         * doc/functions.texi (Function Portability): *printf functions on
90804         Cygwin now understand all POSIX size specifiers.
90806 2006-11-14  Bruno Haible  <bruno@clisp.org>
90808         * modules/c-ctype (License): Change to LGPL.
90810 2006-11-12  Bruno Haible  <bruno@clisp.org>
90812         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
90813         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
90814         for GNOME libraries, for which the include files are installed in
90815         subdirectories of $prefix/include.
90817 2006-11-12  Bruno Haible  <bruno@clisp.org>
90819         * m4/lib-link.m4: Require at least autoconf-2.54.
90820         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
90821         name to underscores for the --with option.
90823 2006-11-13  Bruno Haible  <bruno@clisp.org>
90825         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
90826         the tests directory.
90827         Reported by Ralf Wildenhues.
90829 2006-11-13  Bruno Haible  <bruno@clisp.org>
90831         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
90832         (func_emit_initmacro_end): Undo the override here.
90833         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
90834         Works around the famous automake error in coreutils.
90836 2006-11-13  Eric Blake  <ebb9@byu.net>
90838         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
90839         element, not its node.
90841 2006-11-12  Bruno Haible  <bruno@clisp.org>
90843         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
90844         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
90846 2006-11-12  Bruno Haible  <bruno@clisp.org>
90848         * gnulib-tool: New option --local-symlink.
90849         (func_usage): Document it.
90850         (lsymbolic): New variable.
90851         (func_import, func_create_testdir): If --symlink was not specified,
90852         test whether --local-symlink was specified and the file comes from
90853         the local_gnulib_dir.
90855 2006-11-12  Bruno Haible  <bruno@clisp.org>
90857         * gnulib-tool (func_ln): New function.
90858         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
90860 2006-11-12  Bruno Haible  <bruno@clisp.org>
90862         Finish support for source files in subdirectories.
90863         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
90864         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
90865         AUTOMAKE_OPTIONS.
90866         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
90868 2006-11-12  Bruno Haible  <bruno@clisp.org>
90870         * gnulib-tool (func_get_automake_snippet): Synthesize also an
90871         EXTRA_lib_SOURCES augmentation.
90872         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
90874 2006-11-12  Jim Meyering  <jim@meyering.net>
90876         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
90877         file descriptors.  This also averts a failure on systems with
90878         native openat support when a traversed directory lacks "x" access.
90879         * lib/fts_.h: Include "i-ring.h"
90880         (struct FTS) [fts_fd_ring]: New member.
90881         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
90882         (FCHDIR): Add parentheses.
90883         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
90884         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
90885         When descending, rather than simply closing the previous
90886         fts_cwd_fd value, push that file descriptor onto the ring.
90887         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
90888         (fts_open): Initialize the new fd_ring member.
90889         (fts_close): Clear the ring.
90890         (fts_safe_changedir): When possible, use our new fd_ring to skip
90891         the diropen and fstat and dev/ino comparison that would normally
90892         accompany a virtual `chdir ("..")'.
90894         * modules/fts (Depends-on): Add i-ring.
90895         * modules/i-ring: New module.
90896         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
90897         * m4/i-ring.m4: New file.
90899 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90901         * gnulib-tool (func_create_testdir): Fix replacement of
90902         `build-aux' in configure.ac.  Run autotools in gltests
90903         subdirectory.
90904         (func_create_testdir, func_create_megatestdir, test): There is
90905         no need for '--force' in most autotool invocations in a new
90906         tree.  Actually fail the whole test if any of the tools, or the
90907         configure or make stages fail.
90909         Sync from Automake.
90910         * build-aux/gnupload: Revert last change.  Add pointer to upload
90911         instructions of the GNU Maintenance Instructions.
90912         Suggestion by Karl Berry.
90914 2006-11-10  Jim Meyering  <jim@meyering.net>
90916         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
90918 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90920         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
90921         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
90922         (bind_textdomain_codeset) [! ENABLE_NLS]:
90923         Evaluate all the arguments.  That way, callers get compatible behavior
90924         if the arguments have side effects.  Also, it avoids some GCC
90925         diagnostics in some cases; Joel E. Denny reported problems when Bison
90926         was configured with --enable-gcc-warnigs.
90928 2006-11-10  Jim Meyering  <jim@meyering.net>
90930         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
90931         relevant options in CFLAGS (like -O, -fno-inline) are taken into
90932         account.
90934 2006-11-10  Jim Meyering  <jim@meyering.net>
90936         * modules/inline: New file/module.
90937         * modules/xalloc (Files): Remove m4/inline.m4.
90938         (Depends-on): Add inline, instead.
90939         * modules/oset: Likewise.
90940         * modules/list: Likewise.
90942 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90944         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
90945         Problem reported by Matthew Woehlke.
90947 2006-11-09  Bruno Haible  <bruno@clisp.org>
90949         * lib/tempname.c (gen_tempname): Remove variant that invokes
90950         __gen_tempname.
90951         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
90952         __gen_tempname.
90954 2006-11-08  Bruno Haible  <bruno@clisp.org>
90956         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
90957         to 'yes' instead of 'cross-compiling'.
90959 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
90961         * lib/quotearg.h (quotearg_free): New decl.
90962         * lib/quotearg.c (quotearg_free): New function.
90963         (slot0, nslots, slotvec0, slotvec):
90964         Now file-scope so that quotearg_free can get at them.
90966 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90968         Sync from Automake.
90969         * build-aux/gnupload: Add missing 'gnu' to example URL.
90970         Report by Karl Berry.
90972 2006-11-08  Bruno Haible  <bruno@clisp.org>
90974         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
90975         Suggested by Paul Eggert.
90977 2006-11-08  Jim Meyering  <jim@meyering.net>
90979         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
90980         It's already included if !_LIBC.
90981         (fts_safe_changedir): Add a comment.
90983 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
90985         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
90986         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
90987         Matthew Woehlke.
90989         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
90990         definitions up, to avoid colliding with change below.
90991         (static_inline) [HAVE_INLINE]: New macro.
90992         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
90993         Provide extern decls when !HAVE_INLINE.  Do not define unless
90994         static_inline is defined, either by us or by xmalloc.c.  Use
90995         static_inline rather than static inline.
90996         (XCALLOC): Optimize sizeof(T) = 1 case.
90997         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
90999 2006-11-07  Bruno Haible  <bruno@clisp.org>
91001         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
91002         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
91003         AC_C_INLINE.
91004         * modules/xalloc (Files): Add m4/inline.m4.
91006 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91008         * README: Fix typo.
91009         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
91010         (Miscellanous Notes): ...from this.
91012 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91014         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
91015         Mention that offsetof should be used instead of sizeof.
91016         From Bruno Haible.
91018 2006-11-07  Bruno Haible  <bruno@clisp.org>
91020         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
91022 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91024         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91025         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
91026         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91027         (gl_tree_add_before, gl_tree_add_after):
91028         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
91029         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
91030         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
91031         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
91032         (gl_linked_add_after, gl_linked_add_at): Likewise.
91033         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
91034         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91035         (gl_tree_add_before, gl_tree_add_after): Likewise.
91036         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
91037         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
91038         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
91040 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91042         * lib/gl_oset.h: Use C comment style, not C++ comment style.
91044 2006-11-06  Bruno Haible  <bruno@clisp.org>
91046         * m4/inline.m4: New file.
91047         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
91048         * modules/list (Files): Add m4/inline.m4.
91049         * modules/oset (Files): Likewise.
91051 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91053         * lib/idcache.c: Include <stddef.h>, for offsetof.
91054         (struct userid.name): Change from char * to a flexible array member.
91055         All uses changed.
91056         * modules/idcache (Depends-on): Add flexmember.
91058         * MODULES.html.sh (Core language properties): New module flexmember.
91059         * modules/flexmember, m4/flexmember.m4: New files.
91061         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
91062         inline functions that are identical with the old xnmalloc_inline,
91063         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
91064         that we can avoid some unnecessary integer multiplications and
91065         divisions in the common case where the element size is known at
91066         compile time.
91067         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
91068         needed.
91069         (xnboundedmalloc): Remove.
91070         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
91071         arguments, for consistency with rest of this header.
91072         (xcharalloc): Rewrite using XNMALLOC.
91073         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
91074         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
91075         versions have been moved to lib/xalloc.h and renamed to be the
91076         non-*_inline versions.
91077         (xmalloc, xrealloc): Implement without reference to the xnmalloc
91078         and xnrealloc functions, since those functions are now inline and
91079         now call us.
91080         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
91081         renaming described above.
91082         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
91083         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
91084         captures the dependency in AC_C_INLINE.
91086         New module canonicalize-lgpl, proposed by Charles Wilson in
91087         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
91088         with a few small changes afterwards.
91089         * MODULES.html.sh (File system functions): New module
91090         canonicalize-lgpl.
91091         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
91092         and canonicalize_file_name.
91093         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
91094         * modules/canonicalize-lgpl: New files.
91096 2006-11-05  Bruno Haible  <bruno@clisp.org>
91098         * gnulib-tool (func_import, func_create_testdir): Create directories
91099         also for files in subdirectories of lib/.
91101 2006-11-05  Bruno Haible  <bruno@clisp.org>
91103         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
91104         ANSI C compliant.
91106 2006-11-03  Bruno Haible  <bruno@clisp.org>
91108         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91109         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
91110         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
91111         (xnboundedmalloc): New inline function.
91112         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
91113         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
91114         xmalloc.
91115         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
91116         xmalloc.
91117         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
91118         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
91119         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
91120         xmalloc.
91121         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91122         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
91123         xmalloc.
91124         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
91125         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91126         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
91127         xmalloc.
91128         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91129         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
91130         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91131         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
91132         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
91133         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
91134         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
91136 2006-11-03  Bruno Haible  <bruno@clisp.org>
91138         * lib/c-ctype.h [C++]: Define functions without name mangling.
91139         * lib/fwriteerror.h [C++]: Likewise.
91140         * lib/gcd.h [C++]: Likewise.
91141         * lib/linebreak.h [C++]: Likewise.
91143 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
91145         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
91146         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
91147         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
91148         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
91149         Check for functions and headers just once.
91150         Check for declaration of canonicalize_file_name.
91151         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
91153 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91155         * gnulib-tool (func_import): Fix typo in actioncmd.
91157 2006-11-02  Bruno Haible  <bruno@clisp.org>
91159         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
91160         newline sequence in the Makefile.am snippet as a space, like "make"
91161         does.
91162         Reported by Roger Persson <perrog@gmail.com>.
91164 2006-11-01  Bruno Haible  <bruno@clisp.org>
91166         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
91167         already declared in <string.h>.
91168         * lib/strcase.h (strncasecmp): Don't declare it if yes.
91170 2006-11-01  Bruno Haible  <bruno@clisp.org>
91172         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
91173         * lib/strcase.h: Include <string.h>.
91174         (strcasecmp): Define to rpl_strcasecmp here.
91176 2006-11-01  Bruno Haible  <bruno@clisp.org>
91178         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
91180 2006-11-01  Eric Blake  <ebb9@byu.net>
91182         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
91184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
91186 2006-10-29  Bruno Haible  <bruno@clisp.org>
91188         Make it compile in C++ mode.
91189         * lib/full-write.c (full_rw): Add a cast.
91191 2006-11-01  Bruno Haible  <bruno@clisp.org>
91193         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
91194         be POSIX compliant.
91195         Reported by Roger Persson <perrog@gmail.com>.
91197 2006-11-01  Eric Blake  <ebb9@byu.net>
91199         * lib/getopt_.h: Fix comments.
91201 2006-10-31  Eric Blake  <ebb9@byu.net>
91203         * modules/tmpdir (Depends-on): Add sys_stat.
91204         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
91205         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
91206         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
91207         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
91208         tempname.
91210 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
91212         Avoid some C++ diagnostics reported by Bruno Haible.
91213         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
91214         xmalloc.
91215         (quotearg_alloc): Use xcharalloc rather than xmalloc.
91216         (struct slotvec): Move to top level.
91217         (quotearg_n_options): Rewrite to avoid xmalloc.
91218         * lib/xalloc.h (xcharalloc): New function.
91219         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
91220         [defined __cplusplus]: Add function template that provides result
91221         type propagation.  This part of the change is from Bruno Haible.
91223 2006-10-29  Bruno Haible  <bruno@clisp.org>
91225         Make it compile in C++ mode.
91226         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
91227         * lib/strnlen1.c (strnlen1): Cast memchr result.
91228         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
91229         * lib/clean-temp.c (string_equals, string_hash): Add casts.
91230         (create_temp_dir): Rename local variable 'template'.
91231         (compile_csharp_using_sscli): Add cast.
91232         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
91233         * lib/findprog.c (find_in_path): Likewise.
91234         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
91235         * lib/wait-process.c (register_slave_subprocess): Likewise.
91237 2006-10-22  Bruno Haible  <bruno@clisp.org>
91239         * modules/tsearch: New file.
91240         * lib/tsearch.h: New file.
91241         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
91242         * m4/tsearch.m4: New file.
91243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
91245 2006-10-29  Eric Blake  <ebb9@byu.net>
91247         * lib/arcfour.c: Assume config.h.
91248         * lib/arctwo.c: Likewise.
91249         * lib/base64.c: Likewise.
91250         * lib/check-version.c: Likewise.
91251         * lib/crc.c: Likewise.
91252         * lib/des.c: Likewise.
91253         * lib/gc-gnulib.c: Likewise.
91254         * lib/gc-libgcrypt.c: Likewise.
91255         * lib/gc-pbkdf2-sha1.c: Likewise.
91256         * lib/getaddrinfo.c: Likewise.
91257         * lib/getdelim.c: Likewise.
91258         * lib/getline.c: Likewise.
91259         * lib/hmac-md5.c: Likewise.
91260         * lib/hmac-sha1.c: Likewise.
91261         * lib/iconvme.c: Likewise.
91262         * lib/md2.c: Likewise.
91263         * lib/md4.c: Likewise.
91264         * lib/memxor.c: Likewise.
91265         * lib/read-file.c: Likewise.
91266         * lib/readline.c: Likewise.
91267         * lib/rijndael-alg-fst.c: Likewise.
91268         * lib/rijndael-api-fst.c: Likewise.
91269         * lib/xgetdomainname.c: Likewise.
91271 2006-10-28  Eric Blake  <ebb9@byu.net>
91273         * lib/xstrndup.c: Assume config.h.
91275 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
91277         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
91278         stat-macros.h is now for our own macros, whereas stat_h is for
91279         macros in the <sys/stat.h> name space.
91280         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
91281         (STAT_MACROS_H): Remove.
91282         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
91283         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
91284         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
91285         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
91286         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
91287         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
91288         Move these macros to ...
91289         * lib/stat_.h: here.  Don't include stat-macros.h.
91290         * lib/canonicalize.c: Don't include stat-macros.h.
91291         * lib/chown.c: Likewise.
91292         * lib/euidaccess.c: Likewise.
91293         * lib/file-type.c: Likewise.
91294         * lib/filemode.c: Likewise.
91295         * lib/glob.c: Likewise.
91296         * lib/isapipe.c: Likewise.
91297         * lib/lchown.c: Likewise.
91298         * lib/lstat.c: Likewise.
91299         * lib/mkdir-p.c: Likewise.
91300         * lib/rmdir.c: Likewise.
91301         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
91302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
91303         unless mkdir isn't declared, to speed up 'configure'.
91304         Always create sys/stat.h, since it's unlikely any real sys/stat.h
91305         would define all the S_* symbols.
91306         * modules/canonicalize (Depends-on):
91307         Depend on sys_stat, not stat-macros.
91308         * modules/chown: Likewise.
91309         * modules/euidaccess: Likewise.
91310         * modules/filemode: Likewise.
91311         * modules/file-type: Likewise.
91312         * modules/glob: Likewise.
91313         * modules/isapipe: Likewise.
91314         * modules/lchown: Likewise.
91315         * modules/lstat: Likewise.
91316         * modules/mkancesdirs: Likewise.
91317         * modules/rmdir: Likewise.
91318         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
91319         * modules/modechange: Likewise.
91320         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
91321         (configure.ac): Remove gl_STAT_MACROS.
91322         * modules/sys_stat (Depends-on): Remove stat-macros.
91324 2006-10-27  Bruno Haible  <bruno@clisp.org>
91326         * m4/signed.m4: Remove file.
91327         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
91328         invocation.
91329         * modules/vasnprintf (Files): Remove m4/signed.m4.
91331 2006-10-27  Bruno Haible  <bruno@clisp.org>
91333         Update to GNU gettext 0.16.
91334         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
91335         m4/inttypes-h.m4, m4/signed.m4.
91336         * m4/gettext.m4: Update to GNU gettext 0.16.
91337         * m4/intl.m4: New file, from GNU gettext.
91338         * m4/intldir.m4: New file, from GNU gettext.
91339         * config/srclist.txt: Update
91341 2006-10-27  Eric Blake  <ebb9@byu.net>
91343         * MODULES.html.sh: Document tempname.
91344         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
91345         dependencies.
91346         (Files): Move lib/tempname.c...
91347         * modules/tempname: ...to this new module.
91348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
91349         (gl_PREREQ_TEMPNAME): Move...
91350         * m4/tempname.m4: ...to this new file.
91351         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
91352         * modules/sys_stat (Depends-on): Add stat-macros.
91353         * lib/stat_.h (includes): Pick up stat macros.
91354         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
91355         if stat macros are broken.
91356         * lib/tempname.c (includes): No need to include "stat-macros.h".
91357         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
91358         (direxists, __path_search) [!_LIBC]: Don't compile these in
91359         gnulib; the tmpdir module covers that.
91360         * lib/tempname.h: New file.
91362 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
91364         * COPYING: Explain how gnulib-tool converts licence headers.
91365         Almost all wording by Eric Blake.
91367 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
91369         * lib/mbchar.h (is_basic_table): Make read-only.
91370         * lib/mbchar.c (is_basic_table): Likewise.
91371         Reported by John Darrington.
91373 2006-10-25  Bruno Haible  <bruno@clisp.org>
91375         * lib/progname.h (set_program_name): Undefine before defining.
91377 2006-10-25  Bruno Haible  <bruno@clisp.org>
91379         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
91380         false for non-gcc C++ compilers.
91381         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91383 2006-10-24  Bruno Haible  <bruno@clisp.org>
91385         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
91386         iconv implementations like Irix iconv.
91388 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91390         * modules/vararrays: New file.
91391         * m4/vararrays.m4: New file, taken from diffutils.
91392         * MODULES.html.sh: New module vararrays.
91394 2006-10-24  Karl Berry  <karl@gnu.org>
91396         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
91397         Don't call GNU Unix.
91399 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91401         * users.txt: Add Libtool.
91403         Sync from Libtool:
91405         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91407         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
91408         to gnulib's policy of including config.h unconditionally.
91410 2006-10-24  Bruno Haible  <bruno@clisp.org>
91412         * modules/wcwidth (Files): Add m4/wint_t.m4.
91413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
91414         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
91416 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91418         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
91419         to pacify GCC with some -W flags enabled.  Problem reported by
91420         Bruno Haible.
91422 2006-10-24  Jim Meyering  <jim@meyering.net>
91424         * MODULES.html.sh: Remove uinttostr.  It's not a module.
91425         Reported by Karl Berry.
91427 2006-10-23  Bruno Haible  <bruno@clisp.org>
91429         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
91431 2006-10-24  Bruno Haible  <bruno@clisp.org>
91433         * lib/gl_list.h: Use C comment style, not C++ comment style.
91435 2006-10-23  Eric Blake  <ebb9@byu.net>
91437         * lib/getaddrinfo.c (includes): Add missing include.
91439 2006-10-23  Bruno Haible  <bruno@clisp.org>
91440             Paul Eggert  <eggert@cs.ucla.edu>
91442         Ability to rename obstack_free.
91443         * lib/obstack.h (__obstack_free): New macro. Declare instead of
91444         obstack_free.
91445         (obstack_free): Invoke the __obstack_free macro.
91446         * lib/obstack.c (obstack_free): Use __obstack_free macro.
91448 2006-10-23  Bruno Haible  <bruno@clisp.org>
91449             Paul Eggert  <eggert@cs.ucla.edu>
91451         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
91452         __argc, __argv from the declaration. (They are defined as macros on
91453         mingw.)
91455 2006-10-22  Bruno Haible  <bruno@clisp.org>
91457         * doc/gnulib-intro.texi: New file.
91458         * doc/gnulib.texi: Include it.
91460 2006-10-21  Bruno Haible  <bruno@clisp.org>
91462         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
91463         "Introduction", "Miscellanous Notes", "Particular Modules".
91465 2006-10-21  Bruno Haible  <bruno@clisp.org>
91467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91468         Change mostlyclean-local rule to avoid sh syntax error from bash
91469         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
91471 2006-10-23  Jim Meyering  <jim@meyering.net>
91473         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
91474         in place of snprintf.
91476         * modules/inttostr (Files): Add lib/uinttostr.c.
91477         * lib/uinttostr.c (inttostr): New file/function.
91478         * lib/inttostr.h (uinttostr): Declare.
91479         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
91480         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
91481         Add uinttostr.
91482         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
91484 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
91486         * lib/canonicalize.c (ELOOP): Define if not already defined.
91487         Problem reported by Bruno Haible in
91488         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
91490 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
91492         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
91493         Problem reported by Perry Smith and Ville Laurikari.
91495         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
91496         uses.
91498 2006-10-19  Bruno Haible  <bruno@clisp.org>
91500         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
91501         for mingw.
91503 2006-10-19  Bruno Haible  <bruno@clisp.org>
91505         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
91506         Needed for mingw.
91508 2006-10-19  Bruno Haible  <bruno@clisp.org>
91510         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
91512 2006-10-19  Bruno Haible  <bruno@clisp.org>
91514         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
91515         it.
91517 2006-10-19  Bruno Haible  <bruno@clisp.org>
91519         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
91520         invocation.
91522 2006-10-19  Bruno Haible  <bruno@clisp.org>
91524         * gnulib-tool (func_create_testdir): Don't include ftruncate and
91525         mountlist by default.
91527 2006-10-16  Bruno Haible  <bruno@clisp.org>
91529         * lib/c-strstr.c: Include c-strstr.h.
91531 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91533         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
91534         in a slash.
91536 2006-10-18  Bruno Haible  <bruno@clisp.org>
91538         * lib/lock.h [C++]: Wrap definitions in extern "C".
91540 2006-10-18  Bruno Haible  <bruno@clisp.org>
91542         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
91543         gl_LIBOBJS list.
91545 2006-10-18  Bruno Haible  <bruno@clisp.org>
91547         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
91549 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
91551         * lib/xstrtol.h: Include gettext.h.
91552         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
91553         Problem reported by Eric Blake.
91554         * modules/xstrtol (Depends-on): Add gettext-h.
91556 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
91558         * lib/strftime.c (advance): New macro.
91559         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
91560         incomplete type, so you can't add 0 to it.  Problem and patch
91561         reported by Eelco Dolstra for dietlibc.
91563 2006-10-18  Jim Meyering  <jim@meyering.net>
91565         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
91566         type for a local, and rename it: s/up/user_proc/.
91568 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
91570         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
91571         READ_UTMP_USER_PROCESS.
91572         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
91574 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91576         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
91577         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
91579 2006-10-17  Eric Blake  <ebb9@byu.net>
91581         * lib/sigprocmask.c (sigprocmask): Fix typo.
91583         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
91585         * modules/clean-temp (Makefile.am): Don't add to make output...
91586         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
91587         config.h.
91589 2006-10-17  Bruno Haible  <bruno@clisp.org>
91591         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
91592         differently if DEFAULT_TEXT_DOMAIN is set.
91594 2006-10-16  Bruno Haible  <bruno@clisp.org>
91596         * lib/clean-temp.c: Include fwriteerror.h.
91598 2006-10-16  Bruno Haible  <bruno@clisp.org>
91600         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
91602 2006-10-16  Bruno Haible  <bruno@clisp.org>
91604         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
91605         * lib/sigprocmask.h: Include <sys/types.h>.
91606         (sigset_t): Use the system's definition if present.
91608 2006-10-17  Eric Blake  <ebb9@byu.net>
91610         * lib/xvasprintf.c (includes): Assume config.h.
91611         * lib/xasprintf.c (includes): Likewise.
91613 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91615         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
91616         at least as wide as intmax_t.
91618 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
91620         (Imported from Automake.)
91621         * build-aux/gnupload: Update to version 1.1 of directive file.
91623 2006-10-16  Eric Blake  <ebb9@byu.net>
91625         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
91626         match Automake 1.10a.
91628 2006-10-14  Bruno Haible  <bruno@clisp.org>
91630         * modules/sigprocmask: New file.
91631         * lib/sigprocmask.h: New file.
91632         * lib/sigprocmask.c: New file.
91633         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
91634         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
91635         request sigprocmask.o.
91636         (gl_PREREQ_SIGPROCMASK): New macro.
91637         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
91638         (Depends-on): Add sigprocmask.
91639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
91640         gt_SIGNALBLOCKING. Test for 'raise' only once.
91641         * lib/fatal-signal.c: Include sigprocmask.h.
91642         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
91643         unblock_fatal_signals): Define always.
91644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91645         sigprocmask.
91647 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
91649         Sync from Automake.
91650         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
91651         which incorrectly sets the mode of an existing destination
91652         directory.  In some cases the unpatched install-sh could do the
91653         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
91654         system.  We hope this is rare in practice, but it's clearly worth
91655         fixing.  Problem reported by Alex Unleashed in
91656         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
91657         Also, don't bother to check for -m bugs unless we're using -m;
91658         suggested by Stepan Kasal.
91660 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91662         Sync from Automake.
91663         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
91664         `-c' flag, so they appear at the same position as in %FASTDEP%
91665         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
91666         which ignores unknown options only after the first non-option.
91667         Bug report against M4 by Nelson H. F. Beebe.
91669 2006-10-13  Jim Meyering  <jim@meyering.net>
91671         Fix a bug in yesterday's change.
91672         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
91673         p->fts_statp->st_dev would be used uninitialized.
91674         Ensures that we always call fts_stat on the very first entry.
91675         Miklos Szeredi reported that find -xdev stopped working.
91677 2006-10-12  Bruno Haible  <bruno@clisp.org>
91679         * gnulib-tool (func_get_automake_snippet): Append an automatically
91680         computed EXTRA_DIST augmentation.
91681         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
91682         * modules/alloca-opt (Makefile.am): Likewise.
91683         * modules/allocsa (Makefile.am): Likewise.
91684         * modules/arcfour (Makefile.am): Likewise.
91685         * modules/arctwo (Makefile.am): Likewise.
91686         * modules/argmatch (Makefile.am): Likewise.
91687         * modules/argz (Makefile.am): Likewise.
91688         * modules/atexit (Makefile.am): Likewise.
91689         * modules/backupfile (Makefile.am): Likewise.
91690         * modules/byteswap (Makefile.am): Likewise.
91691         * modules/c-strtod (Makefile.am): Likewise.
91692         * modules/c-strtold (Makefile.am): Likewise.
91693         * modules/calloc (Makefile.am): Likewise.
91694         * modules/canon-host (Makefile.am): Likewise.
91695         * modules/canonicalize (Makefile.am): Likewise.
91696         * modules/chdir-long (Makefile.am): Likewise.
91697         * modules/chdir-safer (Makefile.am): Likewise.
91698         * modules/check-version (Makefile.am): Likewise.
91699         * modules/chown (Makefile.am): Likewise.
91700         * modules/cloexec (Makefile.am): Likewise.
91701         * modules/close-stream (Makefile.am): Likewise.
91702         * modules/closeout (Makefile.am): Likewise.
91703         * modules/crc (Makefile.am): Likewise.
91704         * modules/csharpexec (Makefile.am): Likewise.
91705         * modules/cycle-check (Makefile.am): Likewise.
91706         * modules/des (Makefile.am): Likewise.
91707         * modules/dev-ino (Makefile.am): Likewise.
91708         * modules/dirfd (Makefile.am): Likewise.
91709         * modules/dirname (Makefile.am): Likewise.
91710         * modules/dup2 (Makefile.am): Likewise.
91711         * modules/eealloc (Makefile.am): Likewise.
91712         * modules/error (Makefile.am): Likewise.
91713         * modules/euidaccess (Makefile.am): Likewise.
91714         * modules/exclude (Makefile.am): Likewise.
91715         * modules/exitfail (Makefile.am): Likewise.
91716         * modules/fcntl-safer (Makefile.am): Likewise.
91717         * modules/fcntl (Makefile.am): Likewise.
91718         * modules/file-type (Makefile.am): Likewise.
91719         * modules/fileblocks (Makefile.am): Likewise.
91720         * modules/filemode (Makefile.am): Likewise.
91721         * modules/filenamecat (Makefile.am): Likewise.
91722         * modules/fnmatch (Makefile.am): Likewise.
91723         * modules/fopen-safer (Makefile.am): Likewise.
91724         * modules/fpending (Makefile.am): Likewise.
91725         * modules/fprintftime (Makefile.am): Likewise.
91726         * modules/free (Makefile.am): Likewise.
91727         * modules/fsusage (Makefile.am): Likewise.
91728         * modules/ftruncate (Makefile.am): Likewise.
91729         * modules/fts (Makefile.am): Likewise.
91730         * modules/gc-arcfour (Makefile.am): Likewise.
91731         * modules/gc-des (Makefile.am): Likewise.
91732         * modules/gc-hmac-md5 (Makefile.am): Likewise.
91733         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
91734         * modules/gc-md4 (Makefile.am): Likewise.
91735         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91736         * modules/gc-sha1 (Makefile.am): Likewise.
91737         * modules/gc (Makefile.am): Likewise.
91738         * modules/getaddrinfo (Makefile.am): Likewise.
91739         * modules/getcwd (Makefile.am): Likewise.
91740         * modules/getdelim (Makefile.am): Likewise.
91741         * modules/getdomainname (Makefile.am): Likewise.
91742         * modules/getgroups (Makefile.am): Likewise.
91743         * modules/gethostname (Makefile.am): Likewise.
91744         * modules/gethrxtime (Makefile.am): Likewise.
91745         * modules/getline (Makefile.am): Likewise.
91746         * modules/getloadavg (Makefile.am): Likewise.
91747         * modules/getlogin_r (Makefile.am): Likewise.
91748         * modules/getndelim2 (Makefile.am): Likewise.
91749         * modules/getopt (Makefile.am): Likewise.
91750         * modules/getpagesize (Makefile.am): Likewise.
91751         * modules/getpass-gnu (Makefile.am): Likewise.
91752         * modules/getpass (Makefile.am): Likewise.
91753         * modules/getsubopt (Makefile.am): Likewise.
91754         * modules/gettime (Makefile.am): Likewise.
91755         * modules/gettimeofday (Makefile.am): Likewise.
91756         * modules/getugroups (Makefile.am): Likewise.
91757         * modules/getusershell (Makefile.am): Likewise.
91758         * modules/glob (Makefile.am): Likewise.
91759         * modules/group-member (Makefile.am): Likewise.
91760         * modules/hard-locale (Makefile.am): Likewise.
91761         * modules/hash (Makefile.am): Likewise.
91762         * modules/hmac-md5 (Makefile.am): Likewise.
91763         * modules/hmac-sha1 (Makefile.am): Likewise.
91764         * modules/human (Makefile.am): Likewise.
91765         * modules/idcache (Makefile.am): Likewise.
91766         * modules/imaxabs (Makefile.am): Likewise.
91767         * modules/imaxdiv (Makefile.am): Likewise.
91768         * modules/inet_ntop (Makefile.am): Likewise.
91769         * modules/inet_pton (Makefile.am): Likewise.
91770         * modules/intprops (Makefile.am): Likewise.
91771         * modules/inttostr (Makefile.am): Likewise.
91772         * modules/inttypes (Makefile.am): Likewise.
91773         * modules/isapipe (Makefile.am): Likewise.
91774         * modules/javaversion (Makefile.am): Likewise.
91775         * modules/lchmod (Makefile.am): Likewise.
91776         * modules/lchown (Makefile.am): Likewise.
91777         * modules/localcharset (Makefile.am): Likewise.
91778         * modules/long-options (Makefile.am): Likewise.
91779         * modules/lstat (Makefile.am): Likewise.
91780         * modules/malloc (Makefile.am): Likewise.
91781         * modules/mathl (Makefile.am): Likewise.
91782         * modules/mbchar (Makefile.am): Likewise.
91783         * modules/md2 (Makefile.am): Likewise.
91784         * modules/md4 (Makefile.am): Likewise.
91785         * modules/md5 (Makefile.am): Likewise.
91786         * modules/memcasecmp (Makefile.am): Likewise.
91787         * modules/memchr (Makefile.am): Likewise.
91788         * modules/memcmp (Makefile.am): Likewise.
91789         * modules/memcoll (Makefile.am): Likewise.
91790         * modules/memcpy (Makefile.am): Likewise.
91791         * modules/memmem (Makefile.am): Likewise.
91792         * modules/memmove (Makefile.am): Likewise.
91793         * modules/mempcpy (Makefile.am): Likewise.
91794         * modules/memrchr (Makefile.am): Likewise.
91795         * modules/memset (Makefile.am): Likewise.
91796         * modules/memxor (Makefile.am): Likewise.
91797         * modules/mkancesdirs (Makefile.am): Likewise.
91798         * modules/mkdir-p (Makefile.am): Likewise.
91799         * modules/mkdir (Makefile.am): Likewise.
91800         * modules/mkdtemp (Makefile.am): Likewise.
91801         * modules/mkstemp (Makefile.am): Likewise.
91802         * modules/mktime (Makefile.am): Likewise.
91803         * modules/modechange (Makefile.am): Likewise.
91804         * modules/mountlist (Makefile.am): Likewise.
91805         * modules/nanosleep (Makefile.am): Likewise.
91806         * modules/obstack (Makefile.am): Likewise.
91807         * modules/openat (Makefile.am): Likewise.
91808         * modules/pagealign_alloc (Makefile.am): Likewise.
91809         * modules/pathmax (Makefile.am): Likewise.
91810         * modules/physmem (Makefile.am): Likewise.
91811         * modules/poll (Makefile.am): Likewise.
91812         * modules/posixtm (Makefile.am): Likewise.
91813         * modules/posixver (Makefile.am): Likewise.
91814         * modules/putenv (Makefile.am): Likewise.
91815         * modules/quote (Makefile.am): Likewise.
91816         * modules/quotearg (Makefile.am): Likewise.
91817         * modules/raise (Makefile.am): Likewise.
91818         * modules/read-file (Makefile.am): Likewise.
91819         * modules/readline (Makefile.am): Likewise.
91820         * modules/readlink (Makefile.am): Likewise.
91821         * modules/readtokens (Makefile.am): Likewise.
91822         * modules/readutmp (Makefile.am): Likewise.
91823         * modules/realloc (Makefile.am): Likewise.
91824         * modules/regex (Makefile.am): Likewise.
91825         * modules/rename-dest-slash (Makefile.am): Likewise.
91826         * modules/rename (Makefile.am): Likewise.
91827         * modules/rijndael (Makefile.am): Likewise.
91828         * modules/rmdir (Makefile.am): Likewise.
91829         * modules/rpmatch (Makefile.am): Likewise.
91830         * modules/safe-read (Makefile.am): Likewise.
91831         * modules/safe-write (Makefile.am): Likewise.
91832         * modules/same-inode (Makefile.am): Likewise.
91833         * modules/same (Makefile.am): Likewise.
91834         * modules/save-cwd (Makefile.am): Likewise.
91835         * modules/savedir (Makefile.am): Likewise.
91836         * modules/setenv (Makefile.am): Likewise.
91837         * modules/settime (Makefile.am): Likewise.
91838         * modules/sha1 (Makefile.am): Likewise.
91839         * modules/sig2str (Makefile.am): Likewise.
91840         * modules/snprintf (Makefile.am): Likewise.
91841         * modules/stat-macros (Makefile.am): Likewise.
91842         * modules/stat-time (Makefile.am): Likewise.
91843         * modules/stdbool (Makefile.am): Likewise.
91844         * modules/stdint (Makefile.am): Likewise.
91845         * modules/stdlib-safer (Makefile.am): Likewise.
91846         * modules/stpcpy (Makefile.am): Likewise.
91847         * modules/stpncpy (Makefile.am): Likewise.
91848         * modules/strcase (Makefile.am): Likewise.
91849         * modules/strcasestr (Makefile.am): Likewise.
91850         * modules/strchrnul (Makefile.am): Likewise.
91851         * modules/strcspn (Makefile.am): Likewise.
91852         * modules/strdup (Makefile.am): Likewise.
91853         * modules/strerror (Makefile.am): Likewise.
91854         * modules/strftime (Makefile.am): Likewise.
91855         * modules/strndup (Makefile.am): Likewise.
91856         * modules/strnlen (Makefile.am): Likewise.
91857         * modules/strpbrk (Makefile.am): Likewise.
91858         * modules/strsep (Makefile.am): Likewise.
91859         * modules/strstr (Makefile.am): Likewise.
91860         * modules/strtod (Makefile.am): Likewise.
91861         * modules/strtoimax (Makefile.am): Likewise.
91862         * modules/strtok_r (Makefile.am): Likewise.
91863         * modules/strtol (Makefile.am): Likewise.
91864         * modules/strtoll (Makefile.am): Likewise.
91865         * modules/strtoul (Makefile.am): Likewise.
91866         * modules/strtoull (Makefile.am): Likewise.
91867         * modules/strtoumax (Makefile.am): Likewise.
91868         * modules/strverscmp (Makefile.am): Likewise.
91869         * modules/sys_socket (Makefile.am): Likewise.
91870         * modules/sys_stat (Makefile.am): Likewise.
91871         * modules/sysexits (Makefile.am): Likewise.
91872         * modules/time_r (Makefile.am): Likewise.
91873         * modules/timegm (Makefile.am): Likewise.
91874         * modules/timespec (Makefile.am): Likewise.
91875         * modules/tmpfile-safer (Makefile.am): Likewise.
91876         * modules/trim (Makefile.am): Likewise.
91877         * modules/unistd-safer (Makefile.am): Likewise.
91878         * modules/unlinkdir (Makefile.am): Likewise.
91879         * modules/unlocked-io (Makefile.am): Likewise.
91880         * modules/userspec (Makefile.am): Likewise.
91881         * modules/utime (Makefile.am): Likewise.
91882         * modules/utimecmp (Makefile.am): Likewise.
91883         * modules/utimens (Makefile.am): Likewise.
91884         * modules/vasnprintf (Makefile.am): Likewise.
91885         * modules/vasprintf (Makefile.am): Likewise.
91886         * modules/vsnprintf (Makefile.am): Likewise.
91887         * modules/xalloc (Makefile.am): Likewise.
91888         * modules/xgetcwd (Makefile.am): Likewise.
91889         * modules/xnanosleep (Makefile.am): Likewise.
91890         * modules/xreadlink (Makefile.am): Likewise.
91891         * modules/xstrtod (Makefile.am): Likewise.
91892         * modules/xstrtol (Makefile.am): Likewise.
91893         * modules/xstrtold (Makefile.am): Likewise.
91894         * modules/yesno (Makefile.am): Likewise.
91895         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
91897 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
91899         * modules/error (Makefile.am): Distribute files through
91900         EXTRA_DIST, not lib_SOURCES.
91902 2006-10-12  Eric Blake  <ebb9@byu.net>
91904         * modules/error (Makefile.am): Distribute files in /lib.
91905         * modules/obstack (Makefile.am): Likewise.
91907 2006-10-12  Bruno Haible  <bruno@clisp.org>
91909         * modules/acl (Makefile.am): Distribute all files in lib/ through
91910         EXTRA_DIST.
91911         * modules/arcfour (Makefile.am): Likewise.
91912         * modules/arctwo (Makefile.am): Likewise.
91913         * modules/argmatch (Makefile.am): Likewise.
91914         * modules/argz (Makefile.am): Likewise.
91915         * modules/atexit (Makefile.am): Likewise.
91916         * modules/backupfile (Makefile.am): Likewise.
91917         * modules/c-strtod (Makefile.am): Likewise.
91918         * modules/c-strtold (Makefile.am): Likewise.
91919         * modules/calloc (Makefile.am): Likewise.
91920         * modules/canon-host (Makefile.am): Likewise.
91921         * modules/canonicalize (Makefile.am): Likewise.
91922         * modules/chdir-long (Makefile.am): Likewise.
91923         * modules/chdir-safer (Makefile.am): Likewise.
91924         * modules/check-version (Makefile.am): Likewise.
91925         * modules/chown (Makefile.am): Likewise.
91926         * modules/cloexec (Makefile.am): Likewise.
91927         * modules/close-stream (Makefile.am): Likewise.
91928         * modules/closeout (Makefile.am): Likewise.
91929         * modules/crc (Makefile.am): Likewise.
91930         * modules/cycle-check (Makefile.am): Likewise.
91931         * modules/des (Makefile.am): Likewise.
91932         * modules/dirfd (Makefile.am): Likewise.
91933         * modules/dirname (Makefile.am): Likewise.
91934         * modules/dup2 (Makefile.am): Likewise.
91935         * modules/euidaccess (Makefile.am): Likewise.
91936         * modules/exclude (Makefile.am): Likewise.
91937         * modules/exitfail (Makefile.am): Likewise.
91938         * modules/fcntl-safer (Makefile.am): Likewise.
91939         * modules/file-type (Makefile.am): Likewise.
91940         * modules/fileblocks (Makefile.am): Likewise.
91941         * modules/filemode (Makefile.am): Likewise.
91942         * modules/filenamecat (Makefile.am): Likewise.
91943         * modules/fnmatch (Makefile.am): Likewise.
91944         * modules/fopen-safer (Makefile.am): Likewise.
91945         * modules/fpending (Makefile.am): Likewise.
91946         * modules/fprintftime (Makefile.am): Likewise.
91947         * modules/free (Makefile.am): Likewise.
91948         * modules/fsusage (Makefile.am): Likewise.
91949         * modules/ftruncate (Makefile.am): Likewise.
91950         * modules/fts (Makefile.am): Likewise.
91951         * modules/gc (Makefile.am): Likewise.
91952         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91953         * modules/getaddrinfo (Makefile.am): Likewise.
91954         * modules/getcwd (Makefile.am): Likewise.
91955         * modules/getdelim (Makefile.am): Likewise.
91956         * modules/getdomainname (Makefile.am): Likewise.
91957         * modules/getgroups (Makefile.am): Likewise.
91958         * modules/gethostname (Makefile.am): Likewise.
91959         * modules/gethrxtime (Makefile.am): Likewise.
91960         * modules/getline (Makefile.am): Likewise.
91961         * modules/getloadavg (Makefile.am): Likewise.
91962         * modules/getlogin_r (Makefile.am): Likewise.
91963         * modules/getopt (Makefile.am): Likewise.
91964         * modules/getpass (Makefile.am): Likewise.
91965         * modules/getpass-gnu (Makefile.am): Likewise.
91966         * modules/getsubopt (Makefile.am): Likewise.
91967         * modules/gettime (Makefile.am): Likewise.
91968         * modules/gettimeofday (Makefile.am): Likewise.
91969         * modules/getugroups (Makefile.am): Likewise.
91970         * modules/getusershell (Makefile.am): Likewise.
91971         * modules/glob (Makefile.am): Likewise.
91972         * modules/group-member (Makefile.am): Likewise.
91973         * modules/hard-locale (Makefile.am): Likewise.
91974         * modules/hash (Makefile.am): Likewise.
91975         * modules/hmac-md5 (Makefile.am): Likewise.
91976         * modules/hmac-sha1 (Makefile.am): Likewise.
91977         * modules/human (Makefile.am): Likewise.
91978         * modules/idcache (Makefile.am): Likewise.
91979         * modules/imaxabs (Makefile.am): Likewise.
91980         * modules/imaxdiv (Makefile.am): Likewise.
91981         * modules/inet_ntop (Makefile.am): Likewise.
91982         * modules/inet_pton (Makefile.am): Likewise.
91983         * modules/inttostr (Makefile.am): Likewise.
91984         * modules/isapipe (Makefile.am): Likewise.
91985         * modules/lchown (Makefile.am): Likewise.
91986         * modules/long-options (Makefile.am): Likewise.
91987         * modules/lstat (Makefile.am): Likewise.
91988         * modules/malloc (Makefile.am): Likewise.
91989         * modules/mathl (Makefile.am): Likewise.
91990         * modules/mbchar (Makefile.am): Likewise.
91991         * modules/md2 (Makefile.am): Likewise.
91992         * modules/md4 (Makefile.am): Likewise.
91993         * modules/md5 (Makefile.am): Likewise.
91994         * modules/memcasecmp (Makefile.am): Likewise.
91995         * modules/memchr (Makefile.am): Likewise.
91996         * modules/memcmp (Makefile.am): Likewise.
91997         * modules/memcoll (Makefile.am): Likewise.
91998         * modules/memcpy (Makefile.am): Likewise.
91999         * modules/memmem (Makefile.am): Likewise.
92000         * modules/memmove (Makefile.am): Likewise.
92001         * modules/mempcpy (Makefile.am): Likewise.
92002         * modules/memrchr (Makefile.am): Likewise.
92003         * modules/memset (Makefile.am): Likewise.
92004         * modules/memxor (Makefile.am): Likewise.
92005         * modules/mkancesdirs (Makefile.am): Likewise.
92006         * modules/mkdir (Makefile.am): Likewise.
92007         * modules/mkdir-p (Makefile.am): Likewise.
92008         * modules/mkdtemp (Makefile.am): Likewise.
92009         * modules/mkstemp (Makefile.am): Likewise.
92010         * modules/mktime (Makefile.am): Likewise.
92011         * modules/modechange (Makefile.am): Likewise.
92012         * modules/mountlist (Makefile.am): Likewise.
92013         * modules/nanosleep (Makefile.am): Likewise.
92014         * modules/openat (Makefile.am): Likewise.
92015         * modules/pagealign_alloc (Makefile.am): Likewise.
92016         * modules/physmem (Makefile.am): Likewise.
92017         * modules/poll (Makefile.am): Likewise.
92018         * modules/posixtm (Makefile.am): Likewise.
92019         * modules/posixver (Makefile.am): Likewise.
92020         * modules/putenv (Makefile.am): Likewise.
92021         * modules/quote (Makefile.am): Likewise.
92022         * modules/quotearg (Makefile.am): Likewise.
92023         * modules/raise (Makefile.am): Likewise.
92024         * modules/read-file (Makefile.am): Likewise.
92025         * modules/readline (Makefile.am): Likewise.
92026         * modules/readlink (Makefile.am): Likewise.
92027         * modules/readtokens (Makefile.am): Likewise.
92028         * modules/readutmp (Makefile.am): Likewise.
92029         * modules/realloc (Makefile.am): Likewise.
92030         * modules/regex (Makefile.am): Likewise.
92031         * modules/rename (Makefile.am): Likewise.
92032         * modules/rename-dest-slash (Makefile.am): Likewise.
92033         * modules/rijndael (Makefile.am): Likewise.
92034         * modules/rmdir (Makefile.am): Likewise.
92035         * modules/rpmatch (Makefile.am): Likewise.
92036         * modules/safe-read (Makefile.am): Likewise.
92037         * modules/safe-write (Makefile.am): Likewise.
92038         * modules/same (Makefile.am): Likewise.
92039         * modules/save-cwd (Makefile.am): Likewise.
92040         * modules/savedir (Makefile.am): Likewise.
92041         * modules/setenv (Makefile.am): Likewise.
92042         * modules/settime (Makefile.am): Likewise.
92043         * modules/sha1 (Makefile.am): Likewise.
92044         * modules/sig2str (Makefile.am): Likewise.
92045         * modules/snprintf (Makefile.am): Likewise.
92046         * modules/stdlib-safer (Makefile.am): Likewise.
92047         * modules/stpcpy (Makefile.am): Likewise.
92048         * modules/stpncpy (Makefile.am): Likewise.
92049         * modules/strcase (Makefile.am): Likewise.
92050         * modules/strcasestr (Makefile.am): Likewise.
92051         * modules/strchrnul (Makefile.am): Likewise.
92052         * modules/strcspn (Makefile.am): Likewise.
92053         * modules/strdup (Makefile.am): Likewise.
92054         * modules/strerror (Makefile.am): Likewise.
92055         * modules/strftime (Makefile.am): Likewise.
92056         * modules/strndup (Makefile.am): Likewise.
92057         * modules/strnlen (Makefile.am): Likewise.
92058         * modules/strpbrk (Makefile.am): Likewise.
92059         * modules/strsep (Makefile.am): Likewise.
92060         * modules/strstr (Makefile.am): Likewise.
92061         * modules/strtod (Makefile.am): Likewise.
92062         * modules/strtoimax (Makefile.am): Likewise.
92063         * modules/strtok_r (Makefile.am): Likewise.
92064         * modules/strtol (Makefile.am): Likewise.
92065         * modules/strtoll (Makefile.am): Likewise.
92066         * modules/strtoul (Makefile.am): Likewise.
92067         * modules/strtoull (Makefile.am): Likewise.
92068         * modules/strtoumax (Makefile.am): Likewise.
92069         * modules/strverscmp (Makefile.am): Likewise.
92070         * modules/time_r (Makefile.am): Likewise.
92071         * modules/timegm (Makefile.am): Likewise.
92072         * modules/tmpfile-safer (Makefile.am): Likewise.
92073         * modules/unistd-safer (Makefile.am): Likewise.
92074         * modules/unlinkdir (Makefile.am): Likewise.
92075         * modules/userspec (Makefile.am): Likewise.
92076         * modules/utime (Makefile.am): Likewise.
92077         * modules/utimecmp (Makefile.am): Likewise.
92078         * modules/utimens (Makefile.am): Likewise.
92079         * modules/vasnprintf (Makefile.am): Likewise.
92080         * modules/vasprintf (Makefile.am): Likewise.
92081         * modules/vsnprintf (Makefile.am): Likewise.
92082         * modules/xalloc (Makefile.am): Likewise.
92083         * modules/xgetcwd (Makefile.am): Likewise.
92084         * modules/xnanosleep (Makefile.am): Likewise.
92085         * modules/xreadlink (Makefile.am): Likewise.
92086         * modules/xstrtod (Makefile.am): Likewise.
92087         * modules/xstrtol (Makefile.am): Likewise.
92088         * modules/xstrtold (Makefile.am): Likewise.
92089         * modules/yesno (Makefile.am): Likewise.
92091 2006-10-12  Jim Meyering  <jim@meyering.net>
92093         * m4/getloadavg.m4: Revert the change below.
92095         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
92096         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
92097         fail with a symlink, which is what coreutils' ./bootstrap now
92098         creates by default.
92100 2006-10-12  Bruno Haible  <bruno@clisp.org>
92102         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
92103         mingw.
92104         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
92105         MSVC and mingw explicitly.
92107 2006-10-11  Simon Josefsson  <jas@extundo.com>
92108             Bruno Haible  <bruno@clisp.org>
92110         Add support for multiple gnulib-tool invocations in the scope of a
92111         single configure.ac file.
92112         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
92113         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
92114         with the same contents as the _LIBADD variable.
92115         (func_emit_initmacro_start, func_emit_initmacro_end,
92116         func_emit_initmacro_done): New functions.
92117         (func_import, func_create_testdir): Invoke them. Allow the identifiers
92118         gl_LIBOBJS and gl_LTLIBOBJS.
92120 2006-10-11  Bruno Haible  <bruno@clisp.org>
92122         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
92123         (func_create_testdir): Don't create po/Makefile.am, don't invoke
92124         autoreconf. Instead, invoke autopoint explicitly but move back the
92125         *.m4 files from gnulib.
92127 2006-10-11  Bruno Haible  <bruno@clisp.org>
92129         * gnulib-tool (func_usage): Make module names after --create-testdir
92130         optional.
92131         (func_create_testdir): If no module was specified, use nearly all
92132         modules.
92134 2006-10-12  Jim Meyering  <jim@meyering.net>
92136         Big performance improvement for fts-based tools that use FTS_NOSTAT.
92137         Avoid spurious inode-mismatch problems on non-POSIX file systems.
92138         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
92139         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
92140         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
92141         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
92142         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
92143         (fts_set_stat_required): New function.
92144         (fts_open): Defer the calls to fts_stat, if possible or requested.
92145         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
92146         into fts_stat itself.
92147         (fts_read): Perform any required (deferred) fts_stat call.
92148         (fts_build): Likewise, for the directory we're about to open and read.
92149         In the readdir loop, carefully decide whether each entry will require
92150         an eventual call to fts_stat, using dirent.d_type info if available.
92151         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
92152         a command line argument into this function.  Update all callers.
92153         Map a return value of FTS_DOT to FTS_D for a command line argument.
92154         * modules/fts (Depends-on): Add d-type.  Alphabetize.
92155         Thanks to Miklos Szeredi for his tenacity and for the initial
92156         bug report about "find" failing on a FUSE-based file system.
92158         * lib/fts.c (fts_open): Use consistent indentation.
92160 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92162         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
92163         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
92164         reported by Jim Meyering.  All uses of cache variables renamed
92165         to match Autoconf's.
92166         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
92167         the other one.
92169         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
92170         Fix misspelling in diagnostic.
92172 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92174         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
92175         defined.  Problem reported by Matthew Woehlke.
92177         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
92178         Add support for Tandem NonStop R series.
92179         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
92180         Use new macro.
92182         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
92183         (has_trailing_slash): Omit size arg; all callers changed.
92184         Omit 'inline', since it doesn't help performance and we'd
92185         need to configure it.
92186         Don't count //, ///, etc. as having a trailing slash.
92187         As a side effect, this removes a C99ism reported by Matthew Woehlke.
92188         (rpl_rename_dest_slash): On failure, use rename's errno rather
92189         than (in some cases) an incorrect or junk errno.
92190         Simplify code by removing need to compute length; this does
92191         cause it to make two passes instead of one over the file name,
92192         but it's worth it.
92194         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
92195         change, since Autoconf's version may no longer be appropriate now
92196         that we are using CVS Autoconf's version.  Add support for Tandem.
92198 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92199             Bruno Haible  <bruno@clisp.org>
92201         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
92202         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
92203         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
92204         gl_AC_TYPE_LONG_LONG.
92206         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
92207         instead of HAVE_LONG_LONG.
92208         * lib/printf-args.c (printf_fetchargs): Likewise.
92209         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
92210         * lib/vasnprintf.c (VASNPRINTF): Likewise.
92211         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
92212         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
92213         gl_AC_TYPE_LONG_LONG.
92215 2006-10-11  Bruno Haible  <bruno@clisp.org>
92217         * m4/longlong.m4: Add comments.
92218         * m4/ulonglong.m4: Likewise.
92220 2006-10-10  Bruno Haible  <bruno@clisp.org>
92222         Make it possible to #define stpcpy, strdup to aliases.
92223         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
92224         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
92226 2006-10-10  Bruno Haible  <bruno@clisp.org>
92228         Make it possible to #define gcd to an alias.
92229         * lib/gcd.c: Include config.h.
92231 2006-10-10  Bruno Haible  <bruno@clisp.org>
92233         Make it possible to #define c_isascii to an alias.
92234         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
92235         defined. Undefine the macros before defining them, to avoid gcc
92236         warnings.
92237         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
92238         define NO_C_CTYPE_MACROS early.
92240 2006-10-10  Bruno Haible  <bruno@clisp.org>
92242         Make it possible to #define set_program_name to an alias.
92243         * lib/progname.c: Don't undefine set_program_name; instead, undefine
92244         ENABLE_RELOCATABLE early.
92246 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
92248         Port to Tandem NSK OSS, which has 64-bit signed int but at most
92249         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
92250         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
92251         More generally, don't assume that 64-bit signed int is available
92252         if unsigned int is, and vice versa.
92253         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
92254         unsigned symbols, not on their signed counterparts.
92255         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
92256         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
92257         (UINT64_C, UINTMAX_C):
92258         Likewise.
92259         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
92260         unsigned counterparts.
92261         (Have_long_long, Unsigned): New macros.
92262         (Int): Renamed from INT.
92263         (strtoimax): Use the new macros.
92264         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
92265         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
92266         * modules/inttypes (inttypes.h): Substitute
92267         HAVE_UNSIGNED_LONG_LONG_INT.
92268         * modules/stdint (stdint.h): Likewise.
92269         (Files): Add m4/ulonglong.m4.
92271 2006-10-10  Bruno Haible  <bruno@clisp.org>
92273         Fix a gcc -Wshadow warning.
92274         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
92275         to 'bucket'.
92276         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
92277         gl_linked_indexof_from_to): Likewise.
92278         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
92279         Likewise.
92280         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
92281         Likewise.
92282         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
92283         Reported by Eric Blake.
92285 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
92287         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
92288         for NetBSD.  Problem reported by Bruno Haible.
92290 2006-10-09  Jim Meyering  <jim@meyering.net>
92292         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
92293         Patch from Bruno Haible.
92295 2006-10-09  Jim Meyering  <jim@meyering.net>
92297         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
92298         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
92299         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
92301 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92303         Don't include <config.h> twice; this doesn't work in some cases,
92304         e.g., when config.h has "#define intmax_t long long int" and
92305         we include <config.h>, <inttypes.h>, <config.h> in that order.
92306         Problem reported by Matthew Woehlke in:
92307         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
92308         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
92309         * lib/fts-cycle.c: Don't include config.h.
92310         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
92311         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
92312         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
92313         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
92314         inttypes.h.
92315         * lib/xstrtoumax.c: Likewise.
92316         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
92317         __strtol and the like, so that this module is more like its siblings.
92318         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
92319         Remove; no longer needed now that we assume gnulib inttypes.h.
92321 2006-10-08  Bruno Haible  <bruno@clisp.org>
92323         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
92324         option.
92326 2006-10-07  Jim Meyering  <jim@meyering.net>
92328         * modules/inttypes (inttypes.h): Revert what seems to have been
92329         an inadvertent part of today's change: use "|", not "/" in the
92330         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
92332 2006-10-07  Bruno Haible  <bruno@clisp.org>
92334         * modules/sublist: New file.
92336 2006-10-07  Bruno Haible  <bruno@clisp.org>
92338         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
92339         * modules/argz (argz.h): Likewise.
92340         * modules/arpa_inet (arpa/inet.h): Likewise.
92341         * modules/byteswap (byteswap.h): Likewise.
92342         * modules/configmake (configmake.h): Likewise.
92343         * modules/fcntl (fcntl.h): Likewise.
92344         * modules/fnmatch (fnmatch.h): Likewise.
92345         * modules/getopt (getopt.h): Likewise.
92346         * modules/glob (glob.h): Likewise.
92347         * modules/inttypes (inttypes.h): Likewise.
92348         * modules/netinet_in (netinet/in.h): Likewise.
92349         * modules/poll (poll.h): Likewise.
92350         * modules/stdbool (stdbool.h): Likewise.
92351         * modules/stdint (stdint.h): Likewise.
92352         * modules/sys_select (sys/select.h): Likewise.
92353         * modules/sys_socket (sys/socket.h): Likewise.
92354         * modules/sys_stat (sys/stat.h): Likewise.
92355         * modules/sysexits (sysexits.h): Likewise.
92356         * modules/unistd (unistd.h): Likewise.
92357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92358         Add a "DO NOT EDIT" comment to the generated file.
92359         (func_import): Likewise for gnulib-comp.m4.
92361 2006-10-07  Bruno Haible  <bruno@clisp.org>
92363         * lib/gl_sublist.h: New file.
92364         * lib/gl_sublist.c: New file.
92366 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
92368         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
92369         name (relative to the original working directory) and the file
92370         name component (relative to the temporary working directory).  All
92371         callers changed.
92372         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
92373         * lib/mkdir-p.c (make_dir_parents): Likewise.
92374         * lib/mkdir-p.h (make_dir_parents): Likewise.
92376 2006-10-06  Eric Blake  <ebb9@byu.net>
92378         Define several macros for use by the clean-temp module.
92379         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
92380         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
92381         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
92383         * lib/clean-temp.h (close_stream_temp): New declaration.
92384         * lib/clean-temp.c (includes): Pull in headers according to what
92385         other modules are in use.
92386         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
92388 2006-10-06  Bruno Haible  <bruno@clisp.org>
92390         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
92391         instead of fopen, fwriteerror.
92393 2006-10-06  Bruno Haible  <bruno@clisp.org>
92395         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
92396         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
92397         int.
92398         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
92399         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
92400         Return an error indicator.
92401         Suggested by Eric Blake.
92403 2006-10-06  Bruno Haible  <bruno@clisp.org>
92405         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
92406         Reported by Eric Blake.
92408 2006-10-06  Bruno Haible  <bruno@clisp.org>
92410         * modules/closeout (Description): Mention stderr too.
92412 2006-10-06  Bruno Haible  <bruno@clisp.org>
92413         and Paul Eggert  <eggert@cs.ucla.edu>
92415         * lib/closeout.c (close_stdout): Also close stderr.
92416         * lib/closeout.h: Update comment.
92418 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
92420         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
92421         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
92422         * lib/dirchownmod.c: Include lchown.h.
92423         * lib/lchown.c: Don't include files that lchown.h now includes.
92424         Don't declare chown, since lchown.h now does that.
92425         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
92426         (lchown): Define to rpl_chown if lchown is declared but
92427         does not exist.  Declare using a prototype if lchown is not
92428         declared.  Add a copyright notice.
92429         * lib/mkstemp.h: Include <unistd.h>.
92430         * lib/openat.c: Include lchown.h.
92432         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
92433         we now test for that separately.
92434         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
92435         rather than O_NOFOLLOW, when testing whether it's possible to
92436         avoid a race condition reliably.
92437         * lib/savewd.c (savewd_chdir): Likewise.
92439         Remove macros that are no longer needed now that stdint.h is
92440         reliable.
92441         * lib/fsusage.c (UINTMAX_MAX): Remove.
92442         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
92443         * lib/utimecmp.c (SIZE_MAX): Remove.
92445         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
92447         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
92448         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
92449         O_NOATIME works.
92451 2006-10-05  Bruno Haible  <bruno@clisp.org>
92453         * lib/gl_list.h (gl_sortedlist_search_from_to,
92454         gl_sortedlist_indexof_from_to): New declarations.
92455         (gl_list_implementation): New fields sortedlist_search_from_to,
92456         sortedlist_indexof_from_to.
92457         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
92458         inline functions.
92459         * lib/gl_list.c (gl_sortedlist_search_from_to,
92460         gl_sortedlist_indexof_from_to): New functions.
92461         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
92462         function.
92463         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
92464         (gl_array_sortedlist_search_from_to): New function.
92465         (gl_array_list_implementation): Update.
92466         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
92467         function.
92468         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
92469         (gl_carray_sortedlist_search_from_to): New function.
92470         (gl_carray_list_implementation): Update.
92471         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
92472         gl_linked_sortedlist_indexof_from_to): New functions.
92473         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92474         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92475         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
92476         gl_tree_sortedlist_indexof_from_to): New functions.
92477         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92478         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92479         Update.
92480         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92481         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
92482         Update.
92484 2006-10-05  Bruno Haible  <bruno@clisp.org>
92486         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
92487         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
92488         (struct gl_list_implementation): Add fields search_from_to,
92489         indexof_from_to. Remove fields search, indexof.
92490         (gl_list_search): Use the search_from_to method.
92491         (gl_list_search_from, gl_list_search_from_to): New functions.
92492         (gl_list_indexof): Use the indexof_from_to method.
92493         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
92494         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
92495         (gl_list_search_from, gl_list_search_from_to): New functions.
92496         (gl_list_indexof): Use the indexof_from_to method.
92497         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
92498         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
92499         gl_array_indexof. Add start_index, end_index arguments.
92500         (gl_array_search_from_to): Renamed from gl_array_search. Add
92501         start_index, end_index arguments.
92502         (gl_array_remove, gl_array_list_implementation): Update.
92503         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
92504         gl_carray_indexof. Add start_index, end_index arguments.
92505         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
92506         start_index, end_index arguments.
92507         (gl_carray_remove, gl_carray_list_implementation): Update.
92508         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
92509         gl_linked_search. Add start_index, end_index arguments.
92510         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
92511         start_index, end_index arguments.
92512         (gl_linked_remove): Update.
92513         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92514         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92515         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
92516         field to 'size_t'.
92517         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
92518         gl_tree_search. Add start_index, end_index arguments.
92519         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
92520         start_index, end_index arguments.
92521         (gl_tree_remove): Update.
92522         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92523         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92524         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
92525         function.
92526         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
92527         gl_tree_search. Add start_index, end_index arguments.
92528         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
92529         start_index, end_index arguments.
92530         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92531         Update.
92532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92534 2006-10-05  Bruno Haible  <bruno@clisp.org>
92536         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
92538         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
92539         fwriteerror_temp): New declarations.
92540         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
92541         (descriptors): New variable.
92542         (cleanup): First, close the descriptors.
92543         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
92544         fclose_temp, fwriteerror_temp): New functions.
92546 2006-10-04  Jim Meyering  <jim@meyering.net>
92548         * lib/fts.c (fts_open): Tiny comment change.
92550 2006-10-04  Bruno Haible  <bruno@clisp.org>
92552         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
92553         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
92554         gl_LOCK_BODY.
92555         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
92556         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
92557         gl_LOCK_EARLY_BODY.
92558         (gl_LOCK): Require gl_LOCK_BODY.
92560 2006-10-04  Bruno Haible  <bruno@clisp.org>
92562         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
92563         (gl_oset_search_atleast): New declaration.
92564         (struct gl_oset_implementation): Add field 'search_atleast'.
92565         (gl_oset_search_atleast): New inline function.
92566         * lib/gl_oset.c (gl_oset_search_atleast): New function.
92567         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
92568         (gl_array_oset_implementation): Update.
92569         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
92570         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
92571         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
92573 2006-10-04  Bruno Haible  <bruno@clisp.org>
92575         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
92577 2006-10-03  Bruno Haible  <bruno@clisp.org>
92579         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
92580         from gl_avltreehash_list_implementation.
92582 2006-10-03  Bruno Haible  <bruno@clisp.org>
92584         * lib/gl_oset.c (gl_oset_add): Fix return type.
92586 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
92588         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
92590 2006-10-02  Eric Blake  <ebb9@byu.net>
92592         * modules/strnlen (Depends-on): Add extensions.
92594 2006-10-02  Eric Blake  <ebb9@byu.net>
92596         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
92597         definition in 2.60+.
92599 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
92601         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
92602         checks.
92604 2006-10-02  Bruno Haible  <bruno@clisp.org>
92606         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
92607         to the AUTOMAKE_OPTIONS.
92608         Reported by Jim Meyering.
92610 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
92612         Work around bug in Solaris 10 /proc file system:
92613         /proc/self/fd/NNN/.. isn't the parent directory of
92614         the directory whose file descriptor is NNN.  This needs to
92615         be worked around at run time, not compile time, since a
92616         program might be built on Solaris 8, where things work, and
92617         run on Solaris 10.
92618         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
92619         to use the following interface instead:
92620         (OPENAT_BUFFER_SIZE): New macro.
92621         (openat_proc_name): New function.
92622         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
92623         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
92624         Likewise.
92625         * lib/openat-proc.c: New file.
92626         * modules/openat (Files): Add lib/openat-proc.c.
92627         (Depends-on): Add same-inode, stdbool.
92628         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
92630 2006-09-29  Bruno Haible  <bruno@clisp.org>
92632         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
92633         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
92634         argument. Set stdout_closed before testing for ferror, not after.
92635         (fwriteerror, fwriteerror_no_ebadf): New functions.
92637 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92639         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
92641 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
92643         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
92644         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
92646 2006-09-28  Jim Meyering  <jim@meyering.net>
92648         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
92649         Include <unistd.h>.
92651 2006-09-28  Bruno Haible  <bruno@clisp.org>
92653         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
92654         * modules/linkedhash-list (Depends-on): Likewise.
92655         * modules/rbtreehash-list (Depends-on): Likewise.
92657 2006-09-28  Bruno Haible  <bruno@clisp.org>
92659         * lib/strndup.h: Simplify the redefinition of strndup.
92660         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
92661         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
92663 2006-09-28  Bruno Haible  <bruno@clisp.org>
92665         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
92666         * lib/gl_linkedhash_list.c: Likewise.
92667         * lib/gl_rbtreehash_list.c: Likewise.
92669 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
92671         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
92672         getaddrinfo.
92674         * lib/__fpending.h: Don't include <stdio_ext.h> unless
92675         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
92676         it causes <stdio_ext.h> to cause a compile-time error.
92677         Problem reported by Nelson H. F. Beebe.
92678         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
92679         of HAVE_DECL___PENDING.
92681         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
92682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
92683         declaration.
92685 2006-09-27  Jim Meyering  <jim@meyering.net>
92687         This file could end up with a definition for a function
92688         named __strndup, rather than rpl_strndup on a system with
92689         incomplete weak_alias support.
92690         * lib/strndup.c (strndup): Rename from __strndup.
92691         Remove #defines that used to map __strndup to strndup.
92692         Don't use K&R prototypes.
92693         Remove LIBC-related code, since this file is not sync'd with glibc.
92694         * lib/strndup.h: Revamp, accordingly.
92695         * m4/strndup.m4: Modernize.
92697 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
92699         * modules/savewd (Depends-on): Add 'raise'.
92700         * lib/savewd.c: Include <signal.h>, for 'raise'.
92702 2006-09-26  Jim Meyering  <jim@meyering.net>
92704         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
92705         when we detect Darwin 8.7.0's acl_get_file bug.
92706         Rearrange to perform the new (below) run-test while $LIBS
92707         contains any acl-related library.  Set USE_ACL at the end.
92708         (gl_ACL_GET_FILE): New function.
92710 2006-09-26  Eric Blake  <ebb9@byu.net>
92712         * lib/verror.c: Include <config.h> unconditionally.
92714 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
92716         * modules/clock-time (Maintainer): Add self.
92717         * modules/getlogin_r (Depends-on): Add extensions.
92719 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92721         * modules/clock-time: New module.
92722         * modules/nanosleep (Depends-on): Add clock-time.
92723         * modules/gethrxtime (Depends-on): Likewise.
92724         * modules/gettime (Depends-on): Likewise.
92725         * modules/settime (Depends-on): Likewise.
92727         * modules/fts-lgpl: Depend on openat.
92728         * modules/mkancesdirs: Depend on savewd.
92729         * modules/mkdir-p: Likewise.
92731 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92733         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
92735         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
92736         `gl_have_arbitrary_file_name_length_limit' to
92737         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
92738         actually works between configure runs.
92740 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92741             Bruno Haible  <bruno@clisp.org>
92743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
92745 2006-09-25  Jim Meyering  <jim@meyering.net>
92747         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
92748         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
92750 2006-09-25  Eric Blake  <ebb9@byu.net>
92752         * gnulib-tool (func_import, func_create_testdir): Fix typos in
92753         exec's in 2006-09-18 patch when shuffling fds.
92755 2006-09-25  Bruno Haible  <bruno@clisp.org>
92757         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
92758         Reported by Jim Meyering.
92760 2006-09-24  Jim Meyering  <jim@meyering.net>
92762         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
92763         compare a pointer against a literal "0".  That caused failures with
92764         at least HP-UX's hpcc.
92766 2006-09-22  Simon Josefsson  <jas@extundo.com>
92768         * modules/gc-sha1:
92769         * modules/gc-md4:
92770         * modules/gc-hmac-sha1:
92771         * modules/gc-hmac-md5:
92772         * modules/gc-des:
92773         * modules/gc-arcfour: Distribute more files.
92775 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92777         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
92778         (gl_linked_iterator_from_to): Initialize struct completely.
92779         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
92780         (gl_tree_iterator_from_to): Likewise
92781         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
92782         * lib/gl_array_list.c [lint] (gl_array_iterator)
92783         (gl_array_iterator_from_to): Likewise.
92784         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
92785         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
92786         (gl_carray_iterator_from_to): Likewise.
92788         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
92789         * lib/md4.c (md4_process_block): Remove unused variable.
92790         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
92791         parentheses for clarity.
92793 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92795         * modules/bison-i18n (Depends-on): Add gettext.
92797 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92799         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
92800         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
92801         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
92802         also add missing comma that caused broken test.
92803         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
92804         stdlib.h, for `abort'.
92805         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
92806         variables.
92807         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
92808         include unistd.h if present, for `rmdir'.
92809         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
92810         variables.
92811         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
92812         in the process include standard headers for prototypes.
92813         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
92814         gets declared on GNU/Linux.
92815         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
92816         unistd.h, for `rmdir'.
92817         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
92819         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
92820         always true.
92821         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
92823         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
92825 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92827         * gnulib-tool (func_version): Create output all at once.  This
92828         may help avoid triggering unnecessary SIGPIPEs, and at any
92829         rate it doesn't hurt.
92831 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92832             Bruno Haible  <bruno@clisp.org>
92834         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
92835         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92836         * m4/signed.m4 (bh_C_SIGNED): Likewise.
92838         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
92839         (gl_FUNC_VASPRINTF): Invoke it.
92841 2006-09-22  Bruno Haible  <bruno@clisp.org>
92843         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
92844         getloadavg.c as first argument.
92846 2006-09-22  Bruno Haible  <bruno@clisp.org>
92848         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
92849         at the beginning of the gl_INIT macro.
92850         * modules/getloadavg (configure.ac): Pass $gl_source_base to
92851         gl_GETLOADAVG.
92853 2006-09-22  Bruno Haible  <bruno@clisp.org>
92855         * gnulib-tool (func_create_megatestdir): Don't include the config-h
92856         module.
92857         Suggested by Ralf Wildenhues.
92859 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
92861         Import this patch from libc:
92863         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
92865         * lib/regex_internal.c (re_string_reconstruct): Handle
92866         offset < pstr->valid_raw_len && pstr->offsets_needed case.
92867         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
92868         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
92869         re_string_context_at.
92871         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
92872         now requires it.
92873         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
92874         gl_REGEX now does it for us.
92875         (gl_REGEX): Add test taken from
92876         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
92878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
92879         Check that large offsets work.  Modernize Autoconf usages.
92880         Prefer "yes" to mean a good thing rather than a bad.
92881         Don't put "#define mkstemp" in config.h, as this might interfere
92882         with standard system headers that "#define mkstemp mkstemp64".
92884         * modules/mkstemp (Depends-on): Add extensions, so that
92885         mkstemp is visible on some platforms.
92886         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
92887         (Include): Change to "mkstemp.h" from <stdlib.h>.
92888         (Files): Add mkstemp.h.
92890         * lib/mkstemp.h: New file, since some standard headers
92891         #define mkstemp.
92892         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
92893         Include "mkstemp.h".
92894         Make the _LIBC code resemble glibc original more,
92895         e.g., use K&R style.
92896         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
92897         (mkstemp): Remove, since mkstemp.h does this for us.
92898         * lib/stdlib--.h: Include mkstemp.h.
92900         Import this patch from libc:
92902         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
92904         * lib/tempname.c (__gen_tempname): Change attempts_min
92905         into a macro.  Use preprocessor to decide how to initialize
92906         attempts [Coverity CID 67].
92908 2006-09-20  Bruno Haible  <bruno@clisp.org>
92910         * lib/mkdtemp.c: Import from libc.
92911         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
92912                 * sysdeps/posix/tempname.c (__gen_tempname): Change
92913                 attempts_min into a macro.  Use preprocessor to decide how to
92914                 initialize attempts [Coverity CID 67].
92915         2001-11-27  Paul Eggert  <eggert@twinsun.com>
92916                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
92917                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
92919 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92921         * gnulib-tool (func_exit): New function, to allow to pass the
92922         exit status portably through the trap.  Use everywhere.
92923         (--help, --version): Signal a write error.
92924         (trap): catch SIGPIPE, for write errors.
92925         Exit at the end of the trap, with the correct exit status.
92927 2006-09-19  Karl Berry  <karl@gnu.org>
92929         * doc/gnulib.texi: note about the license texinfo files.
92931 2006-09-19  Eric Blake  <ebb9@byu.net>
92933         * gnulib-tool: Avoid space-tab.
92935 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
92937         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
92938         that prevented coreutils 6.1 from building.  Problem reported
92939         by Petter Reinholdtsen.
92941 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
92943         * gnulib-tool (avoidlist): Fix typo that broke options like
92944         --avoid=lock that are used by coreutils bootstrap.
92946 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
92948         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
92949         more systematically.
92951 2006-09-18  Jim Meyering  <jim@meyering.net>
92953         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
92955 2006-09-18  Bruno Haible  <bruno@clisp.org>
92957         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
92959 2006-09-18  Bruno Haible  <bruno@clisp.org>
92961         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
92962         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
92963         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
92964         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
92965         * m4/gettext.m4: Require autoconf >= 2.52.
92966         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
92967         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
92968         of gl_cv_header_inttypes_h.
92970 2006-09-18  Bruno Haible  <bruno@clisp.org>
92972         * lib/javaversion.c: Include configmake.h.
92974 2006-09-18  Bruno Haible  <bruno@clisp.org>
92976         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
92977         avoid that the while loops be executed in a subshell.
92979 2006-09-18  Bruno Haible  <bruno@clisp.org>
92981         * MODULES.html.sh (func_module): Break long lines.
92982         Suggested by Bruce Korb <bkorb@gnu.org>.
92984 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92986         Speed up by a factor of 1.12.
92987         * gnulib-tool (nl): New variable.
92988         (func_import): Rewrite include directive extraction to only read each
92989         directive once.
92991 2006-09-17  Bruno Haible  <bruno@clisp.org>
92993         * modules/javaversion (Makefile.am): Remove DEFS setting.
92994         (Depends-on): Add configmake, for PKGDATADIR definition.
92996 2006-09-17  Bruno Haible  <bruno@clisp.org>
92998         * gnulib-tool (func_create_testdir): Rewrite all files at once.
93000 2006-09-17  Bruno Haible  <bruno@clisp.org>
93002         * gnulib-tool (func_append): New function, stolen from libtool.m4.
93003         (func_modules_transitive_closure, func_modules_add_dummy,
93004         func_modules_to_filelist, func_import, func_create_testdir,
93005         func_create_megatestdir, ...): Use it wherever possible.
93006         Suggested by Ralf Wildenhues.
93008 2006-09-16  Karl Berry  <karl@gnu.org>
93010         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
93011         to avoid sectioning errors.
93012         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
93013         [ifinfo]: blank line after @center-ed titles.
93014         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
93015         Spell FSF address consistently with others.
93016         (These changes approved by rms.)
93018 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93020         Speed up by a factor of 1.61.
93021         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
93022         already checked module names again.
93024 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93026         Speed up by a factor of 1.13.
93027         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
93028         for new_files, and the input to func_add_or_update.
93030 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93032         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
93033         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
93035 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93037         * modules/mkancesdirs (Depends-on): Add fcntl.
93038         * modules/savewd: New file.
93039         * MODULES.html.sh (File system functions): Add savewd.
93041         * modules/configmake (Makefile.am): Add support for the
93042         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
93044 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93046         * m4/savewd.m4: New file.
93048 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93050         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
93051         (dirchownmod): New arg FD.  All callers changed.
93052         Use FD rather than opening the directory ourself, as opening is
93053         now the caller's responsibility.
93054         * lib/dirchownmod.h: Likewise.
93055         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
93056         hosts that require <sys/types.h> before <sys/stat.h>.  Include
93057         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
93058         (test_dir): Remove.
93059         (mkancesdirs): Return length of prefix of FILE that has already
93060         been made, or -2 if there is a child doing the work.  Redo
93061         algorithm so that it is O(N) rather than O(N**2).  Optimize away
93062         ".", and treat ".." specially since it might stray back into
93063         already-created areas.  Use a subprocess if necessary.  New arg
93064         WD; all users changed.  MAKE_DIR function should now return 1
93065         if it creates a directory that is not readable.  Return -2 if
93066         a child process is spun off.
93067         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
93068         Adjust signature to match code.
93069         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
93070         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
93071         all users changed.
93072         * lib/savewd.c, lib/savewd.h: New files.
93074 2006-09-15  Jim Meyering  <jim@meyering.net>
93076         * modules/rename-dest-slash: New module.
93077         * MODULES.html.sh (posix_compat): Add it here.
93079         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
93081 2006-09-15  Jim Meyering  <jim@meyering.net>
93083         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
93084         file.
93086         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
93088 2006-09-15  Jim Meyering  <jim@meyering.net>
93090         * lib/rename-dest-slash.c (has_trailing_slash): Use
93091         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
93092         (rpl_rename_dest_slash): Perform the cheaper trailing slash
93093         test before testing whether SRC is a directory.
93094         Suggestions from Bruno Haible.
93096         Avoid a warning about an unused variable.
93097         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
93098         into the #ifdef block where it's used.
93100         * lib/rename-dest-slash.c: New file.
93102 2006-09-14  Bruno Haible  <bruno@clisp.org>
93104         * lib/allocsa.c: Include <config.h> unconditionally.
93105         * lib/asnprintf.c: Likewise.
93106         * lib/asprintf.c: Likewise.
93107         * lib/c-strcasecmp.c: Likewise.
93108         * lib/c-strcasestr.c: Likewise.
93109         * lib/c-strncasecmp.c: Likewise.
93110         * lib/c-strstr.c: Likewise.
93111         * lib/classpath.c: Likewise.
93112         * lib/clean-temp.c: Likewise.
93113         * lib/concatpath.c: Likewise.
93114         * lib/copy-file.c: Likewise.
93115         * lib/csharpcomp.c: Likewise.
93116         * lib/csharpexec.c: Likewise.
93117         * lib/execute.c: Likewise.
93118         * lib/fatal-signal.c: Likewise.
93119         * lib/findprog.c: Likewise.
93120         * lib/fwriteerror.c: Likewise.
93121         * lib/gl_array_list.c: Likewise.
93122         * lib/gl_array_oset.c: Likewise.
93123         * lib/gl_avltree_list.c: Likewise.
93124         * lib/gl_avltree_oset.c: Likewise.
93125         * lib/gl_avltreehash_list.c: Likewise.
93126         * lib/gl_carray_list.c: Likewise.
93127         * lib/gl_linked_list.c: Likewise.
93128         * lib/gl_linkedhash_list.c: Likewise.
93129         * lib/gl_list.c: Likewise.
93130         * lib/gl_oset.c: Likewise.
93131         * lib/gl_rbtree_list.c: Likewise.
93132         * lib/gl_rbtree_oset.c: Likewise.
93133         * lib/gl_rbtreehash_list.c: Likewise.
93134         * lib/imaxabs.c: Likewise.
93135         * lib/imaxdiv.c: Likewise.
93136         * lib/javacomp.c: Likewise.
93137         * lib/javaexec.c: Likewise.
93138         * lib/javaversion.c: Likewise.
93139         * lib/linebreak.c: Likewise.
93140         * lib/localcharset.c: Likewise.
93141         * lib/lock.c: Likewise.
93142         * lib/mbchar.c: Likewise.
93143         * lib/mbswidth.c: Likewise.
93144         * lib/mkdtemp.c: Likewise.
93145         * lib/pipe.c: Likewise.
93146         * lib/printf-args.c: Likewise.
93147         * lib/printf-parse.c: Likewise.
93148         * lib/progname.c: Likewise.
93149         * lib/progreloc.c: Likewise.
93150         * lib/readlink.c: Likewise.
93151         * lib/sh-quote.c: Likewise.
93152         * lib/stpcpy.c: Likewise.
93153         * lib/stpncpy.c: Likewise.
93154         * lib/strcasecmp.c: Likewise.
93155         * lib/strcasestr.c: Likewise.
93156         * lib/strcspn.c: Likewise.
93157         * lib/striconv.c: Likewise.
93158         * lib/strncasecmp.c: Likewise.
93159         * lib/strnlen1.c: Likewise.
93160         * lib/strstr.c: Likewise.
93161         * lib/strtok_r.c: Likewise.
93162         * lib/tls.c: Likewise.
93163         * lib/tmpdir.c: Likewise.
93164         * lib/unicodeio.c: Likewise.
93165         * lib/unsetenv.c: Likewise.
93166         * lib/vasnprintf.c: Likewise.
93167         * lib/vasprintf.c: Likewise.
93168         * lib/wait-process.c: Likewise.
93169         * lib/xallocsa.c: Likewise.
93170         * lib/xsetenv.c: Likewise.
93171         * lib/xstriconv.c: Likewise.
93173 2006-09-13  Simon Josefsson  <jas@extundo.com>
93175         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
93176         that internally, suggested by Ralf Wildenhues
93177         <Ralf.Wildenhues@gmx.de>.
93179 2006-09-13  Simon Josefsson  <jas@extundo.com>
93181         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
93182         @LIBOBJS@.
93183         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93185 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
93187         * lib/_fpending.c: Include <config.h> unconditionally, since we no
93188         longer worry about uses that don't define HAVE_CONFIG_H.
93189         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
93190         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
93191         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
93192         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
93193         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
93194         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
93195         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
93196         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
93197         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
93198         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
93199         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
93200         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
93201         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
93202         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
93203         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
93204         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
93205         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
93206         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
93207         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
93208         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
93209         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
93210         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
93211         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
93212         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
93213         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
93214         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
93215         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
93216         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
93217         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
93218         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
93219         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
93220         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
93221         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
93222         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
93223         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
93224         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
93225         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
93226         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
93227         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
93228         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
93229         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
93230         Likewise.
93232 2006-09-13  Eric Blake  <ebb9@byu.net>
93234         * lib/getopt.c: Fix typo in last commit.
93236 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93238         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
93239         dgettext.
93241 2006-09-12  Jim Meyering  <jim@meyering.net>
93243         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
93244         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
93245         Reported by Nelson H. F. Beebe.
93247 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93249         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
93250         program_invocation_name and program_invocation_short_name are
93251         initialized.
93252         * lib/argp-namefrob.h: Move declarations of program_invocation_name
93253         and program_invocation_short_name to argp.h, so they are visible
93254         to user programs.
93255         * lib/argp.h: Likewise
93257 2006-09-10  Bruno Haible  <bruno@clisp.org>
93259         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
93260         m4/inttypes_h.m4, m4/uintmax_t.m4.
93262 2006-09-10  Bruno Haible  <bruno@clisp.org>
93264         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
93265         gl_AC_TYPE_UINTMAX_T.
93267 2006-09-10  Bruno Haible  <bruno@clisp.org>
93269         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
93271 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93273         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
93274         convention.  Text proposed by Bruno Haible.
93275         (struct argp_option): Document the use of N_() wrappers.
93277         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
93278         '\v', and translate the two parts separately, instead of feeding
93279         the whole string to gettext.  This allows to exclude
93280         '\v' from the strings visible to the translator by writing doc
93281         strings as N_("..") "\v" N_("..").
93283 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
93285         * config/srclist.txt: Undo latest change; the bug was fixed.
93287 2006-09-09  Bruno Haible  <bruno@clisp.org>
93289         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
93290         assignments if building a library without libtool.
93291         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
93292         in func_emit_lib_Makefile_am.
93293         (func_import): When building a static library libfoo.a, arrange to
93294         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
93295         (func_create_testdir): Likewise.
93296         * modules/gc (configure.ac, Makefile.am): If building statically,
93297         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
93298         * modules/iconvme (configure.ac, Makefile.am): Likewise.
93299         * modules/striconv (configure.ac, Makefile.am): Likewise.
93300         Based on a suggestion by Ralf Wildenhues.
93302 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93304         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
93305         Check for unistd.h too, since Autoconf doesn't assume POSIX.
93306         Also:
93308         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93309         Add year_2050_test to catch glibc bug 2821
93310         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
93312         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93313         Prefer #ifdef to #if.
93315         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
93316         Return from 'main' instead of calling 'exit'.
93318 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93320         * lib/mktime.c (guess_time_tm): Fix bug where mktime
93321         returned the maximum time_t value rather than (time_t) -1.
93322         Problem originally reported by William Bardwell
93323         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
93325         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
93326         Moved to here ...
93327         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
93328         ... from here.
93330 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93332         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
93333         2821 is fixed.
93335 2006-09-08  Jim Meyering  <jim@meyering.net>
93337         Don't make generated files read-only.  That would bother too many
93338         people.  However, do retain the ability to work when targets are
93339         read-only: remove the destination and temporary files before writing
93340         them (when generated via sed or echo), or by using the -f option for
93341         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
93342         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93343         * modules/byteswap, modules/configmake, modules/fcntl:
93344         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93345         * modules/localcharset, modules/netinet_in, modules/poll:
93346         * modules/stdbool, modules/stdint, modules/sys_select:
93347         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93349 2006-09-08  Jim Meyering  <jim@meyering.net>
93351         Avoid new build failure on FreeBSD 6.0.
93352         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
93353         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
93354         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
93356 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
93360 2006-09-07  Jim Meyering  <jim@meyering.net>
93362         Fix global typo in last change: use chmod u-w, not chmod u-x.
93363         Spotted by Paul Eggert and Bruce Korb.
93364         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93365         * modules/byteswap, modules/configmake, modules/fcntl:
93366         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93367         * modules/localcharset, modules/netinet_in, modules/poll:
93368         * modules/stdbool, modules/stdint, modules/sys_select:
93369         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93371 2006-09-06  Jim Meyering  <jim@meyering.net>
93373         Make generated files be read-only.
93374         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
93375         Ensure that each generated file is now read-only.
93376         * modules/argz: Likewise.
93377         * modules/arpa_inet: Likewise.
93378         * modules/byteswap: Likewise.
93379         * modules/configmake: Likewise.
93380         * modules/fcntl: Likewise.
93381         * modules/fnmatch: Likewise.
93382         * modules/getopt: Likewise.
93383         * modules/glob: Likewise.
93384         * modules/inttypes: Likewise.
93385         * modules/netinet_in: Likewise.
93386         * modules/poll: Likewise.
93387         * modules/stdbool: Likewise.
93388         * modules/stdint: Likewise.
93389         * modules/sys_select: Likewise.
93390         * modules/sys_socket: Likewise.
93391         * modules/sys_stat: Likewise.
93392         * modules/sysexits: Likewise.
93393         * modules/localcharset: Same as above, but continue using temporary
93394         file named "t-$@" (why different?) rather than the "$@-t" used
93395         everywhere else.
93397         * modules/sysexits (Makefile.am): Replace literal occurrences
93398         of "sysexit.h" more readable, and more consistent, "$@".
93400 2006-09-06  Bruno Haible  <bruno@clisp.org>
93402         * modules/striconv: New file.
93403         * modules/xstriconv: New file.
93404         * MODULES.html.sh (Internationalization functions): Add striconv,
93405         xstriconv.
93407 2006-09-06  Bruno Haible  <bruno@clisp.org>
93409         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
93410         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
93411         not using libtool correctly.
93413 2006-09-06  Bruno Haible  <bruno@clisp.org>
93415         * lib/striconv.h: New file.
93416         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
93417         iconvstring.c.
93418         * lib/xstriconv.h: New file.
93419         * lib/xstriconv.c: New file.
93421 2006-09-06  Bruno Haible  <bruno@clisp.org>
93423         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
93424         lib_..._LDFLAGS.
93426 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93428         * lib/argz_.h: Sync from Libtool.
93430         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
93431                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93433         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
93435 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
93437         * modules/trim: New file.
93439 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
93441         * lib/trim.h: New file.
93442         * lib/trim.c: New file.
93444 2006-09-05  Bruno Haible  <bruno@clisp.org>
93446         * MODULES.html.sh (String handling): Add trim.
93448 2006-09-04  Karl Berry  <karl@gnu.org>
93450         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
93451         until next release.
93453 2006-09-03  Bruno Haible  <bruno@clisp.org>
93455         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
93456         correctly.
93458 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93460         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
93461         not gl_GETLOADAVG.  Omit unneeded semicolons.
93462         Problems reported by Ralf Wildenhues in
93463         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
93464         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
93465         at the end, which is the usual gnulib style.
93467         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
93468         of doing all the work ourselves.
93469         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
93470         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
93472 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93474         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
93475         Problem reported by Ralf Wildenhues in
93476         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
93478         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
93479         HAVE_STRUCT_STATFS_F_FSTYPENAME.
93481 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93483         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
93484         yesterday's patch by changing test -n to test -z.
93486 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93488         * modules/getloadavg (Files): Add m4/getloadavg.m4.
93489         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
93490         the former is now obsolescent.
93492         * modules/chdir-long (Depends-on): Add fcntl.
93494 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93496         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
93497         obsolescent, and programs should use gnulib instead.
93498         * m4/getloadavg.m4: New file, with contents taken from Autoconf
93499         but with prefixes changed.
93501 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93503         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
93504         or stdbool.h, because they might not exist while configuring.
93506         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
93507         Don't include unistd.h or limits.h; not needed, since chdir-long.h
93508         does that for us.
93509         (O_DIRECTORY): Remove.
93511 2006-08-31  Eric Blake  <ebb9@byu.net>
93513         * gnulib-tool: Don't let emacs change spaces to TAB.
93515 2006-08-31  Bruno Haible  <bruno@clisp.org>
93517         * gnulib-tool: When calling func_import more than once, do it in a
93518         subshell.
93519         Reported by Eric Blake <ebb9@byu.net>.
93521 2006-08-31  Bruno Haible  <bruno@clisp.org>
93523         * gnulib-tool (nl): Remove variable.
93524         (sed_transform_lib_file): Use more robust test for config-h module.
93525         (func_import): Fix typo in 2006-08-25 patch.
93527 2006-08-31  Bruno Haible  <bruno@clisp.org>
93529         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
93530         specified, augment Makefile.am variables instead of assigning them.
93532 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93534         Work around a bug in both the Linux and SunOS 64-bit kernels:
93535         nanosleep mishandles sleeps for longer than 2**31 seconds.
93536         Problem reported by Frank v Waveren in
93537         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
93538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
93539         Check for nanosleep bug.
93540         (LIB_NANOSLEEP): Append clock_gettime library if needed.
93542 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93544         Work around a bug in both the Linux and SunOS 64-bit kernels:
93545         nanosleep mishandles sleeps for longer than 2**31 seconds.
93546         Problem reported by Frank v Waveren in
93547         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
93548         * lib/nanosleep.c (BILLION): New constant.
93549         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
93550         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
93551         implementation.
93553 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93555         * modules/nanosleep (Depends-on): Add gettime.
93557 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93558         and Simon Josefsson  <jas@extundo.com>
93559         and Oskar Liljeblad  <oskar@osk.mine.nu>
93561         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
93562         * gnulib-tool (func_import): New license type 'unmodifiable license
93563         text'.
93564         * modules/fdl: Use it.  Longer description.
93565         * module/gpl, module/lgpl: New files.
93567 2006-08-30  Jim Meyering  <jim@meyering.net>
93569         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
93570         shadowing the parameter.
93572 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93574         Sync from Libtool:
93576         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93578         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
93579         sharing with gnulib.  Report by Eric Blake.
93581 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93583         * modules/isapipe: New file.
93584         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
93586 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93588         * modules/configmake (Makefile.am): Add a comment, and omit
93589         the CONFIGMAKE_ prefix from generated macro names.  Suggested
93590         by Bruno Haible.
93592 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93594         * m4/isapipe.m4: New file.
93596 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93598         * lib/isapipe.c, lib/isapipe.h: New files.
93600 2006-08-29  Jim Meyering  <jim@meyering.net>
93602         * modules/configmake (Makefile.am): Make configmake.h depend on
93603         Makefile.  Otherwise, a stale configmake.h could hang around.
93605 2006-08-29  Eric Blake  <ebb9@byu.net>
93607         * lib/error.c (error_at_line, print_errno_message): Match libc, after
93608         resolution of upstream bug 3044.
93610 2006-08-29  Bruno Haible  <bruno@clisp.org>
93612         * modules/localcharset (Depends-on): Add configmake.
93613         (Makefile.am): Remove setting of LIBDIR through DEFS.
93615 2006-08-29  Bruno Haible  <bruno@clisp.org>
93617         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
93618         defined.
93620 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93622         * modules/fcntl: New file.
93623         * modules/chdir-safer (Depends-on): Add fcntl.
93624         * modules/fts: Likewise.
93625         * modules/mkdir-p: Likewise.
93627         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
93628         This undoes the most recent change, since we're now addressing the
93629         problem in a different way.
93631         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
93632         into output, since the output might be called Makefile.am even
93633         if $makefile_name is something different.
93634         (func_import): Use $makefile_am rather than
93635         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
93636         empty.
93638         * modules/inttypes (Files): Add m4/inttypes-h.m4.
93640 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93642         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
93643         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
93644         recent change to stdint.m4, since we're now addressing the problem in a
93645         different way.
93647 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93649         * m4/fcntl_h.m4: New file.
93651 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93653         * lib/fcntl_.h: New file.
93654         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
93655         the fcntl module.
93656         * lib/dirchownmod.c: Likewise.
93657         * lib/fts.c: Likewise.
93659         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
93660         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
93661         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
93662         just before including <inttypes.h>, to avoid circular inclusion.
93664 2006-08-28  Jim Meyering  <jim@meyering.net>
93666         * doc/visibility.texi: Actually read and correct the grammar of the
93667         sentence affected by yesterday's change.
93669 2006-08-28  Eric Blake  <ebb9@byu.net>
93671         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
93672         needs wrapper.
93674 2006-08-28  Eric Blake  <ebb9@byu.net>
93676         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
93678 2006-08-28  Eric Blake  <ebb9@byu.net>
93680         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
93682 2006-08-28  Bruno Haible  <bruno@clisp.org>
93684         * modules/c-strstr: New file, from GNU gettext.
93685         * MODULES.html.sh (String handling): Add c-strstr.
93687 2006-08-28  Bruno Haible  <bruno@clisp.org>
93689         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
93690         macros.
93691         Reported by Eric Blake.
93693 2006-08-28  Bruno Haible  <bruno@clisp.org>
93695         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
93696         (VASNPRINTF): Return a string of length > INT_MAX without failing.
93697         * lib/vasprintf.c: Include errno.h, limits.h.
93698         (EOVERFLOW): New fallback definition.
93699         (vasprintf): Test here whether the string length is > INT_MAX.
93700         * lib/vsnprintf.c: Include errno.h, limits.h.
93701         (EOVERFLOW): New fallback definition.
93702         (vsnprintf): Fix bug when generated string was too long for the buffer.
93703         Test here whether the string length is > INT_MAX.
93705 2006-08-28  Bruno Haible  <bruno@clisp.org>
93707         * lib/inttypes_.h (SCNX*): Remove definitions.
93708         Reported by Eric Blake.
93710 2006-08-28  Bruno Haible  <bruno@clisp.org>
93712         * lib/c-strstr.h: New file, from GNU gettext.
93713         * lib/c-strstr.c: New file, from GNU gettext.
93715 2006-08-28  Bruno Haible  <bruno@clisp.org>
93717         * gnulib-tool: Reorder some statements.
93719 2006-08-28  Bruno Haible  <bruno@clisp.org>
93721         * gnulib-tool: New option --makefile-name.
93722         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
93723         $makefile_name.
93724         (func_import): Write $makefile_name to the cache file, and read it from
93725         there unless explicitly specified. Use $makefile_name as file name
93726         instead of Makefile.am. Adjust the recommendations accordingly.
93728 2006-08-28  Bruno Haible  <bruno@clisp.org>
93730         * gnulib-tool (func_verify_module): Check against misapplying patch.
93732 2006-08-28  Bruno Haible  <bruno@clisp.org>
93734         * gnulib-tool (func_relativize, func_relconcat): New functions.
93735         Give an error if --local-dir is given with --update.
93736         Remove trailing slashes from $local_gnulib_dir.
93737         (func_import): Store the relativized $local_gnulib_dir in
93738         gnulib-cache.m4, and read it from there if not specified explicitly.
93740 2006-08-28  Bruno Haible  <bruno@clisp.org>
93742         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
93743         is the current directory. Respect also $local_gnulib_dir.
93745 2006-08-28  Bruno Haible  <bruno@clisp.org>
93746             Simon Josefsson  <jas@extundo.com>
93748         BeOS portability.
93749         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
93751 2006-08-27  Jim Meyering  <jim@meyering.net>
93753         * doc/visibility.texi: Remove duplicate word: "pointer".
93755 2006-08-26  Bruno Haible  <bruno@clisp.org>
93757         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
93758         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
93759         (Makefile.am): Create inttypes.h from inttypes_.h.
93760         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
93762         * modules/imaxabs: New file.
93764         * modules/imaxdiv: New file.
93766 2006-08-26  Bruno Haible  <bruno@clisp.org>
93768         * m4/inttypes.m4: New file.
93769         * m4/_inttypes_h.m4: Remove file.
93770         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
93771         PRI_MACROS_BROKEN.
93772         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
93774         * m4/imaxabs.m4: New file.
93776         * m4/imaxdiv.m4: New file.
93778 2006-08-26  Bruno Haible  <bruno@clisp.org>
93780         * lib/inttypes_.h: New file.
93781         * lib/inttypes.h: Remove file.
93782         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
93784         * lib/imaxabs.c: New file.
93786         * lib/imaxdiv.c: New file.
93788 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93790         New config-h module, so that "make" output needn't be cluttered
93791         by -DHAVE_CONFIG_H.
93792         * MODULES.html.sh (Support for building libraries and executables):
93793         Add config-h.
93794         * modules/config-h: New file.
93795         * gnulib-tool (nl, sed_transform_lib_file): New vars.
93796         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
93797         the config-h module is used.
93799         New configmake module, so that "make" output needn't be cluttered
93800         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
93801         * MODULES.html.sh (Support for building libraries and executables):
93802         Add configmake.
93803         * modules/configmake: New file.
93805 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93807         * m4/config-h.m4: New file.
93809 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93811         * config/srclist.txt: Add elisp-comp.
93813 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93815         * MODULES.html.sh (Support for building libraries and executables):
93816         Add elisp-comp.
93817         * build-aux/elisp-comp: New file.
93818         * modules/elisp-comp: New file.
93820 2006-08-24  Bruno Haible  <bruno@clisp.org>
93822         * gnulib-tool (func_create_testdir): Use non-default values of
93823         sourcebase and m4base.
93825 2006-08-24  Bruno Haible  <bruno@clisp.org>
93827         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
93828         HTML structure.
93830 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
93832         * modules/openat (Depends-on): Add lchown.
93834 2006-08-23  Bruno Haible  <bruno@clisp.org>
93836         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
93837         of gl_LOCK_EARLY instead of gl_LOCK.
93839 2006-08-23  Bruno Haible  <bruno@clisp.org>
93841         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
93842         on OSF/1 to no.
93843         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
93845 2006-08-23  Bruno Haible  <bruno@clisp.org>
93847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
93848         as unusable.
93850         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
93851         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
93852         (gl_LOCK): New macro.
93854 2006-08-22  Simon Josefsson  <jas@extundo.com>
93856         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
93857         to md5 module.
93859 2006-08-22  Simon Josefsson  <jas@extundo.com>
93861         * MODULES.html.sh: Add "Support for maintaining and release
93862         projects".
93864         * build-aux/gnupload: New file, from coreutils.
93866 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93868         Avoid the need for AC_LIBSOURCES in m4 macros.
93869         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
93870         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
93871         * modules/check-version (EXTRA_DIST): Add check-version.h.
93872         * modules/crc (EXTRA_DIST): Add crc.h.
93873         * modules/des (EXTRA_DIST): Add des.h.
93874         * modules/gc (EXTRA_DIST): Add gc.h.
93875         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
93876         * modules/getline (EXTRA_DIST): Add getline.h.
93877         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
93878         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
93879         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
93880         * modules/md2 (EXTRA_DIST): Add md2.h.
93881         * modules/md4 (EXTRA_DIST): Add md4.h.
93882         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
93883         * modules/read-file (EXTRA_DIST): Add read-file.h.
93884         * modules/readline (EXTRA_DIST): Add readline.h.
93885         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
93886         rijndael-api-fst.h.
93888 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93890         * m4/rijndael.m4 (gl_ARCFOUR):
93891         * m4/arctwo.m4 (gl_ARCTWO):
93892         * m4/check-version.m4 (gl_CHECK_VERSION):
93893         * m4/crc.m4 (gl_CRC):
93894         * m4/des.m4 (gl_DES):
93895         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
93896         * m4/gc.m4 (gl_GC):
93897         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
93898         * m4/getline.m4 (gl_FUNC_GETLINE):
93899         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
93900         * m4/hmac-md5.m4 (gl_HMAC_MD5):
93901         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
93902         * m4/md2.m4 (gl_MD2):
93903         * m4/md4.m4 (gl_MD4):
93904         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
93905         * m4/read-file.m4 (gl_FUNC_READ_FILE):
93906         * m4/readline.m4 (gl_FUNC_READLINE):
93907         * m4/rijndael.m4 (gl_RIJNDAEL):
93908         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
93909         to get the necessary .h files and whatnot.
93911 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93913         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
93914         gnulib rather than the other way around.
93915         * config/srclistvars.sh (COREUTILS): Remove.
93917 2006-08-22  Jim Meyering  <jim@meyering.net>
93919         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
93921         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
93923 2006-08-22  Eric Blake  <ebb9@byu.net>
93925         * modules/regexprops-generic: New file.
93926         * MODULES.html.sh (Support for building documentation): List it.
93928 2006-08-22  Eric Blake  <ebb9@byu.net>
93930         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
93931         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
93932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
93933         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
93935 2006-08-22  Bruno Haible  <bruno@clisp.org>
93937         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
93938         and lib_LTLIBRARIES like the other lib_* variables.
93940 2006-08-22  Bruno Haible  <bruno@clisp.org>
93942         * build-aux/x-to-1.in: New file, from GNU gettext.
93944 2006-08-22  Bruno Haible  <bruno@clisp.org>
93946         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
93947         <utmpx.h> exists.
93949 2006-08-22  Bruno Haible  <bruno@clisp.org>
93951         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
93952         <utmpx.h> exists.
93954 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93956         BeOS portability.
93957         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
93958         exist.
93959         Problem reported by Bruno Haible.
93961 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93963         Avoid the need for AC_LIBSOURCES in m4 macros.
93964         * modules/acl (EXTRA_DIST): Add acl.h.
93965         * modules/argmatch (Files): Add m4/argmatch.m4.
93966         (configure.ac): Add gl_ARGMATCH.
93967         (EXTRA_DIST): Renamed from lib_SOURCES, for
93968         consistency with the other modules.  Remove argmatch.c.
93969         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
93970         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
93971         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
93972         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
93973         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
93974         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
93975         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
93976         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
93977         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
93978         * modules/closeout (EXTRA_DIST): Add closeout.h.
93979         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
93980         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
93981         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
93982         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
93983         dirname.h; remove basename.c and stripslash.c.
93984         * modules/exclude (EXTRA_DIST): Add exclude.h.
93985         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
93986         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
93987         * modules/file-type (EXTRA_DIST): Add file-type.h.
93988         * modules/filemode (EXTRA_DIST): Add filemode.h.
93989         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
93990         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
93991         * modules/fpending (EXTRA_DIST): Add __fpending.h.
93992         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
93993         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
93994         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
93995         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
93996         * modules/getdate (EXTRA_DIST): Add getdate.c.
93997         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
93998         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
93999         * modules/getpass (EXTRA_DIST): Add getpass.h.
94000         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
94001         * modules/group-member (EXTRA_DIST): Add group-member.h.
94002         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
94003         * modules/hash (EXTRA_DIST): Add hash.h.
94004         * modules/human (EXTRA_DIST): Add human.h.
94005         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
94006         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
94007         * modules/lchown (EXTRA_DIST): Add lchown.h.
94008         * modules/long-options (EXTRA_DIST): Add long-options.h.
94009         * modules/lstat (EXTRA_DIST): Add lstat.h.
94010         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
94011         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
94012         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
94013         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
94014         * modules/memxor (EXTRA_DIST): Add memxor.h.
94015         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
94016         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
94017         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
94018         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
94019         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
94020         * modules/physmem (EXTRA_DIST): Add physmem.h.
94021         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
94022         * modules/posixver (EXTRA_DIST): Add posixver.h.
94023         * modules/quote (EXTRA_DIST): Add quote.h.
94024         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
94025         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
94026         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
94027         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
94028         regex_internal.h regexec.c.
94029         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
94030         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
94031         * modules/same (EXTRA_DIST): Add same.h.
94032         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
94033         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
94034         * modules/savedir (EXTRA_DIST): Add savedir.h.
94035         * modules/sha1 (EXTRA_DIST): Add sha1.h.
94036         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
94037         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
94038         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
94039         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
94040         * modules/strdup (EXTRA_DIST): Add strdup.h.
94041         * modules/strftime (EXTRA_DIST): Add strftime.h.
94042         * modules/strndup (EXTRA_DIST): Add strndup.h.
94043         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
94044         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
94045         * modules/time_r (EXTRA_DIST): Add time_r.h.
94046         * modules/timespec (EXTRA_DIST): Add timespec.h.
94047         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94048         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
94049         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
94050         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
94051         * modules/userspec (EXTRA_DIST): Add userspec.h.
94052         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
94053         * modules/utimens (EXTRA_DIST): Add utimens.h.
94054         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
94055         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
94056         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
94057         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
94058         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
94059         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
94060         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
94061         * modules/yesno (EXTRA_DIST): Add yesno.h.
94063 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94065         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
94067         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
94068         * m4/dev-ino.m4, same-inode.m4: Remove.
94070         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
94071         * m4/acl.m4 (AC_FUNC_ACL):
94072         * m4/backupfile.m4 (gl_BACKUPFILE):
94073         * m4/c-strtod.m4 (gl_C99_STRTOLD):
94074         * m4/canon-host.m4 (gl_CANON_HOST):
94075         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94076         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
94077         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
94078         * m4/cloexec.m4 (gl_CLOEXEC):
94079         * m4/close-stream.m4 (gl_CLOSE_STREAM):
94080         * m4/closeout.m4 (gl_CLOSEOUT):
94081         * m4/dirfd.m4 (gl_FUNC_DIRFD):
94082         * m4/dirname.m4 (gl_DIRNAME):
94083         * m4/exclude.m4 (gl_EXCLUDE):
94084         * m4/exitfail.m4 (gl_EXITFAIL):
94085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
94086         * m4/file-type.m4 (gl_FILE_TYPE):
94087         * m4/filemode.m4 (gl_FILEMODE):
94088         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
94089         * m4/fpending.m4 (gl_FUNC_FPENDING):
94090         * m4/fprintftime.m4 (gl_FPRINTFTIME):
94091         * m4/fts.m4 (gl_FUNC_FTS):
94092         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
94093         * m4/getdate.m4 (gl_GETDATE):
94094         * m4/gethrxtime.m4 (gl_GETHRXTIME):
94095         * m4/getpagesize.m4 (gl_GETPAGESIZE):
94096         * m4/getpass.m4 (gl_FUNC_GETPASS):
94097         * m4/gettime.m4 (gl_GETTIME):
94098         * m4/getugroups.m4 (gl_GETUGROUPS):
94099         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
94100         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
94101         * m4/hard-locale.m4 (gl_HARD_LOCALE):
94102         * m4/hash.m4 (gl_HASH):
94103         * m4/idcache.m4 (gl_IDCACHE):
94104         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
94105         * m4/lchown.m4 (gl_FUNC_LCHOWN):
94106         * m4/long-options.m4 (gl_LONG_OPTIONS):
94107         * m4/lstat.m4 (gl_FUNC_LSTAT):
94108         * m4/md5.m4 (gl_MD5):
94109         * m4/memcasecmp.m4 (gl_MEMCASECMP):
94110         * m4/memcoll.m4 (gl_MEMCOLL):
94111         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
94112         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
94113         * m4/memxor.m4 (gl_MEMXOR):
94114         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
94115         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
94116         * m4/modechange.m4 (gl_MODECHANGE):
94117         * m4/mountlist.m4 (gl_MOUNTLIST):
94118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
94119         * m4/openat.m4 (gl_FUNC_OPENAT):
94120         * m4/pathmax.m4 (gl_PATHMAX):
94121         * m4/physmem.m4 (gl_PHYSMEM):
94122         * m4/posixtm.m4 (gl_POSIXTM):
94123         * m4/posixver.m4 (gl_POSIXVER):
94124         * m4/quote.m4 (gl_QUOTE):
94125         * m4/quotearg.m4 (gl_QUOTEARG):
94126         * m4/readtokens.m4 (gl_READTOKENS):
94127         * m4/readutmp.m4 (gl_READUTMP):
94128         * m4/regex.m4 (gl_REGEX):
94129         * m4/safe-read.m4 (gl_SAFE_READ):
94130         * m4/safe-write.m4 (gl_SAFE_WRITE):
94131         * m4/same.m4 (gl_SAME):
94132         * m4/save-cwd.m4 (gl_SAVE_CWD):
94133         * m4/savedir.m4 (gl_SAVEDIR):
94134         * m4/settime.m4 (gl_SETTIME):
94135         * m4/sha1.m4 (gl_SHA1):
94136         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
94137         * m4/stat-macros.m4 (gl_STAT_MACROS):
94138         * m4/stat-time.m4 (gl_STAT_TIME):
94139         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
94140         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
94141         * m4/strdup.m4 (gl_FUNC_STRDUP):
94142         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
94143         * m4/strndup.m4 (gl_FUNC_STRNDUP):
94144         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
94145         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
94146         * m4/time_r.m4 (gl_TIME_R):
94147         * m4/timespec.m4 (gl_TIMESPEC):
94148         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
94149         * m4/unlinkdir.m4 (gl_UNLINKDIR):
94150         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
94151         * m4/userspec.m4 (gl_USERSPEC):
94152         * m4/utimecmp.m4 (gl_UTIMECMP):
94153         * m4/utimens.m4 (gl_UTIMENS):
94154         * m4/xalloc.m4 (gl_XALLOC):
94155         * m4/xgetcwd.m4 (gl_XGETCWD):
94156         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
94157         * m4/xreadlink.m4 (gl_XREADLINK):
94158         * m4/xstrtod.m4 (gl_XSTRTOD):
94159         * m4/yesno.m4 (gl_YESNO):
94160         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94161         to get the necessary .h files and whatnot.
94163 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
94164             Bruno Haible  <bruno@clisp.org>
94166         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
94167         /bin/sh understanding of '!' conditional negation.
94169 2006-08-21  Jim Meyering  <jim@meyering.net>
94171         * modules/openat (Depends-on): Really alphabetize.
94173         * modules/acl (Depends-on): Add error and quote.
94175         * check-module (find_included_lib_files): Add at-func.c to the
94176         ok-to-include-more-than-once white list.
94178         * modules/openat (Depends-on): Add lstat.  Alphabetize.
94180 2006-08-21  Bruno Haible  <bruno@clisp.org>
94182         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94183         Emit a pkgdata_DATA variable only if some snippets add contents to it.
94184         Reported by Martin Lambers <marlam@marlam.de>.
94186 2006-08-21  Bruno Haible  <bruno@clisp.org>
94188         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
94189         specify an installation location, don't emit a noinst_LIBRARIES or
94190         noinst_LTLIBRARIES assignment.
94192 2006-08-21  Bruno Haible  <bruno@clisp.org>
94194         BeOS portability.
94195         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
94196         BeOS has mbrtowc() but no <wctype.h>.
94198 2006-08-21  Bruno Haible  <bruno@clisp.org>
94200         BeOS portability.
94201         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
94202         exist.
94204 2006-08-21  Bruno Haible  <bruno@clisp.org>
94206         BeOS portability.
94207         * lib/mbchar.h: Include <wctype.h> only if it exists.
94209 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94211         Remove files that are no longer needed by their respective modules.
94212         * m4/obstack.m4: Remove.
94213         * m4/strerror_r.m4: Remove.
94214         * m4/uint32_t.m4: Remove.
94215         * m4/uintptr_t.m4: Remove.
94216         * m4/ullong_max.m4: Remove.
94217         * m4/xstrtoimax.m4: Remove.
94218         * m4/xstrtoumax.m4: Remove.
94220         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
94221         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
94222         dependencies now capture this.
94224         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
94225         Do not use AC_LIBSOURCES, since gnulib modules now do this.
94226         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
94227         * m4/human.m4 (gl_HUMAN): Likewise.
94228         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
94229         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
94231         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
94233         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
94234         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
94235         stdint.
94236         * m4/human.m4 (gl_HUMAN): Likewise.
94237         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
94238         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
94239         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94240         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94241         * m4/xstrtol (gl_XSTRTOL): Likewise.
94243         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
94244         AC_TYPE_LONG_LONG_INT.
94245         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94246         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
94247         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
94248         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94250         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
94251         on stdbool.
94253         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
94254         (gl_PREREQ_XSTRTOUL): Remove.
94256         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
94258         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
94259         mode.
94261 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94263         Add and change modules to make it easier for coreutils to use
94264         gnulib-tool.
94265         * modules/backupfile (Files): Remove m4/d-ino.m4.
94266         (Depends-on): Add d-ino.
94267         * modules/cycle-check (Depends-on): Add stdint.
94268         (lib_SOURCES): Add cycle-check.h.
94269         * modules/d-ino: New module.
94270         * modules/d-type: New module.
94271         * modules/error (Files): Remove m4/strerror_r.m4.
94272         * modules/filemode (Files): Add m4/st_dm_mode.m4.
94273         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94274         m4/inttypes_h.m4, m4/uintmax_t.m4.
94275         (Depends-on): Add stdint.
94276         (lib_SOURCES): Add fsusage.h.
94277         * modules/getcwd (Files): Remove d-ino.m4.
94278         (Depends-on): Add d-ino.
94279         * modules/getndelim2 (Depends-on): Add stdint.
94280         * modules/glob (Files): Remove m4/d-type.m4.
94281         (Depends-on): Add d-type.
94282         * modules/host-os: New module.
94283         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
94284         m4/inttypes_h.m4, m4/uintmax_t.m4.
94285         * Depends-on: Add stdint.
94286         (lib_SOURCES): Add human.h.
94287         * modules/inttostr (Files): Remove m4/intmax_t.m4,
94288         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
94289         m4/uintmax_t.m4, m4/ulonglong.m4.
94290         (Depends-on): Add stdint.
94291         (EXTRA_DIST): Add inttostr.h.
94292         * modules/lchmod: New module.
94293         * modules/link-follow: New module.
94294         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
94295         (Depends-on): Add lchmod.
94296         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
94297         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
94298         (Depends-on): Add stdint.
94299         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
94300         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
94301         (Depends-on): Add stdint.
94302         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
94303         * modules/perl: New module.
94304         * modules/regex (Depends-on): Add stdint.
94305         * modules/rmdir-errno: New module.
94306         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
94307         m4/intmax_t.m4.
94308         (Depends-on): Add stdint.
94309         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
94310         m4/uintmax_t.m4.
94311         (Depends-on): Add stdint.
94312         * modules/unlink-busy: New module.
94313         * modules/utimecmp (Depends-on): Add stdint.
94314         * modules/uptime: New module.
94315         * modules/winsz-ioctl: New module.
94316         * modules/winsz-termios: New module.
94317         * modules/xnanosleep (Depends-on): Add nanosleep.
94318         * modules/ullong_max: Remove.
94319         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
94320         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
94321         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
94322         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
94323         (Depends-on): Add inttypes.
94324         (lib_SOURCES): Add xstrtol.h.
94325         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
94326         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
94327         * MODULES.html.sh: Move 'assert' into the assert section.
94328         Move 'dummy' into the linking section.
94329         Remove ullong_max.
94330         Add section for compatibility checks for POSIX:2001 functions,
94331         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
94332         winsz-ioctl, and winsz-termios into it.
94333         Add lchmod.
94334         Add top-level Misc section and put host-os, perl, and uptime
94335         into it.
94337 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94339         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
94340         now assume the stdint module.  Do not include inttypes.h.
94341         * lib/fsusage.h: Likewise.
94342         * lib/getndelim2.c: Likewise.
94343         * lib/human.h: Likewise.
94344         * lib/inttostr.h: Likewise.
94345         * lib/obstack.c: Likewise.
94346         * lib/regex_internal.h: Likewise.
94347         * lib/tempname.c: Likewise.
94348         * lib/utimecmp.c: Likewise.
94349         * lib/xstrtol.h: Likewise.
94351         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
94353         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
94354         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
94355         * lib/xtime.h: Likewise.
94357 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94359         * modules/openat (Files): Add lib/fchmodat.c.
94360         Fixes problem reported by Jay Youngman.
94362 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94364         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
94365         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
94367 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
94368             Bruno Haible  <bruno@clisp.org>
94370         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
94371         and is a script that invokes bison. Tighten the code. Add comments.
94373 2006-08-18  Jim Meyering  <jim@meyering.net>
94375         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
94376         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
94377         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
94378         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
94380 2006-08-18  Bruno Haible  <bruno@clisp.org>
94382         * modules/bison-i18n: New file.
94383         * MODULES.html.sh (Internationalization functions): Add it.
94385 2006-08-18  Bruno Haible  <bruno@clisp.org>
94387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
94388         sys/statvfs.h. When getmntinfo was found, check its declaration and
94389         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
94391 2006-08-18  Bruno Haible  <bruno@clisp.org>
94393         * m4/bison-i18n.m4: New file, from bison.
94395 2006-08-18  Bruno Haible  <bruno@clisp.org>
94397         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
94398         (ME_DUMMY): Treat "kernfs" as a dummy.
94399         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
94401 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
94403         Update from coreutils.
94405         2006-08-15  Jim Meyering  <jim@meyering.net>
94407         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
94409         2006-01-17  Jim Meyering  <jim@meyering.net>
94411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
94413         2006-01-11  Jim Meyering  <jim@meyering.net>
94415         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
94416         Check for the lchmod function.
94418 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
94420         Update from coreutils.
94422         * lib/__fpending.h: Add copyright notice.
94423         * lib/fprintftime.h: Likewise.
94424         * lib/savedir.c: Use (C) in copyright notice.
94425         * lib/savedir.h: Likewise.
94427         2006-08-15  Jim Meyering  <jim@meyering.net>
94429         * lib/at-func.c: New file, with the logic of all emulated at-functions.
94430         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
94431         in support of the EXPECTED_ERRNO macro.
94432         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
94433         definitions.  Instead, define the appropriate symbols and include
94434         "at-func.c".
94435         * lib/mkdirat.c (mkdirat): Likewise.
94436         * lib/fchmodat.c (fchmodat): Likewise.
94437         (ENOSYS): Remove definition.
94438         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
94439         it.  Don't include "unistd--.h" -- it wasn't ever used.
94441         2006-01-17  Jim Meyering  <jim@meyering.net>
94443         Rewrite fts.c not to change the current working directory,
94444         by using openat, fstatat, fdopendir, etc..
94446         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
94447         (HAVE_OPENAT_SUPPORT): Define.
94448         [_LIBC] (fchdir): Don't undef or define; no longer used.
94449         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
94450         Now, this `function' always succeeds, and consumes its file descriptor
94451         parameter -- so callers must not close such FDs.  Update callers.
94452         (diropen_fd, opendirat, cwd_advance_fd): New functions.
94453         (diropen): Add parameter, SP.  Adjust all callers.
94454         Implement using diropen_fd, rather than open.
94455         (fts_open): Initialize new member, fts_cwd_fd.
94456         Remove fts_rft-setting code.
94457         (fts_close): Close fts_cwd_fd, if necessary.
94458         (__opendir2): Define in terms of opendir or opendirat,
94459         depending on whether the FST_NOCHDIR flag is set.
94460         (fts_build): Since fts_safe_changedir consumes its FD, and since
94461         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
94462         and close the dup'd file descriptor upon failure.
94463         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
94464         (fts_safe_changedir): Tweak semantics to reflect that this function
94465         now calls cwd_advance_fd and hence consumes its FD argument.
94466         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
94467         [struct FTS] (fts_rft): Remove now-unused member.
94468         [struct FTS] (fts_cycle.state): Improve comment.
94470         * lib/openat.c (openat_needs_fchdir): New function.
94471         * lib/openat.h (openat_needs_fchdir): Declare it.
94473 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
94475         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
94476         Problem and fix reported by Pádraig Brady in
94477         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
94479 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94481         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
94483 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94485         * lib/memcoll.c (memcoll): Optimize for the common case where the
94486         arguments are bytewise equal.
94488 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94490         * doc/regexprops-generic.texi: Add a copyright notice.
94492 2006-08-15  Bruno Haible  <bruno@clisp.org>
94494         * modules/tmpdir (License): Change to LGPL.
94496 2006-08-15  Bruno Haible  <bruno@clisp.org>
94498         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
94499         module.
94501 2006-08-14  Simon Josefsson  <jas@extundo.com>
94503         * config/srclist.txt: Add gnupload.
94505 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94507         Change copyright notice from LGPL 2 to GPL 2, since that's the
94508         standard form used in the gnulib repository.
94509         * tests/test-lock.c: Likewise.
94510         * tests/test-stdint.c: Likewise.
94511         * tests/test-tls.c: Likewise.
94513         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
94514         prelude-manager.  User shorter URLs for GNU projects, without '?'.
94515         Add copyright notice.
94517         * check-module: Add copyright notice.  Output a copyright
94518         notice if "--version" is specified.
94519         * modules/COPYING: New file.
94520         * tests/test-getaddrinfo.c: Add copyright notice.
94521         * tests/test-verify.c: Likewise.
94523 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94525         Change copyright notice from LGPL 2 to GPL 2, since that's the
94526         standard form used in the gnulib repository.
94527         * lib/lock.c: LGPL -> GPL.
94528         * lib/lock.h: Likewise.
94529         * lib/strnlen1.c: Likewise.
94530         * lib/strnlen1.h: Likewise.
94531         * lib/tls.c: Likewise.
94532         * lib/tls.h: Likewise.
94533         * lib/tmpdir.c: Likewise.
94535         * lib/TODO: Remove; this belongs only in coreutils.
94537 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94539         Add copyright notices to long-enough files that lack them, since
94540         otherwise the files aren't clearly free.  Use the same notice that
94541         getdate.texi already uses.
94542         * doc/alloca-opt.texi: Add copyright notice.
94543         * doc/alloca.texi: Likewise.
94544         * doc/ctime.texi: Likewise.
94545         * doc/functions.texi: Likewise.
94546         * doc/gcd.texi: Likewise.
94547         * doc/gnulib-tool.texi: Likewise.
94548         * doc/inet_ntoa.texi: Likewise.
94549         * doc/visibility.texi: Likewise.
94551         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
94552         * doc/quote.texi: Add copyright notice.
94554         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
94555         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
94556         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
94557         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
94558         is now obsolete, and give a pointer to the Sun list.
94559         Add copyright notice.
94561 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94563         * config/srclistvars.sh: Add copyright notice.
94565 2006-08-14  Eric Blake  <ebb9@byu.net>
94567         Import the following change from libc:
94569         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
94571         Upstream bug 2997.
94572         * lib/misc/error.c: Add space between program name and message if file
94573         name is missing.
94575 2006-08-12  Karl Berry  <karl@gnu.org>
94577         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
94578         remove, these originate in gnulib now.
94580 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94582         * doc/Makefile (standards.info standards.html standards.dvi):
94583         Also depend on make-stds.texi.
94585 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
94587         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
94588         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
94590         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
94591         in wchar_t.  Problem reported by Eric Blake.
94593         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
94594         LEN is smaller than SIZE.  Suggested by Bruno Haible.
94595         Also, help the compiler to keep LEN in a register.
94597 2006-08-11  Eric Blake  <ebb9@byu.net>
94599         * users.txt: Sort.  Add tar.
94601 2006-08-11  Bruno Haible  <bruno@clisp.org>
94603         * users.txt: New file.
94605 2006-08-11  Bruno Haible  <bruno@clisp.org>
94607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
94608         before <wchar.h>. Needed for OSF/1 and BSD/OS.
94610 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94612         * modules/snprintf (Depends-on): Remove minmax.
94613         (Maintainer): Add self and Bruno.
94615 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94617         * lib/.cppi-disable: Add snprintf.h, socket_.h.
94618         * lib/snprintf.c: Include <errno.h> and <limits.h>.
94619         (EOVERFLOW): Define if the system does not.
94620         Do not include "minmax.h"; it wasn't used.
94621         (snprintf): Don't assume size_t promotes to an unsigned type.
94622         Fix bug when generated string was too long for the buffer: the
94623         buffer's contents are supposed to be the initial prefix of the
94624         output.  Don't assume vasnprintf returns EOVERFLOW if the size
94625         exceeds INT_MAX; do the check ourselves.
94627         Import the following changes from libc:
94629         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
94631         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
94632         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
94633         set wc to the byte which couldn't be converted.
94634         (re_string_reconstruct): Don't clear valid_raw_len before calling
94635         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
94636         tip_context using re_string_context_at.
94638         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
94640         * lib/posix/regex.h: g++ still cannot handled [restrict].
94642         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
94644         * lib/posix/regex.h: Remove special handling for VMS.
94646 2006-08-10  Jim Meyering  <jim@meyering.net>
94648         * modules/same-inode: New module.
94649         * modules/dev-ino: New module.
94650         * modules/cycle-check: Depend on these modules, rather than simply
94651         including their .h files.
94652         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
94653         required via m4/cycle-check.m4.
94654         * modules/same: Depend on new same-inode module, rather than
94655         including same-inode.h.
94656         * modules/chdir-safer: New file.
94658         * modules/chown (Depends-on): Add stat-macros.
94660 2006-08-10  Jim Meyering  <jim@meyering.net>
94662         * m4/cycle-check.m4: New file.
94663         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
94664         * m4/dev-ino.m4, m4/same-inode.m4: New files.
94666 2006-08-10  Eric Blake  <ebb9@byu.net>
94668         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
94669         in from original proposal.
94671 2006-08-10  Eric Blake  <ebb9@byu.net>
94672         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94674         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
94675         namespace.
94677 2006-08-10  Bruno Haible  <bruno@clisp.org>
94679         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
94680         as well.
94682 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94684         Sync from coreutils.
94686         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
94688         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
94689         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
94691 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94693         * modules/restrict: Remove; no longer needed now that we assume
94694         Autoconf 2.59 or later.
94695         * MODULES.html.sh: Remove 'restrict'.
94696         * modules/argp (Depends-on): Remove 'restrict'.
94697         * modules/base64 (Depends-on): Likewise.
94698         * modules/gc (Depends-on): Likewise.
94699         * modules/getaddrinfo (Depends-on): Likewise.
94700         * modules/glob (Depends-on): Likewise.
94701         * modules/inet_ntop (Depends-on): Likewise.
94702         * modules/inet_pton (Depends-on): Likewise.
94703         * modules/memxor (Depends-on): Likewise.
94704         * modules/regex (Depends-on): Likewise.
94705         * modules/strtok_r (Depends-on): Likewise.
94706         * modules/time_r (Depends-on): Likewise.
94708 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94710         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
94711         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
94712         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94713         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
94714         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
94715         * m4/memxor.m4 (gl_MEMXOR): Likewise.
94716         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
94717         gl_C_RESTRICT replaced by AC_C_RESTRICT.
94719         Merge from coreutils.
94720         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
94721         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
94722         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
94723         * m4/time_r.m4 (gl_TIME_R): Likewise.
94725 2006-08-09  Karl Berry  <karl@gnu.org>
94727         * config/srclist.txt: no more gettext-tools, per Bruno.
94729 2006-08-08  Eric Blake  <ebb9@byu.net>
94731         * modules/verror: New module.
94732         * MODULES.html.sh: Document it.
94734 2006-08-08  Eric Blake  <ebb9@byu.net>
94736         * lib/verror.h, lib/verror.c: New files.
94738 2006-08-08  Eric Blake  <ebb9@byu.net>
94740         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
94741         verror_at_line output complies with GNU Coding Standards even when
94742         file is NULL.
94744 2006-08-07  Bruno Haible  <bruno@clisp.org>
94746         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
94747         versions of AIX.
94748         Reported by Ralf Wildenhues.
94750 2006-08-07  Bruno Haible  <bruno@clisp.org>
94752         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
94753         in an AC_DEFUN. Needed so that the autoconf snippets can use
94754         AC_REQUIRE.
94756 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94758         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94759         Initialize pkgdata_DATA.
94760         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
94761         overriding it.
94763 2006-08-06  Eric Blake  <ebb9@byu.net>
94765         * lib/error.h: Fold in some upstream changes from glibc.
94766         * lib/error.c: Likewise.
94768 2006-08-04  Bruno Haible  <bruno@clisp.org>
94770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94771         Make the mostlyclean-local rule depend on mostlyclean-generic.
94772         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
94774 2006-07-31  Bruno Haible  <bruno@clisp.org>
94776         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
94777         <stdlib.h>, <string.h>.
94779 2006-07-30  Bruno Haible  <bruno@clisp.org>
94781         * modules/readlink (License): Change to LGPL.
94783 2006-07-30  Bruno Haible  <bruno@clisp.org>
94785         * modules/javaversion (Makefile.am): Distribute javaversion.java and
94786         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
94787         set PKGDATADIR to point to it.
94789 2006-07-30  Bruno Haible  <bruno@clisp.org>
94791         * modules/csharpexec (configure.ac): Comment out macro invocation.
94792         * modules/javaexec (configure.ac): Likewise.
94793         * modules/javacomp-script (configure.ac): Likewise.
94795         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
94797 2006-07-30  Bruno Haible  <bruno@clisp.org>
94799         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
94800         linked-list.
94802 2006-07-30  Bruno Haible  <bruno@clisp.org>
94804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
94806 2006-07-30  Bruno Haible  <bruno@clisp.org>
94808         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94809         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
94810         get removed.
94812 2006-07-29  Bruno Haible  <bruno@clisp.org>
94814         Make it possible for gnulib-tool to work with locally modified or
94815         augmented gnulib repositories.
94816         * gnulib-tool (func_usage): Document --local-dir option.
94817         (local_gnulib_dir): New variable.
94818         Handle --local-dir option.
94819         (func_lookup_file): New function.
94820         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
94821         (func_get_description, func_get_filelist, func_get_description,
94822         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
94823         func_get_automake_snippet, func_get_include_directive,
94824         func_get_license, func_get_maintainer): Use func_lookup_file.
94825         (func_import, func_create_testdir): Use func_lookup_file.
94827 2006-07-29  Bruno Haible  <bruno@clisp.org>
94829         * modules/setenv (Depends-on): Add unistd.
94831 2006-07-29  Bruno Haible  <bruno@clisp.org>
94833         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
94835 2006-07-29  Bruno Haible  <bruno@clisp.org>
94837         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
94839 2006-07-29  Bruno Haible  <bruno@clisp.org>
94841         * gnulib-tool (import, update): If there is no Makefile.am, look at
94842         aclocal.m4, instead of bailing out.
94844 2006-07-29  Bruno Haible  <bruno@clisp.org>
94846         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
94847         Categorize the options by when they are useful.
94849 2006-07-29  Bruno Haible  <bruno@clisp.org>
94851         * gnulib-tool (func_usage): Document option --no-libtool.
94852         Handle option --no-libtool.
94853         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
94854         for changed semantics of $libtool variable.
94855         (func_import): Likewise. If libtool is not used, show this through
94856         an option --no-libtool.
94857         (func_create_testdir): Update.
94859 2006-07-29  Bruno Haible  <bruno@clisp.org>
94861         * gnulib-tool (func_import): Extend error message about missing
94862         --doc-base.
94864 2006-07-29  Bruno Haible  <bruno@clisp.org>
94866         * gnulib-tool (func_import): Don't create the $docbase directory if
94867         there is no file to store there.
94869 2006-07-29  Bruno Haible  <bruno@clisp.org>
94871         * gnulib-tool (autoconf_minversion): If a --dir option is given and
94872         relevant, look for configure.ac there, not in the current directory.
94873         Also use a simple search for AC_PREREQ, not "autoconf --trace".
94875 2006-07-29  Bruno Haible  <bruno@clisp.org>
94877         * gnulib-tool (SORT): New variable.
94878         (func_usage): Undocument --assume-autoconf option.
94879         Remove --assume-autoconf option handling.
94880         (autoconf_minversion): Determine from the contents of configure.ac.
94881         (func_import): Remove autoconf_minversion handling.
94882         Suggested by Eric Blake.
94884 2006-07-29  Bruno Haible  <bruno@clisp.org>
94886         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
94888 2006-07-29  Bruno Haible  <bruno@clisp.org>
94890         * config/srclist.txt (*setenv.[ch]): Remove rules.
94892 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94894         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
94896 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94898         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
94899         arpa/inet.h.
94901 2006-07-28  Simon Josefsson  <jas@extundo.com>
94903         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
94904         * modules/inet_pton (Depends-on): Likewise.
94906 2006-07-28  Simon Josefsson  <jas@extundo.com>
94908         * m4/netinet_in_h.m4: New file.
94910 2006-07-28  Simon Josefsson  <jas@extundo.com>
94912         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
94913         #include's.
94915 2006-07-28  Simon Josefsson  <jas@extundo.com>
94917         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
94918         #include's.
94920 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
94922         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
94923         setgid on directories only if they set these bits.
94924         * lib/modechange.h: Remove obsolete comment about masks.
94926 2006-07-28  Eric Blake  <ebb9@byu.net>
94928         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
94929         macro expansion.
94931 2006-07-28  Bruno Haible  <bruno@clisp.org>
94933         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
94935 2006-07-28  Bruno Haible  <bruno@clisp.org>
94937         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
94939 2006-07-28  Bruno Haible  <bruno@clisp.org>
94941         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94942         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94943         Define fallbacks.
94944         Avoids link error on FreeBSD 4.x.
94945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94947         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
94948         encoding.
94949         * lib/mbswidth.c (iswcntrl): Likewise.
94951 2006-07-27  Bruno Haible  <bruno@clisp.org>
94953         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
94954         test.
94956 2006-07-27  Bruno Haible  <bruno@clisp.org>
94958         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
94959         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
94960         defined.
94962 2006-07-26  Eric Blake  <ebb9@byu.net>
94964         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
94966 2006-07-26  Eric Blake  <ebb9@byu.net>
94968         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
94969         like mingw that lack mkstemp.
94970         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
94971         avoid compilation warning on mingw.
94973 2006-07-26  Bruno Haible  <bruno@clisp.org>
94975         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
94976         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
94977         INT_FAST*_MIN, INTPTR_MIN.
94979 2006-07-25  Bruno Haible  <bruno@clisp.org>
94981         * modules/version-etc (Depends-on): Add stdarg.
94983 2006-07-25  Bruno Haible  <bruno@clisp.org>
94985         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
94986         complex commands.
94988 2006-07-25  Bruno Haible  <bruno@clisp.org>
94990         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
94991         defined in <stdarg.h> or config.h.
94993 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
94995         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
94996         (gl_STDIO_SAFER): Remove.
94998 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95000         * MODULES.html.sh (File stream based Input/Output):
95001         Add fopen-safer, tmpfile-safer; remove stdio-safer.
95002         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
95003         * modules/fopen-safer, modules/tmpfile-safer: New files.
95004         * modules/stdio-safer: Remove.
95006 2006-07-24  Bruno Haible  <bruno@clisp.org>
95008         * modules/tmpdir: New file.
95009         * MODULES.html.sh (File system functions): Add it.
95011 2006-07-24  Bruno Haible  <bruno@clisp.org>
95013         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
95014         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
95016 2006-07-24  Bruno Haible  <bruno@clisp.org>
95018         * modules/clean-temp: New file.
95020 2006-07-24  Bruno Haible  <bruno@clisp.org>
95022         * m4/tmpdir.m4: New file, from GNU gettext.
95024 2006-07-24  Bruno Haible  <bruno@clisp.org>
95026         * lib/tmpdir.h: New file, from GNU gettext.
95027         * lib/tmpdir.c: New file, from GNU gettext.
95029 2006-07-24  Bruno Haible  <bruno@clisp.org>
95031         * lib/clean-temp.h: New file, from GNU gettext.
95032         * lib/clean-temp.c: New file, from GNU gettext.
95034 2006-07-23  Eric Blake  <ebb9@byu.net>
95036         * modules/stdio-safer (Files): Add tmpfile-safer.c.
95037         (Depends-on): Add binary-io.
95039 2006-07-23  Eric Blake  <ebb9@byu.net>
95041         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
95043 2006-07-23  Eric Blake  <ebb9@byu.net>
95045         * lib/tmpfile-safer.c: New file.
95046         * lib/stdio-safer.h (fopen_safer): Add prototype.
95047         * lib/stdio--.h (tmpfile): Make safer.
95049 2006-07-23  Bruno Haible  <bruno@clisp.org>
95051         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
95052         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
95053         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
95054         gl_linked_remove_at): Use it.
95056 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95057         and Simon Josefsson <jas@extundo.com>
95059         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
95061         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
95063 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95065         * modules/close-stream: New file.
95066         * modules/closeout (Description): Make it clear that it exits
95067         with a diagnostic on error.
95068         (Depends-on): Add close-stream.  Remove fpending, stdbool.
95069         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
95071 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95073         * m4/close-stream.m4: New file.
95075 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95077         * lib/close-stream.c, lib/close-stream.h: New files.
95079 2006-07-22  Bruno Haible  <bruno@clisp.org>
95081         Merge from GNU gettext 0.15.
95083         2006-05-01  Bruno Haible  <bruno@clisp.org>
95085                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
95087         2006-07-22  Bruno Haible  <bruno@clisp.org>
95089                 * modules/javaversion: New file.
95090                 * MODULES.html.sh (Java): Add javaversion.
95092         2006-03-12  Bruno Haible  <bruno@clisp.org>
95094                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
95096         2005-12-04  Bruno Haible  <bruno@clisp.org>
95098                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
95099                 (untested).
95101         2006-06-21  Bruno Haible  <bruno@clisp.org>
95103                 Avoid warnings from recent versions of mcs.
95104                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
95105                 -o, -L, -r any more. Use options documented since mcs-1.0
95106                 instead. Similarly for -g.
95108         2005-12-04  Bruno Haible  <bruno@clisp.org>
95110                 * build-aux/csharpcomp.sh.in: Suffix for resources is
95111                 .resources, not .resource.
95113         2005-07-09  Bruno Haible  <bruno@clisp.org>
95115                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
95116                 add a .dll suffix.
95117                 Reported by Mark Junker <mjscod@gmx.de>.
95119         2006-07-22  Bruno Haible  <bruno@clisp.org>
95121                 * modules/gettext: Upgrade to gettext-0.15.
95122                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
95123                 m4/visibility.m4.
95124                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
95126 2006-07-22  Bruno Haible  <bruno@clisp.org>
95128         Merge from GNU gettext 0.15.
95130         2006-03-25  Bruno Haible  <bruno@clisp.org>
95132                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
95134         2006-07-21  Bruno Haible  <bruno@clisp.org>
95136                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
95137                 "1.1".
95139         2006-05-09  Bruno Haible  <bruno@clisp.org>
95141                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
95142                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
95143                 for the conftestver execution.
95145         2006-05-01  Bruno Haible  <bruno@clisp.org>
95147                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
95148                 optional target-version argument. Verify that the compiler
95149                 groks source of the specified source-version, or add -source
95150                 option as necessary. Verify that the compiler produces
95151                 bytecode in the specified target-version, or add -target and
95152                 -source options as necessary. Make the result of the test
95153                 available as variable CONF_JAVAC. Also log error output in
95154                 config.log.
95156         2006-03-11  Bruno Haible  <bruno@clisp.org>
95158                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
95160         2006-05-09  Bruno Haible  <bruno@clisp.org>
95162                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
95163                 CLASSPATH_SEPARATOR to a semicolon.
95165         2006-03-12  Bruno Haible  <bruno@clisp.org>
95167                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
95168                 available as variable CONF_JAVA, for subsequent autoconf
95169                 tests. Also log error output in config.log.
95171         2006-07-19  Bruno Haible  <bruno@clisp.org>
95173                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
95174                 that getline works on glibc2 systems. Needed to avoid trouble
95175                 in relocatable.c.
95176                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
95178         2005-12-04  Bruno Haible  <bruno@clisp.org>
95180                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
95181                 launcher (untested).
95183         2005-12-04  Bruno Haible  <bruno@clisp.org>
95185                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
95187         2006-07-22  Bruno Haible  <bruno@clisp.org>
95189                 * gettext.m4: Update from GNU gettext-0.15.
95190                 * nls.m4: Likewise.
95191                 * po.m4: Likewise.
95192                 * inttypes-pri.m4: Likewise.
95193                 * inttypes-h.m4: Renamed from inttypes.m4.
95194                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
95196 2006-07-22  Bruno Haible  <bruno@clisp.org>
95198         Merge from GNU gettext 0.15.
95200         2005-07-05  Bruno Haible  <bruno@clisp.org>
95202                 * printf-args.c (printf_fetchargs): Work around broken
95203                 definition of wint_t on mingw.
95205         2005-02-12  Bruno Haible  <bruno@clisp.org>
95207                 * xallocsa.h: Add extern "C" for C++.
95209         2006-05-17  Bruno Haible  <bruno@clisp.org>
95211                 Cygwin portability.
95212                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
95214         2006-04-30  Bruno Haible  <bruno@clisp.org>
95216                 * progreloc.c: Include <mach-o/dyld.h> if available.
95217                 (find_executable): Use _NSGetExecutablePath when possible.
95219         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95221                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
95222                 function.
95224         2005-12-29  Bruno Haible  <bruno@clisp.org>
95226                 * progreloc.c (set_program_name_and_installdir): Fix
95227                 compilation error.
95229         2005-12-04  Bruno Haible  <bruno@clisp.org>
95231                 Cygwin portability.
95232                 * progreloc.c: Include <windows.h> also on Cygwin.
95233                 (find_executable): Add support for Cygwin.
95234                 (set_program_name_and_installdir): Handle also platforms with
95235                 nonempty EXEEXT.
95237         2006-07-11  Bruno Haible  <bruno@clisp.org>
95239                 * javacomp.c: Fix a comment.
95240                 Reported by Jim Meyering.
95242         2006-04-30  Bruno Haible  <bruno@clisp.org>
95244                 * javacomp.h (compile_java_class): Add source_version,
95245                 target_version arguments.
95246                 * javacomp.c: Rewritten to choose only a compiler that
95247                 respects the specified source_version and target_version.
95249         2006-06-27  Bruno Haible  <bruno@clisp.org>
95251                 Assume correct S_ISDIR macro.
95252                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
95254         2006-07-22  Bruno Haible  <bruno@clisp.org>
95256                 * javaversion.h: New file, from GNU gettext.
95257                 * javaversion.c: New file, from GNU gettext.
95258                 * javaversion.java: New file, from GNU gettext.
95259                 * javaversion.class: New file, from GNU gettext.
95261         2006-05-17  Bruno Haible  <bruno@clisp.org>
95263                 Cygwin portability.
95264                 * javaexec.c (execute_java_class): Test for jview program
95265                 also on Cygwin.
95267         2006-04-09  Bruno Haible  <bruno@clisp.org>
95269                 * fatal-signal.c: Don't include string.h.
95270                 (at_fatal_signal): Use a copying loop instead of memcpy.
95272         2005-12-04  Bruno Haible  <bruno@clisp.org>
95274                 * csharpexec.c: Add support for 'clix' launcher (untested).
95275                 (execute_csharp_using_sscli): New function.
95276                 (execute_csharp_program): Call it.
95278         2006-06-21  Bruno Haible  <bruno@clisp.org>
95280                 Avoid warnings from recent versions of mcs.
95281                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
95282                 -o, -L, -r any more. Use options documented since mcs-1.0
95283                 instead. Similarly for -g.
95285         2005-07-09  Bruno Haible  <bruno@clisp.org>
95287                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
95288                 add a .dll suffix.
95289                 Reported by Mark Junker <mjscod@gmx.de>.
95291         2006-06-17  Bruno Haible  <bruno@clisp.org>
95293                 * config.charset: Update for NetBSD 3.0.
95295         2006-05-17  Bruno Haible  <bruno@clisp.org>
95297                 Cygwin portability.
95298                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
95300         2006-05-16  Bruno Haible  <bruno@clisp.org>
95302                 * localcharset.c [CYGWIN]: Include <windows.h>.
95303                 (get_charset_aliases): For Cygwin, return the same CPxxx
95304                 aliases list as under WIN32.
95305                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
95306                 the environment variables. Fall back to GetACP().
95308         2006-04-05  Bruno Haible  <bruno@clisp.org>
95310                 * config.charset: Update Juan Manuel Guerrero's address.
95312         2005-02-12  Bruno Haible  <bruno@clisp.org>
95314                 * allocsa.h: Add extern "C" for C++.
95316         2005-02-10  Bruno Haible  <bruno@clisp.org>
95318                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
95319                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
95321         2006-07-22  Bruno Haible  <bruno@clisp.org>
95323                 * gettext.h: Update to GNU gettext-0.15.
95325 2006-07-22  Bruno Haible  <bruno@clisp.org>
95327         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
95328         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
95329         lib-prefix.m4, longdouble.m4, ssize_t.m4.
95331 2006-07-21  Eric Blake  <ebb9@byu.net>
95333         * modules/stdlib-safer: New file.
95334         * MODULES.html.sh (File stream based Input/Output): Add
95335         stdlib-safer.
95337 2006-07-21  Eric Blake  <ebb9@byu.net>
95339         * lib/stdlib-safer.h: New file from coreutils, required by
95340         stdlib--.h.
95342 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
95344         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
95346 2006-07-20  Bruno Haible  <bruno@clisp.org>
95348         * gnulib-tool: Recognize new option --assume-autoconf.
95349         (autoconf_minversion): New variable.
95350         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
95352 2006-07-20  Bruno Haible  <bruno@clisp.org>
95354         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
95356 2006-07-19  Derek R. Price  <derek@ximbiot.com>
95358         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
95359         Reindent and repaginate.
95361 2006-07-19  Derek Price  <derek@ximbiot.com>
95363         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
95364         Correct grammar.
95366 2006-07-17  Bruno Haible  <bruno@clisp.org>
95368         * modules/list: New file.
95369         * modules/array-list: New file.
95370         * modules/carray-list, modules/carray-list-tests: New files.
95371         * modules/linked-list, modules/linked-list-tests: New files.
95372         * modules/avltree-list, modules/avltree-list-tests: New files.
95373         * modules/rbtree-list, modules/rbtree-list-tests: New files.
95374         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
95375         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
95376         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
95377         * modules/oset: New file.
95378         * modules/array-oset: New file.
95379         * modules/avltree-oset, modules/avltree-oset-tests: New files.
95380         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
95381         * tests/test-carray_list.c: New file.
95382         * tests/test-linked_list.c: New file.
95383         * tests/test-avltree_list.c: New file.
95384         * tests/test-rbtree_list.c: New file.
95385         * tests/test-linkedhash_list.c: New file.
95386         * tests/test-avltreehash_list.c: New file.
95387         * tests/test-rbtreehash_list.c: New file.
95388         * tests/test-avltree_oset.c: New file.
95389         * tests/test-rbtree_oset.c: New file.
95390         * MODULES.html.sh (Container data structures): New section.
95392 2006-07-17  Bruno Haible  <bruno@clisp.org>
95394         * m4/gl_list.m4: New file.
95396 2006-07-17  Bruno Haible  <bruno@clisp.org>
95398         * lib/gl_list.h: New file.
95399         * lib/gl_list.c: New file.
95400         * lib/gl_array_list.h: New file.
95401         * lib/gl_array_list.c: New file.
95402         * lib/gl_carray_list.h: New file.
95403         * lib/gl_carray_list.c: New file.
95404         * lib/gl_linked_list.h: New file.
95405         * lib/gl_linked_list.c: New file.
95406         * lib/gl_anylinked_list1.h: New file.
95407         * lib/gl_anylinked_list2.h: New file.
95408         * lib/gl_avltree_list.h: New file.
95409         * lib/gl_avltree_list.c: New file.
95410         * lib/gl_anyavltree_list1.h: New file.
95411         * lib/gl_anyavltree_list2.h: New file.
95412         * lib/gl_rbtree_list.h: New file.
95413         * lib/gl_rbtree_list.c: New file.
95414         * lib/gl_anyrbtree_list1.h: New file.
95415         * lib/gl_anyrbtree_list2.h: New file.
95416         * lib/gl_anytree_list1.h: New file.
95417         * lib/gl_anytree_list2.h: New file.
95418         * lib/gl_linkedhash_list.h: New file.
95419         * lib/gl_linkedhash_list.c: New file.
95420         * lib/gl_anyhash_list1.h: New file.
95421         * lib/gl_anyhash_list2.h: New file.
95422         * lib/gl_avltreehash_list.h: New file.
95423         * lib/gl_avltreehash_list.c: New file.
95424         * lib/gl_rbtreehash_list.h: New file.
95425         * lib/gl_rbtreehash_list.c: New file.
95426         * lib/gl_anytreehash_list1.h: New file.
95427         * lib/gl_anytreehash_list2.h: New file.
95429         * lib/gl_oset.h: New file.
95430         * lib/gl_oset.c: New file.
95431         * lib/gl_array_oset.h: New file.
95432         * lib/gl_array_oset.c: New file.
95433         * lib/gl_avltree_oset.h: New file.
95434         * lib/gl_avltree_oset.c: New file.
95435         * lib/gl_rbtree_oset.h: New file.
95436         * lib/gl_rbtree_oset.c: New file.
95437         * lib/gl_anytree_oset.h: New file.
95439 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95441         * m4/mkancesdirs.m4: New file.
95442         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
95443         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
95444         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
95445         it.
95447 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95449         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
95450         * lib/mkancesdirs.h: New files.
95451         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
95452         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
95453         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
95454         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
95455         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
95456         callers changed.  Revamp internals significantly, by not
95457         attempting to create directories that are temporarily more
95458         permissive than the final results.  Do not attempt to use
95459         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
95460         This removes some race conditions, fixes some bugs, and simplifies
95461         things.  Use new dirchownmod function to do owner and mode changes.
95462         * lib/mkdir-p.h: Likewise.
95463         * lib/modechange.c (octal_to_mode): New function.
95464         (struct mode_change): New member mentioned.
95465         (make_node_op_equals): New arg mentioned.  All callers changed.
95466         (mode_compile): Keep track of which mode bits the user has explicitly
95467         mentioned.
95468         (mode_adjust): New arg DIR, so that we implement the X op correctly.
95469         New arg PMODE_BITS, to keep track of which mode bits the user
95470         mentioned; it treats S_ISUID and S_ISGID speciall.
95471         All callers changed.
95472         * lib/modechange.h: Likewise.
95474 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95476         * MODULES.html.sh: Add mkancestors.
95477         * modules/mkancesdirs: New module.
95478         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
95479         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
95480         The chdir-safer and afs files are now orphans; I'll remove them
95481         unless someone speaks up.
95482         Add lib/dirchownmod.c, lib/dirchownmod.h.
95483         (Depends-on): Remove alloca, chown, save-cwd, dirname.
95484         Add lchown, mkancesdirs.
95485         (Maintainer): Add self.
95487 2006-07-15  Karl Berry  <karl@gnu.org>
95489         * gnulib-tool: help message wording/arrangement.
95491 2006-07-14  Simon Josefsson  <jas@extundo.com>
95493         * doc/gnulib.texi (Libtool and Windows): New section.
95495 2006-07-12  Simon Josefsson  <jas@extundo.com>
95497         * modules/gendocs (License): Fix license, approved by Karl.
95499 2006-07-12  Eric Blake  <ebb9@byu.net>
95501         * MODULES.html.sh: Add gendocs.
95503 2006-07-11  Eric Blake  <ebb9@byu.net>
95505         * modules/fdl: New module, to install doc/fdl.texi.
95506         * MODULES.html.sh: Add new section for documentation modules.
95507         * gnulib-tool: Avoid space-tab.
95508         (--doc-base): New option, to manage files from doc.
95510 2006-07-11  Eric Blake  <ebb9@byu.net>
95512         * m4/absolute-header.m4: Fix comments to match recent change.
95514 2006-07-11  Eric Blake  <ebb9@byu.net>
95516         * gnulib-tool: List --doc-base before --tests-base.
95518 2006-07-11  Derek R. Price  <derek@ximbiot.com>
95520         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
95522 2006-07-11  Bruno Haible  <bruno@clisp.org>
95524         * README: Mention where to put documentation.
95526 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95528         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
95530 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
95532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
95533         to stdint.m4.
95535 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
95537         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
95538         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
95539         "no/such/file/stdint.h" when there is no such file, so that
95540         the resulting C code can be parsed by dodgy compilers.
95541         Problems reported by Bob Proulx.
95543 2006-07-10  Derek R. Price  <derek@ximbiot.com>
95545         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
95546         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
95547         macros into the GNU _D_EXACT_NAMLEN.
95548         * lib/savedir.c:  Likewise.
95549         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
95551 2006-07-10  Derek R. Price  <derek@ximbiot.com>
95552         and Paul Eggert  <eggert@cs.ucla.edu>
95554         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
95555         * m4/savedir.m4:
95556         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
95557         macros into the GNU _D_EXACT_NAMLEN.
95559 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95561         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
95562         around the absolute name, to work around a problem with the HP-UX
95563         11.23 native C compiler, reported by Bob Proulx.
95565 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95567         * doc/maintain.texi, make-stds.texi: Sync from
95568         <http://savannah.gnu.org/projects/gnustandards>.
95570 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95572         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
95574 2006-07-09  Jim Meyering  <jim@meyering.net>
95576         * m4/glob.m4: Remove a doubled word in a comment.
95578 2006-07-09  Jim Meyering  <jim@meyering.net>
95580         * lib/argp-pv.c: Remove a doubled word in a comment.
95581         * lib/check-version.c (check_version): Likewise.
95582         * lib/javacomp.c (compile_java_class): Likewise.
95584 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
95586         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
95587         for the benefit of people using Autoconf 2.60.  If you want to
95588         support older Autoconf versions you can copy m4/onceonly_2_57.m4
95589         (or m4/onceonly.m4, if pre-2.57) manually.
95591 2006-07-08  Jim Meyering  <jim@meyering.net>
95593         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
95594         comment.
95595         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
95596         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
95597         comment.
95599 2006-07-08  Jim Meyering  <jim@meyering.net>
95601         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
95603 2006-07-07  Simon Josefsson  <jas@extundo.com>
95605         * tests/test-crc.c: Change expected crc value, the test vector
95606         were probably computed using the old broken crc.c?
95608 2006-07-06  Simon Josefsson  <jas@extundo.com>
95610         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
95611         now the canonical place for the M4 file).
95613         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
95614         from the sys_socket dependency now.
95616         * modules/inet_pton (Files): Ditto.
95618         * modules/inet_ntop (Files): Ditto.
95620 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95622         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
95623         not gl_PREREQ_GETUSERSHELL.
95625 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95627         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
95628         with only one argument, for Autoconf 2.60.
95629         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
95630         expand to nothing, so add a shell command to avoid syntax error.
95631         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95633 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95635         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
95637 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
95640         no longer needed.  Check for isblank decl.
95641         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
95642         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
95643         of existence.
95645 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95647         * lib/getloadavg.c: Use __VMS, not VMS.
95648         * lib/getopt.c: Likewise.
95649         * lib/getpagesize.h: Likewise.
95650         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
95651         and probably does not work.
95653 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95655         * lib/.cppi-disable: Add wcwidth.
95656         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
95657         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
95658         (ISGRAPH): Remove.  All uses changed to isgraph.
95659         (FOLD) [!defined _LIBC]: Remove special case.
95660         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
95661         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
95662         HAVE_ISBLANK.
95663         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
95664         case.
95666 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
95668         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
95669         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
95670         brackets.  Other minor changes to suppress some compiler
95671         warnings.
95673 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95674         and Paul Eggert  <eggert@cs.ucla.edu>
95676         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
95677         of invoking obsolescent AC_HEADER_DIRENT macro.
95678         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
95679         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
95680         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
95681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
95682         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
95683         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95684         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
95685         * m4/readdir.m4: Remove; no longer needed.
95687 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95688         and Paul Eggert  <eggert@cs.ucla.edu>
95690         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
95691         Don't worry about this obsolete case any more.
95692         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
95693         directories.
95694         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
95695         worry about this obsolete case any more.
95696         * lib/fts.c: Likewise.
95697         * lib/getcwd.c: Likewise.
95698         * lib/glob.h: Likewise.
95699         * lib/savedir.c: Likewise.
95701 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95703         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
95704         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
95705         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
95706         needed.
95707         All uses removed.
95708         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95709         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95710         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
95711         needed.
95712         * m4/getdate.m4 (gl_GETDATE): Likewise.
95713         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95714         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95715         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95716         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95717         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95718         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95719         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
95720         needed.
95722 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95724         * lib/memcasecmp.c: Include <limits.h>.
95725         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
95726         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
95727         Don't assume isdigit succeeds only on '0' through '9'.
95729 2006-07-05  Eric Blake  <ebb9@byu.net>
95731         * modules/getaddrinfo (Depends-on): Add snprintf.
95733 2006-07-05  Eric Blake  <ebb9@byu.net>
95735         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
95736         to avoid 'header present but could not be compiled' on cygwin.
95738 2006-07-05  Eric Blake  <ebb9@byu.net>
95740         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
95741         missing from netdb.h.
95742         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
95744 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95746         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
95747         no longer needed.
95748         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
95749         * m4/getdate.m4 (gl_GETDATE): Likewise.
95750         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95751         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95752         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95753         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95754         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95756 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95758         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
95759         All uses of is_space replaced by isspace.
95760         * lib/exit.h: Don't talk about STDC_HEADERS.
95761         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
95762         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
95763         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
95764         replaced by isprint etc.
95765         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
95766         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95767         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
95768         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
95769         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
95770         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95772 2006-07-05  Bruno Haible  <bruno@clisp.org>
95774         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
95775         the function exists, before testing against AIX.
95776         Reported by Martin Lambers <marlam@marlam.de>.
95778 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95780         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
95781         From Mark D. Baushke.
95783 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
95786         to the absolute name, not just one, to bypass Sun C 5.8's
95787         "warning: #include of /usr/include/... may be non-portable".
95789 2006-07-04  Eric Blake  <ebb9@byu.net>
95791         * modules/dirname-tests: New test module.
95792         * tests/test-dirname.c: New file, replacing dirname.c
95793         TEST_DIRNAME section that was recently deleted.
95795 2006-07-04  Bruno Haible  <bruno@clisp.org>
95797         Assume ANSI C header files and <ctype.h> functions.
95798         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
95799         (mbsnwidth): Use isprint, iscntrl instead.
95801 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95803         Merge from coreutils.
95804         * MODULES.html.sh: Add xstrtold.
95805         * modules/xstrtold: New file.
95806         * modules/cycle-check (Files): Add lib/same-inode.h.
95807         * modules/dirname (Files): Add m4/double-slash-root.m4.
95808         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
95809         * modules/mkdir-p (Files): Add lib/same-inode.h.
95810         * modules/same (Files): Add lib/same-inode.h.
95812 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95814         * m4/absolute-header.m4: Renamed from full-header-path.m4.
95815         This is to keep the terminology clean; POSIX talks about
95816         "absolute pathnames", not "full pathnames", but the GNU
95817         Coding Standards say to use "path" for something else;
95818         so use "absolute" to keep both sides happy.
95819         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
95820         Set gl_absolute_header, not gl_full_header_path.
95821         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
95822         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
95823         All uses changed.
95825         Merge from coreutils.
95827         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
95829         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
95830         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
95831         want to require the building of c-strtod.o.
95832         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
95833         needs -lm directly.
95834         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
95836         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
95838         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
95839         --as-needed option if available.  Problem reported by Albert Chin in
95840         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
95841         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
95842         cc merely issues a bunch of annoying warnings for --as-needed
95843         (this problem was reported by Bob Proulx).  Also, try linking with
95844         -lm to detect a bug in binutils 2.16 (this problem was reported
95845         by Ralf Wildenhues).
95847         2006-06-18  Jim Meyering  <jim@meyering.net>
95849         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
95850         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
95851         macro.
95852         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
95853         also check for glibc-2.4's abort-inducing bug.
95855         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
95856         Low-probability clean-up should be to use rmdir to get rid of
95857         the just-created directory, not unlink.
95859         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
95860         configure fail, and request a bug report to inform us about it.
95861         Add a comment that, barring reports to the contrary, in 2007 we'll
95862         assume ftruncate is universally available.
95864         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
95866         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
95868         2006-03-12  Jim Meyering  <jim@meyering.net>
95870         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
95871         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
95872         * m4/same.m4 (gl_SAME): Likewise.
95873         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
95875         2006-03-11  Eric Blake  <ebb9@byu.net>
95877         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
95878         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
95879         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
95880         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
95882 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95884         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
95885         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
95886         reported by Mark D. Baushke, one in
95887         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
95889         Merge from coreutils.
95891         * lib/.cppi-disable: Add stdint_.h.
95892         * lib/.cvsignore: Add stdint.h.
95894         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
95896         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
95897         both double and long double versions.
95898         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
95899         * lib/xstrtold.c: New file.
95900         * lib/xstrtod.h (xstrtold): New decl.
95902         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
95904         * lib/filemode.c (setst): Remove.
95905         (strmode): Rewrite to avoid setst.  This makes the code shorter,
95906         (arguably) clearer, and the generated code is a bit smaller on my
95907         Debian GNU/Linux stable x86 host.
95909         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
95911         * lib/filemode.c: Include "filemode.h" first, to test the interface.
95912         Assume that filemode.h includes sys/types.h and sys/stat.h.
95913         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
95914         (ftypelet): Reorder to put common cases first, for efficiency.
95915         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
95916         to do 'M'.
95917         (strmode): Renamed from mode_string, and now stores 12 bytes instead
95918         of 10, for compatibility with FreeBSD.  All callers changed.
95919         (filemodestring): Now stores 12 bytes instead of 10, and sets file
95920         types that can't be deduced solely from st_mode.  First arg is now a
95921         const pointer.
95922         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
95923         (strmode): Renamed from mode_string.
95924         (filemodestring): New decl.
95925         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
95926         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
95927         needed.
95928         (S_ISPORT, S_ISWHT): New macros, if not already defined.
95930         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
95932         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
95933         fsusage.h now does that.  Include fsusage.h first, to test interface.
95934         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
95935         at most one method (the old code could have generated decls that
95936         didn't conform to C89, not that this was ever exercised).
95937         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
95939         2006-03-19  Jim Meyering  <jim@meyering.net>
95941         Work even in a chroot where d_ino values for entries in "/"
95942         don't match the stat.st_ino values for the same names.
95943         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
95944         number, iterate through all entries again, using lstat instead.
95945         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
95946         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
95948         * lib/getcwd.c (__getcwd): Clarify a comment.
95949         Use memcpy in place of a call to strcpy.
95951         2006-03-12  Jim Meyering  <jim@meyering.net>
95953         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
95954         matches that of the current directory (which we're about to chdir ".."
95955         out of), then save the dev-ino of the parent, instead.
95957         * lib/same-inode.h (SAME_INODE): New file/macro.
95958         * lib/chdir-safer.c (SAME_INODE): Remove definition.
95959         Include "same-inode.h", instead.
95960         * lib/same.c: Likewise.
95961         * lib/cycle-check.h: Include "same-inode.h".
95962         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
95963         * lib/cycle-check.c (SAME_INODE): Remove definition.
95964         * lib/root-dev-ino.h: Include "same-inode.h".
95966         2006-03-11  Eric Blake  <ebb9@byu.net>
95968         * lib/same.c (same_name): s/base_name/last_component/
95969         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
95970         * lib/filenamecat.c (file_name_concat): Likewise.
95972         2006-03-11  Eric Blake  <ebb9@byu.net>,
95973                     Paul Eggert  <eggert@cs.ucla.edu>
95975         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
95976         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
95977         drive prefix.
95978         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
95979         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
95980         (last_component): New method.
95981         * lib/dirname.c (dir_len): Determine when drive letters need a
95982         subsequent slash.  Preserve // when it is special.
95983         (dir_name): Don't append dot when drive letter is absolute.
95984         [TEST_DIRNAME]: Move into a full-blown gnulib test.
95985         * lib/basename.c (base_name): New semantics - malloc the result.
95986         Preserve // when it is special.  Preserve relative files that look
95987         like drive letters.
95988         (base_len): Preserve // when it is special.
95989         (last_component): New method, similar to old base_name semantics.
95990         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
95991         base_name.  Strip redundant slashes from ///.
95993 2006-07-03  Jim Meyering  <jim@meyering.net>
95995         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
95996         macro is used before the first cycle_check call.
95998 2006-07-03  Eric Blake  <ebb9@byu.net>
96000         * modules/dirname (Depends-on): Add xstrndup.
96002 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96004         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
96005         test cases, so that config.log is a bit easier to follow.
96007 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96009         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
96010         both are 64 bits, since this seems to be the tradition, and this
96011         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
96012         we ever run into a host that prefers long long to long in this
96013         case, we'll need another configure-time test.  Problem reported by
96014         Jim Meyering.
96016 2006-07-02  Eric Blake  <ebb9@byu.net>
96018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
96020 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96022         * modules/inttypes (Depends-on): No longer depends on stdint.
96023         * modules/stdint (Description): Say more about assumptions.
96024         Say that the fast types might differ.  Say macros are used.
96025         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
96026         (Makefile.am): Revise list of substituted symbols to match
96027         new stdint.m4.
96028         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
96029         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
96030         * tests/test-stdint.c (verify_same_types)
96031         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
96032         the code conforms to C99/C89.
96033         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
96034         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
96036 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96038         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
96039         but fix a bug, by requiring at least 64 bits.
96040         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96041         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
96042         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
96043         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96045         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
96046         changes.  Make 2.59 a prerequisite.  Check and substitute for
96047         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
96048         inttypes.h.  Do not use special include files; just use the
96049         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
96050         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
96051         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
96052         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
96053         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
96054         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
96055         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
96056         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
96057         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
96058         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
96059         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
96060         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
96061         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
96062         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
96063         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
96064         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
96065         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
96066         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
96067         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
96068         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
96069         WINT_MAX.  Check for C99 conformance more strictly, by detecting
96070         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
96071         not check for things that C99 does not require, e.g., int8_t.  If
96072         a test isn't needed unless <stdint.h> isn't working, and is
96073         unlikely to be needed for any other reason, then don't do it
96074         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
96075         size_t, since we assume C89 freestanding at least.  Do not check
96076         for sig_atomic_t, wchar_t, or wint_t, since the code now does
96077         the right thing even if the types are not defined.  Instead use:
96078         (gl_STDINT_TYPE_PROPERTIES): New macro.
96079         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
96080         testing whether <sys/types.h> clashes, as Autoconf does this for
96081         us now.  All uses removed.
96082         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
96083         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
96084         (gl_CHECK_TYPE_SAME):
96085         Remove; no longer needed.
96086         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
96087         exists, since we'll return 0 anyway in that case.
96088         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
96090 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96092         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
96093         possible collision with system files.
96094         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
96095         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
96096         WCHAR_MIN and WCHAR_MAX in this case.
96097         (<stddef.h>): Do not include; no longer needed.
96098         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
96099         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
96100         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
96101         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
96102         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
96103         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
96104         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
96105         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
96106         !defined(__c99))]: Include in this case too, since it's harmless
96107         now.
96108         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
96109         dangerous to do so.
96110         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
96111         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
96112         (_STDINT_MIN, _STDINT_MAX): New macros.
96113         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
96114         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
96115         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
96116         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
96117         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
96118         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
96119         macros, not typedefs; this simplifies things quite a bit.
96120         Use long int for all types narrower than int64_t.
96121         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
96122         Define in terms of long long int or int64_t or long int,
96123         not int64_t or int32_t.  This saves some compile-time testing.
96124         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
96125         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
96126         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
96127         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
96128         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
96129         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
96130         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
96131         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
96132         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
96133         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
96134         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96135         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96136         undef any previous version and define our own version, for
96137         simplicity and consistency with the new macros for types.
96138         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96139         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96140         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
96141         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
96142         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
96143         @WINT_T_SUFFIX@ to keep things simple here.
96144         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
96145         Simplify by assuming typical 8/16/32/64 host, since we're
96146         already doing that elsewhere anyway.
96147         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
96148         and assume long long int is 64 bits if available.  This
96149         speeds up 'configure'.
96151 2006-07-01  Eric Blake  <ebb9@byu.net>
96153         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
96154         Reported by Andreas Buening.
96156 2006-07-01  Eric Blake  <ebb9@byu.net>
96158         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
96160 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96162         * lib/getaddrinfo.c: fixed typo
96164 2006-06-29  Jim Meyering  <jim@meyering.net>
96166         * modules/strftime (Maintainer): Add my name, since with the
96167         FPRINTFTIME changes strftime.c has forked from glibc.
96169 2006-06-29  Eric Blake  <ebb9@byu.net>
96171         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
96173 2006-06-29  Eric Blake  <ebb9@byu.net>
96175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
96177 2006-06-29  Eric Blake  <ebb9@byu.net>
96179         * lib/stat_.h: New file.
96181 2006-06-29  Eric Blake  <ebb9@byu.net>
96183         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
96184         unused static function.
96186 2006-06-29  Eric Blake  <ebb9@byu.net>
96188         * doc/functions.texi (Function Portability): Document missing lstat
96189         on mingw.
96191 2006-06-29  Eric Blake  <ebb9@byu.net>
96193         * MODULES.html.sh: Add sys_stat.
96194         * modules/sys_stat: New module.
96195         * modules/mkstemp (Depends-on): Add sys_stat.
96197 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96199         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
96201 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96203         * m4/c-bs-a.m4: Removed.
96205 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96207         * lib/strftime.c: Assume strftime() exists.
96209 2006-06-29  Derek Price  <derek@ximbiot.com>
96211         * modules/c-bs-a: Removed - \a is C89.
96212         * MODULES.html.sh: Remove c-bs-a.
96214 2006-06-29  Bruno Haible  <bruno@clisp.org>
96216         * modules/wcwidth (License): Change to LGPL.
96218 2006-06-28  Simon Josefsson  <jas@extundo.com>
96220         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
96221         on _WIN32.
96223         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
96224         getnameinfo.
96226 2006-06-28  Simon Josefsson  <jas@extundo.com>
96228         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
96230 2006-06-28  Simon Josefsson  <jas@extundo.com>
96232         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
96233         functions there.  It will succeed on Windows XP, but on Windows
96234         2000 and (presumably) earlier, it will fail, and use the internal
96235         re-implementation.
96236         (use_win32_p): New function.
96237         (getaddrinfo): Use strtoul on servname, to support numeric ports.
96238         Support AI_NUMERICSERV to disable getservbyname.
96239         (getnameinfo): New function, only supports
96240         NI_NUMERICHOST|NI_NUMERICSERV for now.
96242         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
96243         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
96244         getnameinfo.
96246 2006-06-28  Eric Blake  <ebb9@byu.net>
96248         * modules/wcwidth: New file.
96249         * modules/mbchar (Depends-on): Add wcwidth.
96250         * modules/mbswidth (Depends-on): Add wcwidth.
96251         * MODULES.html.sh: Add wcwidth.
96253 2006-06-28  Eric Blake  <ebb9@byu.net>
96255         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
96256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
96258 2006-06-28  Eric Blake  <ebb9@byu.net>
96260         * lib/xvasprintf.h: Fix comments.
96262 2006-06-28  Eric Blake  <ebb9@byu.net>
96264         * lib/mbchar.h (wcwidth): Include wcwidth.h.
96265         * lib/mbswidth.c (wcwidth): Move from here...
96266         * lib/wcwidth.h: ...to this new file.
96268 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96270         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
96272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
96273         it's obsolete.
96274         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
96276 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96278         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
96279         Autoconf 2.60 says this stuff was obsolete.
96281 2006-06-28  Bruno Haible  <bruno@clisp.org>
96283         * modules/wcwidth (Files): Add m4/wchar_t.m4.
96285 2006-06-28  Bruno Haible  <bruno@clisp.org>
96287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
96288         gt_TYPE_WCHAR_T.
96290 2006-06-28  Bruno Haible  <bruno@clisp.org>
96292         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
96293         declaration for wcwidth.
96294         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
96296 2006-06-28  Bruno Haible  <bruno@clisp.org>
96298         * lib/mkdtemp.c [MINGW]: Include <io.h>.
96299         (mkdir): Define using _mkdir.
96301 2006-06-28  Bruno Haible  <bruno@clisp.org>
96303         * lib/getaddrinfo.h: Fix POSIX URL.
96304         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
96305         _WIN32.
96306         (use_win32_p): Make static.
96307         (getaddrinfo): Reject service name if it is empty or does not consist
96308         solely of decimal digits, or if its value is > 65535.
96309         (getnameinfo): Remove useless casts.
96311 2006-06-27  Simon Josefsson  <jas@extundo.com>
96313         * modules/sys_select: New file, suggested by Bruno Haible, Paul
96314         Eggert and Martin Lambers.
96316 2006-06-27  Simon Josefsson  <jas@extundo.com>
96318         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
96319         Eggert and Martin Lambers.
96321 2006-06-27  Bruno Haible  <bruno@clisp.org>
96323         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
96324         result to 0, not to empty.
96325         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
96327 2006-06-27  Bruno Haible  <bruno@clisp.org>
96329         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
96331 2006-06-26  Simon Josefsson  <jas@extundo.com>
96333         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
96334         present.
96336 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
96338         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
96339         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
96340         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
96342 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
96344         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
96346 2006-06-26  Bruno Haible  <bruno@clisp.org>
96348         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
96350 2006-06-26  Bruno Haible  <bruno@clisp.org>
96352         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
96354 2006-06-26  Bruno Haible  <bruno@clisp.org>
96356         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
96357         SGI C compiler in pre-C99 mode.
96358         Suggested by Mark D. Baushke and Larry Jones.
96360 2006-06-26  Bruno Haible  <bruno@clisp.org>
96362         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
96363         WCHAR_MAX.
96364         Reported by Mark D. Baushke and Larry Jones.
96366 2006-06-26  Bruno Haible  <bruno@clisp.org>
96368         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
96369         in pre-C99 mode.
96370         Suggested by Mark D. Baushke and Larry Jones.
96372 2006-06-23  Simon Josefsson  <jas@extundo.com>
96373             Bruno Haible  <bruno@clisp.org>
96375         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
96376         Emit mostlyclean-local rule.
96377         (func_emit_tests_Makefile_am): Likewise.
96378         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
96380 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
96382         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
96384 2006-06-23  Bruno Haible  <bruno@clisp.org>
96386         * tests/test-stdint.c: Update to match ISO C 99 Technical
96387         Corrigendum 1.
96389 2006-06-23  Bruno Haible  <bruno@clisp.org>
96391         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
96393 2006-06-23  Bruno Haible  <bruno@clisp.org>
96395         * lib/stdint_.h: Treat IRIX like OpenBSD.
96397 2006-06-23  Bruno Haible  <bruno@clisp.org>
96399         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
96400         ISO C 99 Technical Corrigendum 1.
96402 2006-06-22  Simon Josefsson  <jas@extundo.com>
96404         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
96405         MinGW.
96407 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
96409         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
96410         needed.  Some compiler complained about some of them.  Problem reported
96411         by Larry Jones in
96412         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
96414 2006-06-21  Simon Josefsson  <jas@extundo.com>
96416         * tests/test-getaddrinfo.c: New file.
96418         * modules/getaddrinfo-tests: New file.
96420         * MODULES.html.sh: Add inet_pton.
96422         * modules/inet_pton: New file.
96424 2006-06-21  Simon Josefsson  <jas@extundo.com>
96426         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
96427         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
96428         of using the (limited) gnulib implementation on Windows XP.
96430         * m4/inet_pton.m4: New file.
96432 2006-06-21  Simon Josefsson  <jas@extundo.com>
96434         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
96435         variable.
96437         * lib/socket_.h: Don't define WINVER.
96439         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
96440         slightly modified to work in gnulib.
96442 2006-06-21  Simon Josefsson  <jas@extundo.com>
96444         * doc/gnulib.texi (Windows sockets): Add.
96446 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
96448         * lib/read-file.c (fread_file): Start with buffer allocation of
96449         0 bytes rather than 1 byte; this simplifies the code.
96450         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
96451         code to free buffer and save/restore errno.
96452         (internal_read_file): Remove unused local.
96454 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
96456         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
96457         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
96458         Problem reported by Denis Excoffier in
96459         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
96461 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96463         * modules/sys_socket, modules/socklen: Include sys/types since
96464         FreeBSD 4.x's sys/socket.h needs it.
96466 2006-06-19  Simon Josefsson  <jas@extundo.com>
96468         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
96470 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96472         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
96474 2006-06-19  Bruno Haible  <bruno@clisp.org>
96476         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
96477         and FULL_PATH_INTTYPES_H in angle brackets.
96478         Reported by Mark D. Baushke <mdb@gnu.org>.
96480 2006-06-17  Eric Blake  <ebb9@byu.net>
96482         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
96483         errno.
96485 2006-06-17  Bruno Haible  <bruno@clisp.org>
96487         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
96488         <sys/inttypes.h>.
96490 2006-06-17  Bruno Haible  <bruno@clisp.org>
96492         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
96493         whether errno is declared. Assume <errno.h> declares errno.
96495 2006-06-17  Bruno Haible  <bruno@clisp.org>
96497         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
96499 2006-06-17  Bruno Haible  <bruno@clisp.org>
96501         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
96502         problem on Solaris 2.5.1.
96504 2006-06-16  Eric Blake  <ebb9@byu.net>
96506         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
96507         * lib/unicodeio.c [!defined errno]: Likewise.
96508         * lib/strtol.c [!defined errno]: Likewise.
96509         * lib/strtod.c [!defined errno]: Likewise.
96511 2006-06-15  Eric Blake  <ebb9@byu.net>
96513         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
96515 2006-06-15  Eric Blake  <ebb9@byu.net>
96517         * config/srclist.txt (ssize_t.m4): Lose sync.
96519 2006-06-15  Bruno Haible  <bruno@clisp.org>
96521         * modules/stdint (Files): Include m4/full-header-path.m4,
96522         m4/size_max.m4, m4/wchar_t.m4.
96523         (Makefile.am): Many more substitutions.
96524         * modules/stdint-tests: New file.
96525         * tests/test-stdint.c: New file.
96527 2006-06-15  Bruno Haible  <bruno@clisp.org>
96529         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
96530         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
96531         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
96532         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
96533         gl_CHECK_TYPE_SAME): New macros.
96535 2006-06-15  Bruno Haible  <bruno@clisp.org>
96537         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
96539 2006-06-15  Bruno Haible  <bruno@clisp.org>
96541         * lib/stdint_.h: Rewritten to be fully auto-configured.
96542         Fixes bug on HP-UX/IA64.
96544 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
96546         * lib/getdate.y (__attribute__): Don't define if already defined.
96547         Problem reported by Larry Jones.
96548         * lib/utimens.c (__attribute__): Likewise.
96550 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
96552         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
96553         reported by Andreas Schwab.
96555 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96556             Bruno Haible  <bruno@clisp.org>
96558         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
96559         check for the declaration of strnlen and a run test that exposes the
96560         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
96561         rpl_strndup.
96563 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96564             Bruno Haible  <bruno@clisp.org>
96566         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
96568 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96570         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
96571         compile test, for Tru64 4.0D.
96573 2006-05-28  Karl Berry  <karl@gnu.org>
96575         * config/srclist.txt (printf-args.c): lose sync.
96577 2006-05-26  Martin Lambers  <marlam@marlam.de>
96579         * lib/getpass.c: Updates the test for the native W32 API, and adds
96580         missing includes, thus fixing compilation warnings.
96582 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
96584         * lib/exclude.c (exclude_fnmatch): New function.
96585         (excluded_file_name): Call exclude_fnmatch.
96586         * lib/exclude.h (excluded_file_name): New prototype
96588 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
96590         * lib/tempname.c (small_open, large_open): New macros.
96591         (__open, __open64) [!_LIBC]: Remove.
96592         (__gen_tempname): Use small_open and large_open instead of __open
96593         and __open64.  This fixes a portability bug on HP-UX 11.11i
96594         reported by Simon Wing-Tang in
96595         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
96597 2006-05-24  Bruno Haible  <bruno@clisp.org>
96599         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
96600         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
96601         Reported by Thorsten Maerz <torte@netztorte.de> via
96602         Aaron Stone <aaron@serendipity.cx>.
96604 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
96607         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
96608         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
96609         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
96610         not really conditional on the cache.
96611         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
96613 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96615         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
96616         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
96617         (my_usleep): Don't mishandle maximum value.
96619 2006-05-19  Jim Meyering  <jim@meyering.net>
96621         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
96623 2006-05-17  Bruno Haible  <bruno@clisp.org>
96625         Cygwin portability.
96626         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
96628 2006-05-17  Bruno Haible  <bruno@clisp.org>
96630         * lib/stdint_.h: Fix recognition of Cygwin.
96632 2006-05-15  Bruno Haible  <bruno@clisp.org>
96634         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
96635         on libtool patch by Ralf Wildenhues.
96637 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
96640         test for C99 conformance; (bool) 0.5 is an integer constant
96641         expression, but (bool) -0.5 is not.  Problem reported by Fedor
96642         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
96644 2006-05-11  Simon Josefsson  <jas@extundo.com>
96646         * m4/xvasprintf.m4: Fix obvious typo.
96648 2006-05-11  Jim Meyering  <jim@meyering.net>
96650         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
96651         James Lemley.
96653 2006-05-10  Simon Josefsson  <jas@extundo.com>
96655         * lib/md4.c: Typo fix, update copyright years.
96656         (K1, K2): Don't use L because it turn computations into 64-bit on
96657         64-bit platforms.
96659 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
96661         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
96662         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
96663         unwanted sign propagation, e.g., on hosts with 64-bit int.
96664         There still are some problems with reeelly weird theoretical hosts
96665         (e.g., 33-bit int) but it's not worth worrying about now.
96666         * lib/sha1.c (rol): Likewise.
96667         (K1, K2, K3, K4): Remove unnecessary L suffix.
96669 2006-05-10  Bruno Haible  <bruno@clisp.org>
96671         * lib/des.c: Cast to avoid warnings.
96673 2006-05-09  Bruno Haible  <bruno@clisp.org>
96675         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
96676         (Depends-on): Depend also on xsize, stdarg.
96677         (configure.ac): Add gl_XVASPRINTF.
96679 2006-05-09  Bruno Haible  <bruno@clisp.org>
96681         * m4/xvasprintf.m4: New file.
96683 2006-05-09  Bruno Haible  <bruno@clisp.org>
96685         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
96686         (EOVERFLOW): Define fallback value.
96687         (xstrcat): New function.
96688         (xvasprintf): Recognize the special case of a string concatenation.
96690 2006-05-08  Eric Blake  <ebb9@byu.net>
96692         * gnulib-tool (func_version): Base copyright year on CVS date.
96693         (func_emit_copyright_notice): New function.
96694         (func_emit_lib_Makefile_am): Use it.
96695         (func_emit_tests_Makefile_am): Likewise.
96696         (func_import): Likewise.
96698 2006-05-08  Bruno Haible  <bruno@clisp.org>
96700         * modules/stdarg: New file.
96701         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
96703 2006-05-08  Bruno Haible  <bruno@clisp.org>
96705         * m4/stdarg.m4: New file, from GNU gettext.
96707 2006-05-08  Bruno Haible  <bruno@clisp.org>
96709         * config/srclist.txt (build-aux/config.rpath): different from latest
96710         release.
96712 2006-05-08  Bruno Haible  <bruno@clisp.org>
96714         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
96716 2006-05-05  Jim Meyering  <jim@meyering.net>
96718         * m4/warning.m4: New file, derived from bison's file by the same name.
96720 2006-05-03  Bruno Haible  <bruno@clisp.org>
96722         * lib/stdint_.h: Shorter URL.
96723         * lib/inttypes.h: Likewise.
96725 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96727         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
96729 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96731         * lib/verify.h: Document the internals better.  Most of this change
96732         was written by Bruno Haible.
96734 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96736         * doc/verify.texi: New file, partly based on a proposal by
96737         Bruno Haible.
96739 2006-05-02  Bruno Haible  <bruno@clisp.org>
96741         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
96742         test from here...
96743         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
96745 2006-04-29  Bruno Haible  <bruno@clisp.org>
96747         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
96748         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
96750 2006-04-29  Bruno Haible  <bruno@clisp.org>
96752         * gnulib-tool: Make --update option actually work.
96754 2006-04-29  Bruno Haible  <bruno@clisp.org>
96756         * doc/gcd.texi: New file.
96757         * doc/gnulib.texi: Include it.
96759 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
96761         * lib/getdate.y (get_date): When adding relative date, start with the
96762         initial time, not with the result of the first mktime call.
96764 2006-04-25  Bruno Haible  <bruno@clisp.org>
96766         * gnulib-tool (func_import): Output the include directives in three
96767         blocks, sorted separately.
96768         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96770 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96772         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
96773         to define main with arguments, for C++.  Reported by Eric Blake.
96774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
96775         Prefer 'int main ()' to 'int main (void)', for C++.
96776         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
96777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
96778         for 'main', for C99 and C++.
96780 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96782         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
96783         Don't assume that exit status -1 is valid.
96784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
96785         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96786         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
96787         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
96788         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
96789         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
96790         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
96791         functions can be used without declaring them, or that you can
96792         exit with status -1.
96793         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
96795 2006-04-24  Karl Berry  <karl@gnu.org>
96797         * config/srclist.txt (longdouble.m4): sync lost.
96799 2006-04-24  Eric Blake  <ebb9@byu.net>
96801         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
96803 2006-04-24  Bruno Haible  <bruno@clisp.org>
96805         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
96806         poll() implementation in AIX.
96807         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96809 2006-04-24  Bruno Haible  <bruno@clisp.org>
96811         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
96812         assigned exactly once.
96814 2006-04-23  Claudio Fontana  <claudio@gnu.org>
96815             Bruno Haible  <bruno@clisp.org>
96817         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
96818         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
96819         for AM_CPPFLAGS.
96821 2006-04-23  Bruno Haible  <bruno@clisp.org>
96823         * modules/copy-file: Depend on unistd.
96824         * modules/execute: Likewise.
96825         * modules/fatal-signal: Likewise.
96826         * modules/findprog: Likewise.
96827         * modules/mkdtemp : Likewise.
96828         * modules/pipe: Likewise.
96829         * modules/wait-process: Likewise.
96831 2006-04-23  Bruno Haible  <bruno@clisp.org>
96833         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
96834         condition was already detected.
96835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96837 2006-04-23  Bruno Haible  <bruno@clisp.org>
96839         * lib/copy-file.c: Include <unistd.h> unconditionally.
96840         * lib/execute.c: Likewise.
96841         * lib/fatal-signal.c: Likewise.
96842         * lib/findprog.c: Likewise.
96843         * lib/mkdtemp.c: Likewise.
96844         * lib/pipe.h: Likewise.
96845         * lib/pipe.c: Likewise.
96846         * lib/wait-process.h: Likewise.
96848 2006-04-23  Bruno Haible  <bruno@clisp.org>
96850         * gnulib-tool (func_usage): Fix --import description. Document
96851         --update.
96852         (func_import): Create temporary file in a temporary directory, if
96853         --dry-run is specified. Silence errors from 'grep' when there are no
96854         m4 files in $m4dir.
96855         (func_create_testdir): Silence errors from 'grep' when there are no
96856         m4 files in $m4dir.
96857         Reported by Karl Berry <karl@freefriends.org>.
96859 2006-04-20  Bruno Haible  <bruno@clisp.org>
96861         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
96862         one argument, so that the code will be portable to Autoconf 2.60.
96863         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
96864         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
96865         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
96867 2006-04-19  Derek Price  <derek@ximbiot.com>
96868             Eric Blake  <ebb9@byu.net>
96870         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
96871         rather than "/full/path.h".  Update comment to match.  Shorten &
96872         generalize m4_translit call via AS_TR_CPP.
96874 2006-04-19  Derek Price  <derek@ximbiot.com>
96875             Eric Blake  <ebb9@byu.net>
96877         * lib/inttypes.h: Correct grammar in comment.
96879 2006-04-18  Derek Price  <derek@ximbiot.com>
96880             Paul Eggert  <eggert@cs.ucla.edu>
96882         * modules/inttypes: New file.
96883         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
96885 2006-04-18  Derek Price  <derek@ximbiot.com>
96886             Paul Eggert  <eggert@cs.ucla.edu>
96888         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
96889         New files.
96891 2006-04-18  Derek Price  <derek@ximbiot.com>
96892             Paul Eggert  <eggert@cs.ucla.edu>
96894         * lib/inttypes.h: New file.
96895         * lib/strtoimax.c: Assume <inttypes.h>.
96897 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
96899         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
96900         isn't mounted.  Problem reported by Kir Kolyshkin.
96902 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
96904         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
96905         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
96906         Derek R. Price.
96907         * lib/regex.h (RE_DUP_MAX): Update comment to match current
96908         implementation.
96910 2006-04-12  Eric Blake  <ebb9@byu.net>
96912         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
96913         is now done automatically by the corresponding Autoconf macro.
96915 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
96917         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
96918         time_r.h.
96920 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96922         Merge regex changes from libc, removing some of our
96923         POSIX-conformance changes that were rejected and redoing them in a
96924         less-intrusive way.
96926         * lib/regcomp.c (re_compile_internal, init_dfa):
96927         Length arg is now size_t, not Idx.  All uses changed.
96928         (peek_token): Forward decl now says internal_function.
96929         (__re_error_msgid, __re_error_msgid_idx):
96930         Now static rather than extern with attribute_hidden.
96931         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
96932         For some reason libc prefers K&R style defns for external functions.
96933         (regerror) [!defined _LIBC]: Likewise.
96934         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
96935         (seek_collating_symbol_entry, lookup_collation_sequence_value):
96936         (build_range_exp, build_collating_symbol):
96937         Use K&R-style defn.
96938         (re_compile_fastmap): Use '\0' to memset, not 0.
96939         (utf8_sb_map): Make the calculations more obvious.
96940         (init_dfa, parse_bracket_exp, build_charclass_op):
96941         Call calloc and cast result, as glibc does.
96942         (init_word_char, fetch_token, peek_token, peek_token_bracket):
96943         (build_range_exp, build_collating_symbol):
96944         Now internal functions.
96946         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
96948         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
96949         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
96950         Don't depend on VMS; depend on __VMS instead, for POSIX
96951         namespace cleanness.
96952         (regoff_t): Define to ssize_t, not long int.
96954         Remove the REG_ macros named below.  Instead, make the old names
96955         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
96956         __USE_GNU_REGEX.
96957         (REG_BACKSLASH_ESCAPE_IN_LISTS):
96958         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
96959         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
96960         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
96961         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
96962         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
96963         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
96964         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
96965         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
96966         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
96967         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
96968         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
96969         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
96970         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
96971         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
96972         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
96973         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
96974         (REG_NREGS):
96975         Remove.  All uses replaced by the old RE_* names.
96976         (RE_BACKSLASH_ESCAPE_IN_LISTS):
96977         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
96978         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
96979         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
96980         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
96981         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
96982         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
96983         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
96984         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
96985         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
96986         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
96987         Don't bother having these macros be independent of each others'
96988         values, since they no longer exist in the POSIX name space.
96990         Rename the following member names back to their old names,
96991         unless !__USE_GNU_REGEX.  All uses changed back.
96992         (buffer): Renamed from re_buffer.
96993         (allocated): Renamed from re_allocated.
96994         (used): Renamed from re_used.
96995         (syntax): Renamed from re_syntax.
96996         (fastmap): Renamed from re_fastmap.
96997         (translate): Renamed from re_translate.
96998         (can_be_null): Renamed from re_can_be_null.
96999         (regs_allocated): Renamed from re_regs_allocated.
97000         (fastmap_accurate): Renamed from re_fastmap_accurate.
97001         (no_sub): Renamed from re_no_sub.
97002         (not_bol): Renamed from re_not_bol.
97003         (not_eol): Renamed from re_not_eol.
97004         (newline_anchor): Renamed from re_newline_anchor.
97005         (num_regs): Renamed from rm_num_regs.
97006         (start): Renamed from rm_start.
97007         (end): Renamed from rm_end.
97009         (free_state): Move up a bit.
97011         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
97012         #define to be empty.
97013         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
97014         when that is what is intended.
97015         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
97016         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
97017         (MAX): New macro.
97018         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
97019         All uses changed back to re_malloc, etc.  It's now the caller's
97020         responsibility to check for overflow; all callers changed.
97021         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
97022         (re_x2nrealloc): Remove.
97023         (free_state): Remove decl.
97025         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
97026         (re_set_registers, re_exec):
97027         Use K&R-style defn.
97029         2006-01-31  Roland McGrath  <roland@redhat.com>
97031         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
97032         Reported by Mike Frysinger <vapier@gentoo.org>.
97034         2006-01-15  Andreas Jaeger  <aj@suse.de>
97036         [BZ #1950]
97037         * lib/regex_internal.c (re_string_reconstruct): Adjust for
97038         build_wcs_upper_buffer change.
97039         (build_wcs_upper_buffer): Change return type.
97041         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
97043         * lib/regex_internal.h: Include <stdint.h> if available.
97045         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
97047         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
97049         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
97051         * lib/regcomp.c: Adjust for changed secondary hash function.
97053         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
97055         * lib/regex.h: Pretty printing.
97056         Clean up namespace a bit.
97058         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
97060         * lib/regexec.c (update_cur_sifted_state, check_arrival,
97061         check_arrival_add_next_nodes): Avoid using uninitialized variable.
97063         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97064                     Ulrich Drepper  <drepper@redhat.com>
97066         [BZ #1302]
97067         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
97068         changed.
97069         (bitset_word_t): Renamed from bitset_word.  All uses changed.
97071         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
97073         [BZ #281]
97074         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
97075         * lib/regcomp.c: Remove unnecessary uses of
97076         unsigned RE_TRANSLATE_TYPE.
97077         * lib/regex_internal.h: Likewise.
97078         * lib/regex_internal.c: Likewise.
97079         * lib/regexec.c: Likewise.
97080         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
97082         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
97084         * lib/regexec.c (find_recover_state): Remove unnecessary
97085         initialization.
97086         (transit_state_bkref): Make DFA a const pointer.
97087         (get_subexp): Likewise.
97088         (check_arrival): Likewise.
97089         (update_cur_sifted_state): Likewise.
97090         (re_search_internal): Likewise.
97091         (prune_impossible_nodes): Likewise.
97092         (acquire_init_state_context): Likewise.
97093         (proceed_next_node): Likewise.
97094         (set_regs): Likewise.
97095         (free_fail_stack_return): Likewise.
97096         (check_arrival_expand_ecl): Mark DFA parameter as const.
97097         (check_arrival_expand_ecl_sub): Likewise.
97098         (check_subexp_limits): Likewise.
97099         (sub_epsilon_src_nodes):  Likewise.
97100         (add_epsilon_src_nodes):  Likewise.
97101         (merge_state_array): Likewise.
97102         (update_regs): Likewise.
97103         (build_trtable): Likewise.
97104         (sift_states_backward): Mark MCTX parameter as const.
97105         (build_sifted_states): Likewise.
97106         (update_cur_sifted_state): Likewise.
97107         (sift_states_mkref): Likewise.
97108         (check_arrival_expand_ecl): Mark eclosure as const.
97109         (check_dst_limits_calc_pos_1): Likewise.
97110         * lib/regex_internal.h (re_match_context_t): Make dfa a const
97111         pointer.
97113         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
97115         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
97116         (transit_state_sb): Likewise.
97117         (transit_state_mb): Likewise.
97118         (sift_states_iter_mb): Likewise.
97119         (check_arrival_add_next_nodes): Likewise.
97120         (check_node_accept_bytes): Change first parameter to pointer-to-const.
97121         [_LIBC] (re_search_2_stub): Use mempcpy.
97123         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
97124         mbrtowc for very simple UTF-8 case.
97126         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
97127         a pointer-to-const.
97128         (re_acquire_state_context): Likewise.
97129         * lib/regex_internal.h: Adjust prototypes.
97131         * lib/regex.c: Prevent using C++ compilers.
97133         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
97134         (re_acquire_state_context): Likewise.
97136 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97138         * modules/regex (Depends-on): Add ssize_t.
97140 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97142         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
97143         translation table.
97145 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97147         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
97149 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
97150             Bruno Haible  <bruno@clisp.org>
97152         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
97153         <sys/types.h> and <inttypes.h>.
97155 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97157         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
97158         `__error_t_defined', so argp.h will not typedef the former.
97160 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
97162         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
97163         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
97164         glibc names.  Even if glibc is changed to conform to POSIX, the
97165         traditional names will be available anyway, since regex depends on
97166         the extensions module.  Also, fix a longstanding typo in the
97167         implementation of Spencer ERE test #75 from grep 2.3.  Problems
97168         reported by Emanuele Giaquinta.  Also, change sense of cached
97169         variable, so that the message makes sense.
97171 2006-03-24  Simon Josefsson  <jas@extundo.com>
97173         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
97174         including some doc fixes.
97175         (base64_encode_alloc): Fix +1 bug on allocation failures.
97177 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97179         * lib/base64.c (base64_encode): Do not read past end of array with
97180         unsanitized input on systems with CHAR_BIT > 8.
97182 2006-03-24  Eric Blake  <ebb9@byu.net>
97184         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
97186 2006-03-22  Karl Berry  <karl@gnu.org>
97188         * config/srclist.txt (*setenv.[ch]): get from coreutils.
97189         * config/srclistvars.sh (COREUTILS): new var.
97191 2006-03-17  Jim Meyering  <jim@meyering.net>
97193         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
97194         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
97196 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97198         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
97199         no longer needs it.  Instead, check that regoff_t is as least
97200         as wide as ptrdiff_t.
97202         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
97203         so that our regex.h stays compatible with the installed regex.
97204         This is helpful for installers who configure --without-included-regex.
97205         Problem reported by Emanuele Giaquinta.
97207 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97209         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
97210         Typedef to long int, not to off_, as POSIX will likely change
97211         in that direction.
97213 2006-03-15  Eric Blake  <ebb9@byu.net>
97215         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
97217 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97219         * lib/argp-help.c (validate_uparams): Fix typo
97220         * lib/argp-parse.c (argp_default_options): Consistently begin help
97221         messages with a lowercase letter.
97223 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
97225         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
97226         overrun buffers and shouldn't be used (much as gets shouldn't be
97227         used).
97228         * lib/time_r.c (asctime_r, ctime_r): Likewise.
97230 2006-03-08  Simon Josefsson  <jas@extundo.com>
97232         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
97233         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97235 2006-03-08  Simon Josefsson  <jas@extundo.com>
97237         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
97238         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97240 2006-03-08  Simon Josefsson  <jas@extundo.com>
97242         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
97243         signal that configure disabled the device.
97245 2006-03-08  Simon Josefsson  <jas@extundo.com>
97247         * build-aux/maint.mk: Fix refresh-po, to handle no translated
97248         languages.
97250 2006-03-07  Simon Josefsson  <jas@extundo.com>
97252         * modules/getopt (Depends-on): Add unistd.
97254         * modules/unistd: New file.
97256 2006-03-07  Simon Josefsson  <jas@extundo.com>
97258         * modules/gc-random: New file.
97260 2006-03-07  Simon Josefsson  <jas@extundo.com>
97262         * m4/unistd_h.m4: New file.
97264 2006-03-07  Simon Josefsson  <jas@extundo.com>
97266         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
97267         test to be side-effect free by storing the result in the cache
97268         variable gl_cv_lib_readline, and moving the assignment of
97269         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
97270         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97272 2006-03-07  Simon Josefsson  <jas@extundo.com>
97274         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
97275         error on missing devices (the functions will return an error).
97277         * m4/gc.m4: Move random stuff to gc-random.m4
97279 2006-03-07  Simon Josefsson  <jas@extundo.com>
97281         * lib/unistd_.h: New file.
97283 2006-03-07  Simon Josefsson  <jas@extundo.com>
97285         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
97287 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97289         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
97290         Problem reported by Juan Manuel Guerrero.
97292 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97294         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
97295         the unistd module.
97296         * lib/getlogin_r.c: Likewise.
97297         * lib/getlogin_r.h: Likewise.
97298         * lib/glob.c: Likewise.
97299         * lib/pagealign_alloc.c: Likewise.
97300         * lib/unistd_.h: Remove; no longer needed.
97302 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97304         * MODULES.html.sh (Support for systems lacking POSIX:2001):
97305         Add unistd.
97306         * modules/c-stack (Depends-on): Add unistd.
97307         * modules/getlogin_r: Likewise.
97308         * modules/glob: Likewise.
97309         * modules/pagealign_alloc: Likewise.
97310         * modules/unistd (Files): Remove lib/unistd_.h.
97311         (EXTRA_DIST): Remove.
97312         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
97313         need unistd_.h.
97314         (MOSTLYCLEANFILES): Remove unistd.h-t.
97316 2006-03-03  Simon Josefsson  <jas@extundo.com>
97318         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
97320 2006-03-03  Simon Josefsson  <jas@extundo.com>
97322         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
97323         libidn and bison.
97325 2006-03-03  Simon Josefsson  <jas@extundo.com>
97327         * build-aux/maint.mk: Add indent target.
97329 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
97331         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
97332         our replacement poll.h in any case, to avoid a differing
97333         declaration from a system header.  Seen on AIX.
97335 2006-03-01  Simon Josefsson  <jas@extundo.com>
97337         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
97338         <kasal@ucw.cz>.
97340 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97342         * modules/gettime (Depends-on): Add extensions module.
97343         * modules/nanosleep (Depends-on): Likewise.
97344         * modules/settime (Depends-on): Likewise.
97346 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97348         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
97349         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
97350         pedantically.
97351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97352         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
97354         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
97355         not "==".  Reported by Ralf Wildenhues.
97357 2006-03-01  Karl Berry  <karl@gnu.org>
97359         * doc/Copyright/request-*: new files, synced from gnuorg.
97361 2006-03-01  Karl Berry  <karl@gnu.org>
97363         * config/srclist.txt (Copyright/*): new entries.
97365 2006-02-28  Simon Josefsson  <jas@extundo.com>
97367         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
97369 2006-02-27  Simon Josefsson  <jas@extundo.com>
97371         * lib/base64.h: Indent #define's.  From Jim Meyering
97372         <jim@meyering.net>.
97374 2006-02-27  Jim Meyering  <jim@meyering.net>
97376         Revert the change of 2006-02-24, so these files can continue
97377         to be sync'd from gettext.
97378         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
97379         of `config.h'.
97381 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
97383         * modules/intprops: New file.
97384         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
97385         Add intprops.
97386         * modules/getloadavg (Files): Remove lib/intprops.h.
97387         (Depends-on): Add intprops.
97388         * modules/human: Likewise.
97389         * modules/inttostr: Likewise.
97390         * modules/openat: Likewise.
97391         * modules/sig2str: Likewise.
97392         * modules/userspec: Likewise.
97393         * modules/utimecmp: Likewise.
97394         * modules/xnanosleep: Likewise.
97395         * modules/xstrtol: Likewise.
97397 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
97399         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
97400         * modules/lock-tests (TESTS): Use $(EXEEXT).
97401         * modules/tls-tests: Likewise.
97402         * modules/argp-tests: Likewise.
97403         (check_PROGRAMS): New var, replacing...
97404         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
97406 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97408         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
97409         `config.h'.
97411 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
97413         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
97415 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97417         Sync from coreutils.
97418         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
97419         gl_CHDIR_SAFER.
97421 2006-02-22  Jim Meyering  <jim@meyering.net>
97423         Sync from coreutils.
97424         * m4/chdir-safer.m4: New file.
97426 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
97428         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
97429         AT_FDCWD exceeds INT_MAX.
97430         * lib/openat.h (AT_FDCWD): Likewise.
97432 2006-02-17  Eric Blake  <address@hidden>
97434         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
97436 2006-02-16  Simon Josefsson  <jas@extundo.com>
97438         * modules/getaddrinfo (Depends-on): Add sys_socket.
97440 2006-02-15  Simon Josefsson  <jas@extundo.com>
97442         * build-aux/maint.mk: Add dsyntax-check rule.
97444 2006-02-15  Eric Blake  <ebb9@byu.net>
97446         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
97447         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
97448         'present but cannot compile' warnings on cygwin.
97449         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
97450         use ws2tcpip.h if sys/socket.h works.
97451         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
97452         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
97454 2006-02-14  Simon Josefsson  <jas@extundo.com>
97456         * modules/maintainer-makefile (Files): Rename.
97458         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
97459         and (the local) Makefile.cfg to maint-cfg.mk.
97461         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
97462         to the latter.
97464         * modules/maintainer-makefile: New module.
97466         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
97467         severaly stripped to make it possible to build it up from scratch
97468         with reliable tests.
97470         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
97471         fixes to permit overriding the default actions when configure and
97472         makefile are not available.
97474 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
97476         Sync from coreutils.
97477         * modules/lstat (Depends-on): Don't depend on xalloc.
97478         (License): Change from GPL to LGPL, since this is now simply a
97479         replacement for a libc function.
97481 2006-02-14  Jim Meyering  <jim@meyering.net>
97483         Sync from coreutils.
97485         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
97486         failure on deficient systems, and simplify gnulib lgpl dependencies.
97487         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
97488         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
97490         * lib/xalloc-die.c: Remove unused definition of N_.
97492 2006-02-14  Jim Meyering  <jim@meyering.net>
97494         Sync from coreutils.
97495         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
97496         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
97497         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
97498         double-quote uses of that variable, to accommodate the rare case in
97499         which getmntent is available in none of the libraries checked.  This
97500         happens at least on FreeBSD 5.0.
97502 2006-02-13  Simon Josefsson  <jas@extundo.com>
97504         * gnulib-tool (Usage): Fix --import, from
97505         karl@freefriends.org (Karl Berry).
97507 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97509         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
97511 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
97513         * lib/argp-namefrob.h: Restore changes accidentally lost during the
97514         "autoupdate" on 2005-12-12.
97516 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
97518         * modules/closeout (Depends-on): Remove atexit.
97520 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
97522         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
97523         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
97525 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
97527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
97528         __EXTENSIONS__ if this causes compilation to fail.  Problem
97529         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
97530         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
97532 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
97534         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
97535         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
97536         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
97537         All uses changed.
97539 2006-01-26  Simon Josefsson  <jas@extundo.com>
97541         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
97542         prototype is visible on mingw32.
97544         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
97545         for mingw32.
97547         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
97548         mingw32).
97550 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
97552         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
97553         attempt to open for write; this always fails, at least on POSIX
97554         hosts.  This reinstates the 2006-01-09 change, which was
97555         inadvertently removed.
97557 2006-01-26  Bruno Haible  <bruno@clisp.org>
97559         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
97560         Reported by Paul Eggert.
97562 2006-01-26  Bruno Haible  <bruno@clisp.org>
97563             Paul Eggert  <eggert@cs.ucla.edu>
97565         * lib/stdbool_.h (_Bool)
97566         [(! (defined __cplusplus || defined __BEOS__)
97567           && !defined __GNUC__
97568           && !(defined __HP_cc || defined __xlc__
97569                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
97570                || defined __sgi))]:
97571         #define to signed char in these cases too; this simplifies
97572         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
97573         etc., separately) and makes it more conservative.
97575 2006-01-25  Simon Josefsson  <jas@extundo.com>
97577         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
97578         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
97579         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
97581 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97583         * lib/argp-namefrob.h: Bugfix. Remove stray #
97585 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97587         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
97588         so that we test the test.
97589         Check for yet another HP-UX cc bug involving *bool |= bool.
97591 2006-01-25  Karl Berry  <karl@gnu.org>
97593         * config/srclist.txt (vasnprintf.c): sync lost.
97595 2006-01-25  Jim Meyering  <jim@meyering.net>
97597         Sync from the stable (b5) branch of coreutils:
97599         * lib/fts.c (fts_children): Don't let close() clobber errno from
97600         failed fchdir().
97602         * lib/fts.c (fts_stat): When following a symlink-to-directory,
97603         don't necessarily interpret stat-fails+lstat-succeeds as indicating
97604         a dangling symlink.  That can also happen at least for ELOOP.
97605         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
97606         FYI, this bug predates the inclusion of fts.c in coreutils.
97608         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
97609         in their own block, so pre-c99 compilers don't object.
97611         Avoid the double-free (first in fts_read, second in fts_close) that
97612         would occur when an `active' directory is made inaccessible (e.g.,
97613         via chmod a-x) during a traversal.
97614         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97615         before returning.  Reproduce this failure by
97616         mkdir -p a/b; cd a; chmod a-x . b
97617         Reported by Stavros Passas.
97619 2006-01-25  Jim Meyering  <jim@meyering.net>
97621         * lib/fileblocks.c: Remove more useless parentheses.
97622         * lib/readutmp.h: Likewise.
97624 2006-01-25  Bruno Haible  <bruno@clisp.org>
97626         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
97627         warnings.
97628         Reported by Paul Eggert.
97630 2006-01-25  Bruno Haible  <bruno@clisp.org>
97632         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
97633         rid of a trap command. For Solaris sh.
97634         Reported by Mark D. Baushke <mdb@gnu.org>.
97636 2006-01-24  Simon Josefsson  <jas@extundo.com>
97638         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
97639         Bruno.
97641 2006-01-24  Karl Berry  <karl@gnu.org>
97643         * config/srclist.txt (argp-namefrob.h): sync lost.
97645 2006-01-24  Jim Meyering  <jim@meyering.net>
97647         * modules/openat (Files): Add lib/intprops.h.
97648         From Mark D. Baushke.
97650 2006-01-24  Jim Meyering  <jim@meyering.net>
97652         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
97653         Reported by Mark D. Baushke.
97655 2006-01-24  Jim Meyering  <jim@meyering.net>
97657         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
97659 2006-01-24  Bruno Haible  <bruno@clisp.org>
97661         * modules/strnlen (Maintainer): Change from glibc to all.
97663 2006-01-24  Bruno Haible  <bruno@clisp.org>
97665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
97666         Patch by Paul Eggert.
97668 2006-01-24  Bruno Haible  <bruno@clisp.org>
97670         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
97671         already has it.
97672         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
97673         2005-11-26.
97675         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
97676         'signed char' to avoid problems with the built-in _Bool type.
97677         Reported by Paul Eggert on 2005-11-26.
97679 2006-01-24  Bruno Haible  <bruno@clisp.org>
97681         * gnulib-tool (func_import): Avoid constructing complicated sed
97682         expressions inside backquote.
97683         Report and solution by Mark D. Baushke <mdb@gnu.org>.
97685 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
97687         These changes imported from libc.
97688         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
97689         test and two separate function calls.
97690         * lib/strndup.c (__strndup): Add libc_hidden_def.
97692 2006-01-23  Simon Josefsson  <jas@extundo.com>
97694         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
97695         Remove the test_*_SOURCES variable: automake infers it by default.
97696         * modules/tls-tests: Likewise.
97698 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97700         Work around porting bugs reported by Dieter in
97701         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
97702         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
97703         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
97704         Include "getopt.h" first, to check interface.
97705         (getenv): Declare only if defined HAVE_DECL_GETENV &&
97706         !HAVE_DECL_GETENV.
97707         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
97708         (__strndup): Revert to K&R-style function dfns, the glibc style.
97709         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
97710         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
97711         Include strnlen.h first, to get prototype properly.
97712         (strnlen): Renamed from __strnlen.
97713         Remove weak alias.
97715 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97717         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
97719 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97721         * config/srclist.txt: Adjust to reflect glibc reorganization.
97722         This affects only comments.
97724 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97726          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
97727          Reported by Bruce Korb <bkorb@gnu.org>.
97729 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
97731         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
97732         to pacify gcc -Wswitch-default.
97734 2006-01-22  Bruno Haible  <bruno@clisp.org>
97736         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
97737         temporary buffer for sprintf, take into account the precision also
97738         for 'd', 'i', 'u', 'o', 'x', 'X'.
97740 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97742         * modules/argp-tests: New module
97743         * tests/test-argp.c: New file
97744         * tests/test-argp-2.sh: New file
97746 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97748         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
97749         (__argp_base_name): Removed
97750         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
97751         typo.
97752         (__argp_base_name): Provide macro definition or extern declaration
97753         depending on the configuration
97755 2006-01-20  Simon Josefsson  <jas@extundo.com>
97757         * modules/inet_ntop (Depends-on): Depend on sys_socket.
97759 2006-01-20  Simon Josefsson  <jas@extundo.com>
97761         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
97763 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97765         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
97766         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
97767         Suggested by Bruno Haible.
97769 2006-01-20  Karl Berry  <karl@gnu.org>
97771         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
97772         until changes propagate, I guess.
97774 2006-01-19  Simon Josefsson  <jas@extundo.com>
97776         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
97778 2006-01-19  Simon Josefsson  <jas@extundo.com>
97780         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
97782 2006-01-19  Simon Josefsson  <jas@extundo.com>
97784         * gnulib-tool: Set check_PROGRAMS.
97786         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97787         modules/des-tests, modules/gc-arcfour-tests,
97788         modules/gc-arctwo-tests, modules/gc-des-tests,
97789         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97790         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97791         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97792         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97793         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97794         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
97795         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
97796         test_*_SOURCES.
97798 2006-01-18  Simon Josefsson  <jas@extundo.com>
97800         * modules/socklen (Depends-on): Depend on sys_socket.
97802 2006-01-18  Simon Josefsson  <jas@extundo.com>
97804         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97805         modules/des-tests, modules/gc-arcfour-tests,
97806         modules/gc-arctwo-tests, modules/gc-des-tests,
97807         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97808         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97809         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97810         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97811         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97812         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
97813         $(EXEEXT) to automake TESTS variable, for mingw32.
97815 2006-01-17  Simon Josefsson  <jas@extundo.com>
97817         * modules/socklen (Include): Need sys/socket.h.
97819 2006-01-17  Bruno Haible  <bruno@clisp.org>
97821         * modules/ssize_t (Include): Add <sys/types.h>.
97823 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
97825         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
97826         it's not portable and it doesn't work with cross-compiles.
97827         Problem reported by Bruno Haible.  Fix missing-$ typo in
97828         'test "gl_cv_ignore_unused_libraries" ...' that prevented
97829         -zignore from being used with Sun's C compiler.
97831 2006-01-12  Simon Josefsson  <jas@extundo.com>
97833         * lib/base64.c: Fix warning, reported by Bruno Haible
97834         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
97836 2006-01-12  Bruno Haible  <bruno@clisp.org>
97838         * modules/ldd: New file.
97839         * build-aux/ldd.sh.in: New file.
97840         * MODULES.html.sh (Support for building libraries and executables): Add
97841         ldd.
97843 2006-01-12  Bruno Haible  <bruno@clisp.org>
97845         * m4/ldd.m4: New file.
97847 2006-01-12  Bruno Haible  <bruno@clisp.org>
97849         * gnulib-tool (func_import, func_create_testdir): Don't go into an
97850         endless loop while replacing $auxdir with build-aux.
97852 2006-01-11  Simon Josefsson  <jas@extundo.com>
97854         * lib/stdint_.h (SIZE_MAX): Add missing (.
97856 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
97858         Sync from coreutils.
97859         * lib/md5.c: Fix commentary typos.
97860         (alignof, UNALIGNED_P): No need for a GCC-specific version.
97861         * lib/md5.h (__attribute__): Remove; unused.
97862         * lib/sha1.c: Fix commentary to match md5 better.
97863         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
97864         so that we don't need to worry about alignment.  All uses changed.
97865         This merges the 2005-10-28 md5 change into sha1.
97867 2006-01-11  Jim Meyering  <jim@meyering.net>
97869         Sync from coreutils.
97870         * lib/md5.c (OP): Fix spacing.
97872 2006-01-11  Bruno Haible  <bruno@clisp.org>
97874         Ensure automatic ordering between gl_LOCK and gl_ARGP.
97875         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
97876         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
97878 2006-01-11  Bruno Haible  <bruno@clisp.org>
97880         Ensure automatic ordering between gl_LOCK and gl_ARGP.
97881         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
97882         the "early" section as well.
97884 2006-01-11  Bruno Haible  <bruno@clisp.org>
97886         Avoid "ar: no archive members specified" error on MacOS X.
97887         * gnulib-tool (func_modules_add_dummy): New function.
97888         (func_import, func_create_testdir): Invoke it.
97890 2006-01-11  Bruno Haible  <bruno@clisp.org>
97892         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
97893         with $auxdir in AC_CONFIG_FILES statements.
97895 2006-01-11  Bruno Haible  <bruno@clisp.org>
97897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97898         Initialize also noinst_HEADERS to empty.
97900 2006-01-11  Bruno Haible  <bruno@clisp.org>
97902         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
97903         variables.
97904         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
97905         autoreconf.
97907 2006-01-11  Bruno Haible  <bruno@clisp.org>
97909         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
97910         overridable by the user.
97911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97913 2006-01-10  Simon Josefsson  <jas@extundo.com>
97915         * modules/sys_socket: New file.
97917 2006-01-10  Simon Josefsson  <jas@extundo.com>
97919         * m4/sys_socket_h.m4: New file.
97921 2006-01-10  Simon Josefsson  <jas@extundo.com>
97923         * lib/socket_.h: New file.
97925 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97927         * modules/readutmp (Maintainer): Add myself.
97929 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97931         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
97932         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
97933         People who are still concerned with buggy memcmp implementations
97934         can invoke gl_FUNC_MEMCMP themselves.
97936 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97938         * lib/regex_internal.h (BITSET_WORD_BITS):
97939         Work around a bug in 64-bit PGC (before version 6.1-2), where the
97940         preprocessor mishandles large unsigned values as if they were signed.
97941         Problem reported by Claudio Fontana in
97942         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
97944 2006-01-10  Jim Meyering  <jim@meyering.net>
97946         Avoid the double-free (first in fts_read, second in fts_close) that
97947         would occur when an `active' directory is made inaccessible (e.g.,
97948         via chmod a-x) during a traversal.
97949         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97950         before returning.  Reproduce this failure by
97951         mkdir -p a/b; cd a; chmod a-x . b
97952         Reported by Stavros Passas.
97954         Sync from coreutils.
97955         * lib/sha1.c: Tweak grammar in a comment.
97957 2006-01-10  Jim Meyering  <jim@meyering.net>
97959         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
97960         Patch by Joerg Sonnenberger.
97962 2006-01-10  Bruno Haible  <bruno@clisp.org>
97964         * modules/readutmp: Depend on module free.
97965         * modules/strtok_r: Depend on module restrict.
97967 2006-01-10  Bruno Haible  <bruno@clisp.org>
97969         * modules/gettext (configure.ac): Add an invocation of
97970         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
97972 2006-01-10  Bruno Haible  <bruno@clisp.org>
97974         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
97975         Reported by Werner Lemberg <wl@gnu.org>.
97977 2006-01-10  Bruno Haible  <bruno@clisp.org>
97979         * lib/localcharset.c: Update from GNU gettext.
97981 2006-01-10  Bruno Haible  <bruno@clisp.org>
97983         * lib/argp.h (__const): Remove macro. Use const instead.
97984         * lib/argp-fmtstream.h (__const): Likewise.
97985         * lib/glob_.h (__const): Remove macro.
97986         * lib/glob-libc.h: Use const instead of __const.
97988 2006-01-10  Bruno Haible  <bruno@clisp.org>
97990         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
97991         variable.
97992         Needed to avoid an automake error regarding the 'gettext' module.
97994 2006-01-09  Simon Josefsson  <jas@extundo.com>
97996         * modules/inet_ntop (Depends-on): Add restrict.
97998 2006-01-09  Simon Josefsson  <jas@extundo.com>
98000         * modules/gc-rijndael-tests (License): Put under LGPL.
98002         * modules/gc-des-tests (License): Likewise.
98004         * modules/gc-arcfour-tests (License): Likewise.
98006         * modules/gc-arctwo-tests (License): Likewise.
98008         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
98010         * modules/gc-hmac-sha1-tests (Files): Likewise.
98012         * modules/gc-hmac-md5-tests (License): Likewise.
98014         * modules/gc-sha1-tests (License): Likewise.
98016         * modules/gc-md5-tests (License): Likewise.
98018         * modules/gc-md4-tests (License): Likewise.
98020         * modules/gc-md2-tests (License): Likewise.
98022         * modules/gc-tests (License): Likewise.
98024         * modules/des-tests (License): Likewise.
98026         * modules/md4-tests (License): Likewise.
98028         * modules/md2-tests (License): Likewise.
98030 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98032         Sync from coreutils:
98034         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
98035         * modules/lib-ignore: New file.
98036         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
98037         chdir-safer.m4, lchmod.m4.
98038         * modules/openat: Add mkdirat.c, openat-priv.h.
98040 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98042         Sync from coreutils.
98043         * m4/lib-ignore.m4: New file.
98044         * m4/lchmod.m4: New file.
98046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98048         Sync from coreutils.
98049         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
98050         for write access: POSIX says that must fail.
98051         * lib/fts.c (diropen): Likewise.
98052         * lib/save-cwd.c (save_cwd): Likewise.
98053         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
98054         well, for minor improvements on hosts that lack O_DIRECTORY.
98055         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
98056         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
98057         Fall back on chown if open failed with EACCES.
98059         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
98060         Report an error at compile-time if only a 1-second nominal clock
98061         resolution is found.
98063         * lib/lchmod.h: New file.
98064         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
98065         (make_dir_parents): Use lchown rather than chown, and
98066         lchmod rather than chmod.
98068         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
98069         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
98070         "proc" reported by n0dalus.
98072         * lib/mountlist.c: Include <limits.h>.
98073         (dev_from_mount_options)
98074         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
98075         New function.  It no longer assumes "dev=" has the System V meaning
98076         on Linux (since it doesn't).  It also parses "dev=" more carefully.
98077         (read_file_system_list)
98078         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
98079         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
98080         dev= in that case.
98082         * lib/posixtm.h (PDS_PRE_2000): New macro.
98083         * lib/posixtm.c (year): Arg is now syntax_bits rather than
98084         allow_century.  All usages changed.  Reject dates outside the range
98085         1969-1999 if PDS_PRE_2000 is used.
98087 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98089         Sync from coreutils.
98090         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
98091         (Time of day items): Mention the possibility of leap seconds.
98092         Problem reported by Dr. David Alan Gilbert.
98094 2006-01-09  Jim Meyering  <jim@meyering.net>
98096         Sync from coreutils.
98098         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
98100         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
98102         * lib/modechange.c (mode_compile): Reject an invalid mode string
98103         that starts with an octal digit.  From Andreas Gruenbacher.
98105         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
98106         and dup to open_safer and dup_safer, respectively.
98107         (openat_permissive): Fix typo in comment.
98109         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
98110         "gettext.h"; either no longer needed or are guaranteed by openat.h.
98111         (_): Remove; no longer needed.
98112         (openat): Renamed from rpl_openat; no need for rpl_openat
98113         since openat.h renames openat for us.
98114         Replace most of the body with a call to openat_permissive,
98115         to avoid duplicate code.
98116         Port to (probably hypothetical) environments were mode_t is
98117         wider than int.
98118         (openat_permissive): Require mode arg, so that we can check
98119         types better.  Put it just after flags.  Change cwd failure
98120         indicator from pointer-to-bool to pointer-to-errno-value.
98121         All callers changed.
98122         Invoke openat_save_fail and/or openat_restore_fail if
98123         cwd_errno is null, so that openat can call us.
98124         (openat_permissive, fdopendir, fstatat, unlinkat):
98125         Simplify errno handling to avoid some duplicate code,
98126         as it's OK to set errno on success.
98127         * lib/openat.h: Revamp code so that function macros depend on
98128         __OPENAT_PREFIX only, not also on AT_FDCWD.
98129         (openat_ro): Remove.  Caller changed to use openat_permissive.
98130         (openat_permissive): Now a macro, if not a function.
98131         (openat_restore_fail, openat_save_fail): Now always functions,
98132         since mkdirat needs them even if __OPENAT_PREFIX is defined.
98134         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
98135         and openat.c.
98136         * lib/mkdirat.c: Include openat-priv.h.
98137         Remove definitions of macros defined therein.
98138         * lib/openat.c: Likewise.
98140         * lib/mkdirat.c (mkdirat): New file and function.
98141         * lib/openat.h (mkdirat): Declare.
98143         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
98145         * lib/openat.h (openat_permissive): Declare.
98146         (openat_ro): Define.
98148         * lib/openat.c (EXPECTED_ERRNO): New macro.
98149         (openat_permissive): New function -- used in remove.c rewrite.
98150         (all functions): Set errno just before returning, only if there
98151         was an actual failure.
98152         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
98154         Emulate openat-family functions using Linux's procfs, if possible.
98155         Idea and some code based on Ulrich Drepper's glibc changes.
98157         * lib/openat.c: (BUILD_PROC_NAME): New macro.
98158         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
98159         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
98160         before falling back on save_cwd and restore_cwd.
98161         (fdopendir, fstatat, unlinkat): Likewise.
98163         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
98164         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
98166         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
98167         as second argument to va_arg.  Otherwise, some versions of gcc
98168         warn that `if this code is reached, the program will abort'.
98170 2006-01-09  Jim Meyering  <jim@meyering.net>
98172         Sync from coreutils.
98173         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
98174         Require openat-priv.h.
98176 2006-01-09  Bruno Haible  <bruno@clisp.org>
98178         * modules/strnlen (Include): Use strnlen.h.
98180 2006-01-09  Bruno Haible  <bruno@clisp.org>
98182         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
98184 2006-01-09  Bruno Haible  <bruno@clisp.org>
98186         * lib/sysexit_.h (EX_OK): New macro.
98187         Suggested by Martin Lambers <marlam@marlam.de>.
98189 2006-01-09  Bruno Haible  <bruno@clisp.org>
98191         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
98192         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
98194 2006-01-09  Bruno Haible  <bruno@clisp.org>
98196         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
98197         numbers.
98199 2006-01-09  Bruno Haible  <bruno@clisp.org>
98201         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
98202         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
98203         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
98204         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
98206 2006-01-09  Bruno Haible  <bruno@clisp.org>
98208         * build-aux/javacomp.sh.in: New file, moved from lib/.
98209         * modules/javacomp-script (Files): Update.
98210         (configure.ac): Add AC_CONFIG_FILES invocation.
98211         (EXTRA_DIST): Remove variable.
98213         * build-aux/javaexec.sh.in: New file, moved from lib/.
98214         * modules/javaexec (Files): Update.
98215         (configure.ac): Add AC_CONFIG_FILES invocation.
98216         (EXTRA_DIST): Remove javaexec.sh.in.
98218         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
98219         * modules/csharpcomp-script (Files): Update.
98220         (configure.ac): Add AC_CONFIG_FILES invocation.
98221         (EXTRA_DIST): Remove variable.
98223         * build-aux/csharpexec.sh.in: New file, moved from lib/.
98224         * modules/csharpexec (Files): Update.
98225         (configure.ac): Add AC_CONFIG_FILES invocation.
98226         (EXTRA_DIST): Remove csharpexec.sh.in.
98228 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98230         Sync from coreutils.
98232         Add POSIX ACL support
98233         * lib/acl.h (copy_acl, set_acl): Add declarations.
98234         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
98235         systems other than Linux.
98236         (chmod_or_fchmod): New function: use fchmod when possible,
98237         and chmod otherwise.
98238         (file_has_acl): Add a POSIX ACL implementation, with a
98239         Linux-specific subcase.
98240         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
98241         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
98242         acls are unsupported.
98243         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
98244         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
98245         are unsupported.
98247 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98249         Sync from coreutils.
98250         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
98252 2006-01-07  Bruno Haible  <bruno@clisp.org>
98254         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
98255         gl_EARLY.
98257 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98259         * lib/strftime.c (tzname): Don't declare if it is already #defined.
98260         Problem reported for Mingw by Mark Junker.
98262 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98264         * README: Gnulib normally doesn't generate a tarball.
98266 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
98268         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
98269         long int, not int, for nanosecond counts, so that people who are
98270         used to POSIX struct timespec won't be surprised.  Reported by Jim
98271         Meyering.
98273 2005-12-28  Bruno Haible  <bruno@clisp.org>
98275         * build-aux/config.rpath: Update from GNU gettext.
98277 2005-12-16  Jim Meyering  <jim@meyering.net>
98279         * modules/fprintftime: New module.
98280         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
98282 2005-12-16  Jim Meyering  <jim@meyering.net>
98284         * m4/fprintftime.m4: New file.
98286 2005-12-16  Jim Meyering  <jim@meyering.net>
98288         * lib/fprintftime.c, lib/fprintftime.h: New files.
98290 2005-12-15  Simon Josefsson  <jas@extundo.com>
98292         * modules/socklen (configure.ac): Fix M4 macro name, to align with
98293         new m4/socklen.m4.
98295 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98297         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
98298         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
98300 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98302         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
98303         * lib/argp-help.c (fill_in_uparams): Check if the constructed
98304         struct uparams is valid. Fall back to the default values if it is
98305         not.
98307 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98309         * modules/argp (Files): Add argp-pin.c
98310         (Depends-on): dirname
98311         (lib_SOURCES): Add argp-pin.c
98313 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98315         * m4/argp.m4:  Check if program_invocation_name and
98316         program_invocation_short_name are declared and define appropriate
98317         macros if they are not.
98319 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98321         * lib/argp-help.c (__argp_base_name): New function
98322         (__argp_short_program_name): Rewrite using __argp_base_name
98323         * lib/argp-namefrob.h: Define program_invocation_name and
98324         program_invocation_short_name if requested
98325         (__argp_base_name): Add prototype
98326         * lib/argp-parse.c (argp_def): Use gettext wrappers
98327         (argp_default_parser): Use __argp_base_name
98328         * lib/argp-pin.c: New file. Defines program_invocation_name and
98329         program_invocation_short_name on systems that lack them.
98331 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98333         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
98334         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98335         porting problem reported by Georg Schwarz in
98336         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98338 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98340         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
98341         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98342         porting problem reported by Georg Schwarz in
98343         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98345 2005-12-05  Bruno Haible  <bruno@clisp.org>
98347         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
98348         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
98349         Reported by Mark Junker <mjscod@gmx.de>.
98351 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
98353         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
98354         Use implementation from Albert Chin, with some
98355         comments/corrections by Stepan Kasal and myself.
98357 2005-12-02  Bruno Haible  <bruno@clisp.org>
98359         * gnulib-tool (func_import): Accept GPLed build tool modules when
98360         --lgpl is given.
98361         * modules/csharpcomp-script: New file.
98362         * modules/csharpcomp: Depend on it.
98363         * modules/javacomp-script: New file.
98364         * modules/javacomp: Depend on it.
98365         Suggested by Simon Josefsson.
98367 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
98369         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
98370         statement, to work around an HP-UX 10.20 compiler bug reported by
98371         Peter O'Gorman.
98373 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98375         * modules/savedir (Depends-on): Add openat.
98377 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98379         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
98380         (uintmax_t) [defined uintmax_t]: Do not declare.
98381         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
98382         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
98383         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
98384         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
98385         sake of portability to weird hosts that C allows (though we don't
98386         know of any practical examples).
98388         * lib/savedir.h (fdsavedir): New decl.
98389         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
98390         contains most of the former guts of savedir.
98391         (savedir): Use savedirstream.
98392         Include "openat.h".
98394 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98396         * modules/obstack (Files): Add m4/ulonglong.m4.
98397         Problem reported by Davide Angelocola.
98399 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98401         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
98402         coreutils no longer futzes with rounding modes.
98404 2005-11-14  Jim Meyering  <jim@meyering.net>
98406         * lib/mkstemp-safer.c: Include <config.h>, required for possible
98407         replacement of mkstemp.
98409 2005-11-10  Simon Josefsson  <jas@extundo.com>
98411         * lib/readline.c: Remove EOL.
98413 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98415         * modules/gethrxtime (Depends-on): Add gettime.
98417 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98419         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
98420         or gettimeofday; no longer needed.
98422 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98424         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
98425         time business.
98426         (gethrxtime) [! (HAVE_NANOUPTIME
98427         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
98428         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
98429         our own approximation.
98431 2005-11-08  Eric Blake  <ebb9@byu.net>
98433         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
98435 2005-11-08  Eric Blake  <ebb9@byu.net>
98437         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
98439 2005-11-04  Bruno Haible  <bruno@clisp.org>
98441         * gnulib-tool: Implement --update mode.
98443 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98445         Fix porting problem reported by Theodoros V. Kalamatianos.
98446         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
98447         Don't assume that futimes failing means we must fail.
98449 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98451         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
98452         variables to suggest the intended function of the PATH_MAX check.
98454 2005-10-30  Kean Johnston  <jkj@sco.com>
98456         Trivial changes to support SCO systems.
98457         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
98458         as PATH_MAX.
98459         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
98460         where __ptr is null when no I/O is pending.
98462 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
98464         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
98465         leave errno alone.  Problem reported by Dmitry V. Levin.
98467 2005-10-28  Simon Josefsson  <jas@extundo.com>
98469         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
98470         Test more.
98472         * tests/test-gc-md2.c, tests/test-md2.c: New files.
98474         * modules/md2, modules/md2-tests: New files.
98476 2005-10-28  Simon Josefsson  <jas@extundo.com>
98478         * m4/inet_ntop.m4: More tests.
98480         * m4/gc-md2.m4, md2.m4: New file.
98482 2005-10-28  Simon Josefsson  <jas@extundo.com>
98484         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
98485         "restrict" keywords, as per POSIX.  Protect the function
98486         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
98487         Don't use K&R prototypes.  Check the sprintf return values.
98488         Re-define EAFNOSUPPORT if not present.  Indent.
98490         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
98491         suggested by Bruno Haible <bruno@clisp.org>.
98493         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
98495         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
98497         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
98498         libgcrypt).
98500         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
98502         * lib/md2.h, lib/md2.c: New files.
98504 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
98506         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
98507         errno alone.  Problem reported by Frederic Jolliton.
98509 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
98511         * modules/verify (License): Change from GPL to LGPL.  This is a
98512         tiny module and there are apparently near-equivalents that are
98513         under the BSD license.
98515 2005-10-24  Simon Josefsson  <jas@extundo.com>
98517         * modules/sha1: Relicense to LGPL.
98519 2005-10-24  Simon Josefsson  <jas@extundo.com>
98521         * lib/md4.h: Shrink buffer size, now that we changed the type.
98523 2005-10-23  Simon Josefsson  <jas@extundo.com>
98525         * gnulib-tool (func_import): Fix --tests-base.
98527 2005-10-22  Simon Josefsson  <jas@extundo.com>
98529         * modules/arcfour (Depends-on): Need stdint.
98531 2005-10-22  Simon Josefsson  <jas@extundo.com>
98533         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
98534         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
98536 2005-10-22  Simon Josefsson  <jas@extundo.com>
98538         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
98539         suggested by Bruno Haible <bruno@clisp.org>.
98541 2005-10-22  Simon Josefsson  <jas@extundo.com>
98543         * lib/crc.h: Include stddef.h, for size_t.
98545 2005-10-22  Simon Josefsson  <jas@extundo.com>
98547         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
98548         arcfour_context struct (simplify test vector testing in GNU
98549         Shishi).
98551 2005-10-21  Simon Josefsson  <jas@extundo.com>
98553         * modules/des, modules/des-tests: New files.
98555         * modules/gc-des, modules/gc-des-tests: New files.
98557         * tests/test-des.c, tests/test-gc-des.c: New file.
98559 2005-10-21  Simon Josefsson  <jas@extundo.com>
98561         * modules/arctwo, modules/arctwo-tests: New files.
98563         * tests/test-arctwo.c: New file.
98565         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
98567         * tests/test-gc-arctwo.c: New file.
98569 2005-10-21  Simon Josefsson  <jas@extundo.com>
98571         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
98572         Bruno Haible <bruno@clisp.org>.
98574         * m4/gc-des.m4: New file.
98576 2005-10-21  Simon Josefsson  <jas@extundo.com>
98578         * m4/arctwo.m4: New file.
98580         * m4/gc-arctwo.m4: New file.
98582 2005-10-21  Simon Josefsson  <jas@extundo.com>
98584         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
98585         block.
98587 2005-10-21  Simon Josefsson  <jas@extundo.com>
98589         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
98590         <bruno@clisp.org>.
98592         * lib/hmac-sha1.c (hmac_sha1): Likewise.
98594         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
98595         Bruno Haible <bruno@clisp.org>.
98597         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
98598         <bruno@clisp.org>.
98600 2005-10-21  Simon Josefsson  <jas@extundo.com>
98602         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
98604 2005-10-21  Simon Josefsson  <jas@extundo.com>
98606         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
98608 2005-10-21  Simon Josefsson  <jas@extundo.com>
98610         * lib/des.h, lib/des.c: New files.
98612         * lib/gc-gnulib.c: Support DES.c
98614 2005-10-21  Simon Josefsson  <jas@extundo.com>
98616         * lib/arctwo.h, lib/arctwo.c: New files.
98618         * lib/gc-gnulib.c: Support ARCTWO.
98620 2005-10-21  Simon Josefsson  <jas@extundo.com>
98622         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
98623         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98625 2005-10-21  Simon Josefsson  <jas@extundo.com>
98627         * gnulib-tool (func_import, func_create_testdir): Define automake
98628         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
98629         Makefile.am snippet),
98630         suggested by Bruno Haible <bruno@clisp.org>.
98632         * modules/gc (Makefile.am): Use it.
98634 2005-10-21  Bruno Haible  <bruno@clisp.org>
98636         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
98637         patch.
98639 2005-10-19  Simon Josefsson  <jas@extundo.com>
98641         * tests/test-gc-rijndael.c: New file.
98643         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
98645 2005-10-19  Simon Josefsson  <jas@extundo.com>
98647         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
98648         interface too.
98650 2005-10-19  Simon Josefsson  <jas@extundo.com>
98652         * tests/test-gc-arcfour.c: New file.
98654         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
98656 2005-10-19  Simon Josefsson  <jas@extundo.com>
98658         * modules/gc-md4, modules/gc-md4-tests: New file.
98660         * tests/test-gc-md4.c: New file.
98662 2005-10-19  Simon Josefsson  <jas@extundo.com>
98664         * m4/gc-md4.m4: New file.
98666 2005-10-19  Simon Josefsson  <jas@extundo.com>
98668         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
98669         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
98670         <kasal@ucw.cz>.
98672 2005-10-19  Simon Josefsson  <jas@extundo.com>
98674         * m4/gc-arcfour.m4: New file.
98676         * m4/gc-rijndael.m4: New file.
98678 2005-10-19  Simon Josefsson  <jas@extundo.com>
98680         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
98682 2005-10-19  Simon Josefsson  <jas@extundo.com>
98684         * lib/gc-gnulib.c: Support ARCFOUR.
98686 2005-10-19  Simon Josefsson  <jas@extundo.com>
98688         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
98689         support.
98691         * lib/gc.h: Add ECB enum type.
98693         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
98695 2005-10-18  Simon Josefsson  <jas@extundo.com>
98697         * tests/test-md5.c: New file.
98699         * modules/md5-tests: New file.
98701 2005-10-18  Simon Josefsson  <jas@extundo.com>
98703         * tests/test-md4.c: New file.
98705         * modules/md4, modules/md4-tests: New files.
98707 2005-10-18  Simon Josefsson  <jas@extundo.com>
98709         * m4/md4.m4: New file.
98711 2005-10-18  Simon Josefsson  <jas@extundo.com>
98713         * lib/md4.h, lib/md4.c: New files, based on md5.?.
98715 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
98717         * gnulib-tool (func_create_testdir): Omit the second check whether
98718         BUILT_SOURCES in nonempty.
98720 2005-10-17  Simon Josefsson  <jas@extundo.com>
98722         * tests/test-rijndael.c: New file.
98724 2005-10-17  Simon Josefsson  <jas@extundo.com>
98726         * modules/sha1: Depend on stdint instead of md5.
98728         * modules/md5: Depend on stdint, remove uint32_t.
98730 2005-10-17  Simon Josefsson  <jas@extundo.com>
98732         * modules/gc-sha1-tests: New file.
98734         * tests/test-gc-sha1.c: New file.
98736 2005-10-17  Simon Josefsson  <jas@extundo.com>
98738         * m4/md5.m4: Remove call to uint32_t.m4.
98740 2005-10-17  Simon Josefsson  <jas@extundo.com>
98742         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
98744         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
98745         md5.h.
98747         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
98749         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
98751 2005-10-17  Simon Josefsson  <jas@extundo.com>
98753         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
98755 2005-10-17  Simon Josefsson  <jas@extundo.com>
98757         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
98759 2005-10-17  Simon Josefsson  <jas@extundo.com>
98761         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
98763         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
98765 2005-10-17  Bruno Haible  <bruno@clisp.org>
98767         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
98768         that it can also be used in a test.
98770 2005-10-16  Bruno Haible  <bruno@clisp.org>
98772         * gnulib-tool (func_emit_tests_Makefile_am): Also define
98773         TESTS_ENVIRONMENT, so that individual tests can augment it.
98775         * gnulib-tool (func_create_testdir): Use an intermediate target for
98776         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
98777         macros, like $(ALLOCA_H), which cannot be passed through the command
98778         line.
98780 2005-10-15  Simon Josefsson  <jas@extundo.com>
98782         * modules/rijndael-tests: New file.
98784         * modules/rijndael: New file.
98786 2005-10-15  Simon Josefsson  <jas@extundo.com>
98788         * m4/rijndael.m4: New file.
98790 2005-10-15  Simon Josefsson  <jas@extundo.com>
98792         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
98794         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
98796 2005-10-14  Simon Josefsson  <jas@extundo.com>
98798         * tests/test-arcfour.c: New file.
98800         * modules/arcfour, modules/arcfour-tests: New files.
98802 2005-10-14  Simon Josefsson  <jas@extundo.com>
98804         * m4/arcfour.m4: New file.
98806 2005-10-14  Simon Josefsson  <jas@extundo.com>
98808         * lib/arcfour.h, lib/arcfour.c: New files.
98810 2005-10-14  Roland McGrath  <roland@redhat.com>
98812         Import from libc.  [BZ #1331]
98813         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
98814         macro argument.
98815         Reported by Matej Vela <vela@debian.org>.
98817 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
98819         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
98820         include <wchar.h>; no longer needed.
98822 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
98824         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
98826 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
98827         and  Ulrich Drepper  <drepper@redhat.com>
98829         Import from libc.
98830         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
98831         instead of inline stream orientation test and two separate
98832         function calls.  Pay no attention to USE_IN_LIBIO.
98834 2005-10-13  Simon Josefsson  <jas@extundo.com>
98836         * modules/gc-hmac-md5-tests: New file.
98838         * tests/test-gc-hmac-sha1.c: New file.
98840         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
98842         * modules/gc-hmac-md5-tests: New file.
98844         * tests/test-gc-md5.c: New file.
98846         * modules/gc-md5-tests: New file.
98848 2005-10-13  Simon Josefsson  <jas@extundo.com>
98850         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
98851         Move memory allocation outside of loop.
98853 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
98855         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
98856         intermediate directory is in a read-only file system.  Problem
98857         reported by Eric Blake.
98859 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
98861         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
98863 2005-10-12  Simon Josefsson  <jas@extundo.com>
98865         * tests/test-hmac-sha1.c: New file.
98867         * modules/hmac-sha1-tests: New file.
98869         * modules/hmac-sha1: New file.
98871 2005-10-12  Simon Josefsson  <jas@extundo.com>
98873         * modules/gc-sha1: New file.
98875 2005-10-12  Simon Josefsson  <jas@extundo.com>
98877         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
98879         * tests/test-gc-pbkdf2-sha1.c: New file.
98881 2005-10-12  Simon Josefsson  <jas@extundo.com>
98883         * modules/gc-md5, modules/gc-hmac-md5: New files.
98885         * modules/gc (Files): Remove md5, memxor and hmac files.
98887 2005-10-12  Simon Josefsson  <jas@extundo.com>
98889         * m4/gc-pbkdf2-sha1.m4: New file.
98891         * m4/gc-hmac-sha1.m4: New file.
98893         * m4/gc-sha1: New file.
98895         * m4/hmac-sha1.m4: New file.
98897 2005-10-12  Simon Josefsson  <jas@extundo.com>
98899         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
98901         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
98903 2005-10-12  Simon Josefsson  <jas@extundo.com>
98905         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
98906         suggested by Bruno Haible <bruno@clisp.org>.
98908 2005-10-12  Simon Josefsson  <jas@extundo.com>
98910         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
98912 2005-10-12  Simon Josefsson  <jas@extundo.com>
98914         * lib/gc-pbkdf2-sha1.c: New file.
98916         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
98918 2005-10-12  Simon Josefsson  <jas@extundo.com>
98920         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
98922         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
98924 2005-10-12  Simon Josefsson  <jas@extundo.com>
98926         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
98927         GC_USE_HMAC_MD5, respectively.
98929         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
98930         (gc_md5): Fix typo.
98932         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
98934         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
98936         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
98938 2005-10-12  Bruno Haible  <bruno@clisp.org>
98940         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
98941         Reported by Stepan Kasal <kasal@ucw.cz>.
98943 2005-10-11  Simon Josefsson  <jas@extundo.com>
98945         * tests/test-crc.c: New file.
98947         * modules/crc, modules/crc-tests: New files.
98949 2005-10-11  Simon Josefsson  <jas@extundo.com>
98951         * m4/crc.m4: New file.
98953 2005-10-11  Simon Josefsson  <jas@extundo.com>
98955         * lib/gc.h: Add gc_hash and gc_hash_buffer.
98957         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
98959         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
98961 2005-10-11  Simon Josefsson  <jas@extundo.com>
98963         * lib/crc.h, lib/crc.c: New files.
98965         * lib/gc.h (gc_hash_buffer): Add doc.
98967 2005-10-11  Bruno Haible  <bruno@clisp.org>
98969         * modules/c-strcasestr: New file.
98970         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
98972 2005-10-11  Bruno Haible  <bruno@clisp.org>
98974         * modules/c-strcase: New file.
98975         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
98977 2005-10-11  Bruno Haible  <bruno@clisp.org>
98979         * lib/strcasecmp.c: Include limits.h.
98980         (strcasecmp): Avoid integer overflow on exotic platforms.
98981         * lib/strncasecmp.c: Include limits.h.
98982         (strncasecmp): Avoid integer overflow on exotic platforms.
98983         Reported by Paul Eggert.
98985 2005-10-11  Bruno Haible  <bruno@clisp.org>
98987         * lib/c-strcasestr.h: New file, from GNU gettext.
98988         * lib/c-strcasestr.c: New file, from GNU gettext.
98990 2005-10-11  Bruno Haible  <bruno@clisp.org>
98992         * lib/c-strcase.h: New file, from GNU gettext.
98993         * lib/c-strcasecmp.c: New file, from GNU gettext.
98994         * lib/c-strncasecmp.c: New file, from GNU gettext.
98996 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
98998         * modules/mempcpy (License): GPL -> LGPL.
98999         * modules/strchrnul (License): Likewise.
99000         * modules/sysexits (License): Likewise.
99002 2005-10-08  Simon Josefsson  <jas@extundo.com>
99004         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
99006 2005-10-07  Simon Josefsson  <jas@extundo.com>
99008         * m4/memxor.m4: Remove gl_C_RESTRICT call.
99010 2005-10-06  Simon Josefsson  <jas@extundo.com>
99012         * tests/test-hmac-md5.c: New file.
99014         * modules/hmac-md5-tests: New file.
99016         * modules/hmac-md5: New file.
99018 2005-10-06  Simon Josefsson  <jas@extundo.com>
99020         * m4/hmac-md5.m4: New file.
99022         * m4/memxor.m4: Require gl_C_RESTRICT.
99024 2005-10-06  Simon Josefsson  <jas@extundo.com>
99026         * lib/memxor.c (memxor): Avoid casts and warnings.
99028 2005-10-06  Simon Josefsson  <jas@extundo.com>
99030         * lib/hmac-md5.c: New file.
99032         * lib/hmac.h: New file.
99034 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
99036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
99037         promotes to int, not unsigned int, to catch the AIX 5.3
99038         compiler bug.
99040 2005-10-05  Simon Josefsson  <jas@extundo.com>
99042         * modules/memxor: New file.
99044         * modules/iconv (Files): Move config.rpath to havelib, it is used
99045         there.
99047         * modules/havelib (Files): Add config.rpath.
99049 2005-10-05  Simon Josefsson  <jas@extundo.com>
99051         * m4/memxor.m4: New file.
99053 2005-10-05  Simon Josefsson  <jas@extundo.com>
99055         * lib/memxor.c (memxor): Fix compiler error.
99057         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
99058         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
99060         * lib/memxor.h, lib/memxor.c: New files.
99062         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
99063         we assume all systems have it, suggested by Jim Meyering
99064         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
99065         any systems lack sys/socket.h; mingw32 is known to lack it, but we
99066         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
99067         same reasons.
99069 2005-10-05  Simon Josefsson  <jas@extundo.com>
99071         * config/srclist.txt: Add glibc bug 1423 for md5.h.
99073 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
99075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
99076         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
99077         needed, since the source code now assumes these .h files.
99079 2005-10-05  Derek Price  <derek@ximbiot.com>
99081         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
99083 2005-10-05  Bruno Haible  <bruno@clisp.org>
99085         * modules/stdint (License): Change to LGPL.
99087 2005-10-04  Simon Josefsson  <jas@extundo.com>
99089         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
99090         D. Baushke" <mdb@gnu.org>.
99092 2005-10-04  Bruno Haible  <bruno@clisp.org>
99094         * lib/verify.h (verify_true): Provide alternative definition for C++.
99096 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
99098         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
99099         (SSIZE_MAX): New macro, if not already defined.
99100         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
99101         than 2 GiB.
99103 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99105         Sync from coreutils.
99106         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
99107         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
99108         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
99109         ULLONG_MAX doesn't work with 2.7.2.1.
99111 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99113         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
99114         From Ben Pfaff.
99116         * modules/exclude (Depends-on): Depend on verify.
99117         * modules/strtoimax (Depends-on): Likewise.
99118         * modules/utimecmp (Depends-on): Likewise.
99120 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99122         * lib/exclude.c: Include verify.h.
99123         (verify): Remove.  All callers changed to use verify.h's version.
99124         * lib/strtoimax.c: Likewise.
99125         * lib/utimecmp.c: Likewis.e
99127         Sync from coreutils.
99128         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
99129         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
99130         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
99131         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
99132         bother returning ENOSYS if settimeofday or stime fails; just let
99133         them return whatever errno they want to return.
99134         * lib/utimens.c: Include unistd.h, for dup2.
99135         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
99136         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
99138 2005-10-02  Jim Meyering  <jim@meyering.net>
99140         Sync from coreutils.
99141         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
99142         from glibc-2.2.5 that fails for read-only files.
99144 2005-10-02  Jim Meyering  <jim@meyering.net>
99146         Sync from coreutils.
99147         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
99148         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
99149         `#if HAVE_CONFIG_H'.
99150         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
99151         Remove AT_FDCWD test.
99152         Do not consume the fd unless successful.
99153         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
99154         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
99155         block, so that we don't even try to compile it if settimeofday is
99156         available.  This works around a compilation failure on OSF1 V5.1,
99157         due to stime requiring a `long int*' while tv_sec is `int'.
99159 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
99161         Sync from coreutils.
99162         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
99163         against `yes', rather than just testing for nonempty.
99165 2005-10-01  Simon Josefsson  <jas@extundo.com>
99167         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
99168         and Darwin.
99170         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
99171         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
99172         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
99173         freeaddrinfo and gai_strerror are declared by the POSIX headers.
99174         Check if struct addrinfo is declared.
99176 2005-10-01  Simon Josefsson  <jas@extundo.com>
99178         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
99179         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
99180         AI_* and EAI_* definitions.  Protect function declarations.
99182 2005-10-01  Jim Meyering  <jim@meyering.net>
99184         Sync from coreutils.
99186         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
99187         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
99188         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
99189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99190         in the inet and nsl libraries.  Required on Solaris 5.7.
99192 2005-10-01  Jim Meyering  <jim@meyering.net>
99194         Sync from coreutils.
99195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99196         in the inet and nsl libraries.  Required on Solaris 5.7.
99198 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
99200         * lib/getdelim.c (getdelim): Remove unused variables.
99202 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
99204         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
99205         so that the code works even with ancient cpp.  Portability problem
99206         with GCC 2.7.2.1 reported by Thomas M.Ott.
99208 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
99210         * modules/regex (Depends-on): Add strcase.
99212         * modules/gethostname (Licence): Change from GPL to LGPL, since
99213         gethostname.c is a trivial implementation of a standard library
99214         function.
99215         * modules/poll (License): Change from GPL to LGPL, since it's
99216         derived from LGPL code.
99218 2005-09-27  Jim Meyering  <jim@meyering.net>
99220         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
99221         HAVE_CONFIG_H.
99223         * lib/intprops.h (signed_type_or_expr__): Define.
99224         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
99225         for unsigned types.
99227 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
99229         * lib/verify.h (verify_expr): Remove, replacing with:
99230         (verify_true): New macro that returns true instead of void.
99231         (verify_type__): Remove.
99232         (verify): Use verify_true rather than verify_type__.
99234 2005-09-26  Bruno Haible  <bruno@clisp.org>
99236         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
99237         is necessary.
99238         (lib_SOURCES): Remove mbchar.c.
99239         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
99240         (Files): Add m4/mbrtowc.m4.
99241         * modules/mbiter: Likewise.
99242         * modules/mbuiter: Likewise.
99244 2005-09-26  Bruno Haible  <bruno@clisp.org>
99246         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
99247         compile mbchar.c if they are not both present.
99248         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
99249         * m4/mbiter.m4 (gl_MBITER): Likewise.
99250         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
99251         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
99252         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
99254 2005-09-25  Jim Meyering  <jim@meyering.net>
99256         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
99257         also uses socklen_t.
99259 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
99261         * lib/utimens.c (ENOSYS): Define if not already defined.
99262         (futimens): Support having a null PATH if the file descriptor
99263         is nonnegative.
99265         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
99266         Remove.
99267         (__attribute): Define to empty unless GCC 3.1 or later.
99268         This works around a core dump on OpenBSD 3.4, which has GCC
99269         2.95.3, which dumps core when given __attribute__(()).  It also
99270         simplifies other tests, since we really don't want to bother with
99271         worrying about which ancient version of GCC supported what.
99272         Original problem reported by Yoann Vandoorselaere, with part of
99273         the fix suggested by Derek Price.
99275 2005-09-24  Jim Meyering  <jim@meyering.net>
99277         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
99278         so we can once again use a positive bitfield width of 1 -- now we
99279         don't have to explain why we were using a bitfield width of 2.
99281 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99283         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
99284         and similarly for the other external symbols.  Problem reported
99285         by James Gallager.
99287         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
99288         bug reported by Jim Meyering.
99290         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
99291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
99292         not needed, since socklen is a prerequisite module.
99294 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99296         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
99297         Problem reported by Eric Blake.
99298         (getaddrinfo): Initialize se so that it's not garbage.
99299         Redo internal storage allocation so that it doesn't make unportable
99300         assumptions about alignment.
99301         Fix a memory leak.
99303         * lib/utimens.c (futimens): Use futimesat if available.
99304         Prefer it to futimes since it doesn't have the futimes bug.
99306         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
99307         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
99308         Instead, declare a function that returns a pointer to an array,
99309         and use verify_type__ to declare the size of the array.
99310         Problem and germ of a solution reported by Bruno Haible.
99311         (verify_type__): Use 2, not 1, for bitfield size, to avoid
99312         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
99314 2005-09-23  Jim Meyering  <jim@meyering.net>
99316         Sync from coreutils.
99317         Correct build failure (socklen_t not defined) on at least
99318         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
99319         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
99321 2005-09-23  Jim Meyering  <jim@meyering.net>
99323         * modules/getaddrinfo (Depends-on): Add socklen.
99325 2005-09-23  Bruno Haible  <bruno@clisp.org>
99327         * tests/test-verify.c: New file.
99329 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99331         Sync from coreutils.
99333         * modules/argmatch (Depends-on): Add verify.
99334         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
99335         unistd-safer.
99336         * modules/save-cwd (Depends-on): Likewise.
99338         * modules/openat (Files): Add lib/openat-die.c.
99339         (Depends-on): Remove error, exitfail.
99340         Add dirname.
99342         * modules/verify: New file.
99343         * MODULES.html.sh (Diagnostics <assert.h>): New section,
99344         with "verify" module.
99346 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99348         Sync from coreutils.
99350         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
99351         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
99352         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
99353         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
99354         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
99355         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
99356         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
99357         Don't bother checking for string.h, stdlib.h, unistd.h.
99358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
99359         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
99360         module's job.
99361         * m4/jm-macros.m4 (gl_MACROS): Likewise.
99362         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
99364         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
99365         (gl_GETDATE): Use it.
99367         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
99369 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99371         Sync from coreutils.
99373         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
99374         stat-time.h.
99375         * lib/argmatch.h: Include verify.h
99376         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
99377         (ARGMATCH_ASSERT): Remove; unused.
99378         * lib/canonicalize.c: Assume STDC_HEADERS.
99379         * lib/exclude.c: Include "strcase.h".
99380         * lib/regex_internal.h [!defined _LIBC]: Likewise.
99381         * lib/getusershell.c: Include stdio--.h rather than stdio.h
99382         and stdio-safer.h.
99383         (getusershell): Call fopen, not fopen_safer.
99384         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
99385         Do not include unistd-safer.h.
99386         (save_cwd): Don't call fd_safer; no longer needed
99387         now that we include fcntl--.h.
99389         * lib/getdate.y (relative_time): New type.
99390         (RELATIVE_TIME_0): New constant.
99391         (parser_control): Use relative_time instead of doing it ourselves.
99392         (%union): Add new relative_time rel member.
99393         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
99394         Now typeless.
99395         (relunit, relunit_snumber): Now of type rel.
99396         (zone, rel, relunit, get_date): Adjust to above changes.
99398         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
99399         Do not include unistd-safer.h.
99400         (getloadavg): Don't call fd_safer; no longer needed
99401         now that we include fcntl--.h.
99403         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
99404         (make_dir_parents): Treat ENOSYS like EEXIST.
99406         Improve quality of diagnostics on restore_cwd failure.
99407         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
99408         (make_dir_parents): Last arg is now int * (for errno), not bool *.
99409         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
99410         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
99411         each time through the loop.  Do not diagnose restore_cwd failure;
99412         that is the caller's job (and perhaps the caller does not care).
99414         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
99415         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
99416         If the file already exists but is not a directory, don't bother
99417         to try to make its parents.
99418         Close potential file descriptor leak if we can't chdir("/") (!).
99419         Don't always return true if chdir($PWD) fails; return true only
99420         if the requested action was done successfully (except for the
99421         chdir($PWD)).
99422         Don't log final directory unless we actually made it.
99423         Refactor to avoid duplicate code to fix up permissions.
99424         Don't attempt to fix up parent permissions if chdir($PWD) fails.
99426         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
99427         to make it a bit faster and (I hope) clearer.
99428         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
99429         Fix bug in formats like %2N.
99431         * lib/verify.h: New file.
99433 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99435         Sync from coreutils.
99436         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
99438 2005-09-22  Jim Meyering  <jim@meyering.net>
99440         Sync from coreutils.
99442         * m4/lstat.m4 (gl_FUNC_LSTAT):
99443         Use AC_LIBSOURCES to require lstat.c and lstat.h.
99444         Remove obsolete comment.
99445         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
99446         * m4/xstrtod.m4: Likewise.
99448         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
99450 2005-09-22  Jim Meyering  <jim@meyering.net>
99452         Sync from coreutils.
99454         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
99456         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
99457         the .tm_year member, since otherwise gcc-4.0 would now warn about
99458         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
99460         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
99461         order to avoid an unsuppressible warning from gcc on 64-bit systems.
99463         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
99464         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
99465         when run in a time zone for which daylight savings time is in effect
99466         for the starting date.
99468         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
99469         stop us from restricting permissions of just-created absolute-named
99470         directories.
99471         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
99472         to restore initial working directory.
99473         * lib/mkdir-p.c (make_dir_parents): New parameter:
99474         different_working_dir, to tell caller if/when we change the working
99475         directory and are unable to return to the initial one.
99476         * lib/mkdir-p.h (make_dir_parents): Update prototype.
99477         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
99478         `return false'.  This fixes a bug introduced on 2004-07-30.
99480         * lib/openat.c (fdopendir): Be sure to close the supplied
99481         file descriptor before returning.  This makes our replacement
99482         implementation a little closer to Solaris's, where fdopendir
99483         ties the file descriptor to the returned DIR* pointer.
99484         * lib/openat.c (unlinkat): New function.
99485         * lib/openat.h (unlinkat): Add prototype.
99486         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
99487         (openat_restore_fail): Rename from openat_restore_die.
99488         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
99490         Provide an alternative to exiting immediately upon save_cwd or
99491         restore_cwd failure.  Now, an application can arrange e.g.,
99492         to perform a longjump in that case.
99493         * lib/openat.c: Include dirname.h.
99494         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
99495         (rpl_openat, fdopendir, fstatat): Call openat_save_die
99496         and openat_restore_die rather than calling error directly.
99497         Don't include "error.h" or "exitfail.h"; they're no longer needed.
99499         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
99500         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
99501         define.
99503         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
99504         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
99505                             int utc, int nanoseconds);
99506         Background:
99507         date should not have to allocate a megabyte of virtual memory to
99508         handle a format argument like +%1048575T.  When implemented with
99509         strftime, it must allocate such a buffer, use strftime to fill it
99510         in, print it, then free it.
99511         With fprintftime, it simply prints everything and exits.
99512         With no need for memory allocation, that's one fewer way to fail.
99513         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
99514         optional field width, not before, so we accept %9:z, not %:9z.
99515         (my_strftime): Be sure to use L_('x') for literals.
99517         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
99518         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
99519         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
99520         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
99521         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
99522         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
99523         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
99524         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
99525         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
99526         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
99527         * lib/xgethostname.c, lib/xreadlink.c:
99528         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
99530         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
99531         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
99532         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
99533         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
99534         and don't include <sys/file.h>).
99536 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
99538         Sync from coreutils.
99540         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
99541         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
99542         [!LDAV_DONE]: Avoid unused variable warning.
99544 2005-09-21  Bruno Haible  <bruno@clisp.org>
99546         * lib/unicodeio.h (unicode_to_mb): New declaration.
99548 2005-09-20  Derek Price  <derek@ximbiot.com>
99550         * lib/getaddrinfo.c: Don't include <netdb.h> included from
99551         getaddrinfo.h.
99553 2005-09-20  Bruno Haible  <bruno@clisp.org>
99555         * gnulib-tool: Remove trailing slashes from the values specified for
99556         --source-base, --m4-base, --tests-base, --aux-dir.
99557         Suggested by Simon Josefsson <jas@extundo.com>.
99559 2005-09-20  Bruno Haible  <bruno@clisp.org>
99561         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
99562         func_modules_to_filelist, func_import, func_create_testdir): Make all
99563         sorting results locale-independent, so that gnulib-cache.m4 doesn't
99564         change when gnulib-tool is invoked in a different locale.
99566 2005-09-19  Simon Josefsson  <jas@extundo.com>
99568         * m4/socklen.m4: Fix typo.
99570 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99572         Use a consistent style for including <config.h>.
99573         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
99574         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
99575         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
99576         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
99577         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
99578         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
99579         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
99580         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
99581         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
99582         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
99583         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
99584         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
99585         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
99586         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
99587         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
99588         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
99589         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
99590         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
99591         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
99592         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
99593         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
99594         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
99595         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
99596         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
99597         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
99598         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
99599         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
99600         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
99601         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
99602         lib/xstrtoumax.c, lib/yesno.c:
99603         Standardize inclusion of config.h.
99604         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
99605         lib/inttostr.h:  Removed inclusion of config.h from header files.
99606         * lib/inttostr.c:  Adjusted in-tree users.
99607         * lib/timespec.h: Remove superfluous warning to include config.h.
99608         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
99609         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
99610         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
99611         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
99612         config.h with HAVE_CONFIG_H.
99614 2005-09-19  Jim Meyering  <jim@meyering.net>
99616         * modules/pathmax (License): Change to LGPL.
99618 2005-09-19  Derek Price  <derek@ximbiot.com>
99620         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
99622 2005-09-19  Bruno Haible  <bruno@clisp.org>
99624         * gnulib-tool (import): Provide default for --tests-base.
99626 2005-09-19  Bruno Haible  <bruno@clisp.org>
99628         * doc/quote.texi: New file, extracted from gnulib.texi.
99629         * doc/ctime.texi: New file, extracted from gnulib.texi.
99630         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
99631         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
99632         * doc/gnulib.texi: Include them.
99634 2005-09-18  Bruno Haible  <bruno@clisp.org>
99636         Portability fix.
99637         * gnulib-tool (func_readlink): New function.
99638         (func_ln_if_changed): Use it.
99640 2005-09-18  Bruno Haible  <bruno@clisp.org>
99642         * gnulib-tool: Support --with-tests also with --import.
99643         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
99644         (func_import): Use variables $testsbase and $inctests. Emit a
99645         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
99646         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
99647         SUBDIRS += $testsdir.
99648         (func_create_testdir): Update.
99650 2005-09-18  Bruno Haible  <bruno@clisp.org>
99652         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
99653         instead of $dry_run.
99654         (func_cp_if_changed, func_mv_if_changed): Remove functions.
99655         (func_ln_if_changed): Don't handle dry-run here.
99656         (func_import): In dry-run mode, detect more precisely which actions
99657         would be performed, and don't use "...ing" verbs.
99659 2005-09-18  Bruno Haible  <bruno@clisp.org>
99661         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
99662         (func_import): Use join on two temporary files instead of three nested
99663         loops, in order to determine which files are new or old.
99665 2005-09-18  Bruno Haible  <bruno@clisp.org>
99667         * gnulib-tool (func_import): Comment out code that spits out the
99668         new files with --dry-run.
99670 2005-09-18  Bruno Haible  <bruno@clisp.org>
99672         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
99674 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99676         * lib/stat-time.h: New file.
99677         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
99678         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
99679         in a different way.
99680         (timespec_cmp): New function.
99681         * lib/utimecmp.c: Include stat-time.h.
99682         (SYSCALL_RESOLUTION): Depend on whether various struct stat
99683         members exist, not on the obsolescent ST_MTIM_NSEC.
99684         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
99686 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99688         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
99690 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99692         * MODULES.html.sh (File system functions): Add stat-time.
99693         * modules/stat-time: New file.
99694         * modules/timespec (Files): Remove m4/st_mtim.m4; this
99695         is now done in a different way, by the stat-time module.
99696         * modules/utimecmp (Depends-on): Add stat-time.
99698 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
99700         * m4/st_mtim.m4: Remove.  Superseded by...
99701         * m4/stat-time.m4: New file.
99702         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
99703         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
99705 2005-09-15  Derek Price  <derek@ximbiot.com>
99707         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
99709 2005-09-15  Derek Price  <derek@ximbiot.com>
99711         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
99712         * lib/regex_internal.c: Ditto, using this...
99713         (__GNUC_PREREQ): ...new macro.
99714         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
99715         using...
99716         (__GNUC_PREREQ): ...this new macro.
99718         * lib/strstr.h: Include string.h. Define strstr as a macro here.
99720 2005-09-15  Derek Price  <derek@ximbiot.com>
99721             Paul Eggert  <eggert@cs.ucla.edu>
99723         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
99724         changes, consolidating in...
99725         * lib/regex_internal.h: ...this file.
99727 2005-09-13  Jim Meyering  <jim@meyering.net>
99729         * lib/canon-host.c: Filter through gnu indent and reword comments
99730         slightly.
99731         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
99733 2005-09-13  Derek Price  <derek@ximbiot.com>
99735         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
99736         failure.
99737         Reported by Jim Meyering  <jim@meyering.net>.
99739 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99741         * lib/base64.c: Typo.
99742         (base64_encode): Put b64str in initialized data section.
99744 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
99746         Merge glibc and coreutils changes into gnulib, plus a few
99747         extra fixes.
99748         * lib/md5.c: Use #error rather than a string.
99749         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
99750         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
99751         (__attribute__): Define to empty for non recent-GCC.
99752         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
99753         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
99754         Renamed from their non-__ counterparts, with new macros replacing
99755         them if not _LIBC.  Add __THROW attribute.
99756         (rol): Remove.
99757         (struct md5_ctx): Align buffer if using GCC.
99758         * lib/sha1.h (struct sha1_ctx): Likewise.
99759         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
99760         The old name was backwards.
99761         (NOTSWAP): Remove; not used.
99762         (rol): New macro, moved here from md5.h.
99763         (sha1_process_block): Remove a FIXME that doesn't make sense.
99765 2005-09-12  Derek Price  <derek@ximbiot.com>
99767         Return usable errors from canon-host.
99768         * lib/canon-host.h: New file.
99769         * lib/canon-host.c (canon_host): Wrap...
99770         (canon_host_r): ...this new function, which now relies exclusively on
99771         getaddrinfo.
99772         (ch_strerror): New function.
99773         (last_cherror): New global.
99774         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
99775         interface.
99776         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
99777         void *.
99778         (freeaddrinfo): Free ai->ai_canonname when set.
99780 2005-09-12  Derek Price  <derek@ximbiot.com>
99782         Make canon-host require getaddrinfo.
99783         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
99784         AC_LIBSOURCE canon-host.h.  Call...
99785         (gl_PREREQ_CANON_HOST): ...this new function, which requires
99786         gl_GETADDRINFO.
99787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
99789 2005-09-12  Derek Price  <derek@ximbiot.com>
99791         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
99792         LGPL.
99793         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
99795 2005-09-12  Derek Price  <derek@ximbiot.com>
99797         * lib/gai_strerror.c: Include config.h when available.  Include
99798         getaddrinfo.h before other headers to test interface.
99799         Reported by Larry Jones <lawrence.jones@ugs.com>.
99801 2005-09-12  Derek Price  <derek@ximbiot.com>
99802             Paul Eggert  <eggert@cs.ucla.edu>
99804         * modules/glob (Files): Add glob-libc.h.
99806 2005-09-12  Derek Price  <derek@ximbiot.com>
99807             Paul Eggert  <eggert@cs.ucla.edu>
99809         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
99810         glob_.h, glob-libc.h.
99811         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
99813 2005-09-12  Derek Price  <derek@ximbiot.com>
99814             Paul Eggert  <eggert@cs.ucla.edu>
99816         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
99817         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
99818         protecting things that should be done only in gnulib contexts.
99819         * lib/glob_.h: New file, containing only the glob things needed for
99820         gnulib.
99821         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
99822         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
99823         (glob, globfree, glob_pattern_p): Now defined simply in terms of
99824         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
99825         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
99826         and to respect the namespace rules better.
99828 2005-09-08  Simon Josefsson  <jas@extundo.com>
99830         * modules/socklen: New file.
99832 2005-09-08  Simon Josefsson  <jas@extundo.com>
99834         * m4/socklen.m4: New file.
99836 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99838         * modules/utimens (Files): Add m4/utimbuf.m4, since
99839         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
99840         Reported by Sergey Poznyakoff.
99842 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99844         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
99845         definitions, since that's the preferred style in glibc.
99846         Fix a minor spacing issue, and update copyright notice to match
99847         glibc's.
99849 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99851         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
99853 2005-09-06  Simon Josefsson  <jas@extundo.com>
99855         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
99856         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
99858 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99860         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
99861         warning.
99863 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99865         * config/srclist.txt: Add glibc bug 1302.
99867 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
99869         Change bitset word type from unsigned int to unsigned long int,
99870         as this has better performance on typical 64-bit hosts.
99871         Port bitset code to hosts with unusual word sizes.
99872         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
99873         (build_collating_symbol):
99874         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
99875         argument is a bitset.  This is merely a style issue, but it makes
99876         it clearer that an entire array is expected.
99877         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
99878         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
99879         Port to the case where bitset_word is not the same as unsigned int.
99880         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
99881         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
99882         Likewise.
99883         * lib/regexec.c (check_dst_limits_calc_pos_1,
99884         check_subexp_matching_top):
99885         (build_trtable, group_nodes_into_DFAstates):
99886         Likewise.
99887         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
99888         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
99889         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
99890         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
99891         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
99892         * lib/regcomp.c (optimize_subexps, lower_subexp):
99893         Work even if bitset_word has holes in its bitwise representation.
99894         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
99895         * lib/regexec.c (check_dst_limits_calc_pos_1,
99896         check_subexp_matching_top):
99897         Likewise.
99898         * lib/regex_internal.c (re_string_reconstruct):
99899         Don't assume UCHAR_MAX == 255.
99900         * lib/regex_internal.h (bitset_set_all): Likewise.
99901         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
99902         All uses changed.
99903         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
99904         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
99905         All uses changed.
99906         (BITSET_WORD_MAX): New macro.
99907         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
99908         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
99909         (bitset_empty, bitset_copy):
99910         Prefer sizeof (bitset) to multiplying it out ourselves.
99911         (bitset_not_merge): Remove; unused.
99912         (bitset_contain): Return bool, not unsigned int with one bit on.
99913         All callers changed.
99914         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
99915         alignment than re_node_set; do this by defining a new internal
99916         type struct dests_alloc and using it to allocate memory.
99918 2005-09-05  Bruno Haible  <bruno@clisp.org>
99920         * gnulib-tool (func_import): Fix comparison in handling of symbolic
99921         links.
99923 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
99925         * modules/size_max (Makefile.am): Add size_max.h
99927 2005-09-04  Derek Price  <derek@ximbiot.com>
99929         * gnulib-tool (func_import): Fix reversed $symbolic logic.
99931 2005-09-03  Simon Josefsson  <jas@extundo.com>
99933         * gnulib-tool: Fix typo.
99935 2005-09-03  Simon Josefsson  <jas@extundo.com>
99937         * config/srclist.txt: Add glibc bug 1293.
99939 2005-09-03  Derek Price  <derek@ximbiot.com>
99941         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
99942         From Larry Jones <lawrence.jones@ugs.com>.
99944 2005-09-02  Simon Josefsson  <jas@extundo.com>
99946         * modules/socklen: New file.
99948 2005-09-02  Simon Josefsson  <jas@extundo.com>
99950         * modules/havelib: New module.
99952         * modules/gettext, modules/iconv, modules/lock, modules/readline:
99953         Use havelib.
99955 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
99957         Check for arithmetic overflow when calculating sizes, to prevent
99958         some buffer-overflow issues.  These patches are conservative, in the
99959         sense that when I couldn't determine whether an overflow was possible,
99960         I inserted a run-time check.
99961         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
99962         macros.
99963         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
99964         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
99965         (re_xnrealloc, re_x2nrealloc): New inline functions.
99966         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
99967         parse_bracket_exp):
99968         (build_equiv_class, build_charclass): Check for arithmetic overflow
99969         in size expression calculations.
99970         * lib/regex_internal.c (re_string_realloc_buffers):
99971         (build_wcs_upper_buffer, re_node_set_add_intersect):
99972         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
99973         (re_dfa_add_node, register_state): Likewise.
99974         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
99975         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
99976         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
99977         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
99979 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
99981         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
99982         m4/ulonglong.m4.  Problem reported by Martin Lambers.
99984 2005-09-02  Bruno Haible  <bruno@clisp.org>
99986         Support for lib vs. lib64 distinction on biarch platforms.
99987         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
99988         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
99989         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
99991 2005-09-02  Bruno Haible  <bruno@clisp.org>
99993         * gnulib-tool (import): In the other first-use case, provide defaults
99994         as well.
99996 2005-09-02  Bruno Haible  <bruno@clisp.org>
99998         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
99999         patches not yet found in the latest gettext release.
100001 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100003         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
100004         to avoid a collision with bits/local_lim.h in glibc.
100005         All uses changed.  Problem reported by Dmitry V. Levin in
100006         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
100008         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
100009         bugs in int versus size_t comparisons.
100010         (re_string_context_at): Fix bug where the code assumed that
100011         Idx is signed.
100013         Use bool where appropriate.
100014         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
100015         All callers changed.
100016         (calc_eclosure_iter): Likewise, for ROOT arg.
100017         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
100018         (build_charclass_op): Likewise, for NON_MATCH arg.
100019         * lib/regex_internal.c (re_string_allocate, re_string_construct):
100020         (re_string_construct_common): Likewise, for ICASE arg.
100021         * lib/regexec.c (re_search_2_stub, re_search_stub):
100022         Likewise, for RET_LEN arg.
100023         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
100024         (set_regs): Likewise, for FL_BACKTRACK arg.
100025         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
100026         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
100027         (calc_eclosure_iter, parse_bracket_exp):
100028         Use bool for internal variables that are booleans.
100029         * lib/regexec.c (re_search_internal, check_matching,
100030         proceed_next_node):
100031         (set_regs, build_sifted_states, sift_states_bkref):
100032         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
100033         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100034         (find_collation_sequence_value):
100035         Likewise.
100036         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
100037         (re_node_set_compare):
100038         Return bool, not int. All callers changed.
100039         * lib/regexec.c (check_halt_node_context, check_dst_limits):
100040         (build_trtable, check_node_accept): Likewise.
100041         * lib/regex_internal.h: Include stdbool.h.
100043         Fix bugs uncovered when converting to bool.
100044         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
100045         failure instead of charging ahead blindly.
100046         * lib/regex_internal.c (register_state): Likewise.
100047         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
100048         for freeing internal storage.
100049         (group_nodes_into_DFA_states): Use unsigned int, not int, for
100050         bitset pieces used as boolean, to avoid undefined behavior
100051         on hosts that do int overflow checking.
100053 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100055         * config/srclist.txt: Add glibc bugs 1285-1287.
100057 2005-09-01  Jim Meyering  <jim@meyering.net>
100059         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
100060         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
100061         Require gl_STAT_MACROS, too.
100063 2005-09-01  Bruno Haible  <bruno@clisp.org>
100065         * gnulib-tool (import): In the first-use case, provide defaults.
100067 2005-09-01  Bruno Haible  <bruno@clisp.org>
100069         * gnulib-tool (func_import): Remove the .tmp files.
100071 2005-09-01  Bruno Haible  <bruno@clisp.org>
100073         * gnulib-tool (func_import): Fix handling of symbolic links.
100075 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100077         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
100078         old glibc regex code mishandles strings longer than 2**31 bytes.
100079         This patch fixes this when the regex code is used in gnulib
100080         (i.e., outside glibc).
100082         This patch should not affect the use of the regex code inside
100083         glibc.  No doubt this problem also needs to be handled for glibc
100084         as well, but the result will be an incompatible change to the
100085         glibc ABI, and the old ABI will have to be supported too.  That
100086         can be the subject for another patch.
100088         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
100089         governing whether the rest of this patch is active.  By default,
100090         the macro is disabled and the patch has no effect.
100091         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
100092         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
100093         (struct re_pattern_buffer, re_search, re_search_2, re_match):
100094         (re_match_2, re_set_registers): Use the new types.
100095         * lib/regex_internal.h (Idx, re_hashval_t): New types.
100096         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
100097         New macros.
100098         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
100099         (re_string_context_at, bin_tree_t, re_dfastate_t):
100100         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
100101         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
100102         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
100103         (re_string_char_size_at, re_string_wchar_at):
100104         (re_string_elem_size_at):
100105         Use the new types and macros to port to 64-bit hosts.
100106         Use unsigned types for internal values, so that the code
100107         mostly works even for arrays larger than SSIZE_MAX.
100108         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
100109         (search_duplicated_node, calc_eclosure_iter, fetch_number):
100110         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
100111         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
100112         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
100113         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
100114         (calc_inveclosure, parse_dup_op, build_range_exp):
100115         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
100116         (fetch_number, create_token_tree, mark_opt_subexp):
100117         Likewise.
100118         * lib/regex_internal.c (re_string_construct_common,
100119         create_ci_newstate):
100120         (create_cd_newstate, re_string_allocate, re_string_construct):
100121         (re_string_realloc_buffers, build_wcs_upper_buffer):
100122         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100123         (re_string_reconstruct, re_string_peek_byte_case):
100124         (re_string_fetch_byte_case, re_string_context_at):
100125         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100126         (re_node_set_init_copy, re_node_set_add_intersect):
100127         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100128         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100129         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100130         (re_acquire_state, re_acquire_state_context, register_state):
100131         Likewise.
100132         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
100133         search_cur_bkref_entry):
100134         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
100135         (re_search_internal, re_search_2_stub, re_search_stub)
100136         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
100137         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
100138         (update_cur_sifted_state, check_dst_limits):
100139         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100140         (check_subexp_limits, sift_states_bkref, merge_state_array):
100141         (check_subexp_matching_top, get_subexp, get_subexp_sub):
100142         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
100143         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100144         (expand_bkref_cache, check_node_accept_bytes):
100145         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
100146         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
100147         (acquire_init_state_context, check_halt_node_context):
100148         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
100149         (sift_states_backward, clean_state_log_if_needed):
100150         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
100151         (find_recover_state, transit_state_sb, transit_state_mb):
100152         (transit_state_bkref, build_trtable, match_ctx_clean):
100153         Likewise.
100154         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
100155         to work around an assumption that REG_MISSING is negative.
100157         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
100158         (seek_collating_symbol_entry) [defined _LIBC]:
100159         (lookup_collation_sequence_value) [defined _LIBC]:
100160         (build_range_exp, build_collating_symbol) [defined _LIBC]:
100161         Use prototypes rather than old-style function definitions.
100162         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
100163         (transit_state_sb) [0]:
100164         (find_collation_sequence_value) [defined _LIBC]: Likewise.
100166         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
100167         rm_eo.
100169         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
100170         (optimize_subexps, lower_subexp):
100171         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
100172         since the signed shift might overflow.  Use 1u<<31 instead.
100173         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100174         Likewise.
100175         * lib/regexec.c (check_dst_limits_calc_pos_1,
100176         check_subexp_matching_top): Likewise.
100178         * lib/regcomp.c (optimize_subexps, lower_subexp):
100179         Use CHAR_BIT rather than 8, for clarity.
100180         * lib/regexec.c (check_dst_limits_calc_pos_1):
100181         (check_subexp_matching_top): Likewise.
100182         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
100183         have to worry about portability issues when shifting it left.
100184         Remove no-longer-needed test for table_size > 0.
100185         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
100186         in a word, as the resulting behavior is undefined.
100187         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
100188         in one case, a <= should have been an <, and in another case the
100189         whole test was missing.
100190         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
100191         the standard name CHAR_BIT.
100192         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
100193         this is not true on one's complement and signed-magnitude hosts.
100195         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
100196         next_last_offset.
100197         (struct re_dfa_t): Remove unused member states_alloc.
100198         * lib/regcomp.c (init_dfa): Don't initialize unused members.
100200 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100202         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
100203         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
100204         and large-file glibc and in 32-bit large-file Solaris.
100206 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100208         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
100209         lengths fit in regoff_t; this isn't true if regoff_t is the same
100210         width as size_t.
100211         * lib/regex.c (re_search_internal): 5th arg is LAST_START
100212         (= START + RANGE) instead of RANGE.  This avoids overflow
100213         problems when regoff_t is the same width as size_t.
100214         All callers changed.
100215         (re_search_2_stub): Check for overflow when adding the
100216         sizes of the two strings.
100217         (re_search_stub): Check for overflow when adding START
100218         to RANGE; if it occurs, substitute the extreme value.
100220 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100222         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
100224 2005-08-31  Jim Meyering  <jim@meyering.net>
100226         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
100227         a pointer-to-const.
100228         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
100229         (register_state): Likewise.
100230         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
100231         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100232         (group_nodes_into_DFAstates): Likewise.
100234 2005-08-31  Jim Meyering  <jim@meyering.net>
100236         * check-module: Add a FIXME comment.
100238 2005-08-31  Eric Blake  <ebb9@byu.net>
100240         * modules/unistd-safer (Files): Add unistd--.h.
100241         * modules/stdio-safer (Files): Add stdio--.h.
100243 2005-08-31  Derek Price  <derek@ximbiot.com>
100245         * lib/getdelim.c (getdelim): Return EOF on EOF.
100246         Reported by Larry Jones <lawrence.jones@ugs.com>.
100248 2005-08-31  Bruno Haible  <bruno@clisp.org>
100250         Avoid unnecessary diffs in the generated lib/Makefile.am.
100251         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
100252         the generated files.
100253         (func_import): Don't set cmd.
100255 2005-08-31  Bruno Haible  <bruno@clisp.org>
100257         * lib/strstr.c: Include <stddef.h>, for NULL.
100258         * lib/strcasestr.c: Likewise.
100259         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100261 2005-08-31  Bruno Haible  <bruno@clisp.org>
100263         * gnulib-tool: New option --macro-prefix.
100264         (func_import): Use macro_prefix.
100265         (import): Handle option --macro-prefix.
100267 2005-08-31  Bruno Haible  <bruno@clisp.org>
100269         * gnulib-tool (import): Rename most ac_* variables to cached_*.
100270         Also use new variables cached_lgpl, cached_libtool.
100272 2005-08-31  Bruno Haible  <bruno@clisp.org>
100274         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
100275         always instantiating them.
100277 2005-08-31  Bruno Haible  <bruno@clisp.org>
100279         * gnulib-tool (func_import): Read the previous cached settings
100280         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
100281         earlier added by gnulib but are now dropped. Warn when a gnulib file
100282         overwrites a non-gnulib file.
100284 2005-08-31  Bruno Haible  <bruno@clisp.org>
100286         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
100287         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
100288         projects that don't keep autogenerated files in CVS. Put into
100289         actioncmd only the specified modules, not the transitive closure.
100291 2005-08-31  Bruno Haible  <bruno@clisp.org>
100293         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
100294         Create directories that shall be filled.
100295         (import): Don't look for gl_* macros in configure.ac. Recurse across
100296         all directories containing a gnulib-cache.m4 files, if meaningful.
100298 2005-08-31  Bruno Haible  <bruno@clisp.org>
100300         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
100301         (import): Set seen_libtool when we see gl_LIBTOOL.
100303 2005-08-31  Bruno Haible  <bruno@clisp.org>
100305         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
100306         declaration macro definitions from generated gnulib.m4.
100308 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
100310         * lib/iconvme.h: Add prototype for iconv_alloc.
100312 2005-08-29  Simon Josefsson  <jas@extundo.com>
100314         * lib/iconvme.c: Fix errno.
100316 2005-08-29  Bruno Haible  <bruno@clisp.org>
100318         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
100319         that it works when the directory contains spaces.
100321 2005-08-29  Bruno Haible  <bruno@clisp.org>
100323         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
100325 2005-08-29  Bruno Haible  <bruno@clisp.org>
100327         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
100328         Emit more advice.
100330 2005-08-29  Bruno Haible  <bruno@clisp.org>
100331         and Stepan Kasal  <kasal@ucw.cz>
100333         * check-module: If more parameters are given, check each of them
100334         separately; add more exceptions, as noted by Jim Meyering.
100335         (check_module): New procedure.
100336         (%exempt_header): Now contains all exceptions.
100338 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
100340         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
100342 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
100344         * lib/iconvme.c: Split iconv_string into iconv_alloc.
100346 2005-08-28  Bruno Haible  <bruno@clisp.org>
100348         * m4/gnulib-tool.m4: New file.
100350 2005-08-27  Jim Meyering  <jim@meyering.net>
100352         * modules/unistd-safer (Files): Add pipe-safer.c.
100353         * modules/fcntl-safer (Files): Add creat-safer.c.
100355 2005-08-27  Jim Meyering  <jim@meyering.net>
100357         * m4/stdlib-safer.m4: New file.  From coreutils.
100358         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
100359         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
100360         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
100361         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
100362         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
100364 2005-08-27  Jim Meyering  <jim@meyering.net>
100366         * lib/fopen-safer.c: Merge minor changes from coreutils.
100367         * lib/dup-safer.c: Likewise.
100368         * lib/fd-safer.c: Likewise.
100370         Merge from coreutils.
100371         * lib/stdio--.h: New file.
100372         * lib/stdlib--.h: New file.
100373         * lib/mkstemp-safer.c: New file.
100375         GNU tar needs these.
100376         * lib/pipe-safer.c: New file.
100377         * lib/creat-safer.c: New file.
100378         * lib/fcntl--.h (creat): Define to creat_safer.
100379         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
100380         * lib/unistd--.h (pipe): Define to pipe_safer.
100381         * lib/unistd-safer.h: Declare pipe_safer.
100383 2005-08-26  Simon Josefsson  <jas@extundo.com>
100385         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
100386         Haible <bruno@clisp.org>.
100388 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
100390         * lib/regex_internal.h: Remove all references to
100391         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
100392         or better.
100393         (bitset_not, bitset_merge, bitset_not_merge):
100394         (bitset_mask, re_string_allocate, re_string_construct):
100395         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
100396         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
100397         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
100398         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
100399         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100400         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100401         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
100402         (re_acquire_state_context):
100403         Remove unnecessary forward decls.
100404         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
100405         Put __attribute at function definition,
100406         now that the function decl has been removed.
100407         * lib/regex_internal.c (re_string_peek_byte_case):
100408         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
100409         Likewise.
100411 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
100413         * m4/regex.m4: Add AC_PREREQ(2.50).
100414         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
100416 2005-08-25  Simon Josefsson  <jas@extundo.com>
100418         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
100419         __fsetlocking.
100421 2005-08-25  Simon Josefsson  <jas@extundo.com>
100423         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
100424         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
100425         GLIBC specific code.
100427 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100429         Make regex safe for g++.  This fixes one real bug (an "err"
100430         that should have been "*err").  g++ problem reported by
100431         Sam Steingold.
100432         * lib/regex_internal.h (re_calloc): New macro, consistent with
100433         re_malloc etc.  All callers of calloc changed to use re_calloc.
100434         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
100435         not int.  All callers changed.
100436         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
100437         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
100438         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
100439         (find_recover_state): Change "err" to "*err"; this fixes what
100440         appears to be a real bug.
100441         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
100442         versus int.
100444 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100446         * modules/regex (Depends-on): Add malloc, since the code
100447         assumes that !malloc(0) means failure.
100449 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100451         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
100453         alloca modernization/simplification for regex.
100454         * lib/regex.c: Remove portability cruft for alloca.  This no longer
100455         needs to be at the start of the file, and can be moved into
100456         regex_internal.h and simplified.
100457         * lib/regex_internal.h: Include <alloca.h>.
100458         (__libc_use_alloca) [!defined _LIBC]: New macro.
100459         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
100460         now works outside glibc.
100462 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100464         * config/srclist.txt: Add glibc bugs 1241, 1245.
100466 2005-08-25  Jim Meyering  <jim@meyering.net>
100468         * lib/open-safer.c: Include <config.h>.
100469         Otherwise, we'd lose LARGEFILE support in any file using
100470         e.g. "fcntl--.h"
100472 2005-08-25  Bruno Haible  <bruno@clisp.org>
100474         * m4/minmax.m4: Require autoconf 2.52.
100475         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
100476         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
100477         alternatives of translit over the alphabet.
100478         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
100480 2005-08-24  Simon Josefsson  <jas@extundo.com>
100482         * tests/test-getpass.c: New file.
100484 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100486         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
100487         for GNU regex features.
100489 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100491         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
100492         * lib/regex.h (regerror): Likewise.
100494         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
100495         requires this.  (The code never needed it.)
100497         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
100498         All uses of recently-renamed identifiers changed to use the new,
100499         POSIX-compliant names.  The code will build and run just fine
100500         without these changes, but it's better to eat our own dog food
100501         and use the standard-conforming names.
100503         * lib/regex.h: Fix a multitude of POSIX name space violations.
100504         These changes have an effect only for programs that define
100505         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
100506         do not change anything for programs compiled in the normal way.
100507         Also, there is no effect on the ABI.
100509         (_REGEX_SOURCE): New macro.
100510         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
100511         defined and _GNU_SOURCE is not; this fixes a name space violation.
100513         Rename the following macros to obey POSIX requirements.
100514         The old names are still visible as macros if _REGEX_SOURCE is defined.
100515         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
100516         RE_BACKSLASH_ESCAPE_IN_LISTS.
100517         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
100518         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
100519         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
100520         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
100521         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
100522         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
100523         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
100524         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
100525         (REG_INTERVALS): renamed from RE_INTERVALS.
100526         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
100527         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
100528         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
100529         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
100530         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
100531         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
100532         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
100533         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
100534         RE_UNMATCHED_RIGHT_PAREN_ORD.
100535         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
100536         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
100537         (REG_DEBUG): renamed from RE_DEBUG.
100538         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
100539         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
100540         unusual, since we can't clash with the POSIX REG_ICASE.
100541         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
100542         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
100543         (REG_NO_SUB): renamed from RE_NO_SUB.
100544         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
100545         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
100546         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
100547         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
100548         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
100549         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
100550         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
100551         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
100552         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
100553         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
100554         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
100555         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
100556         RE_SYNTAX_POSIX_MINIMAL_BASIC.
100557         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
100558         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
100559         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
100560         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
100561         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
100562         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
100563         (REG_FIXED): Renamed from REGS_FIXED.
100564         (REG_NREGS): Renamed from RE_NREGS.
100566         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
100567         of other REG_* macros, since POSIX says the user is allowed to
100568         #undef these macros selectively.
100570         (reg_errcode_t): Update comment stating what other tables need
100571         to be consistent.
100573         Rename the following enum values to obey POSIX requirements.
100574         The old names are still visible as macros.
100575         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
100576         is not defined, since GNU is supposed to be a superset of POSIX as
100577         much as possible, and since we want reg_errcode_t to be a signed
100578         type for implementation consistency.
100579         (_REG_NOERROR): Renamed from REG_NOERROR.
100580         (_REG_NOMATCH): Renamed from REG_NOMATCH.
100581         (_REG_BADPAT): Renamed from REG_BADPAT.
100582         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
100583         (_REG_ECTYPE): Renamed from REG_ECTYPE.
100584         (_REG_EESCAPE): Renamed from REG_EESCAPE.
100585         (_REG_ESUBREG): Renamed from REG_ESUBREG.
100586         (_REG_EBRACK): Renamed from REG_EBRACK.
100587         (_REG_EPAREN): Renamed from REG_EPAREN.
100588         (_REG_EBRACE): Renamed from REG_EBRACE.
100589         (_REG_BADBR): Renamed from REG_BADBR.
100590         (_REG_ERANGE): Renamed from REG_ERANGE.
100591         (_REG_ESPACE): Renamed from REG_ESPACE.
100592         (_REG_BADRPT): Renamed from REG_BADRPT.
100593         (_REG_EEND): Renamed from REG_EEND.
100594         (_REG_ESIZE): Renamed from REG_ESIZE.
100595         (_REG_ERPAREN): Renamed from REG_ERPAREN.
100596         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
100597         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
100598         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
100599         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
100601         (_REG_RE_NAME, _REG_RM_NAME): New macros.
100602         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
100603         changed.  But support the old name if the new one is not defined
100604         and if _REGEX_SOURCE.
100606         Change the following member names in struct re_pattern_buffer.
100607         The old names are still supported if !_REGEX_SOURCE.
100608         The new names are always supported, regardless of _REGEX_SOURCE.
100609         (re_buffer): Renamed from buffer.
100610         (re_allocated): Renamed from allocated.
100611         (re_used): Renamed from used.
100612         (re_syntax): Renamed from syntax.
100613         (re_fastmap): Renamed from fastmap.
100614         (re_translate): Renamed from translate.
100615         (re_can_be_null): Renamed from can_be_null.
100616         (re_regs_allocated): Renamed from regs_allocated.
100617         (re_fastmap_accurate): Renamed from fastmap_accurate.
100618         (re_no_sub): Renamed from no_sub.
100619         (re_not_bol): Renamed from not_bol.
100620         (re_not_eol): Renamed from not_eol.
100621         (re_newline_anchor): Renamed from newline_anchor.
100623         Change the following member names in struct re_registers.
100624         The old names are still supported if !_REGEX_SOURCE.
100625         The new names are always supported, regardless of _REGEX_SOURCE.
100626         (rm_num_regs): Renamed from num_regs.
100627         (rm_start): Renamed from start.
100628         (rm_end): Renamed from end.
100630         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
100631         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
100632         Prepend __ to parameter names.
100634         Undo yesterday's changes.
100636 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100638         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
100639         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
100640         lib/regex.c.
100642 2005-08-24  Jim Meyering  <jim@meyering.net>
100644         Sync from coreutils.
100645         * m4/fcntl-safer.m4: New file.
100647         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
100648         and object files for this module.
100650 2005-08-24  Jim Meyering  <jim@meyering.net>
100652         Sync from coreutils.
100653         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
100655 2005-08-24  Jim Meyering  <jim@meyering.net>
100657         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
100658         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
100660 2005-08-24  Jim Meyering  <jim@meyering.net>
100662         * modules/fcntl-safer: New module.
100663         * modules/fts (Depends-on): Add fcntl-safer.
100664         * MODULES.html.sh (File descriptor based Input/Output):
100665         Add fcntl-safer.
100667 2005-08-24  Bruno Haible  <bruno@clisp.org>
100669         Support for unit test modules.
100670         * modules/README: Mention tests modules.
100671         * modules/TEMPLATE-TESTS: New file.
100672         * gnulib-tool: New options --extract-tests-module, --with-tests and
100673         --tests-base (unused for the moment).
100674         (testsbase, inctests): New variables.
100675         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
100676         (func_verify_module): Exclude TEMPLATE-TESTS.
100677         (func_verify_nontests_module, func_verify_tests_module): New functions.
100678         (func_get_dependencies): Add implicit dependency for tests modules.
100679         (func_get_tests_module): New function.
100680         (func_modules_transitive_closure): When --with-tests was specified,
100681         include the unit tests as well, unless explicitly avoided.
100682         (func_emit_lib_Makefile_am): Ignore the tests modules here.
100683         (func_emit_tests_Makefile_am): New function.
100684         (func_create_testdir): When --with-tests was specified, emit a
100685         tests/ directory.
100686         * MODULES.html.sh (Future developments): Update.
100688 2005-08-24  Bruno Haible  <bruno@clisp.org>
100690         * modules/tls-tests: New file.
100691         * tests/test-tls.c: New file, from GNU gettext.
100693 2005-08-24  Bruno Haible  <bruno@clisp.org>
100695         * modules/lock-tests: New file.
100696         * tests/test-lock.c: New file, from GNU gettext.
100698 2005-08-24  Bruno Haible  <bruno@clisp.org>
100700         * lib/lock.h: Add multiple inclusion guard.
100701         * lib/tls.h: Add multiple inclusion guard.
100703 2005-08-24  Bruno Haible  <bruno@clisp.org>
100705         * gnulib-tool: Add support for the --aux-dir option to
100706         --create-testdir, --create-megatestdir, --test, --megatest.
100707         (func_create_testdir, func_create_megatestdir): Optionally emit a
100708         AC_CONFIG_AUX_DIR directive.
100709         (create-testdir, create-megatestdir, test, megatest): Provide a
100710         default value for $auxdir.
100712 2005-08-24  Bruno Haible  <bruno@clisp.org>
100714         * gnulib-tool (import): Use compound statement instead of subshell
100715         where possible.
100717 2005-08-24  Bruno Haible  <bruno@clisp.org>
100719         * gnulib-tool (import): Change --aux-dir default to "build-aux".
100721 2005-08-24  Bruno Haible  <bruno@clisp.org>
100723         * gnulib-tool (func_version): Update.
100725 2005-08-24  Bruno Haible  <bruno@clisp.org>
100727         * gnulib-tool (func_import, func_create_testdir,
100728         func_create_megatestdir): Quote all autoconf macro arguments.
100730 2005-08-24  Bruno Haible  <bruno@clisp.org>
100732         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
100733         option --force, because --force causes the aclocal.m4 of each
100734         subdirectory to be newer than the corresponding config.h.in.
100736 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100738         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
100739         All contents moved to gl_REGEX.
100740         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
100741         assume that it does.
100743 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100745         * lib/regex.h (REG_NOSYS)
100746         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
100747         Define, since POSIX requires it as of 2001.
100748         (_REG_ENOSYS)
100749         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
100750         New private symbol, used to keep the enum signed in all cases.
100751         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
100752         Youngman in
100753         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
100755         * lib/regex_internal.c (re_string_skip_chars, register_state):
100756         (calc_state_hash):
100757         Remove forward decls; no longer needed now that we use prototypes.
100758         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
100759         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
100760         (clean_state_log_if_needed): Likewise.
100762 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100764         * config/srclist.txt: Add glibc bugs 1231-1233.
100766 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100768         Fix problems reported by Sam Steingold in
100769         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
100770         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
100771         assumed that reg_errcode_t is a signed type, which is not
100772         necessarily true if _XOPEN_SOURCE is not defined.
100773         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
100774         since some compilers warn about it otherwise.
100776 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100778         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
100779         (init_word_char, create_initial_state, duplicate_node_closure):
100780         (fetch_token, peek_token_bracket, build_range_exp):
100781         (build_collating_symbol): Remove forward decls; no longer needed
100782         now that we use prototypes.
100784         * lib/regcomp.c:
100785         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
100786         (re_compile_fastmap_iter, regcomp, regerror, regfree):
100787         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
100788         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
100789         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
100790         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
100791         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
100792         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
100793         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
100794         (build_range_exp, build_collating_symbol, parse_bracket_exp):
100795         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
100796         (build_charclass, build_charclass_op, fetch_number, create_tree):
100797         (create_token_tree, mark_opt_subexp, duplicate_tree):
100798         Use prototypes rather than old-style definitions.
100800         * lib/regex_internal.c:
100801         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
100802         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
100803         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100804         (re_string_reconstruct, re_string_peek_byte_case):
100805         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
100806         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100807         (re_node_set_init_copy, re_node_set_add_intersect):
100808         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100809         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100810         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100811         (re_acquire_state, re_acquire_state_context, register_state):
100812         (create_ci_newstate, create_cd_newstate, free_state):
100813         Likewise.
100814         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
100815         re_search_2):
100816         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
100817         (re_search_internal, prune_impossible_nodes):
100818         (acquire_init_state_context, check_matching, static):
100819         (check_halt_node_context, check_halt_state_context, proceed_next_node):
100820         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
100821         (update_regs, sift_states_backward, build_sifted_states):
100822         (clean_state_log_if_needed, merge_state_array):
100823         (update_cur_sifted_state, add_epsilon_src_nodes):
100824         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
100825         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
100826         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
100827         (find_recover_state, check_subexp_matching_top, transit_state_mb):
100828         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
100829         (check_arrival, check_arrival_add_next_nodes):
100830         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100831         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100832         (check_node_accept_bytes, check_node_accept, extend_buffers):
100833         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
100834         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
100835         (sift_ctx_init):
100836         Likewise.
100838         * lib/regex_internal.h:
100839         (re_string_allocate, re_string_construct, re_string_reconstruct):
100840         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
100841         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
100842         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
100843         (re_string_context_at, re_string_peek_byte_case):
100844         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
100845         is defined, since we now use prototypes always.
100847         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
100848         C89 or better.  All uses removed.
100850 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100852         * config/srclist.txt: Add glibc bugs 1220-1227.
100854 2005-08-20  Jim Meyering  <jim@meyering.net>
100856         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
100857         of unused local, dfa.
100859 2005-08-20  Bruno Haible  <bruno@clisp.org>
100861         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
100863 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100865         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
100866         (re_node_set_insert_last, re_dfa_add_node):
100867         Rename local variables to avoid GCC shadowing warnings.
100869 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100871         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
100872         [defined lint]: Suppress bogus uninitialized-variable warnings.
100874         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
100875         and let the caller return REG_ESPACE if out of space.  This
100876         removes an uninitialied-variable warning with GCC 4.0.1, and also
100877         avoids taking the address of a local variable.  All callers
100878         changed.
100880 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100882         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
100883         $LIBCSRC/posix/regexec.c.
100884         Add glibc bug 1217 for regcomp.c.
100886 2005-08-19  Jim Meyering  <jim@meyering.net>
100888         * lib/regexec.c (proceed_next_node): Redo local variables to
100889         avoid GCC shadowing warnings.
100891 2005-08-18  Bruno Haible  <bruno@clisp.org>
100893         * lib/strstr.c (strstr): Fix return value in multibyte case.
100894         * lib/strcasestr.c (strcasestr): Likewise.
100896 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
100898         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
100900 2005-08-17  Jim Meyering  <jim@meyering.net>
100902         Make the %s format (seconds since the epoch) work for a negative
100903         number and when used with a zero-padded field width, e.g. %015s.
100905         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
100906         label so that it precedes the code to set `digits'.  Otherwise,
100907         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
100908         print `00-22'.  Now, it prints `-0022', as it should.
100910 2005-08-17  Bruno Haible  <bruno@clisp.org>
100912         * modules/strstr (Files): Add m4/mbrtowc.m4.
100913         (Depends-on): Add mbuiter.
100915 2005-08-17  Bruno Haible  <bruno@clisp.org>
100917         * modules/strcasestr: New file.
100918         * MODULES.html.sh (String handling, based on ANSI C 89): Add
100919         strcasestr.
100921 2005-08-17  Bruno Haible  <bruno@clisp.org>
100923         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
100925 2005-08-17  Bruno Haible  <bruno@clisp.org>
100927         * modules/mbuiter: New file.
100928         * MODULES.html.sh (Extended multibyte and wide character utilities):
100929         Add mbuiter.
100931 2005-08-17  Bruno Haible  <bruno@clisp.org>
100933         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
100934         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
100936 2005-08-17  Bruno Haible  <bruno@clisp.org>
100938         * m4/strcasestr.m4: New file.
100940 2005-08-17  Bruno Haible  <bruno@clisp.org>
100942         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
100943         * lib/strstr.c: Completely rewritten, with multibyte locale support.
100945 2005-08-17  Bruno Haible  <bruno@clisp.org>
100947         * lib/strcasestr.h: New file.
100948         * lib/strcasestr.c: New file.
100950 2005-08-17  Bruno Haible  <bruno@clisp.org>
100952         * lib/strcasecmp.c: Use mbuiter.h.
100954 2005-08-17  Bruno Haible  <bruno@clisp.org>
100956         * lib/mbuiter.h: New file.
100958 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
100960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
100961         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
100962         and gl_GETOPT are both invoked via different paths (as happens
100963         with GNU tar CVS because it uses both argp and getopt), the former
100964         wins.
100966 2005-08-16  Bruno Haible  <bruno@clisp.org>
100968         * modules/tls: New file.
100969         * MODULES.html.sh (Multithreading): Add tls.
100971 2005-08-16  Bruno Haible  <bruno@clisp.org>
100973         * modules/strnlen1: New file.
100974         * MODULES.html.sh (String handling): Add strnlen1.
100976 2005-08-16  Bruno Haible  <bruno@clisp.org>
100978         * modules/strcase (Files): Add m4/mbrtowc.m4.
100979         (Depends-on): Add strnlen1, mbchar.
100981 2005-08-16  Bruno Haible  <bruno@clisp.org>
100983         * modules/mbiter: New file.
100984         * MODULES.html.sh (Extended multibyte and wide character utilities):
100985         Add mbiter.
100987 2005-08-16  Bruno Haible  <bruno@clisp.org>
100989         * modules/mbfile: New file.
100990         * MODULES.html.sh (Extended multibyte and wide character utilities):
100991         Add mbfile.
100993 2005-08-16  Bruno Haible  <bruno@clisp.org>
100995         * modules/mbchar: New file.
100996         * MODULES.html.sh (Extended multibyte and wide character utilities):
100997         New section.
100999 2005-08-16  Bruno Haible  <bruno@clisp.org>
101001         * m4/tls.m4: New file, from GNU gettext.
101003 2005-08-16  Bruno Haible  <bruno@clisp.org>
101005         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
101006         always.
101007         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
101009 2005-08-16  Bruno Haible  <bruno@clisp.org>
101011         * m4/mbiter.m4: New file.
101013 2005-08-16  Bruno Haible  <bruno@clisp.org>
101015         * m4/mbfile.m4: New file.
101017 2005-08-16  Bruno Haible  <bruno@clisp.org>
101019         * m4/mbchar.m4: New file.
101021 2005-08-16  Bruno Haible  <bruno@clisp.org>
101023         * lib/tls.h: New file, from GNU gettext.
101024         * lib/tls.c: New file, from GNU gettext.
101026 2005-08-16  Bruno Haible  <bruno@clisp.org>
101028         * lib/strnlen1.h: New file.
101029         * lib/strnlen1.c: New file.
101031 2005-08-16  Bruno Haible  <bruno@clisp.org>
101033         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
101034         (mbi_init): Update.
101035         (mbi_avail, mbi_advance): Let the iteration end before the terminating
101036         NUL byte, not after it.
101038 2005-08-16  Bruno Haible  <bruno@clisp.org>
101040         * lib/strcase.h (strcasecmp): Add note in comments.
101041         * lib/strncasecmp.c: Use code from strcasecmp.c.
101042         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
101043         (strcasecmp): Work correctly in multibyte locales.
101045 2005-08-16  Bruno Haible  <bruno@clisp.org>
101047         * lib/mbiter.h: New file.
101049 2005-08-16  Bruno Haible  <bruno@clisp.org>
101051         * lib/mbfile.h: New file.
101053 2005-08-16  Bruno Haible  <bruno@clisp.org>
101055         * lib/mbchar.h: New file.
101056         * lib/mbchar.c: New file.
101058 2005-08-16  Bruno Haible  <bruno@clisp.org>
101060         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
101061         the valid ones. Makes the comparison operations transitive:
101062         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
101063         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
101065 2005-08-15  Simon Josefsson  <jas@extundo.com>
101067         * modules/ssize_t (License): Change to 'unlimited'.
101069         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
101071 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101073         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
101074         Add comments for each pending glibc patch.
101076 2005-08-15  Bruno Haible  <bruno@clisp.org>
101078         * lib/regex.h (__restrict_arr): Don't define to __restrict if
101079         __cplusplus is defined.
101081 2005-08-14  Jim Meyering  <jim@meyering.net>
101083         Sync from coreutils.
101085         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
101086         Use the hash-table-based cycle-detection code not just when
101087         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
101088         Reported by James Youngman in
101089         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
101090         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
101091         FTS_TIGHT_CYCLE_CHECK.
101092         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
101093         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
101094         once again.
101095         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
101096         * lib/fts.c (fd_safer): Remove decl.
101097         Include fcntl--.h rather than unistd-safer.h
101098         (fts_safe_changedir): Don't call fd_safer; no longer needed
101099         now that we include fcntl--.h.
101101 2005-08-12  Simon Josefsson  <jas@extundo.com>
101103         * modules/getndelim2: Use ssize_t module.
101104         * modules/getnline: Likewise.
101105         * modules/safe-read: Likewise.
101106         * modules/xreadlink: Likewise.
101108         * modules/ssize_t: New file.
101110 2005-08-12  Simon Josefsson  <jas@extundo.com>
101112         * m4/readline.m4: Look for termcap, curses or ncurses if required.
101114 2005-08-12  Simon Josefsson  <jas@extundo.com>
101116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101117         ssize_t.
101119 2005-08-12  Simon Josefsson  <jas@extundo.com>
101121         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
101122         readline, getdelim and check_version.
101123         (Support for systems lacking ISO C 99: Sizes of integer types):
101124         Add size_max.
101126 2005-08-12  Bruno Haible  <bruno@clisp.org>
101128         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
101130 2005-08-11  Simon Josefsson  <jas@extundo.com>
101132         * modules/readline: New file.
101134         * modules/strnlen (Files): Add strnlen.h.
101136 2005-08-11  Simon Josefsson  <jas@extundo.com>
101138         * m4/readline.m4: New file.
101140 2005-08-11  Simon Josefsson  <jas@extundo.com>
101142         * lib/readline.h, readline.c: New file.
101144 2005-08-11  Simon Josefsson  <jas@extundo.com>
101146         * doc/gnulib.texi (Initial import, Finishing touches): Mention
101147         gl_AVOID.
101149 2005-08-11  Bruno Haible  <bruno@clisp.org>
101151         * lib/strnlen.h (strnlen): Change parameter name to match comment.
101153 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
101155         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
101157 2005-08-10  Simon Josefsson  <jas@extundo.com>
101159         * tests/test-iconvme.c: New file.
101161 2005-08-10  Simon Josefsson  <jas@extundo.com>
101163         * m4/strnlen.m4: New file.
101165         * m4/strndup.m4: Don't check for strnlen declaration, done in
101166         strnlen.m4.
101168 2005-08-10  Simon Josefsson  <jas@extundo.com>
101170         * lib/strndup.c: Use strnlen.h.
101172         * lib/strnlen.h: New file.
101174 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101176         * README: Typos.
101178 2005-08-02  Simon Josefsson  <jas@extundo.com>
101180         * modules/readline: New file.
101182 2005-08-02  Simon Josefsson  <jas@extundo.com>
101184         * modules/getdelim: New file.
101186         * modules/getline: Rewrite, don't use getndelim2.
101188 2005-08-02  Simon Josefsson  <jas@extundo.com>
101190         * m4/getline.m4: Separate out getdelim stuff into separate module.
101192         * m4/getdelim.m4: New file.
101194 2005-08-02  Simon Josefsson  <jas@extundo.com>
101196         * lib/getline.h, getline.c: Rewrite.
101198         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
101200 2005-07-31  Bruno Haible  <bruno@clisp.org>
101202         * lib/lock.h (gl_lock_initializer): New macro.
101203         (gl_lock_define_initialized): Use it.
101204         (gl_rwlock_initializer): New macro.
101205         (gl_rwlock_define_initialized): Use it.
101206         (gl_recursive_lock_initializer): New macro.
101207         (gl_recursive_lock_define_initialized): Use it.
101209 2005-07-30  Karl Berry  <karl@gnu.org>
101211         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
101212         Report from Ben Pfaff, regarding getopt.
101214 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
101216         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
101217         normal way.
101218         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
101219         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
101220         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
101221         (gl_GETOPT): Use the new macros.  Most of the implementation
101222         is moved to the new macros.  This is for programs like Emacs
101223         that don't want all the functionality of gl_GETOPT.
101225 2005-07-26  Bruno Haible  <bruno@clisp.org>
101227         * m4/lock.m4: Update from GNU gettext.
101229 2005-07-26  Bruno Haible  <bruno@clisp.org>
101231         * lib/lock.h: Update from GNU gettext.
101232         * lib/lock.c: Update from GNU gettext.
101234 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
101236         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
101237         obsolescent AC_TRY_RUN.  Include the default includes files, for
101238         'exit'.
101240 2005-07-24  Bruno Haible  <bruno@clisp.org>
101242         * modules/visibility: New file.
101243         * MODULES.html.sh (Misc): Add visibility.
101245 2005-07-24  Bruno Haible  <bruno@clisp.org>
101247         * m4/visibility.m4: New file.
101249 2005-07-24  Bruno Haible  <bruno@clisp.org>
101251         * doc/visibility.texi: New file.
101253 2005-07-22  Bruno Haible  <bruno@clisp.org>
101255         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
101256         $(ALLOCA_H), redundant through BUILT_SOURCES.
101257         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
101258         redundant through BUILT_SOURCES.
101259         * modules/byteswap (Makefile.am): Remove explicit dependency on
101260         $(BYTESWAP_H), redundant through BUILT_SOURCES.
101261         * modules/fnmatch (Makefile.am): Remove explicit dependency on
101262         $(FNMATCH_H), redundant through BUILT_SOURCES.
101263         * modules/getopt (Makefile.am): Remove explicit dependency on
101264         $(GETOPT_H), redundant through BUILT_SOURCES.
101265         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
101266         redundant through BUILT_SOURCES.
101267         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
101268         redundant through BUILT_SOURCES.
101269         * modules/stdbool (Makefile.am): Remove explicit dependency on
101270         $(STDBOOL_H), redundant through BUILT_SOURCES.
101271         * modules/stdint (Makefile.am): Remove explicit dependency on
101272         $(STDINT_H), redundant through BUILT_SOURCES.
101273         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
101274         Remove explicit dependency on $(SYSEXITS_H).
101275         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
101277 2005-07-18  Simon Josefsson  <jas@extundo.com>
101279         * lib/check-version.c (check_version): Accept identical versions too.
101281 2005-07-18  Bruno Haible  <bruno@clisp.org>
101283         * modules/lock: New file.
101284         * MODULES.html.sh (Multithreading): New section.
101286 2005-07-18  Bruno Haible  <bruno@clisp.org>
101288         * m4/lock.m4: New file, from GNU gettext.
101290 2005-07-18  Bruno Haible  <bruno@clisp.org>
101292         * lib/lock.h: New file, from GNU gettext.
101293         * lib/lock.c: New file, from GNU gettext.
101295 2005-07-18  Bruno Haible  <bruno@clisp.org>
101297         * lib/lock.h (gl_once_t): New type.
101298         (gl_once_define, gl_once): New macros.
101299         * lib/lock.c (fresh_once): New variable.
101300         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
101301         functions.
101303 2005-07-16  Simon Josefsson  <jas@extundo.com>
101305         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
101306         workaround, suggested by Bruno.
101308 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
101310         * modules/xalloc (Depends-on): Add xalloc-die.
101311         * modules/xvasprintf (Depends-on): Add xalloc-die.
101313 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
101315         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
101316         with a minor change.
101318 2005-07-15  Bruno Haible  <bruno@clisp.org>
101320         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
101321         When using lib/poll.c, define poll as rpl_poll.
101323 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
101325         * modules/argp (Depends-on): Remove unlocked-io.
101327 2005-07-14  Derek Price  <derek@ximbiot.com>
101329         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
101330         for glob symlink bug.
101332 2005-07-14  Bruno Haible  <bruno@clisp.org>
101334         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
101335         Instead, test for *_unlocked function declarations directly.
101337 2005-07-11  Simon Josefsson  <jas@extundo.com>
101339         * modules/size_max: New file.
101341         * modules/xsize: Depend on size_max module for size_max.m4.
101343 2005-07-11  Simon Josefsson  <jas@extundo.com>
101345         * lib/size_max.h: New file.
101347 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
101349         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
101350         copyright symbol and the year.
101351         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
101352         (version_etc_va): Use parameterized copyright notice.
101353         Reword to conform to the current GNU coding standards.
101355 2005-07-11  Karl Berry  <karl@gnu.org>
101357         * doc/gnulib.texi (Quoting): new node.
101358         (Initial import): more info, from Patrice.
101360 2005-07-11  Bruno Haible  <bruno@clisp.org>
101362         * gnulib-tool (func_usage): Document option --avoid.
101363         (Command line options): Handle --avoid.
101364         (func_acceptable): New function.
101365         (func_modules_transitive_closure): Use it.
101367 2005-07-11  Bruno Haible  <bruno@clisp.org>
101369         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
101370         Reported by Jim Meyering.
101372 2005-07-10  Bruno Haible  <bruno@clisp.org>
101374         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
101375         Needed when size_t is smaller than 'unsigned int'.
101376         Reported by Paul Eggert.
101378 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101380         * modules/argp (Depends-on): Add unlocked-io
101382 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101384         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
101385         block of defines.
101387 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
101389         * config/srclist.txt: Comment out regcomp.c, since we have a porting
101390         fix now.
101392 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
101393         and Paul Eggert  <eggert@cs.ucla.edu>
101395         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
101396         in wint_t, not wchar_t.  Remove now-unnecessary cast.
101398 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101400         * modules/regex (Files): Add lib/regex_internal.c,
101401         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
101402         (Depends-on): Add extensions.
101403         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
101405 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101407         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
101408         pathconf.
101409         * m4/same.m4 (gl_SAME): Likewise.
101410         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
101412         * m4/regex.m4: Adjust to new libc regex implementation.
101413         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
101414         all the .c and .h parts of (the new) regex.
101415         Quote the m4 stuff better.
101416         Check for RE_ICASE bug of old gnulib.
101417         Check for REG_STARTEND of recent libc.
101418         Rename local variables from jm_* to gl_*.
101419         Quote operand of "test -f".
101420         Say "recent enough" version of libc, not "version 2".
101421         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
101422         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
101423         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
101424         Remove check for btowc, isascii.
101425         Require AM_LANGINFO_CODESET.
101427 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101429         * lib/regex.c, regex.h: Sync from libc.
101430         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
101431         * lib/regexec.c:
101432         New files, synced from libc, except that regex_internal.h
101433         currently has a small porting fix.
101435 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101437         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
101438         regex_internal.c, regexec.c.
101439         Add regex_internal.h too, but as a comment, since the libc version
101440         is currently broken in gnulib mode.
101442 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
101444         Support programs like Emacs that use gnulib but not gettext.
101445         * MODULES.html.sh (Internationalization functions): Add gettext-h.
101446         * modules/gettext-h: New file.
101447         * modules/gettext (Files): Remove lib/gettext.h.
101448         (Depends-on): Add gettext-h.
101449         (Makefile.am): Remove lib_SOURCES.
101450         * modules/argmatch, modules/c-stack, modules/closeout:
101451         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
101452         * modules/execute, modules/file-type, modules/getaddrinfo:
101453         * modules/getopt, modules/human, modules/javacomp:
101454         * modules/javaexec, modules/mkdir-p, modules/obstack:
101455         * modules/openat, modules/pagealign_alloc, modules/pipe:
101456         * modules/quotearg, modules/regex, modules/rpmatch:
101457         * modules/unicodeio, modules/userspec, modules/version-etc:
101458         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
101459         * modules/xsetenv:
101460         Depend on gettext-h, not gettext.
101462 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
101464         * gnulib-tool (func_import): Add support for 'public domain' license.
101465         * modules/alloca, modules/atexit, modules/memmove:
101466         Now public domain, not GPL.
101467         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
101468         * modules/realloc, modules/strerror, modules/strtod:
101469         Now LGPL, not GPL.
101471 2005-07-05  Bruno Haible  <bruno@clisp.org>
101473         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
101474         autoconf CVS. Needed for mingw.
101476 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101478         Remove the dependency of the strftime module on the tzset module.
101479         * modules/strftime (Depends-on): Remove dependency on tzset.
101481 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101483         Remove the dependency of the strftime module on the tzset module.
101484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
101485         gl_FUNC_TZSET_CLOBBER.
101487 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101489         Remove the dependency of the strftime module on the tzset module.
101490         * lib/strftime.c (my_strftime)
101491         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
101492         Copy the input structure, to work around some of the bug with
101493         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
101494         Solaris releases, you should also use the tzset module, but we won't
101495         require it as a dependency any more since we don't want LGPLed code
101496         to depend on GPLed code.
101498 2005-07-02  Jim Meyering  <jim@meyering.net>
101500         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
101501         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
101502         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
101503         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
101505 2005-07-02  Jim Meyering  <jim@meyering.net>
101507         * lib/backupfile.c (backup_args): Change a `0' to NULL.
101509 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
101511         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
101512         declares only 'struct timespec;' (!).
101514 2005-07-01  Jim Meyering  <jim@meyering.net>
101516         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
101517         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
101518         * lib/save-cwd.c, tempname.c:
101519         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101520         and don't include <sys/file.h>).
101522 2005-06-29  Jim Meyering  <jim@meyering.net>
101524         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
101525         type name.  Use the variable name instead.
101526         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
101527         Likewise.
101529 2005-06-28  Simon Josefsson  <jas@extundo.com>
101531         * modules/check-version (Files): Add check-version.m4.
101533 2005-06-28  Simon Josefsson  <jas@extundo.com>
101535         * m4/check-version.m4: New file, suggested by Jim Meyering
101536         <jim@meyering.net>.
101538 2005-06-28  Simon Josefsson  <jas@extundo.com>
101540         * lib/check-version.h, lib/check-version.c: New files.
101542 2005-06-28  Simon Josefsson  <jas@extundo.com>
101544         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
101545         collision with global variable.  Better indentation.  Don't
101546         increment buffer pointer beyond buffer end.  Based on comments
101547         from Paul Eggert <eggert@cs.ucla.edu>.
101549         * lib/base64.h: Indent.
101551 2005-06-28  Simon Josefsson  <jas@extundo.com>
101553         * doc/gnulib.texi (Library version handling): New section.
101555 2005-06-28  Jim Meyering  <jim@meyering.net>
101557         * check-module (find_included_lib_files): Hard-code another
101558         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
101559         but modules/fts-lgpl (correctly) does not list those files.
101561         * modules/canonicalize (Files): Add lib/pathmax.h.
101563 2005-06-25  Simon Josefsson  <jas@extundo.com>
101565         * modules/check-version: New file.
101567 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
101569         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
101570         initializer of struct addrinfo, as an indication that we don't
101571         care how many members the structure has.
101573 2005-06-24  Derek Price  <derek@ximbiot.com>
101574         and Bruno Haible  <bruno@clisp.org>
101576         Remove stat module & update lstat.
101577         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
101578         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
101579         * m4/stat.m4: Remove this file.
101581 2005-06-24  Derek Price  <derek@ximbiot.com>
101582         and Bruno Haible  <bruno@clisp.org>
101584         Remove stat module & update lstat.
101585         * lib/stat.c: Remove this file...
101586         (slash_aware_lstat): ...moving this content and its support...
101587         * lib/lstat.c (rpl_lstat): ...into here.
101588         * lib/lstat.h: New file.
101590 2005-06-24  Derek Price  <derek@ximbiot.com>
101591         and Bruno Haible  <bruno@clisp.org>
101593         Remove stat module & update lstat.
101594         * config/srclist.txt (libc sources): Remove stat.
101596 2005-06-24  Derek Price  <derek@ximbiot.com>
101597         and Bruno Haible  <bruno@clisp.org>
101599         Remove stat module & update lstat.
101600         * MODULES.html.sh (stat): Remove.
101601         * MODULES.html: Regenerated.
101602         * modules/lstat (Description): Correct function name.
101603         (Files): Add "lstat.h".
101604         (Depends-on): Remove stat, add xalloc, stat-macros.
101605         * modules/stat: Remove this file.
101606         (Include): Add "lstat.h", remove <sys/stat.h>.
101608 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101610         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
101611         (ranged_convert): Don't save conversion in a temporary struct.
101612         This causes a warning with GCC 4.0.0, and anyway in the typical
101613         case it's not worth the extra 100 bytes or so of code.
101614         (ranged_convert, __mktime_internal): When calling a function via a
101615         pointer P, use P () rather than (*P) (), as we now assume C89 or
101616         better.
101618 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101620         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
101621         "who -r" failed to give output.  Problem reported by Tim Waugh.
101623         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
101624         (xcalloc): Use it to avoid needless tests.
101625         Problem reported by Jim Meyering.
101627 2005-06-20  Derek Price  <derek@ximbiot.com>
101629         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
101630         unnecessary for Autoconfs > 2.59c.
101632 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101634         * lib/argp.h (__option_is_short): Check upper limit of
101635         __key. Isprint() requires its argument to have the value
101636         of an unsigned char or EOF.
101638 2005-06-16  Jim Meyering  <jim@meyering.net>
101640         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
101641         when either N or S is zero.
101643 2005-06-16  Derek Price  <derek@ximbiot.com>
101645         * m4/bison.m4: Declare YACC & YFLAGS precious.
101647 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
101649         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
101650         multibyte string or pattern, fall back on unibyte matching.
101651         Problem reported by James Youngman.
101653 2005-06-08  Bruno Haible  <bruno@clisp.org>
101655         * modules/csharpcomp: New file.
101656         * MODULES.html.sh (C#): Add csharpcomp.
101658 2005-06-08  Bruno Haible  <bruno@clisp.org>
101660         * m4/csharpcomp.m4: New file, from GNU gettext.
101662 2005-06-08  Bruno Haible  <bruno@clisp.org>
101664         * lib/csharpcomp.h: New file, from GNU gettext.
101665         * lib/csharpcomp.c: New file, from GNU gettext.
101666         * lib/csharpcomp.sh.in: New file, from GNU gettext.
101668 2005-06-08  Bruno Haible  <bruno@clisp.org>
101670         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
101671         warning on mingw.
101673 2005-06-07  Derek Price  <derek@ximbiot.com>
101675         Sync from CVS.
101676         * lib/glob_.h: Indent nested #ifdef.
101678 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101680         Sync from coreutils.
101681         Use "file name" when talking about file names, instead of "filename"
101682         or "path", as per the GNU coding standards.
101683         * lib/mkdir-p.c: Renamed from makepath.c.
101684         (make_dir_parents): Renamed from make_path.  All callers changed.
101685         * lib/mkdir-p.h: Likewise.  All includers changed.
101686         * lib/filenamecat.c: Renamed from path-concat.c.
101687         (file_name_concat): Renamed from path_concat.  All callers changed.
101688         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
101689         * lib/filenamecat.h: Likewise.  All includers changed.
101690         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
101691         in comments or local variable names.
101692         * lib/basename.c: Likewise.
101693         * lib/canonicalize.c, canonicalize.h: Likewise.
101694         * lib/dirname.c, dirname.h: Likewise.
101695         * lib/euidaccess.c: Likewise.
101696         * lib/exclude.c: Likewise
101697         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
101698         * lib/fsusage.c, fsuage.h: Likewise.
101699         * lib/fts.c, fts_.h: Likewise.
101700         * lib/getcwd.c: Likewise.
101701         * lib/getloadavg.c: Likewise.
101702         * lib/mkstemp.c: Likewise.
101703         * lib/mountlist.c, mountlist.h: Likewise.
101704         * lib/openat.c, openat.h: Likewise.
101705         * lib/readlink-stub.c: Likewise.
101706         * lib/readutmp.c, readutmp.h: Likewise.
101707         * lib/rename.c: Likewise.
101708         * lib/rmdir.c: Likewise.
101709         * lib/same.c: Likewise.
101710         * lib/savedir.c: Likewise.
101711         * lib/stripslash.c: Likewise.
101712         * lib/tempname.c: Likewise.
101713         * lib/xreadlink.c: Likewise.
101714         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
101715         All uses changed.
101716         * lib/exclude.h: Likewise.
101718         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
101719         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101720         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
101721         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101722         * lib/pathmax.h: Include <limits.h> unconditionally, since other
101723         files have been getting away with it for years (MORE/BSD 4.3
101724         is extinct now).
101725         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
101726         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101728         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
101729         Define to 256, not 255, as per modern POSIX.
101731 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101733         Sync from coreutils.
101734         Use "file name" when talking about file names, instead of "filename"
101735         or "path", as per the GNU coding standards.
101736         * MODULES.html.sh: mkdir-p renamed from makepath.
101737         filenamecat renamed from path-concat.
101738         * modules/filenamecat: Renamed from modules/path-concat.
101739         (Files): filenamecat.h and filenamecat.c renamed from
101740         path-concat.h and path-concat.c.
101741         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
101742         (Include): filenamecat.h, not path-concat.h.
101743         * modules/mkdir-p: Renamed from modules/makepath.
101744         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
101745         makepath.c.
101746         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
101747         (Include): mkdir-p.h, not makepath.h.
101749 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101751         Sync from coreutils.
101752         * m4/mkdir-p.m4: Renamed from makepath.m4.
101753         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
101754         Rename files from makepath.c to mkdir-p.c, and from
101755         makepath.h to mkdir-p.h.
101756         * m4/filenamecat.m4: Renamed from path-concat.m4.
101757         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
101758         Rename files from path-concat.c to filenamecat.c,
101759         and from path-concat.h to filenamecat.h.
101760         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
101761         "file name" in local variables or comments.
101762         * m4/rename.m4: Likewise.
101764 2005-06-01  Bruno Haible  <bruno@clisp.org>
101766         * modules/csharpexec: New file.
101767         * MODULES.html.sh (C#): New section.
101769 2005-06-01  Bruno Haible  <bruno@clisp.org>
101771         * m4/csharp.m4: New file, from GNU gettext.
101772         * m4/csharpexec.m4: New file, from GNU gettext.
101774 2005-06-01  Bruno Haible  <bruno@clisp.org>
101776         * lib/csharpexec.h: New file, from GNU gettext.
101777         * lib/csharpexec.c: New file, from GNU gettext.
101778         * lib/csharpexec.sh.in: New file, from GNU gettext.
101780 2005-05-31  Derek Price  <derek@ximbiot.com>
101781             Paul Eggert  <eggert@cs.ucla.edu>
101783         Sync from cvs.
101784         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101786 2005-05-31  Derek Price  <derek@ximbiot.com>
101787             Paul Eggert  <eggert@cs.ucla.edu>
101789         Sync from cvs.
101790         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101792 2005-05-29  Derek Price  <derek@ximbiot.com>
101794         * config/srclist.txt (glob_.h, glob.c): Add these files.
101796 2005-05-29  Derek Price  <derek@ximbiot.com>
101798         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
101799         * modules/glob: New file.
101800         * modules/getlogin_r: Add link to POSIX spec in description.
101802 2005-05-29  Derek Price  <derek@ximbiot.com>
101803             Paul Eggert  <eggert@cs.ucla.edu>
101805         * m4/glob.m4: New file.
101807 2005-05-29  Derek Price  <derek@ximbiot.com>
101808             Paul Eggert  <eggert@cs.ucla.edu>
101810         * lib/glob_.h, lib/glob.c: New files.
101812 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101814         * modules/fts (Files): Remove m4/inttypes-pri.m4.
101815         * modules/fts-lgpl (Depends-on): Remove gettext.
101817 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101819         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
101820         and don't require gt_INTTYPES_PRI.
101822 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101824         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
101826         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
101827         the configuration hassle isn't worth it.
101828         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
101829         (LONGEST_MODIFIER, PRIuMAX): Remove.
101831 2005-05-27  Bruno Haible  <bruno@clisp.org>
101833         * lib/getlogin_r.h: Remove second include of <stddef.h>.
101835 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
101837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
101838         _POSIX_PTHREAD_SEMANTICS for Solaris.
101840 2005-05-25  Derek Price  <derek@ximbiot.com>
101842         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
101844 2005-05-25  Derek Price  <derek@ximbiot.com>
101845             Paul Eggert  <eggert@cs.ucla.edu>
101847         * modules/getlogin_r, m4/getlogin_r.m4: New files.
101848         * lib/getlogin_r.c, getlogin_r.h: New files.
101850 2005-05-25  Bruno Haible  <bruno@clisp.org>
101851             Derek Price  <derek@ximbiot.com>
101853         * lib/getlogin_r.h: Simplify API documentation.
101855 2005-05-23  Derek Price  <derek@ximbiot.com>
101857         * modules/minmax (Files): Add m4/minmax.m4.
101858         (configure.ac): Add gl_MINMAX.
101860 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
101862         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
101863         so that unistd-safer.h (GPL'ed code) need not be included.
101865 2005-05-22  Bruno Haible  <bruno@clisp.org>
101867         * m4/minmax.m4: New file.
101868         Based on a patch by Derek Price <derek@ximbiot.com>.
101870 2005-05-22  Bruno Haible  <bruno@clisp.org>
101872         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
101873         (INT64_MIN): Fix definition.
101874         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
101876         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
101877         NEED_SIGNED_INT_TYPES.
101879         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
101880         HAVE_SYSTEM_INTTYPES.
101882 2005-05-22  Bruno Haible  <bruno@clisp.org>
101884         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
101885         Also include <sys/param.h> if it defines MIN, MAX.
101886         Based on a patch by Derek Price <derek@ximbiot.com>.
101888 2005-05-21  Jim Meyering  <jim@meyering.net>
101890         * modules/fts (Files): Add m4/inttypes-pri.m4.
101891         (Depends-on): Add lstat and remove gettext.  Alphabetize.
101893 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101895         New fts module.
101896         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
101897         (setup_dir, free_dir): New functions.
101898         (enter_dir, leave_dir): Define trivial
101899         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
101900         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
101901         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
101902         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
101903         Move to fts-cycle.c.
101904         (fts_open): Use setup_dir.
101905         (fts_close): Use free_dir.
101906         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
101907         This adds a label and some gotos, but the alternatives were messier.
101908         Check for memory allocation failure when entering a dir.
101909         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
101910         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
101911         (FTS): New member fts_cycle, that is a union that contains the
101912         old active_dir_ht and cycle_state.  All uses changed to mention
101913         fts_cycle.ht and fts_cycle.state.
101914         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
101915         fts.c, with the following changes:
101916         (setup_dir, free_dir): New functions.
101917         (enter_dir): Now returns bool.  Return true if successful, false
101918         if memory exhausted.  All callers changed.
101919         Do not bother partly cleaning up on
101920         memory allocation failure; that is free_dir's job.
101921         However, free ad if hash_insert fails, to avoid memory leak.
101922         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
101923         fts->fts_options to see which union member to use.
101925 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
101928         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
101930 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101932         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
101934 2005-05-20  Jim Meyering  <jim@meyering.net>
101936         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
101937         Now a macro, to pacify GCC.
101939 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
101941         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
101942         of -1.
101944 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
101946         * lib/chown.c (rpl_chown): Return -1 on failure.
101948 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
101950         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
101951         Don't check for stddef.h.
101952         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
101953         don't use its results.
101954         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
101955         since we include them unconditionally.  Don't require
101956         AM_STDBOOL_H, since stdbool is a prerequisite.
101957         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
101958         since we assume C89 or better.
101959         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
101960         as we don't use their results.
101961         Don't check for fchdir, memmove, memset, strrchr, as we use
101962         them unconditionally.
101963         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
101964         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
101966 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
101968         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
101969         Include <stddef.h> unconditionally, since we assume C89 now.
101970         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
101971         * lib/fts.c: Include fts_.h first, to check interface.
101972         Do not include intprops.h; no longer needed.
101973         Include cycle-check.h and hash.h, since fts_.h no longer does.
101974         Remove unnecessary casts of closedir to void.
101975         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
101976         decide whether to decrement nlinks.
101977         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
101978         (FTS): Use struct hash_table * instead of Hash_table, so that
101979         we no longer need to include hash.h here.
101981 2005-05-18  Jim Meyering  <jim@meyering.net>
101983         * modules/dirfd (License): Change to LGPL.  Most of the code
101984         is already in the public domain.
101986 2005-05-18  Jim Meyering  <jim@meyering.net>
101988         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
101989         Reported by Yoann Vandoorselaere.
101991 2005-05-17  Jim Meyering  <jim@meyering.net>
101993         * m4/fts.m4: New file, from coreutils.
101995 2005-05-17  Jim Meyering  <jim@meyering.net>
101997         * lib/fts.c, lib/fts_.h: New files, from coreutils.
101999 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102001         Sync from coreutils.
102002         * m4/unlinkdir.m4: New file.
102004 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102006         Sync from coreutils.
102007         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
102008         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
102009         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
102010         White space changes only.
102011         * lib/makepath.c (make_path): Port to hosts where leading "//" is
102012         special.
102013         * lib/yesno.c: Include getline.h, not ctype.h.
102014         (yesno): Don't remove leading white space; POSIX doesn't allow it.
102015         Use getline to remove arbitrary restriction on response length.
102017 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102019         * config/srclist-update: Spell out "Street" in FSF postal
102020         mail address; this is the style the FSF seems to prefer.
102022         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
102023         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
102024         this updates FSF postal mail address.
102026         Sync from coreutils.
102027         * modules/unlinkdir: New file.
102028         * modules/yesno (Depends-on): Add getline.
102029         * MODULES.html.sh (File system functions): Add unlinkdir.
102031 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102033         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
102034         lib/strsep.h:
102035         Change the initial comment to refer to GPL, not LGPL.
102036         gnulib-tool will change it to LGPL as needed.
102038         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
102039         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
102040         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
102041         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
102042         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
102043         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
102044         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
102045         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
102046         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
102047         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
102048         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
102049         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
102050         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
102051         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
102052         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
102053         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
102054         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
102055         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
102056         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
102057         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
102058         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
102059         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
102060         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
102061         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
102062         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
102063         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
102064         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
102065         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
102066         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
102067         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
102068         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
102069         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
102070         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
102071         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
102072         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
102073         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
102074         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
102075         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
102076         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
102077         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
102078         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
102079         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
102080         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
102081         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
102082         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
102083         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
102084         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
102085         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
102086         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
102087         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
102088         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
102089         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
102090         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
102091         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
102092         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
102093         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
102094         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
102095         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
102096         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
102097         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
102098         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
102099         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
102100         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
102101         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
102102         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
102103         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
102104         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
102105         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
102106         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
102107         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
102108         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
102109         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
102110         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
102111         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
102112         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
102113         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
102114         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
102115         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
102116         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
102117         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
102118         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
102119         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
102120         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
102121         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
102122         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
102123         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
102124         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
102125         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
102126         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
102127         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
102128         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
102129         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
102130         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
102131         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
102132         lib/yesno.c, lib/yesno.h:
102133         Update FSF postal mail address.
102135 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102137         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
102138         tests/test-memmem.c, tests/test-stpncpy.c:
102139         Update FSF postal mail address.
102141 2005-05-13  Bruno Haible  <bruno@clisp.org>
102143         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
102144         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
102145         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
102146         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
102147         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
102148         Add support for 64-bit integers in the MSVC compiler.
102150 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102152         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
102154 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
102156         * gnulib-tool (func_import): Sort and uniquify recommended includes.
102158 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
102160         * doc/getdate.texi (General date syntax): Don't say that date
102161         date --iso-8601=ns generates acceptable dates; it doesn't yet.
102162         Problem reported by Nic Ferrier.
102164 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102166         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
102167         specified in ai_socktype. Fix invalid ai_protocol
102168         check. ai_protocol is usually set to 0 or depending on
102169         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
102170         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
102171         ai_socktype / ai_protocol in the returned addrinfo structure.
102173 2005-05-10  Simon Josefsson  <jas@extundo.com>
102175         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
102176         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102178 2005-05-10  Karl Berry  <karl@gnu.org>
102180         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
102181         (from http://www.gnu.org/licenses).
102182         * doc/COPYING.LIB: also rename to COPYING.LESSER.
102183         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
102184         fdl.texi suffices.
102186 2005-05-10  Karl Berry  <karl@gnu.org>
102188         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
102189         (COPYING.DOC): remove.
102191         * config/srclist-update: new FSF address.
102193 2005-05-10  Derek Price  <derek@ximbiot.com>
102195         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
102196         possible.
102198 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102199             Bruno Haible  <bruno@clisp.org>
102201         * modules/inet_ntop: New file.
102202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102203         inet_ntop.
102205 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102206             Bruno Haible  <bruno@clisp.org>
102208         * m4/inet_ntop.m4: New file.
102210 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102211             Bruno Haible  <bruno@clisp.org>
102213         * lib/inet_ntop.h: New file.
102214         * lib/inet_ntop.c: New file, from glibc with modifications.
102216 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
102218         * modules/time_r (License): Change to LGPL.
102219         * modules/extensions (License): Change to LGPL.  Actually,
102220         the license is more permissive than that, but currently gnulib-tool
102221         doesn't know how to handle more-permissive licenses.
102223         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
102224         Problem reported by Dave Love.
102226 2005-05-08  Jim Meyering  <jim@meyering.net>
102228         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
102229         blank.
102231 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
102233         * modules/argmatch (Depends-on): Add stdbool.
102234         * modules/backupfile (Depends-on): Likewise.
102235         * modules/chdir-long (Depends-on): Likewise.
102236         * modules/closeout (Depends-on): Likewise.
102237         * modules/cycle-check (Depends-on): Likewise.
102238         * modules/dirname (Depends-on): Likewise.
102239         * modules/fnmatch (Depends-on): Likewise.
102240         * modules/fsusage (Depends-on): Likewise.
102241         * modules/fwriteerror (Depends-on): Likewise.
102242         * modules/getcwd (Depends-on): Likewise.
102243         * modules/getloadavg (Depends-on): Likewise.
102244         * modules/hard-locale (Depends-on): Likewise.
102245         * modules/makepath (Depends-on): Likewise.
102246         * modules/mountlist (Depends-on): Likewise.
102247         * modules/nanosleep (Depends-on): Likewise.
102248         * modules/posixtm (Depends-on): Likewise.
102249         * modules/quotearg (Depends-on): Likewise.
102250         * modules/readtokens (Depends-on): Likewise.
102251         * modules/readtokens0 (Depends-on): Likewise.
102252         * modules/readutmp (Depends-on): Likewise.
102253         * modules/save-cwd (Depends-on): Likewise.
102254         * modules/strftime (Depends-on): Likewise.
102255         * modules/userspec (Depends-on): Likewise.
102256         * modules/utimecmp (Depends-on): Likewise.
102257         * modules/xgetcwd (Depends-on): Likewise.
102258         * modules/xnanosleep (Depends-on): Likewise.
102259         * modules/xstrtod (Depends-on): Likewise.
102260         * modules/yesno (Depends-on): Likewise.
102262 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
102264         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
102265         needless checks.
102267 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102269         Merge from coreutils.  Among other things,
102270         add bulletproofing for cases where stdin, stdout, or stderr are closed.
102271         * lib/fd-safer.c: New file.
102272         * lib/fcntl-safer.h, open-safer.c: Remove.
102273         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
102274         * lib/dup-safer.c: Include unistd-safer.h first.
102275         Don't include errno.h.
102276         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
102277         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
102278         * lib/file-type.c: Rely on file-type.h change.
102279         * lib/getloadavg.c: Include unistd-safer.h.
102280         (getloadavg): Use safer open.
102281         * lib/getusershell.c: Include "stdio-safer.h".
102282         (getusershell): Use safer fopen.
102283         * lib/long-options.c (long_options): Use NULL rather than 0.
102284         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
102285         'free'.
102286         * lib/modechange.c: Likewise.
102287         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
102288         (MODE_DONE): New constant.
102289         (struct mode_change): Remove 'next' member.
102290         (make_node_op_equals): New function; like the old one of the
102291         same name, except it allocates an array.
102292         (mode_compile, mode_create_from_ref): Use it.
102293         (mode_compile): Allocate result as an array, not a linked list.
102294         Parse octal string ourself, so that we catch mistakes like "+0".
102295         (mode_adjust): Arg is an array, not a linked list.
102296         * lib/modechange.c: Include stat-macros.h, xalloc.h.
102297         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
102298         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
102299         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
102300         Remove.  This is now stat-macros.h's job.
102301         (talloc): Remove.  All callers replaced by xalloc, so that
102302         our invokers don't have to worry about reporting memory failures.
102303         (make_node_op_equals): Remove.
102304         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
102305         New constants.
102306         (struct mode_change): Moved here from modechange.h.
102307         (mode_append_entry): Remove.
102308         (mode_compile): Remove MASKED_OPS arg, since it encouraged
102309         apps to have incorrect behavior.  Use simpler algorithm for head
102310         and tail.  Don't futz with umask; that's now the job of mode_adjust.
102311         Detect more invalid usages rather than having somewhat-random behavior.
102312         Don't insert an "a=" action, as that leads to incorrect behavior.
102313         (mode_compile, mode_create_from_ref): Return NULL on error instead
102314         of an enum, since now there's only one way to have an error.  All
102315         callers changed.
102316         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
102317         at the correct time.  Simplify calculation of "+u" and its ilk.
102318         Don't mishandle "+X".
102319         (mode_free): Remove "register" and localize decls.
102320         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
102321         (struct mode_change): Move to modechange.c; callers don't
102322         need to see this stuff.
102323         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
102324         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
102325         (mode_change, mode_adjust): Reflect the new signatures noted above.
102326         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
102327         that might redefine system include files.
102328         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
102329         (my_usleep): Use NULL rather than (void *) 0.
102330         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
102331         Use siginterrupt to specify that system calls should be interrupted.
102332         (rpl_nanosleep): Move initialization of suspended closer to call of
102333         my_usleep.
102334         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
102335         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
102336         (desirable_utmp_entry): New function.
102337         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
102338         using x2nrealloc, to simplify logic.
102339         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
102340         size calculation.  Do not assume utmp file is a regular file.
102341         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
102342         (READ_UTMP_CHECK_PIDS): New constant.
102343         * lib/save-cwd.c: Include unistd-safer.h.
102344         (save_cwd): Use fd_safer.
102345         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
102346         [!_LIBC] Include "stat-macros.h" instead.
102347         * lib/unistd-safer.h (fd_safer): New decl.
102349 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102351         * modules/getloadavg (Depends-on): Add unistd-safer.
102352         * modules/getusershell (Depends-on): Add stdio-safer.
102353         * modules/lstat (Depends-on): Remove xalloc.
102354         * modules/mkstemp (Depends-on): Add stat-macros.
102355         * modules/modechange (Depends-on): Remove xstrtol.
102356         Add stat-macros, xalloc.
102357         * modules/save-cwd (Depends-on): Add unistd-safer.
102358         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
102359         * modules/unistd-safer (Files): Add lib/fd-safer.c
102360         (Makefile.am): Remove lib_SOURCES.
102362         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
102363         Remove fcntl-safer; unistd-safer supersedes it.
102365 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102367         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
102368         AC_HEADER_STAT.
102369         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
102370         (gl_PREREQ_CHOWN): Remove.
102371         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
102372         it.  Don't require AC_HEADER_STAT.
102373         (gl_PREREQ_LSTAT): Remove.
102374         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
102375         Don't require AC_HEADER_STAT.
102376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
102377         (gl_PREREQ_RMDIR): Remove.
102378         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
102379         mention stat-macros.h or AC_HEADER_STAT, since we'll make
102380         the stat-macros module a prerequisite.
102381         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
102382         * m4/filemode.m4 (gl_FILEMODE): Likewise.
102383         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
102384         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
102385         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
102386         variable names.
102387         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
102388         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
102389         variable prefixes.
102390         * m4/fcntl-safer.m4: Remove.
102391         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
102392         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
102393         Invoke gl_PREREQ_FD_SAFER.
102394         (gl_PREREQ_FD_SAFER): New macro.
102395         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
102396         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
102397         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
102398         Remove duplicate call to AC_LIBOBJ(readutmp).
102399         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
102401         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
102402         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
102404 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102406         * MODULES.html.sh (Misc): Add byteswap.
102408 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102410         * modules/getcwd (Depends-on): Add extensions.
102411         * modules/openat (Depends-on): Likewise.
102413 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102415         * modules/byteswap: New file.
102417 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102419         * m4/byteswap.m4: New file.
102421 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102423         * lib/byteswap_.h: New file.
102425 2005-04-25  Karl Berry  <karl@gnu.org>
102427         * m4/gettext.m4: Update from GNU gettext 0.14.4.
102429 2005-04-25  Albert Chin  <china@thewrittenword.com>
102431         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
102432         Toolkit C bug.
102434 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
102436         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
102437         (func_ln_if_changed): Remove forcibly for no error message
102438         in case file does not exist.
102440 2005-04-19  Simon Josefsson  <jas@extundo.com>
102442         * gnulib-tool (Options): Make --symlink mean --symbolic.
102444 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
102446         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
102448 2005-04-16  Simon Josefsson  <jas@extundo.com>
102450         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
102452 2005-04-15  Simon Josefsson  <jas@extundo.com>
102454         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
102456 2005-04-15  Simon Josefsson  <jas@extundo.com>
102458         * gnulib-tool: Rename --symlink to --symbolic.
102460 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
102462         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
102463         symbolic links to files instead of copying/moving.  Add --aux-dir,
102464         specifying directory relative --dir where auxiliary build tools
102465         are placed.
102467 2005-04-14  Bruno Haible  <bruno@clisp.org>
102469         * modules/allocsa (License): Change to LGPL.
102470         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
102472 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102474         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
102475         that "UTC +1 second" continues to work.  Problem reported
102476         by Dmitry V. Levin.
102477         (relunit_snumber): New rule.
102478         (relunit): Use it.
102480 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
102482         * lib/getdate.y (universal_time_zone_table): New constant.
102483         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
102484         universal_time_zone_table.
102485         (lookup_zone): Prefer universal_time_zone_table to
102486         local_time_zone_table, so that "GMT" time stamps are allowed in
102487         London during the summer.  Problem reported by Ian Abbott.
102489 2005-04-12  Jim Meyering  <jim@meyering.net>
102491         * lib/human.c (humblock): Set *options even when returning due to
102492         xstrtoumax conversion failure.  Thanks to a used-uninitialized
102493         warning from gcc-4.
102495 2005-04-09  Jim Meyering  <jim@meyering.net>
102497         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
102498         -Wuninitialized: initialize tm0.tm_year.
102500 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102502         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
102503         count, since there's no maximum.  All uses changed.
102504         Add member dsts_seen.
102505         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
102506         not being INT_MAX.
102507         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
102508         Use pc_rels_seen to decide whether a date is absolute.
102510         * lib/getdate.y (number): Don't overwrite year.
102511         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
102512         check.
102514 2005-04-02  Simon Josefsson  <jas@extundo.com>
102516         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
102517         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
102519 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
102521         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
102522         where no absolute path name can be longer than PATH_MAX.
102524 2005-03-27  Jim Meyering  <jim@meyering.net>
102526         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
102528 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
102530         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
102531         "one's complement" -> "ones' complement" in comment, as per Knuth.
102532         "value of type" -> "type or expression" in comment.
102533         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
102535 2005-03-26  Jim Meyering  <jim@meyering.net>
102537         Comment nits.
102538         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
102539         Correct typos: s/or/of/.
102541 2005-03-26  Jim Meyering  <jim@meyering.net>
102543         * modules/check-include-files: Move to ../ and rename to...
102544         * check-module: ...this.
102546 2005-03-25  Jim Meyering  <jim@meyering.net>
102548         * modules/xvasprintf (Files): Add xalloc.h.
102550 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102552         * modules/gettext (Files): config/config.rpath ->
102553         build-aux/config.rpath
102554         * modules/iconv (Files): Likewise.
102555         Problem reported by Oskar Liljeblad.
102557 2005-03-23  Jim Meyering  <jim@meyering.net>
102559         * modules/check-include-files: New script to check for
102560         missing dependencies, multiple includes, etc.
102562         * modules/c-strtold (Depends-on): Add xalloc.
102563         * modules/c-strtod (Depends-on): Add xalloc.
102564         * modules/hash (Depends-on): Add xalloc.
102565         (Files): Remove lib/xalloc.h.
102567         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
102568         * modules/userspec (Files): Add lib/inttostr.h.
102570 2005-03-23  Jim Meyering  <jim@meyering.net>
102572         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
102574 2005-03-22  Jim Meyering  <jim@meyering.net>
102576         * modules/stat-macros: New module.
102577         * modules/canonicalize, modules/euidaccess, modules/file-type,
102578         * modules/filemode, modules/lchown, modules/makepath,
102579         * modules/rmdir, modules/stat: Depend on new stat-macros module
102580         rather than listing lib/stat-macros.h manually.
102581         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
102583 2005-03-22  Jim Meyering  <jim@meyering.net>
102585         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
102587 2005-03-22  Bruno Haible  <bruno@clisp.org>
102589         * config/srclist.txt: Replace target directory 'config' with
102590         'build-aux'.
102591         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
102592         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
102593         ../build-aux/.
102595 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
102597         * modules/chdir-long (Depends-on): Add mempcpy.
102599         * modules/acl, modules/backupfile, modules/c-strtod,
102600         modules/c-strtold, modules/canon-host, modules/canonicalize,
102601         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
102602         modules/exclude, modules/exitfail, modules/file-type,
102603         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
102604         modules/getdate, modules/getline, modules/getpagesize,
102605         modules/getpass, modules/getugroups, modules/group-member,
102606         modules/hard-locale, modules/hash, modules/human, modules/idcache,
102607         modules/inttostr, modules/long-options, modules/makepath,
102608         modules/md5, modules/memcasecmp, modules/memcoll,
102609         modules/modechange, modules/mountlist, modules/path-concat,
102610         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
102611         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
102612         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
102613         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
102614         modules/strftime, modules/strndup, modules/strverscmp,
102615         modules/timespec, modules/unlocked-io, modules/userspec,
102616         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
102617         modules/yesno:
102618         Remove lib_SOURCES line from Makefile.am section, as this is now
102619         done automatically by the corresponding Autoconf macro.
102621 2005-03-21  Jim Meyering  <jim@meyering.net>
102623         Changes imported from coreutils.
102625         * lib/cycle-check.c: Don't include xalloc.h.
102627         * lib/path-concat.c: Don't include assert.h.
102628         (path_concat): Remove assertion that would have triggered
102629         for ABASE starting with more than one slash.
102630         Reported by Andreas Schwab.
102632         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
102633         properly when ABASE is an absolute file name.
102634         Correct the description of this function.
102635         Include <assert.h>.
102636         Add an assertion and a test driver.
102637         This fixes a bug introduced on 2004-07-02.
102638         Andreas Schwab reported the resulting failure of cp --parents:
102639         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
102641 2005-03-21  Jim Meyering  <jim@meyering.net>
102643         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
102644         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
102646 2005-03-21  Jim Meyering  <jim@meyering.net>
102647         and  Paul Eggert  <eggert@cs.ucla.edu>
102649         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
102650         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
102651         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
102652         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
102653         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
102654         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
102655         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
102656         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
102657         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
102658         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
102659         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
102660         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
102661         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
102662         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
102663         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
102664         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
102665         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
102666         for these modules.
102668 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
102670         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
102671         (which shouldn't happen), generate nothing instead of returning 0
102672         immediately, so that nstrftime (NULL, ...) doesn't return 0.
102674 2005-03-16  Bruno Haible  <bruno@clisp.org>
102676         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
102677         HAVE_LONGLONG_64BIT.
102679 2005-03-16  Bruno Haible  <bruno@clisp.org>
102681         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
102682         HAVE_LONGLONG_64BIT.
102684 2005-03-16  Bruno Haible  <bruno@clisp.org>
102686         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
102687         HAVE_LONGLONG_64BIT.
102689 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102691         * lib/strftime.c (my_strftime): Prepend space to format so that we can
102692         reliably distinguish strftime failure from empty output on POSIX
102693         hosts.
102695 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102697         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
102698         (iconv_string): Don't guess a size-zero buffer, as that might cause
102699         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
102700         result would be 'too large', where 'too large' is (heuristically)
102701         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
102702         overflow concerns.  This will prevent some unwanted malloc failures
102703         when the inputs are very large.
102705 2005-03-15  Karl Berry  <karl@gnu.org>
102707         * config/srclist.txt (config.rpath): from gettext.
102708         * config/config.rpath: update.
102710 2005-03-15  Bruno Haible  <bruno@clisp.org>
102712         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
102713         to 'negate'.
102715         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
102716         variable.
102718         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
102719         results.
102721 2005-03-14  Simon Josefsson  <jas@extundo.com>
102723         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
102724         <fx@gnu.org>.
102726 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
102728         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
102729         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
102730         intprops.h.
102731         * lib/strtol.c: Likewise.
102733 2005-03-14  Jim Meyering  <jim@meyering.net>
102735         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
102736         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
102737         to be nonzero so that we (and caller) can detect the difference
102738         between a valid zero-length expansion and an error return, even
102739         when the underlying strftime fails before writing anything into
102740         that location.
102742 2005-03-14  Bruno Haible  <bruno@clisp.org>
102744         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
102745         Update from GNU gettext 0.14.3.
102747 2005-03-10  Jim Meyering  <jim@meyering.net>
102749         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
102751 2005-03-10  Jim Meyering  <jim@meyering.net>
102753         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
102754         so that this module works on systems without fchdir.
102756 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
102758         Factor int-properties macros into a single file, except for
102759         glibc-related files.
102760         * lib/intprops.h: New file.
102761         * lib/getloadavg.c: Include it instead of limits.h.
102762         (INT_STRLEN_BOUND): Remove.
102763         * lib/human.c: Include intprops.h.
102764         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
102765         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
102766         302/1000.
102767         * lib/inttostr.h: Include intprops.h instead of limits.h.
102768         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
102769         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
102770         for consistency with intprops.h.
102771         (time_t_is_integer, twos_complement_arithmetic): Use them.
102772         * lib/sig2str.h: Include <signal.h>, intprops.h.
102773         (INT_STRLEN_BOUND): Remove.
102774         * lib/strftime.c (TYPE_SIGNED): Remove.
102775         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
102776         * lib/strtol.c: Adjust comments to match intprops.h.
102777         * lib/userspec.c: Include intprops.h.
102778         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
102779         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
102780         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
102781         instead of rolling our own expressions.
102782         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
102784         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
102785         instead of int.
102786         (my_strftime): Do not mishandle years close to INT_MAX, by doing
102787         the right thing even if adding 1900 would overflow.  Similarly
102788         for tm_mon + 1 and tm_yday + 1.
102789         Make %Y always equivalent to %C%y, and similarly for %G and %g.
102790         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
102791         (DO_SIGNED_NUMBER): New macro.
102792         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
102794 2005-03-07  Bruno Haible  <bruno@clisp.org>
102796         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
102798 2005-03-07  Bruno Haible  <bruno@clisp.org>
102800         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
102802 2005-03-04  Derek R. Price  <derek@ximbiot.com>
102804         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
102805         (func_import): Only replace files via --import when they have actually
102806         changed.
102808 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102810         * m4/mmap-anon.m4: New file.
102811         * m4/pagealign_alloc.m4: New file.
102813 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102814             Bruno Haible  <bruno@clisp.org>
102816         * modules/pagealign_alloc: New file.
102817         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
102819 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102820             Bruno Haible  <bruno@clisp.org>
102822         * lib/pagealign_alloc.h: New file.
102823         * lib/pagealign_alloc.c: New file.
102825 2005-03-03  Bruno Haible  <bruno@clisp.org>
102827         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
102828         Use an all-permissive copyright notice, recommended by RMS.
102830 2005-03-02  Bruno Haible  <bruno@clisp.org>
102832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
102833         of AIX, the replacement has to be done only after <string.h> is
102834         included, therefore not in config.h. stpncpy.h does the replacement,
102835         and stpncpy.c uses it.
102837 2005-03-02  Bruno Haible  <bruno@clisp.org>
102839         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
102840         stpncpy.c uses it.
102842 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102844         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
102845         The workaround isn't strictly needed for POSIX conformance, and
102846         it's too much of a pain to configure and maintain.  We'll ask
102847         people to fix their kernels instead.
102848         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
102849         (NANOSLEEP_BUG_WORKAROUND): Remove.
102850         (xnanosleep): Remove the workaround.
102852 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102854         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
102855         Reported by Derek Price.
102856         (Include): Add "timespec.h".
102858         * modules/xnanosleep (Depends-on): Remove gethrxtime.
102860 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102862         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
102863         to detect nanosleep bug.
102865 2005-03-01  Bruno Haible  <bruno@clisp.org>
102867         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
102869 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
102871         * modules/gethrxtime: New file.
102872         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
102873         (Depends-on): Add gethrxtime.
102874         (configure.ac): Add gl_XNANOSLEEP.
102875         (Makefile.am): Remove lib_SOURCES line.
102877 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102879         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
102880         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
102882 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102884         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
102885         * lib/timespec.h (gettime): Return void, since it always
102886         succeeds now.  All uses changed.
102887         * lib/gettime.c (gettime): Likewise.
102888         [HAVE_NANOTIME]: Prefer nanotime.
102889         Assume gettimeofday succeeds, as POSIX requires.
102890         Assime time () succeeds, since other code already does.
102891         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
102892         (timespec_subtract): Remove.
102893         (NANOSLEEP_BUG_WORKAROUND): New constant.
102894         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
102895         things considerably.  Use it only on GNU/Linux hosts, since the
102896         workaround shouldn't be needed elsewhere.
102898 2005-02-24  Bruno Haible  <bruno@clisp.org>
102900         * modules/gettext (Files): Add m4/glibc2.m4.
102902 2005-02-24  Bruno Haible  <bruno@clisp.org>
102904         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
102905         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
102906         * m4/progtest.m4:
102907         Update from GNU gettext 0.14.2.
102908         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
102910 2005-02-24  Bruno Haible  <bruno@clisp.org>
102912         * lib/localcharset.c: Update from GNU gettext 0.14.2.
102913         * lib/config.charset: Update from GNU gettext 0.14.2.
102915 2005-02-24  Bruno Haible  <bruno@clisp.org>
102917         * lib/gettext.h: Update from GNU gettext 0.14.2.
102919 2005-02-23  Simon Josefsson  <jas@extundo.com>
102921         * m4/iconvme.m4: New file.
102923 2005-02-23  Jim Meyering  <jim@meyering.net>
102925         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
102926         change.
102927         Thanks to Bruno Haible for catching it.
102929 2005-02-22  Simon Josefsson  <jas@extundo.com>
102931         * modules/iconvme: New file.
102933         * MODULES.html.sh: Add iconvme.
102935 2005-02-22  Simon Josefsson  <jas@extundo.com>
102937         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
102939 2005-02-22  Simon Josefsson  <jas@extundo.com>
102941         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
102943 2005-02-22  Jim Meyering  <jim@meyering.net>
102945         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
102946         s/ifndef/ifdef/.
102948 2005-02-20  Neil Conway  <neilc@samurai.com>
102950         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
102951         returned by OSX/Darwin if the specified buffer is not large
102952         enough for the hostname.
102954 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102956         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
102957         pass it to _help, otherwise the latter coredumps trying to
102958         dereference state.root_argp.
102960 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102962         * modules/chdir-long (Depends-on): Add memrchr.
102963         * modules/memrchr (Files): Add lib/memrchr.h.
102964         (Include): "memrchr.h".
102966 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
102970 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102972         * lib/memrchr.h: New file.
102973         * lib/chdir-long.c: Include it.
102974         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
102975         Don't bother including stddef.h.
102977 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
102979         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
102980         inclusion.
102981         Include <sys/types.h>, for dev_t.
102982         (ME_DUMMY, ME_REMOTE): Move from here....
102983         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
102984         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
102985         Dmitry V. Levin.
102986         Include mountlist.h first, to test the interface.
102988 2005-01-29  Bruno Haible  <bruno@clisp.org>
102990         * lib/progname.c (program_name): Initialize.
102991         Needed when linking statically on MacOS X.
102993 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
102995         Sync from coreutils.
102996         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
102997         (Depends-on): Add c-strtod.
102998         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
103000 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103002         Sync from coreutils.
103003         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
103005         Remove files that are specific to coreutils.
103006         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
103008 2005-01-28  Bruno Haible  <bruno@clisp.org>
103010         * modules/javacomp: New file.
103011         * MODULES.html.sh (Java): Add javacomp.
103013 2005-01-28  Bruno Haible  <bruno@clisp.org>
103015         * m4/javacomp.m4: New file, from GNU gettext.
103017 2005-01-28  Bruno Haible  <bruno@clisp.org>
103019         * lib/javacomp.sh.in: New file, from GNU gettext.
103020         * lib/javacomp.h: New file, from GNU gettext.
103021         * lib/javacomp.c: New file, from GNU gettext.
103023 2005-01-26  Simon Josefsson  <jas@extundo.com>
103025         * lib/gai_strerror.c: Use GPL in header.
103027 2005-01-26  Bruno Haible  <bruno@clisp.org>
103029         * modules/javaexec: New file.
103030         * MODULES.html.sh (Java): Add javaexec.
103032 2005-01-26  Bruno Haible  <bruno@clisp.org>
103034         * m4/javaexec.m4: New file, from GNU gettext.
103036 2005-01-26  Bruno Haible  <bruno@clisp.org>
103038         * lib/javaexec.sh.in: New file, from GNU gettext.
103039         * lib/javaexec.h: New file, from GNU gettext.
103040         * lib/javaexec.c: New file, from GNU gettext.
103042 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103044         * modules/lchown (Depends-on): Remove lchown.h
103046 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103048         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
103049         must be defined if the header file was not found, in order
103050         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
103052 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103054         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
103055         initializers for struct pentry_state.
103056         (__argp_error): Check return value of __asprintf
103057         (__argp_failure): Translate error message
103059         * lib/argp-parse.c: Removed braces around the expansion of N_()
103061 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103063         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
103064         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
103065         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
103066         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
103067         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
103068         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
103069         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
103070         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
103071         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
103072         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
103073         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
103074         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
103075         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
103076         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
103077         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
103078         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
103079         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
103080         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
103081         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
103082         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
103083         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
103084         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
103085         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
103086         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
103087         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
103088         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
103089         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
103090         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
103091         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
103092         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
103093         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
103094         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
103095         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
103096         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
103097         xstrtol.m4, xstrtoumax.m4, yesno.m4:
103098         Use an all-permissive copyright notice, recommended by RMS.
103100 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
103102         * modules/chdir-long (Depends-on): Remove mempcpy.
103104 2005-01-21  Jim Meyering  <jim@meyering.net>
103106         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
103107         same value as for Solaris 9.
103109         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
103110         component length.  This included changing the parameter to be
103111         of type `char *' rather than `char const *'.
103112         * lib/chdir-long.h (chdir_long): Update prototype.
103114         * lib/openat.c (fdopendir, fstatat): New functions.
103115         * lib/openat.h: Include headers required for use of DIR and struct
103116         stat.
103117         [AT_SYMLINK_NOFOLLOW]: Define.
103118         (fdopendir, fstatat): Add prototypes.
103120 2005-01-21  Bruno Haible  <bruno@clisp.org>
103122         * modules/classpath: New file.
103123         * MODULES.html.sh (Java): Add classpath.
103125 2005-01-21  Bruno Haible  <bruno@clisp.org>
103127         * lib/classpath.h: New file, from GNU gettext.
103128         * lib/classpath.c: New file, from GNU gettext.
103130 2005-01-20  Simon Josefsson  <jas@extundo.com>
103132         * modules/version-etc-fsf: New file.
103134 2005-01-20  Simon Josefsson  <jas@extundo.com>
103136         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
103137         * lib/version-etc.c: Remove version_etc_copyright.
103138         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
103139         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
103141 2005-01-20  Simon Josefsson  <jas@extundo.com>
103143         * lib/base64.h (isbase64): Add.
103145         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
103146         using a unsigned prototype, don't inline.
103147         (base64_decode): Use it.
103149 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103151         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
103152         it.
103154 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103156         * lib/save-cwd.c (save_cwd): Remove code to support the case
103157         where fchdir is missing or flaky.
103159 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103161         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
103163 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
103165         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
103166         AC_LIBSOURCES now does this.
103167         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
103168         with new ullong_max module.
103170 2005-01-19  Bruno Haible  <bruno@clisp.org>
103172         * modules/sh-quote: New file.
103173         * MODULES.html.sh (Executing programs): Add sh-quote.
103175 2005-01-19  Bruno Haible  <bruno@clisp.org>
103177         * lib/sh-quote.h: New file, from GNU gettext.
103178         * lib/sh-quote.c: New file, from GNU gettext.
103180 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103182         Merge from coreutils.
103183         * m4/ullong_max.m4: New file.
103184         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
103185         (gl_MACROS): Assume localeconv exists.
103187 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103189         Merge changes from coreutils, as described below in several
103190         changelogs dated today.
103192         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
103193         (O_DIRECTORY): Remove; not needed here, since "." must be
103194         a directory.  All uses removed.
103195         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
103196         universal on Suns, and we also need to test for IRIX.
103197         Revamp code to use 'if' rather than '#if'.
103198         Avoid unnecessary comparison of cwd->desc to 0.
103200         * lib/utimens.c (futimens): Robustify the previous patch, by checking
103201         for known valid error numbers rather than observed invalid ones.
103203 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103205         * modules/ullong_max: New file.
103207         * modules/chdir-long, modules/openat: New files.
103208         * modules/save-cwd (Depends-on): Depend on chdir-long.
103209         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
103211 2005-01-18  Jim Meyering  <jim@meyering.net>
103213         Merge from coreutils.
103214         * m4/chdir-long.m4, m4/openat.m4: New files.
103215         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
103216         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
103217         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
103218         is sane and DOES follow symlinks.  Besides, testing 20 different
103219         systems found no broken chown implementations.
103220         Prompted by a change in rsync's copy of this macro.
103221         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
103223         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
103225         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
103226         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
103227         NULL-means-set-to-current-time semantics.
103228         Remove temporary file immediately, rather than waiting
103229         for configure's at-exit trap code to do it.
103231 2005-01-18  Jim Meyering  <jim@meyering.net>
103233         * lib/version-etc.c (version_etc_copyright): Update copyright date.
103235         * lib/utimens.c (futimens): Account for the fact that futimes
103236         can also fail with errno == ENOSYS or errno == ENOENT.
103237         Patch from Dmitry V. Levin.
103239         Change the name of the robust chdir function from chdir to chdir_long.
103240         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
103241         (restore_cwd): Use chdir_long, not chdir.
103242         * lib/chdir-long.c: Renamed from chdir.c.
103243         * lib/chdir-long.h: Renamed from chdir.h.
103244         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
103245         Hurd.
103247 2005-01-18  Bruno Haible  <bruno@clisp.org>
103249         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
103250         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
103251         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
103252         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
103253         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
103254         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
103255         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
103256         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
103257         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
103258         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
103259         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
103260         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
103261         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
103262         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
103263         Use an all-permissive copyright notice, recommended by RMS.
103265 2005-01-18  Bob Proulx  <bob@proulx.com>
103267         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
103268         simplify offsetof() macro construct to avoid compile failure with
103269         native HP-UX 11.0 ANSI C compiler.
103271 2005-01-17  Bruno Haible  <bruno@clisp.org>
103273         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
103274         redundant because stpncpy.m4 takes care of it.
103276 2005-01-17  Bruno Haible  <bruno@clisp.org>
103278         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
103280 2005-01-17  Bruno Haible  <bruno@clisp.org>
103282         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
103283         used.
103285 2005-01-17  Bruno Haible  <bruno@clisp.org>
103287         * lib/fwriteerror.h (fwriteerror): Change specification to include
103288         fclose.
103289         * lib/fwriteerror.c: Include <stdbool.h>.
103290         (fwriteerror): At the end, close the file stream. Record whether
103291         stdout was already closed.
103293 2005-01-17  Bruno Haible  <bruno@clisp.org>
103295         * lib/execute.c (environ): Declare if needed.
103296         * lib/pipe.c (environ): Likewise.
103297         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
103299 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103301         * modules/argp: Depend on vsnprintf
103303 2005-01-10  Jim Meyering  <jim@meyering.net>
103305         * modules/closeout (Depends-on): Add atexit.
103307 2005-01-06  Bruno Haible  <bruno@clisp.org>
103309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
103311 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
103313         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
103314         definitions to be after all include files, to avoid collisions.
103315         Problem reported by Bob Proulx.
103317 2005-01-04  Jim Meyering  <jim@meyering.net>
103319         Changes imported from coreutils.
103320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
103321         as the mkstemp template, use a temporary directory and an
103322         8.3-friendly template to avoid trouble on systems like DJGPP.
103323         Reported by Juan M. Guerrero via Stepan Kasal.
103324         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
103325         close. Remove the temporary directory right away, rather than waiting
103326         for configure's at-exit trap code to do it.
103327         Suggestion from Stepan Kasal.
103329 2005-01-01  Simon Josefsson  <jas@extundo.com>
103331         * gnulib-tool: Print #include directives when --import'ing.
103333 2004-12-28  Simon Josefsson  <jas@extundo.com>
103335         * tests/test-base64.c: Include required header files.  Remove
103336         unused variables.
103338 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103340         * modules/error (Depends-on): Remove gettext.
103342 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103344         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
103345         not needed.  This removes a dependency on the gettext module.
103346         [defined _LIBC]: Do not include <libintl.h>; not needed.
103348 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103350         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
103351         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
103353 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103355         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
103356         HAVE_DECL_STRTOLD.
103358 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103360         * modules/getdate (Depends-on): Remove alloca-opt.
103362 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103364         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
103366 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103368         * lib/argp-parse.c: Include <stddef.h>.
103369         (alignof, alignto): New macros.
103370         (parser_init): Don't assume that void * is aligned sufficiently
103371         for struct option.
103373         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
103374         need to extend the stack.
103375         (YYINITDEPTH): New macro, so that the initial stack isn't overly
103376         large.
103378 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103380         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
103382 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103384         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
103385         (2004-10-24) change.  Apparently this was a false alarm.
103387         * modules/getdate: Depend on alloca-opt, not alloca.
103389 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103391         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
103392         Remove now-obsolete comment about AIX.
103393         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
103394         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
103395         (YYMAXDEPTH): New macro.
103397 2004-12-18  Simon Josefsson  <jas@extundo.com>
103399         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
103401 2004-12-18  Bruno Haible  <bruno@clisp.org>
103403         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
103405 2004-12-18  Bruno Haible  <bruno@clisp.org>
103407         * lib/fatal-signal.c (fatal_signals): Make non-const.
103408         (init_fatal_signals): New function.
103409         (uninstall_handlers, install_handlers): Ignore signals that were set to
103410         SIG_IGN.
103411         (at_fatal_signal): Call init_fatal_signals.
103412         (init_fatal_signal_set): Likewise. Ignore signals that were set to
103413         SIG_IGN.
103414         Reported by Paul Eggert.
103416 2004-12-18  Bruno Haible  <bruno@clisp.org>
103418         * doc/alloca.texi: New file.
103419         * doc/alloca-opt.texi: New file.
103421 2004-12-17  Jim Meyering  <jim@meyering.net>
103423         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
103424         Otherwise, install-sh could exit with improper exit status when
103425         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
103427 2004-12-16  Simon Josefsson  <jas@extundo.com>
103429         * tests/test-base64.c: Add license.
103431 2004-12-15  Stepan Kasal  <address@hidden>
103433         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
103435 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
103437         * modules/getcwd (Files): Add m4/d-ino.m4.
103438         Suggested by Mark D. Baushke.
103440 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
103442         * lib/getdate.y (textint): New member "negative".
103443         (time_zone_hhmm): New function.
103444         Expect 14 shift-reduce conflicts, not 13.
103445         (o_colon_minutes): New rule.
103446         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
103447         (yylex): Set the "negative" member of signed numbers.
103449 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
103451         * doc/getdate.texi (Time of day items, Time zone items):
103452         Describe new formats +00:00, UTC+00:00.
103454 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
103456         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
103457         spurious "-l"s.  Problem reported by Stepan Kasal.
103459 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
103461         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
103462         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
103464 2004-12-04  Simon Josefsson  <jas@extundo.com>
103466         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
103467         Vandoorselaere <yoann@prelude-ids.org>.
103469 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103471         Changes imported from coreutils.
103472         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
103473         exist.
103474         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
103476 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103478         Changes imported from coreutils.
103479         * lib/hard-locale.c: Assume <locale.h> exists.
103480         Include "strdup.h".
103481         (GLIBC_VERSION): New macro.
103482         (hard_locale): Assume setlocale exists.
103483         Rewrite to avoid #ifdef.
103484         Use strdup rather than malloc + strcpy.
103485         * lib/human.c: Assume <locale.h> exists.
103486         (human_readable): Assume localeconv exists.
103488 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103490         * modules/hard-locale (Depends-on): Add strdup.
103492 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
103494         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
103495         convert T2, not T.  (Imported from libc.)
103497 2004-11-30  Simon Josefsson  <jas@extundo.com>
103499         * modules/restrict (License): Change to LGPL.
103501 2004-11-30  Simon Josefsson  <jas@extundo.com>
103503         * m4/restrict.m4: Add copyright and copying conditions.
103505 2004-11-30  Simon Josefsson  <jas@extundo.com>
103507         * m4/base64.m4: New file.
103509 2004-11-30  Simon Josefsson  <jas@extundo.com>
103511         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
103512         base64.
103514         * tests/test-base64.c: New file.
103516         * modules/base64: New file.
103518 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
103520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
103521         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
103523         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
103525 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
103527         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
103528         (__getcwd.c): Don't restore errno; glibc doesn't.
103529         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
103530         first, falling back to our code only if its results look suspicious.
103531         Ensure that the resulting buffer is only as large as necessary.
103533         * lib/readutmp.c: Include readutmp.h first.
103534         Include <errno.h>, since readutmp.h no longer does that.
103535         * lib/readutmp.h: Don't include <errno.h>,
103536         <sys/param.h>, <time.h>; not needed to establish interface.
103537         (errno): Remove decl.
103538         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
103539         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
103540         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
103542 2004-11-28  Simon Josefsson  <jas@extundo.com>
103544         * lib/base64.h, base64.c: New file.
103546 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
103548         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
103550 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
103552         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
103553         (Depends-on): Remove pathmax, same.  Add mempcpy.
103554         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
103555         (Makefile.am): Append getcwd.h to lib_SOURCES.
103556         (Include): Add getcwd.h.
103557         (Maintainer): Change from Jim Meyering to "all, glibc",
103558         since getdate now uses intended-for-glibc code.
103559         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
103560         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
103562 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103564         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
103565         HP's ANSI C compiler.
103566         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
103567         Declaring int functions causes warnings on some modern systems and
103568         shouldn't be needed to compile on ancient ones.
103569         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
103570         defined.
103572         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
103573         with the following changes.
103574         (__set_errno): Parenthesize properly.
103575         Include <stdbool.h>.
103576         (MIN, MAX, MATCHING_INO): New macros.
103577         (__getcwd): Define with prototype, not K&R form.
103578         Use heuristics to allocate default buffer on stack if possible.
103579         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
103580         behavior, and to avoid the PATH_MAX limit when computing
103581         ../../../../...
103582         Use MATCHING_INO to compare inode number to file.
103583         Check for arithmetic overflow in size calculations.
103584         Fix bug in reallocation of dot array that caused getcwd to fail
103585         on directories nested deeper than 75.
103586         Be more careful about saving errno on error.
103587         Do not use realloc; use only free+malloc, as this is a bit
103588         more flexible and avoids a needless copy operation.
103589         Do not inspect st_dev and st_ino for symbolic links; POSIX
103590         doesn't specify the latter.
103591         Check for closedir errors.
103592         Avoid needless casts.
103593         Use "#ifdef weak_alias" around weak_alias, to be like other
103594         glibc code.
103595         The following changes to getcwd.c have effect only when used in
103596         gnulib; they have no effect inside glibc proper.
103597         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
103598         as alloca isn't used.
103599         (alloca, __alloca): Likewise.
103600         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
103601         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
103602         unconditionally, as gnulib assumes C89 or better.
103603         Do not include <sys/param.h>.
103604         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
103605         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
103606         better.
103607         (NULL) [!defined NULL]: Remove; we assume C89 or better.
103608         Include <dirent.h> in a way that is compatible with modern Autoconf.
103609         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
103610         New macros, if not already defined.
103611         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
103612         Use "_LIBC", not "defined _LIBC", for consistency.
103613         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
103614         a mempcpy module.
103615         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
103616         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
103617         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
103618         credit only to Jim Meyering and adjust the copyright dates.
103619         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
103620         <stdlib.h>, <unistd.h>, "pathmax.h".
103621         Instead, include "xgetcwd.h" (first) and "getcwd.h".
103622         (INITIAL_BUFFER_SIZE): Remove.
103623         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
103625 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103627         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
103628         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
103629         Use the _ONCE methods, for efficiency.
103630         Check for fcntl.h.  In test program, include <errno.h>
103631         and <fcntl.h> if available.  Remove old K&R cruft from
103632         test program.  Check for common errors in GNU/Linux,
103633         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
103634         don't do AC_LIBOBJ, as that's getcwd.m4's job.
103635         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
103636         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
103637         name accordingly.
103638         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
103639         accommodate new getcwd.c.
103640         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
103641         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
103642         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
103643         that's all we need now.
103645 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103647         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
103648         argp-parse.c depends on getopt internals, that means we should
103649         always use our getopt, to be on the safe side.
103650         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
103651         order not to spoil the result of an eventual previous invocation
103652         of gl_GETOPT_SUBSTITUTE.
103654 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103656         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
103657         redefinition warnings. To avoid them, include the defines
103658         in `#if !defined __need_getopt ... #endif'. The only place
103659         where __getopt_argv_const is used is in definitions
103660         of getopt_long and getopt_long_only below, which are as well
103661         protected by `#ifndef __need_getopt'.
103662         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
103663         __need_getopt after including <stdio.h> and <unistd.h> These
103664         headers might have defined it.
103666 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103668         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
103670 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103672         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
103673         (futimens): New function, which uses futimes if available.
103674         (futimens, utimens): Support timespec==NULL, with same semantics
103675         as utime and utimens.
103676         * lib/utimens.h (futimens): New decl.
103678 2004-11-23  Jim Meyering  <jim@meyering.net>
103680         * lib/getopt_.h: Remove trailing blanks.
103682 2004-11-23  Jim Meyering  <jim@meyering.net>
103684         * lib/__fpending.c: Add comment.
103686 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
103688         * modules/canonicalize (Depends-on): Add xreadlink.
103689         Problem reported by James Youngman.
103691 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
103693         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
103694         New macros.
103695         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
103696         optopt): Use them instead of invoking ## directly; otherwise, the
103697         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
103699 2004-11-19  Bruno Haible  <bruno@clisp.org>
103701         * lib/strtok_r.c: Move comments from here...
103702         * lib/strtok_r.h: ... to here.
103704 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103706         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
103707         implementations that mishandle size_t overflow.
103709 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103711         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
103712         might fail.  Problem reported by Yoann Vandoorselaere.
103713         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
103714         implementations that mishandle size_t overflow.
103716 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103718         * modules/canon-host (Depends-on): Add strdup.
103720 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103722         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
103724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103726         * lib/canon-host.c: Include "strdup.h".
103727         (canon_host): Use getaddrinfo if available, so that IPv6 works.
103728         Use strdup instead of malloc/strcpy to duplicate strings.
103730         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
103731         (human_space_before_unit): New constant.
103732         * lib/human.c (human_readable): Support it.
103734         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
103735         (xgetcwd): Set errno correctly when failing.
103736         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
103737         the failure is actually due to a PATH_MAX problem.
103739         Further getopt changes to make it more likely that glibc will
103740         buy the changes back.
103741         * lib/getopt.c (POSIXLY_CORRECT): New constant.
103742         (getopt): Use it, so to preserve glibc semantic
103743         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
103744         when compiling for libc.
103745         * lib/getopt_.h (__getopt_argv_const): Bring it back.
103746         (getopt_long, getopt_long_only): Use it.
103748         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103749         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
103750         (getopt): Argv is now char * const *, as per standard.
103751         (_getopt_internal_r, _getopt_internal): Argv is now char **,
103752         not char *__getopt_argv_const *.
103753         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103754         _getopt_long_only_r): Likewise.
103755         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
103756         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103757         _getopt_long_r, _getopt_long_only_r): Likewise.
103758         * lib/getopt_.h (__getopt_argv_const): Remove.
103759         (getopt): Argv is now char * const *, as per standard.
103761         * lib/getdate.y (tORDINAL): New token.
103762         (day, relunit): Allow it for relative times.
103763         (relative_time_table): Use tORDINAL for ordinals.
103765 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103767         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
103768         Document that "second" isn't allowed as an ordinal number.
103770 2004-11-16  Jim Meyering  <jim@meyering.net>
103772         * modules/closeout (Depends-on): Add fpending.
103774 2004-11-15  Jim Meyering  <jim@meyering.net>
103776         * lib/closeout.c: Include "__fpending.h" once again.
103777         Include <stdbool.h>.
103778         (close_stdout): Don't fail just because stdout was closed initially,
103779         since some programs don't write to stdout in the normal course of
103780         operation (other than --version and --help), and we don't want this
103781         function to make e.g. `touch file >&-' fail.
103782         But do fail if it was closed and someone has tried to write to it.
103783         E.g., `printf foo >&-' must fail.
103785 2004-11-13  Jim Meyering  <jim@meyering.net>
103787         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
103789 2004-11-12  Simon Josefsson  <jas@extundo.com>
103791         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
103792         small doc fix is still pending.
103794 2004-11-11  Simon Josefsson  <jas@extundo.com>
103796         * modules/strtok_r: New file.
103798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103799         strtok_r.
103801 2004-11-11  Simon Josefsson  <jas@extundo.com>
103803         * m4/strtok_r.m4: New file.
103805         * m4/getopt.m4: Replace opterr.
103807 2004-11-11  Simon Josefsson  <jas@extundo.com>
103809         * lib/strtok_r.h, strtok_r.c: New file.
103811 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
103813         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
103814         of replacing opterr, getopt, etc.  This should handle the
103815         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
103817 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
103819         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
103820         we can stop lying to compilers about the constness of argv when we
103821         are compiled outside glibc.
103822         (getopt, getopt_long, getopt_long_only): Use it.
103823         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103824         _getopt_internal, getopt): Likewise.
103825         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103826         _getopt_long_only_r): Likewise.
103827         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103828         _getopt_long_r, _getopt_long_only_r): Likewise.
103830         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
103831         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
103832         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
103833         the other external symbols.
103834         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
103835         declaration, since the above renaming now works around collisions.
103837 2004-11-11  Jim Meyering  <jim@meyering.net>
103839         * lib/linebreak.c: Remove trailing blanks.
103840         * lib/alloca_.h: Likewise.
103841         * lib/acosl.c: Likewise.
103842         * lib/euidaccess.c: Likewise.
103843         * lib/allocsa.h: Likewise.
103845 2004-11-10  Simon Josefsson  <jas@extundo.com>
103847         * m4/getaddrinfo.m4: New file.
103849 2004-11-10  Simon Josefsson  <jas@extundo.com>
103851         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
103853 2004-11-10  Simon Josefsson  <jas@extundo.com>
103855         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103856         getaddrinfo.
103858         * modules/getaddrinfo: New file.
103860 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
103862         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
103864 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
103866         * lib/mktime.c (SHR): New macro, which is a portable
103867         substitute for >> that should work even on Crays.
103868         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
103869         Problem reported by Mark D. Baushke in
103870         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
103871         * lib/getdate.y (SHR): Likewise.
103872         (tm_diff): Use it.
103873         * lib/strftime.c (SHR): Likewise.
103874         (tm_diff): Use it.
103875         * lib/quotearg.c (struct quoting_options): Use unsigned int for
103876         quote_these_too, so that right shifts are well defined.  All uses
103877         changed.
103879 2004-11-10  Jim Meyering  <jim@meyering.net>
103881         Ensure that no close failure goes unreported.
103882         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
103883         return early when it seems there's nothing to flush.
103884         Don't include __fpending.h.
103886 2004-11-10  Jim Meyering  <jim@meyering.net>
103888         * modules/closeout (Depends-on): Remove fpending.
103890 2004-11-10  Jim Meyering  <jim@meyering.net>
103892         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
103894 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103896         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
103897         gl_FUNC_STRFTIME.
103898         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
103899         and AC_REQUIRE when possible, to avoid duplicate checks.
103900         Check for <wchar.h>.
103902 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103904         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
103906 2004-11-09  Bruno Haible  <bruno@clisp.org>
103908         * m4/sockpfaf.m4: New file.
103910 2004-11-05  Bruno Haible  <bruno@clisp.org>
103912         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
103913         Reported by Mark D. Baushke <mdb@cvshome.org>.
103915 2004-11-04  Bruno Haible  <bruno@clisp.org>
103917         2004-09-11  Bruno Haible  <bruno@clisp.org>
103918                 * allocsa.valgrind: New file.
103919         2004-02-06  Bruno Haible  <bruno@clisp.org>
103920                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
103921                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
103922                 Reported by Christopher Seip <chris.seip@hp.com>.
103924 2004-11-04  Bruno Haible  <bruno@clisp.org>
103926         * modules/allocsa (Files): Add lib/allocsa.valgrind.
103927         (Makefile.am): Distribute it.
103929 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
103931         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
103932         with errno == ERANGE if the buffer is too small.
103933         Problem reported by Mark D. Baushke.
103935 2004-11-03  Albert Chin  <china@thewrittenword.com>
103936             Paul Eggert  <eggert@cs.ucla.edu>
103938         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
103939         equivalent, substitute $ac_type for equivalent type rather than
103940         blindly using uint32_t *always* which won't work if uint32_t is not
103941         available.  Define _UINT32_T to work around typedef of uint32_t if
103942         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
103943         2.5.1.
103945 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103947         * m4/jm-macros.m4: Sync from coreutils.
103948         (gl_MACROS): Check for mbrlen, for pathchk.
103949         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
103951 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103953         * lib/xreadlink.c (MAXSIZE): New macro.
103954         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
103955         size does not exceed MAXSIZE.  Avoid cast.
103956         As suggested by Mark D. Baushke in
103957         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
103958         if readlink fails with buffer size just under MAXSIZE, try again
103959         with MAXSIZE.
103961 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103963         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
103965 2004-11-02  Derek R. Price  <derek@ximbiot.com>
103966         and  Paul Eggert  <eggert@cs.ucla.edu>
103968         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
103969         (get_date): Overparenthesize to avoid GCC warning.
103971 2004-11-02  Bruno Haible  <bruno@clisp.org>
103973         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
103974         returns void.
103976 2004-11-02  Bruno Haible  <bruno@clisp.org>
103978         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
103979         function returns void.
103981 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
103983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
103984         fflush_unlocked, flockfile, funlockfile, funlockfile,
103985         fputs_unlocked, putc_unlocked.
103987 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
103989         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
103990         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
103991         already declared.
103993 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103995         * modules/getdate (Files): Add doc/getdate.texi.
103996         (Depends-on): Add setenv, xalloc.
103998 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104000         * lib/getdate.y: Add support for TZ="foo" within a date string.
104001         Fix some bugs near time_t boundaries.  Reject dates with
104002         out-of-range components, e.g., "Sept 31".
104003         Include <stdlib.h>, "setenv.h", "xalloc.h".
104004         (ISDIGIT_LOCALE): Remove; unused.
104005         Note that the TZ and time functions used here are not reentrant.
104006         (mktime_ok, get_tz): New functions.
104007         (TZBUFSIZE): New constant.
104008         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
104009         This requires that we sometimes generate our own TZ="XXX..." setting.
104011 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104013         * doc/getdate.texi: New file, from coreutils with modifications for
104014         the new TZ parsing.
104016 2004-10-27  Derek R. Price  <derek@ximbiot.com>
104018         * lib/mktime.c (not_equal_tm): Remove redundant check.
104020 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104022         * modules/regex (lib_SOURCES): Add regex.c.
104023         Reported by James Youngman in
104024         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
104026 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104028         * lib/getdate.y: Use Bison 1.875 features, and some minor
104029         code cleanups.  This change does not affect semantics.
104030         Don't include <stdlib.h>; no longer needed.
104031         Don't include unlocked-io.h; only the "#if TEST" code uses
104032         stdio, and performance isn't crucial there.
104033         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
104034         Bison 1.875 features as described below.
104035         All uses of "PC." replaced by "pc->".
104036         (YYSTYPE): Add a forward declaration.
104037         (yylex, yyerror): Use full prototypes in forward decls.
104038         Use "%pure-parser" rather than obsolescent "%pure_parser".
104039         Use %parse-param and %lex-param instead of obsolescent
104040         YYPARSE_PARAM and YYLEX_PARAM.
104041         (meridian_table, month_and_day_table, time_units_table,
104042         relative_time_table, time_zone_table, military_table,
104043         lookup_zone, lookup_word, get_date):
104044         Use NULL instead of 0 where appropriate.
104045         (to_hour): Avoid abort (), to avoid a dependency on
104046         stdlib.h.
104047         (yyerror, yylex): Now accepts parser_control * arg.
104048         (main) [TEST]: Use '\0' rather than 0 for char.
104050 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104052         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
104054 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104056         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
104057         It's now the caller's responsibility to handle the case where
104058         !HAVE_GETPAGESIZE && !defined getpagesize.
104060         * lib/mktime.c (leapyear): Arg is long int, not int.
104062 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
104064         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
104066 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
104068         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
104069         missing.  Problem reported by James Youngman.
104071 2004-10-16  Simon Josefsson  <jas@extundo.com>
104073         * gnulib-tool: Fix comments.  Fix parse problem.
104074         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
104076 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
104078         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
104079         implementation of getopt_long.  Problem reported by Alexander Taler in:
104080         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
104082 2004-10-15  Bruno Haible  <bruno@clisp.org>
104084         * gnulib-tool: Untabify. Initialize supplied_libname.
104085         (func_usage): More homogenous output.
104086         (func_modules_transitive_closure, func_modules_to_filelist,
104087         func_emit_lib_Makefile_am): New functions.
104088         (func_import): New function, extracted from big case statement. Use
104089         func_get_license, func_modules_transitive_closure,
104090         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
104091         opt_lgpl. Don't use test -a, as it's not portable.
104092         (func_create_testdir): Use func_modules_transitive_closure,
104093         func_modules_to_filelist, func_emit_lib_Makefile_am.
104095 2004-10-15  Bruno Haible  <bruno@clisp.org>
104097         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
104099 2004-10-15  Bruno Haible  <bruno@clisp.org>
104101         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
104102         the portions belonging to each module.
104103         Suggested by Derek Robert Price <derek@ximbiot.com>.
104105 2004-10-12  Simon Josefsson  <jas@extundo.com>
104107         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104108         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
104109         to real functions.
104111 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104113         * modules/vsnprintf: New file.
104115 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104117         * m4/vsnprintf.m4: New file.
104119 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104121         * lib/vsnprintf.h: New file.
104122         * lib/vsnprintf.c: New file.
104124 2004-10-11  Bruno Haible  <bruno@clisp.org>
104126         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
104127         vsnprintf.
104129 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
104131         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
104133 2004-10-07  Bruno Haible  <bruno@clisp.org>
104135         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
104136         fits into the provided buffer.
104138 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
104140         * lib/diacrit.c, diacrit.h: Add GPL notice.
104142         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
104143         notice.
104144         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
104145         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
104146         This avoids a potential constant-folding bug.
104148 2004-10-05  Bruno Haible  <bruno@clisp.org>
104150         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
104151         for the declaration of strsep.
104153 2004-10-05  Bruno Haible  <bruno@clisp.org>
104155         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
104157 2004-10-04  Simon Josefsson  <jas@extundo.com>
104159         * modules/memmem: New file.
104160         * tests/test-memmem.c: New file.
104161         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
104163 2004-10-04  Simon Josefsson  <jas@extundo.com>
104165         * m4/memmem.m4: New file.
104167 2004-10-04  Simon Josefsson  <jas@extundo.com>
104169         * lib/memmem.h: New file.
104170         * lib/memmem.c: New file, taken from glibc.
104172 2004-10-04  Simon Josefsson  <jas@extundo.com>
104174         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
104175         '#ifdef USE_UNLOCKED_IO'.
104177 2004-10-04  Simon Josefsson  <jas@extundo.com>
104179         * config/srclist.txt: Add memmem from glibc.
104181 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104183         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
104185         * modules/argmatch, modules/argp, modules/closeout, modules/error,
104186         modules/exclude, modules/getdate, modules/getline,
104187         modules/getndelim2, modules/getpass, modules/getpass-gnu,
104188         modules/getusershell, modules/linebuffer, modules/md5,
104189         modules/mountlist, modules/posixtm, modules/readtokens,
104190         modules/readutmp, modules/regex, modules/sha1,
104191         modules/version-etc, modules/yesno:
104192         Remove dependency on unlocked-io.
104194 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104196         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
104198         * m4/unlocked-io.m4: Add copyright notice.
104199         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
104201 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104203         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
104204         * lib/xmalloc.c (xmemdup): Likewise.
104205         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
104206         XFREE): Remove these long-obsolescent macros.
104207         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
104208         * lib/xstrdup.c: Remove.
104210         * lib/regex.c (re_comp): Cast gettext return value to char *,
104211         Problem reported by Martin Neitzel via Mark D. Baushke.
104213 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104215         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
104216         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
104217         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
104218         regex.c, sha1.c, version-etc.c, yesno.c:
104219         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
104220         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
104221         the includer's responsibility.
104223         Sync from coreutils.
104225         * lib/modechange.c (mode_compile): Don't decrement a pointer that
104226         points to the start of a string, as the C Standard says the
104227         resulting behavior is undefined.
104229         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
104230         simple -> simple_backups, numbered_existing ->
104231         numbered_existing_backups, numbered -> numbered_backups
104232         to avoid shadowing problems.  All uses changed.
104233         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
104234         * lib/backupfile.c (check_extension, numbered_backup):
104235         Rename locals to avoid shadowing 'basename'.
104236         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
104237         once.
104239         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
104240         * lib/.cvsignore: Add getopt.h.
104242 2004-10-04  Bruno Haible  <bruno@clisp.org>
104244         * modules/README: New file.
104245         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
104246         not a module.
104248 2004-10-02  Jim Meyering  <jim@meyering.net>
104250         * lib/dirfd.h, getpagesize.h: Add copyright notice.
104252 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104254         * modules/strsep: New file.
104256 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104258         * m4/strsep.m4: New file.
104260 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104262         * lib/strsep.h: New file.
104263         * lib/strsep.c: New file.
104265 2004-10-01  Simon Josefsson  <jas@extundo.com>
104267         * lib/snprintf.c (snprintf): Handle size==0.
104269 2004-10-01  Simon Josefsson  <jas@extundo.com>
104270             Bruno Haible  <bruno@clisp.org>
104272         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
104273         (snprintf): Declare 'args'.
104275 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
104277         * lib/snprintf.c: Remove comments as to why each header is needed.
104279 2004-10-01  Bruno Haible  <bruno@clisp.org>
104281         * MODULES.html.sh: Add strsep.
104283 2004-09-30  Simon Josefsson  <jas@extundo.com>
104285         * modules/snprintf: New file.
104287 2004-09-30  Simon Josefsson  <jas@extundo.com>
104289         * m4/snprintf.m4: New file.
104291 2004-09-30  Simon Josefsson  <jas@extundo.com>
104293         * lib/snprintf.h, lib/snprintf.c: New files.
104295 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104297         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
104298         (hol_entry_help): Never translate an empty string.
104299         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
104300         * lib/argp.h (OPTION_NO_TRANS): New option.
104302 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104304         * modules/argp (Maintainer): Replace Simon Josefsson
104305         by Sergey Poznyakoff.
104307 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104309         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
104310         changes merged back into glibc.
104312 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104314         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
104316 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104318         * lib/xvasprintf.c: Include xalloc.h.
104319         (xvasprintf): Use xalloc_die, not xmalloc_die.
104321 2004-09-29  Bruno Haible  <bruno@clisp.org>
104323         * modules/alloca-opt: New file, derived from modules/alloca.
104324         * modules/allocsa: Depend on alloca-opt instead of alloca.
104325         * modules/setenv: Likewise.
104326         * modules/vasnprintf: Likewise.
104327         * MODULES.html.sh: Add alloca-opt.
104329 2004-09-28  Simon Josefsson  <jas@extundo.com>
104331         * gnulib-tool: New parameter --lgpl, to asseert that modules are
104332         LGPL, and to replace license template from GPL to LGPL.
104334 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
104336         * modules/dummy: Change license to LGPL.
104338 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
104340         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
104342 2004-09-24  Simon Josefsson  <jas@extundo.com>
104344         * modules/minmax (License): Change from GPL to LGPL.
104346 2004-09-23  Simon Josefsson  <jas@extundo.com>
104348         * gnulib-tool (--import): Typo.
104350 2004-09-23  Simon Josefsson  <jas@extundo.com>
104352         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
104354 2004-09-22  Bruno Haible  <bruno@clisp.org>
104356         * modules/*: Add 'License' field.
104357         * gnulib-tool: Accept --extract-license option.
104358         (func_get_license): New function.
104360 2004-09-21  Bruno Haible  <bruno@clisp.org>
104362         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
104363         Reported by Simon Josefsson.
104365 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104367         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
104368         gl_AC_TYPE_LONG_LONG.
104370 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104372         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
104374 2004-09-18  Simon Josefsson  <jas@extundo.com>
104375         and  Paul Eggert  <eggert@cs.ucla.edu>
104377         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
104378         calls with autoreconf.  Define GL_LIB.
104380 2004-09-14  Karl Berry  <karl@gnu.org>
104382         * config/srclist.txt: unsync setenv.c, sigh.
104384 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104386         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
104387         Problem reported by Bruno Haible in:
104388         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
104390 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104392         * config/srclist.txt: Comment out argp-pvh.c.
104394 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
104396         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
104397         in case some system header has #define'd it.  Problem reported by
104398         Soeren D. Schulze in
104399         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
104401 2004-09-09  Karl Berry  <karl@gnu.org>
104403         * regex.[ch]: delete from the root.  These were supposed to be
104404                 synced with emacs cvs, but this has not happened for about
104405                 a year, and anyway nothing else uses emacs regex.[ch].
104406                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
104407                 lib/regex[.ch] is untouched.
104409 2004-09-09  Bruno Haible  <bruno@clisp.org>
104411         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
104413 2004-09-09  Bruno Haible  <bruno@clisp.org>
104415         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
104416         modifications.
104417         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
104419 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
104421         * modules/xvasprintf: New file.
104422         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
104424 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
104426         * lib/xvasprintf.h: New file.
104427         * lib/xvasprintf.c: New file.
104428         * lib/xasprintf.c: New file.
104430 2004-09-08  Bruno Haible  <bruno@clisp.org>
104432         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
104434 2004-09-08  Bruno Haible  <bruno@clisp.org>
104436         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
104437         length is > INT_MAX.
104438         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
104439         more.
104441 2004-09-08  Bruno Haible  <bruno@clisp.org>
104443         * lib/stdint_.h: New file, taken from GNU clisp.
104445 2004-09-08  Bruno Haible  <bruno@clisp.org>
104446             Oskar Liljeblad  <oskar@osk.mine.nu>
104448         * modules/stdint: New file.
104449         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
104451 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104453         Import from coreutils.
104454         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
104455         strings on unbounded length.  alloca's performance benefits aren't
104456         that important here.
104457         (V_STRDUP): Remove.
104458         (parse_with_separator): New function, with most of the internals
104459         of the old parse_user_spec.  Allow user to omit both user and group,
104460         for compatibility with FreeBSD.
104461         Clone only the user name, not the entire spec.
104462         Do not set *uid, *gid unless entirely successful.
104463         Avoid memory leak in some failing cases.
104464         Fix regression for USER.GROUP reported by Dmitry V. Levin in
104465         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
104466         (parse_user_spec): Rewrite to use parse_with_separator.
104468 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104470         * modules/userspec: Don't depend on alloca.
104472 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104474         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
104476 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104478         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
104479         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
104480         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
104482 2004-08-16  Simon Josefsson  <jas@extundo.com>
104484         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
104485         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
104486         Add --dry-run for --import.
104487         Let user provided command line parameters override configure.ac
104488         settings.
104490 2004-08-12  Simon Josefsson  <jas@extundo.com>
104492         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
104493         as discussed with Paul Eggert in threads rooted at
104494         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
104495         and
104496         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
104497         Before, the test was empty, and relied on ELIDE_CODE in source
104498         code.)
104499         (gl_PREREQ_GETOPT): New macro.
104500         (gl_GETOPT): Use them.
104502 2004-08-12  Simon Josefsson  <jas@extundo.com>
104504         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
104505         * lib/getopt_.h: Renamed from getopt.h.
104507 2004-08-12  Simon Josefsson  <jas@extundo.com>
104509         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
104510         Change default library name from libfoo to libgnu.
104511         Now, if you have a configure.ac that says:
104512                 gl_SOURCE_BASE(gl)
104513                 gl_M4_BASE(gl/m4)
104514                 gl_MODULES(error getopt etcetera)
104515                 gl_INIT
104516         you can import all you need by running:
104517                 ../gnulib/gnulib-tool --import
104519         * modules/getopt (Files): Rename getopt.h to getopt_.h.
104520         (Makefile.am): Rewrite, use logic from argz.
104521         (Include): Use <getopt.h> instead of "getopt.h".
104523 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104525         * modules/argp (Files): Add m4/unlocked-io.m4.
104526         (Depends-on): Add extensions.
104528 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104530         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
104531         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
104532         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
104533         Check for program_invocation_name, program_invocation_short_name,
104534         flockfile, funlockfile, features.h, _getopt_long_only_r.
104536 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104538         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
104539         its complicated substitute.
104540         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
104541         and program_invocation_name.
104542         (__argp_basename) [!_LIBC]: Remove; the only use was
104543         replaced by its body.
104544         (__argp_short_program_name): Change condition from
104545         !defined __argp_short_program_name to
104546         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
104547         to match argp-namefrob.h.
104548         (__argp_failure): Don't assume strerror_r returns char *.
104549         * lib/argp-parse.c (N_): Define unconditionally.
104550         (argp_default_options): Fill out initializers with 0 to avoid
104551         gcc warnings.
104553 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104555         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
104556         getopt1.c.
104558 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104560         Merge from coreutils.
104562         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
104564         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
104565         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
104567 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104569         Merge from coreutils.
104571         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
104572         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
104573         for Reliant Unix 5.43.
104575         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
104576         (union fooround): Use uintmax_t, not long int.
104577         The rest is a merge from libc:
104578         [defined _LIBC]: Include <shlib-compat.h>.
104579         (_obstack) [defined _LIBC]: Remove after 2.3.4.
104581         * lib/settime.c (settime): Recode to avoid warning with
104582         Sun Forte C 6U2.
104584         * lib/strverscmp.c: Convert to UTF-8.
104586 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104588         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104589         m4/uintmax_t.m4.
104591 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104593         * modules/xalloc-die: New file.
104594         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
104596         * modules/md5 (Files): Add m4/uint32_t.m4.
104597         * modules/sha1: Renamed from modules/sha.
104598         (Files):
104599         Rename lib/sha.h to lib/sha1.h.
104600         Rename lib/sha.c to lib/sha1.c.
104601         Rename m4/sha.m4 to m4/sha1.m4.
104602         (lib_SOURCES): Likewise.
104603         (configure.ac): Rename gl_SHA to gl_SHA1.
104604         (Include): sha.h -> sha1.h.
104606 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104608         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
104609         * m4/sha1.m4: Renamed from sha.m4.
104610         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
104612 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104614         * lib/obstack.h (obstack_empty_p):
104615         Don't assume that chunk->contents is suitably aligned.
104616         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
104617         Likewise. Problem reported by Benno in
104618         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
104620         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
104621         readable.  This could be improved further but it'd take some work.
104623 2004-08-08  Simon Josefsson  <jas@extundo.com>
104625         * modules/xgethostname (Depends-on): Remove exit and error (not
104626         used).
104628         * modules/getpass-gnu: Add getpass.h.
104629         (Depends-on): Add stdbool.
104630         * modules/getpass: Add getpass.h.
104632 2004-08-08  Simon Josefsson  <jas@extundo.com>
104634         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
104635         Check getpass declaration.
104637 2004-08-08  Simon Josefsson  <jas@extundo.com>
104639         * lib/xgethostname.c: Don't include error.h (not used).
104641         * lib/getpass.h: Add.
104642         * lib/getpass.c: Include getpass.h first.
104644 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
104646         * lib/xalloc-die.c: New file.
104647         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
104648         All uses removed.
104649         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
104650         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
104651         xalloc-die.c.
104652         (_, N_, xalloc_die): Move to xalloc-die.c.
104653         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
104654         so that we needn't mess with xalloc_msg_memory_exhausted.
104656         * lib/sha1.h: Renamed from sha.h.
104657         (SHA1_H): Renamed from _SHA_H.
104658         (sha1_ctx): Renamed from sha_ctx.
104659         (sha1_init_ctx): Renamed from sha_init_ctx.
104660         (sha1_process_block): Renamed from sha_process_block.
104661         (sha1_process_bytes): Renamed from sha_process_bytes.
104662         (sha1_finish_ctx): Renamed from sha_finish_ctx.
104663         (sha1_read_ctx): Renamed from sha_read_ctx.
104664         (sha1_stream): Renamed from sha_stream.
104665         (sha1_buffer): Renamed from sha_buffer.
104666         * lib/sha1.c: Likewise; renamed from sha.c.
104667         Do not include <sys/types.h>.
104668         Include <stddef.h> rather than <stdlib.h>.
104670 2004-08-08  Bruno Haible  <bruno@clisp.org>
104672         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
104673         FILESYSTEM_PREFIX_LEN.
104674         * lib/progreloc.c: Likewise.
104675         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
104677 2004-08-06  Simon Josefsson  <jas@extundo.com>
104679         * modules/progname (Depends-on): Don't depend on stdbool.
104681 2004-08-06  Simon Josefsson  <jas@extundo.com>
104683         * modules/getsubopt: New file.
104684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104685         getsubopt.
104687 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104689         More merge from coreutils.
104691         * m4/utimens.m4, m4/utimecmp.m4: New files.
104692         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
104693         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
104694         prereq.m4, sha.m4: Import changes from coreutils.
104696 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104698         More merge from coreutils.
104699         * modules/raise, modules/readtokens0, modules/utimens:
104700         * modules/utimecmp, module/xnanosleep: New files.
104701         * modules/strftime: Add lib/strftime.h.
104702         Change include from <time.h> to "strftime.h".
104703         * modules/yesno: Add lib/yesno.h.
104704         * modules/backupfile: Remove lib/addext.c.
104705         * modules/euidaccess: Add stat-macros.h.
104706         * modules/canonicalize, modules/euidaccess,
104707         modules/filemode, modules/lchown, modules/makepath,
104708         modules/rmdir, modules/stat: Likewise.
104710 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104712         Merge from tar.
104713         * lib/argp-help.c (make_hol, hol_append): Don't assume that
104714         SIZE_MAX is a valid preprocessor constant.
104715         (__argp_basename): Change from "#ifndef _LIBC"
104716         to "#ifndef __argp_short_program_name", so that
104717         we don't compile these functions for tar.
104719         More merges from coreutils.
104720         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
104721         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
104722         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
104723         * lib/addext.c: Remove; no longer needed.
104724         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
104725         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
104726         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
104727         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
104728         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
104729         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
104730         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
104731         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
104732         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
104733         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104734         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
104735         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
104736         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
104737         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
104738         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
104739         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
104740         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
104741         Import changes from coreutils.
104743 2004-08-05  Simon Josefsson  <jas@extundo.com>
104745         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
104747 2004-08-05  Simon Josefsson  <jas@extundo.com>
104749         * m4/getsubopt.m4: New file.
104751 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104753         Merge from coreutils.
104755         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
104756         * m4/getcwd-path-max.m4: New files.
104758         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
104759         FILESYSTEM_PREFIX_LEN ->
104760         FILE_SYSTEM_PREFIX_LEN.
104761         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
104762         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
104763         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
104764         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
104766         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
104767         prerequisite modules now handle the DOS stuff.
104768         Don't check for unistd.h.
104770 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104772         Merge from coreutils.
104774         * lib/.gdb-history: Remove; this doesn't belong here.
104776         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
104777         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
104778         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
104779         * lib/getcwd.c: New files.
104781         * lib/dirname.h: Include <stdbool.h>.
104782         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
104783         for consistency with POSIX terminology.  All uses changed.
104784         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
104785         (strip_trailing_slashes): Use bool for booleans.
104786         * lib/stripslash.c (strip_trailing_slashes): Likewise.
104788         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
104789         sometimes returns a positive errno value even when it succeeds.
104790         (print_errno_message) [!LIBC]: Fall back on strerror if
104791         __strerror_r fails.
104793         * lib/path-concat.c (mempcpy): Don't define if a system header defines
104794         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
104795         (longest_relative_suffix): New function.
104796         (path_concat): Use it.  Assume first argument is not NULL.
104797         Port to DOS.  Omit redundant separators.
104798         Report an error instead of returning NULL.
104799         Use mempcpy instead of memcpy.
104800         (xpath_concat): Remove: not declared or used.
104802         * lib/same.h: Include <stdbool.h>
104803         (same_name): Return bool, not int.
104804         * lib/same.c (same_name): Likewise.
104805         (errno): Don't declare; we assume C89 or better now.
104807         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
104808         if not already defined.
104810         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
104811         * lib/dup-safer.c (errno): Likewise.
104813 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104815         Merge from coreutils.
104816         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
104817         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
104818         * modules/path-concat: Don't depend on strdup.
104820 2004-08-03  Simon Josefsson  <jas@extundo.com>
104822         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
104823         * lib/progname.h: Don't include stdbool.h.
104825 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104827         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
104828         * MODULES.html.sh (func_all_modules): Remove fatal.
104830 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104832         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
104834 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104836         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
104837         working.
104839 2004-08-02  Simon Josefsson  <jas@extundo.com>
104841         * lib/getsubopt.h: New file, with comments from Bruno Haible.
104842         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
104843         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
104845 2004-08-01  Simon Josefsson  <jas@extundo.com>
104847         * lib/xgetdomainname.c: Include stdlib.h, for free().
104849 2004-07-19  Bruno Haible  <bruno@clisp.org>
104851         * MODULES.html.sh (func_all_modules): Add dummy.
104853 2004-07-16  Simon Josefsson  <jas@extundo.com>
104855         * modules/dummy: New file.
104857 2004-07-16  Simon Josefsson  <jas@extundo.com>
104859         * lib/dummy.c: New file.
104861 2004-07-16  Bruno Haible  <bruno@clisp.org>
104863         * lib/backupfile.h: Add extern "C" for C++.
104864         * lib/closeout.h: Likewise.
104865         * lib/copy-file.h: Likewise.
104866         * lib/findprog.h: Likewise.
104867         * lib/full-write.h: Likewise.
104868         * lib/pathname.h: Likewise.
104869         * lib/progname.h: Likewise.
104870         * lib/stpcpy.h: Likewise.
104871         * lib/stpncpy.h: Likewise.
104872         * lib/strcase.h: Likewise.
104873         * lib/strstr.h: Likewise.
104874         * lib/xalloc.h: Likewise.
104876         * lib/mbswidth.h: Add extern "C" for C++.
104877         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
104879 2004-07-13  Robert Millan  <robertmh@gnu.org>
104881         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
104883 2004-07-09  Simon Josefsson  <jas@extundo.com>
104885         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
104886         failed without this.)
104888 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104890         * modules/chown (Files): Add lib/fchown-stub.c, since
104891         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
104893 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104895         * lib/fchown-stub.c: New file.
104897 2004-06-24  Jim Meyering  <jim@meyering.net>
104899         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
104901 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104903         * modules/argz: Omit "#include".
104905         * MODULES.html.sh (func_all_modules): Add calloc, to match
104906         2004-06-01 addition of calloc module.
104908 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104910         * m4/argz.m4: New file, which is autoupdated from libtool.
104912 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104914         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
104915         libtool.
104917 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104919         * config/srclist-update: Don't insist on "USA." before the
104920         close-comment, as libtool omits the period and puts the */ on a
104921         separate line.
104922         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
104923         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
104925 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
104927         * modules/argz: New file.
104928         * MODULES.html.sh (func_all_modules): Add argz.
104930 2004-06-12  Jim Meyering  <jim@meyering.net>
104931         and  Paul Eggert  <eggert@cs.ucla.edu>
104933         * modules/hash (Files): Add lib/xalloc.h.
104934         * modules/pipe (Depends-on): Add wait-process.
104935         * modules/stat (Depends-on): Add xalloc.
104936         * modules/userspec (Files): Add lib/userspec.h.
104937         * modules/xstrto
104939         Upgrade from gettext-0.13.
104940         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
104941         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
104942         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
104944 2004-06-10  Jim Meyering  <jim@meyering.net>
104946         * lib/calloc.c: New file.
104948 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104950         * lib/getdate.y (yylex): Allow space between sign and number.
104951         Problem reported by Dan Jacobson.
104953 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
104955         Merge from coreutils CVS.
104957         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
104958         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
104959         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
104960         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
104961         xstrtol.m4: Fix copyright date and/or serial number.
104963         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
104964         See if we need an fchown replacement.
104965         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
104966         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
104967         and use the replacement function if we detect either defect.
104969         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
104970         gl_UTIMECMP.
104972 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
104973         and  Jim Meyering  <jim@meyering.net>
104975         Merge from coreutils CVS.
104977         * lib/stat-macros.h: New file, with contents from file-type.h
104978         and coreutils' system.h.
104979         * lib/file-type.c: Include "stat-macros.h".
104980         * lib/file-type.h (file_type): Move all macro definitions to new file,
104981         stat-macros.h.
104983         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
104984         Wrap old code with this conditional.
104985         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
104986         function that does not dereference symlinks.
104987         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
104989         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
104990         dependency problems.
104991         (xreadlink): Accept new arg SIZE, for efficiency.
104992         All decls and uses changed.
104993         * lib/xreadlink.h: Include <stddef.h>, for size_t.
104995         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
104996         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
104998         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
104999         sysexits.h.
105001 2004-06-01  Jim Meyering  <jim@meyering.net>
105003         * m4/calloc.m4: New file.
105005 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
105007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
105008         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
105009         Also, fix a typo in a diagnostic.
105011 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105013         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
105014         or AC_FUNC_REALLOC.
105016 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105018         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
105019         macros to be defined.
105020         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
105021         the allocator returns NULL because the requested size is zero.
105023 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105025         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
105026         var.  Add comment explaining why libc still defines it.  This
105027         merges the following patch from glibc:
105028         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
105030 2004-05-20  Andreas Schwab  <schwab@suse.de>
105032         * m4/free.m4: Replace free if it not known to work, not the other
105033         way round.
105035 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105037         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
105038         present in glibc since revision 1.1 of this file.
105039         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
105040         obstack_alignment_mask, obstack_alloc, obstack_base,
105041         obstack_blank, obstack_blank_fast, obstack_chunk_size,
105042         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
105043         obstack_grow0, obstack_init, obstack_int_grow,
105044         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
105045         obstack_next_free, obstack_object_size, obstack_ptr_grow,
105046         obstack_ptr_grow_fast, obstack_room): Remove declarations of
105047         nonexistent functions.
105049 2004-05-18  Karl Berry  <karl@gnu.org>
105051         * config/srclist.txt: break link for vasnprintf.c.
105053 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105055         Port obstack to the AS/400, where pointers are 16 bytes wide and
105056         you cannot cast an integer to a valid pointer.  This patch is
105057         currently waiting to be integrated into glibc; see
105058         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
105060         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
105061         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
105062         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
105063         (struct obstack): temp member is now a union of a pointer and
105064         an integer, instead of an integer.  All integer uses changed.
105065         This does not affect the physical layout of struct obstack,
105066         except on hosts (like the AS/400) where the size or alignment of
105067         void * is greater than that of ptrdiff_t.
105068         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
105069         __STDC__)]: Store temporary in pointer member of union, not
105070         integer member.
105071         * lib/obstack.c: Include <stddef.h>, for offsetof.
105072         (struct fooalign): Remove; it doesn't need a name.
105073         (union fooround): Change double to long double, and add void *.
105074         (DEFAULT_ALIGNMENT): Use offsetof to compute.
105075         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
105076         not a macro.  Hence the values are always int; so remove all
105077         casts-to-int in uses.
105079 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105081         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
105082         we can get this patch merged into glibc.
105084 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105085             Paul Eggert  <eggert@cs.ucla.edu>
105087         * m4/argp: Depend on alloca.
105089 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105090             Paul Eggert  <eggert@cs.ucla.edu>
105092         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
105093         freecoding.
105095 2004-05-17  Bruno Haible  <bruno@clisp.org>
105097         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
105098         precision that consists of a '.' followed by an empty digit string.
105099         Patch by Tor Lillqvist <tml@iki.fi>.
105101 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
105104         for backward compatibility with older code.  We need our own
105105         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
105106         it under some other name, and our alloca.h will define it.
105108 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105109             Derek Price  <derek@ximbiot.com>
105111         * lib/alloca.c: Include <alloca.h>, to get our interface.
105112         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
105113         include <alloca.h> first.  Use C89 prototype for alloca; this
105114         requires including <stddef.h> for size_t.  Use extern "C" if C++.
105115         Use #elif for simplicity, since we can assume C89 now.
105116         Don't try to source the system alloca.h since it will not be found
105117         and to prevent recursively including its replacement.
105118         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
105119         * lib/regex.c: Likewise.
105121 2004-05-16  Derek Price  <derek@ximbiot.com>
105122             Paul Eggert  <eggert@cs.ucla.edu>
105124         getline cleanup.  This changes the getndelim2 API: both order of
105125         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
105126         no delimiter).
105128         * lib/getline.c: Don't include stddef.h or stdio.h, since our
105129         interface does that.
105130         (getline): Always use getdelim, so that we don't have two
105131         copies of this code.
105132         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
105133         if available.
105134         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
105135         (GETNDELIM2_MAXIMUM): New macro.
105136         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
105137         instead of the old practice of delim2==0.  All callers changed.
105138         Return -1 on overflow, instead of returning junk.
105139         Do not set *linesize unless allocation succeeds.
105140         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
105141         that we include sys/types.h.
105142         * lib/getnline.h: Likewise.
105143         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
105144         (getndelim2): Reorder arguments.
105145         * lib/getnline.c (getnline, getndelim):
105146         Don't discard the NMAX argument.
105147         (getnline): Invoke getndelim, to avoid code duplication.
105148         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
105149         of (size_t) -1 by callers of the getnline family.
105151 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105153         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
105154         Check for gettimeofday.
105155         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
105156         Check for settimeofday, stime.
105158 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105160         * lib/nanosleep.c (suspended): Change its type from int to
105161         sig_atomic_t volatile.
105162         (first_call): Make it private to rpl_nanosleep, and have it
105163         be zero initially as that's a bit faster.
105164         (my_usleep): Round up fractional times instead of truncating them,
105165         as this is the usual meaning for 'sleep'.
105167         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
105168         doesn't work.
105169         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
105170         (ENOSYS): Define if not defined.
105171         (settime): Fall back on stime if it exists and settimeofday fails.
105172         But don't bother with fallbacks if a method fails with errno == EPERM.
105174 2004-05-11  Jim Meyering  <jim@meyering.net>
105176         Prior to this change, the save_cwd caller required read access to the
105177         current directory on most systems (ones with the fchdir function).
105179         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
105180         fails, try write-only, and finally, resort to using xgetcwd.
105182 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
105184         * lib/obstack.c, obstack.h: Import changes from libc.
105186 2004-04-28  Bruno Haible  <bruno@clisp.org>
105188         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
105189         also implicitly appends .exe to executables.
105190         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
105191         accepts Windows pathnames.
105192         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105193         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105194         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105195         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105196         Reported by Derek Robert Price <derek@ximbiot.com>.
105198 2004-04-21  Karl Berry  <karl@gnu.org>
105200         * config/srclist.txt (localcharset.c): break sync.
105202 2004-04-20  Paul Eggert  <eggert@twinsun.com>
105204         * m4/host-os.m4: Add a copyright notice.
105206 2004-04-20  Jim Meyering  <jim@meyering.net>
105208         Change UTILS_ to gl_ in AC_DEFINE'd names.
105209         Change utils_- and jm_-prefixed variables, too.
105210         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
105211         UTILS_FUNC_MKDIR_TRAILING_SLASH.
105212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
105214         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
105215         Don't emit trailing blanks.
105216         Also rename jm_-prefixed variables to have gl_ prefix.
105218         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
105219         Also rename jm_-prefixed variables to have gl_ prefix.
105221         * m4/jm-macros.m4: Reflect the renamings.
105222         * m4/prereq.m4: Likewise.
105224 2004-04-20  Jim Meyering  <jim@meyering.net>
105226         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
105227         memory.
105229 2004-04-20  Jim Meyering  <jim@meyering.net>
105230             Bruno Haible  <bruno@clisp.org>
105232         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
105233         memory when realloc fails.
105235 2004-04-19  Jim Meyering  <jim@meyering.net>
105237         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
105238         now that readutmp.c may call `free (0)'.
105240 2004-04-19  Bruno Haible  <bruno@clisp.org>
105242         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
105243         * m4/inttypes_h.m4: Likewise.
105244         * m4/stdint_h.m4: Likewise.
105245         * m4/intmax_t.m4: Likewise.
105246         * m4/uintmax_t.m4: Likewise.
105248 2004-04-18  Jim Meyering  <jim@meyering.net>
105250         * m4/prereq.m4: Don't forbid jm_ prefix.
105252         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
105253         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
105254         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
105255         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
105256         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
105257         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
105258         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
105259         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
105260         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
105261         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
105262         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
105263         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
105264         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
105265         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
105266         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
105267         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
105268         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
105269         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
105270         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
105272 2004-04-18  Jim Meyering  <jim@meyering.net>
105274         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
105275         failure, don't leak memory and do call END_UTMP_ENT.
105277 2004-04-16  Jim Meyering  <jim@meyering.net>
105279         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
105280         coreutils' stat program.
105281         (gl_PREREQ): Don't require jm_PREREQ_STAT.
105283 2004-04-11  Paul Eggert  <eggert@twinsun.com>
105285         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
105286         C89.
105287         (CHAR_BIT): Remove, since we assume C89.
105288         Include <stdint.h> if available, as per current Autoconf CVS advice.
105290 2004-03-31  Jim Meyering  <jim@meyering.net>
105292         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
105293         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
105294         * m4/xalloc.m4: Likewise.
105296 2004-03-30  Paul Eggert  <eggert@twinsun.com>
105298         Merge from coreutils.
105300         * m4/inttostr.m4: New file.
105301         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
105302         Require AM_STDBOOL_H and gl_TIMESPEC instead.
105303         Require gl_CLOCK_TIME.
105304         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
105306 2004-03-30  Paul Eggert  <eggert@twinsun.com>
105308         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
105309         not bool, to be more consistent with Unix conventions.
105310         Suggested by Bruno Haible.
105312         Merge from coreutils.
105314         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
105315         * lib/umaxtostr.c: New files.
105317         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
105318         the usual <time.h> dance.
105319         (get_date): Change signature to support fractional time stamps.
105320         All callers changed.
105321         * lib/getdate.y: Include "getdate.h" first, as we can now
105322         assume C89 and don't need to worry about 'const'.
105323         Similarly, include "unlocked-io.h" near start, not in middle.
105324         Include <limits.h>.
105325         (textint.value): Use long int rather than int.
105326         (textint.digits): Use size_t rather than int.
105327         (BILLION, LOG10_BILLION): New constants.
105328         (parser_control): New member rel_ns.  Members day_ordinal,
105329         time_zone, month, day, hour, minutes, rel_year, rel_month,
105330         rel_day, rel_hour, rel_minutes, rel_seconds
105331         are now long int, not int.  Member seconds is now struct timespec,
105332         not int.  New member timespec_seen.  Members dates_seen, days_seen,
105333         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
105334         not int.
105335         (%union.intval): Now long int, not int.
105336         New member timespec.
105337         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
105338         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
105339         (spec): Now is a timespec or an item list.
105340         (timespec, items): New nonterminals.
105341         (time, rel, relunit, number, get_date):
105342         Add support for fractional seconds.
105343         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
105344         (gmtime, localtime, mktime): Remove decls; not needed with C89.
105345         (to_hour): First arg is now long int, not int.
105346         (to_year): Returns long int, not int.
105347         Don't treat year -70 like 70.
105348         (tm_diff): Returns long int, not int.
105349         (lookup_word): Use bool instead of int when appropriate.
105350         (yylex): Use size_t for count, not int.
105351         Detect overflow when parsing large integer constants.
105352         Add support for fractions.
105353         (get_date): Make pointers 'const' if possible.
105354         Use more-portable code to detect integer overflow.
105355         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
105356         Don't use ctime; it's not reliable if the year has >4 digits.
105358         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
105359         This is for compatibility with BSD.
105361         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
105362         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
105363         From coreutils' system.h.
105365         * lib/userspec.c: Don't include "posixver.h".
105366         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
105367         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
105368         compatible extension.  Simplify code by removing a boolean int
105369         that was always nonzero if a string was nonnull.
105371 2004-03-30  Jim Meyering  <jim@meyering.net>
105373         Merge from coreutils.
105375         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
105376         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
105377         on some systems one must include <grp.h> before it.
105378         Reported by Christian Krackowizer.
105380 2004-03-30  Jim Meyering  <jim@meyering.net>
105382         Merge from coreutils.
105384         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
105386         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
105387         an empty input stream.
105389         * lib/readtokens.c: Include <stdbool.h>.
105390         (readtoken): Use `size_t' rather than int/long.
105391         All callers adjusted.
105392         Use `bool' rather than `int' where appropriate.
105393         Use memset rather than an explicit loop.
105394         Use x2nrealloc rather than xrealloc.
105395         Allow the use of `\0' as a delimiter.
105396         (readtokens): Likewise.
105397         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
105399 2004-03-30  Jim Meyering  <jim@meyering.net>
105401         * m4/realloc.m4: Remove file, since now it does no more than
105402         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
105403         the `configure.ac' section of module/realloc.
105404         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
105406 2004-03-30  Bruno Haible  <bruno@clisp.org>
105408         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
105409         nonnull.
105411 2004-03-29  Paul Eggert  <eggert@twinsun.com>
105413         Merge changes to getloadavg.c from coreutils and Emacs.
105415         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
105416         Define to an expression, not to the empty string.
105417         Include cloexec.h and xalloc.h.
105418         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
105419         Use set_cloexec_flag rather than rolling our own.
105420         * lib/cloexec.c, lib/cloexec.h: New files.
105422 2004-03-29  Paul Eggert  <eggert@twinsun.com>
105424         * m4/cloexec.m4: New file.
105426 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105428         * lib/getopt.h: Sync with libc CVS.
105430 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105431             Bruno Haible  <bruno@clisp.org>
105433         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
105434         mbswidth.
105436 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105437             Bruno Haible  <bruno@clisp.org>
105439         * lib/mbswidth.h: Include <wchar.h> only if
105440         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
105441         <wchar.h>.
105442         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
105444 2004-03-09  Paul Eggert  <eggert@twinsun.com>
105446         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
105447         Sync with libc CVS.
105448         * lib/getopt_int.h: New file, also synced from libc.
105450 2004-03-09  Paul Eggert  <eggert@twinsun.com>
105452         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
105453         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
105454         Bring back getopt.c, getopt.h, getopt1.c.
105456 2004-03-07  Paul Eggert  <eggert@twinsun.com>
105458         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
105459         All uses changed.  Check for sa_sigaction member; this fixes
105460         a bug first reported by Jason Andrade in
105461         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
105463 2004-03-07  Paul Eggert  <eggert@twinsun.com>
105465         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
105466         '#if' expressions.  Unlike the code it replaces, it does not
105467         depend on (defined _SC_PAGESIZE).  However, it does depend on
105468         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
105469         first reported by Jason Andrade in
105470         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
105472 2004-02-25  Simon Josefsson  <jas@extundo.com>
105474         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
105476 2004-02-25  Simon Josefsson  <jas@extundo.com>
105478         * lib/strdup.h: New file.
105479         * lib/strdup.c: Include it.
105480         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
105481         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
105483 2004-02-23  Karl Berry  <karl@gnu.org>
105485         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
105486         (from fencepost.gnu.org:/gd/gnuorg).
105488 2004-02-23  Karl Berry  <karl@gnu.org>
105490         * config/srclistvars.sh (GNUORG) [karl]: redefine.
105491         * config/srclist.txt: add maintain/standards documents.
105493 2004-02-18  Bruno Haible  <bruno@clisp.org>
105495         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
105496         Reported by Derek Robert Price <derek@ximbiot.com>.
105498 2004-02-16  Karl Berry  <karl@gnu.org>
105500         * config/mkinstalldirs, install-sh: update from automake.
105502 2004-02-06  Karl Berry  <karl@gnu.org>
105504         * m4/po.m4: update from gettext 0.14.1.
105506 2004-02-06  Karl Berry  <karl@gnu.org>
105508         * lib/config.charset: update from gettext 0.14.1.
105510 2004-02-05  Paul Eggert  <eggert@twinsun.com>
105512         Add comments and code, prompted by suggestions from Bruno Haible
105513         for sh-quote.
105514         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
105515         describing the enum quoting_style values.
105516         * lib/quotearg.c (quotearg_alloc): New function.
105517         (quotearg_buffer_restyled): Treat lone { and } as special.
105518         Treat = as special.  Work around bug with older shells
105519         that "see" a '\' that is really the 2nd byte of a multibyte char.
105520         Quote empty string with shell_quoting_style.
105522 2004-02-03  Bruno Haible  <bruno@clisp.org>
105524         * m4/pipe.m4: New file, from GNU gettext.
105526 2004-02-03  Bruno Haible  <bruno@clisp.org>
105528         * lib/pipe.h: New file, from GNU gettext.
105529         * lib/pipe.c: New file, from GNU gettext.
105531 2004-01-27  Bruno Haible  <bruno@clisp.org>
105533         * m4/execute.m4: New file, from GNU gettext.
105535 2004-01-27  Bruno Haible  <bruno@clisp.org>
105537         * lib/execute.h: New file, from GNU gettext.
105538         * lib/execute.c: New file, from GNU gettext.
105539         * lib/w32spawn.h: New file, from GNU gettext.
105541 2004-01-24  Paul Eggert  <eggert@twinsun.com>
105543         Merge from diffutils.
105545         * lib/file-type.c (file_type): Add typed memory objects.
105546         * lib/file-type.h (S_TYPEISTMO): New macro.
105548         * lib/c-stack.h (c_stack_action): Remove argv argument.
105549         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
105550         (die): Don't calculate message unless segv_action returns.
105551         (get_stack_location, min_address_from_argv, max_address_from_argv,
105552         volatile stack_base, volatile_stack_size): Remove.
105553         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
105554         that every segmentation violation is a stack overflow.  (Ouch!)
105555         See Debian bug 136249 (still outstanding) for more info about why
105556         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
105558 2004-01-24  Paul Eggert  <eggert@twinsun.com>
105560         Exit-status fix from coreutils.
105562         Use exit_failure consistently in place of EXIT_FAILURE,
105563         so that program exit statuses are consistent on failure.
105565         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
105566         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
105567         * lib/argmatch.h: Comment fix to match the above.
105568         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
105569         Now a macro referring to exit_failure, instead of a separate
105570         variable.  Include "exitfail.h" to get it.
105571         * lib/xstrtol.h: Include "exitfail.h".
105572         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
105574         * lib/long-options.c (parse_long_options): Use prototype
105575         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
105576         for clarity.
105578 2004-01-21  Jim Meyering  <jim@meyering.net>
105580         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
105581         so as not to conflict with a different-sized __mktime_internal
105582         function in GNU libc.
105583         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
105584         Problem building statically-linked `ls' reported by Michael Brunnbauer.
105586 2004-01-20  Karl Berry  <karl@gnu.org>
105588         * config/config.guess: update from config.
105590         * config/srclistvars.sh: GNUWWWLICENSES for karl.
105592 2004-01-20  Bruno Haible  <bruno@clisp.org>
105594         Safer stack allocation.
105595         * lib/setenv.c: Include allocsa.h.
105596         (alloca): Remove fallback definition.
105597         (freea): Remove macro.
105598         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
105599         instead of freea.
105601 2004-01-20  Bruno Haible  <bruno@clisp.org>
105603         * m4/eealloc.m4: New file, from GNU gettext.
105605 2004-01-20  Bruno Haible  <bruno@clisp.org>
105607         * m4/allocsa.m4: New file, from GNU gettext.
105609 2004-01-20  Bruno Haible  <bruno@clisp.org>
105611         * lib/xallocsa.h: New file, from GNU gettext.
105612         * lib/xallocsa.c: New file, from GNU gettext.
105614 2004-01-20  Bruno Haible  <bruno@clisp.org>
105616         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
105618 2004-01-20  Bruno Haible  <bruno@clisp.org>
105620         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
105621         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
105622         specially.
105624 2004-01-20  Bruno Haible  <bruno@clisp.org>
105626         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
105627         patch.
105629 2004-01-20  Bruno Haible  <bruno@clisp.org>
105631         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
105633 2004-01-20  Bruno Haible  <bruno@clisp.org>
105635         * lib/eealloc.h: New file.
105637 2004-01-20  Bruno Haible  <bruno@clisp.org>
105639         * lib/binary-io.h: Avoid warnings on Cygwin.
105641 2004-01-20  Bruno Haible  <bruno@clisp.org>
105643         * lib/allocsa.h: New file, from GNU gettext.
105644         * lib/allocsa.c: New file, from GNU gettext.
105646 2004-01-18  Karl Berry  <karl@gnu.org>
105648         * doc/gpl.texi, doc/lgpl.texi: new files.
105650 2004-01-18  Karl Berry  <karl@gnu.org>
105652         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
105653         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
105655 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105657         Merge from coreutils.
105659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
105660         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
105661         (gl_DEFAULT_POSIX2_VERSION): Move
105662         the documentation from 'configure' into 'config.hin',
105663         so that 'configure --help' isn't burdened by it and
105664         we don't have to worry about its formatting there.
105665         Reword the documentation so that it's more succinct
105666         and can be run together into a single paragraph.
105667         * m4/same.m4 (gl_SAME): Check for pathconf.
105669 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105671         Merge from coreutils.
105673         * lib/posixver.c: Include posixver.h.
105675         * lib/same.c: Include <stdbool.h>, <limits.h>.
105676         (_POSIX_NAME_MAX): Define if not defined.
105677         (MIN): New macro.
105678         (same_name): If file names are silently truncated, report
105679         that the file names are the same if they are the same after
105680         the silent truncation.
105682         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
105683         conversion function.
105684         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
105685         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
105686         longer needed.
105688 2004-01-15  Jim Meyering  <jim@meyering.net>
105690         Merge from coreutils.
105692         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
105693         if no library is required.
105694         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
105695         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
105696         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
105697         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
105698         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
105699         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
105700         value, $ac_cv_search_crypt, if it's "none required".
105701         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
105702         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
105703         not gl_FUNC_GETLOADAVG.
105704         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
105705         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
105707 2004-01-15  Jim Meyering  <jim@meyering.net>
105709         Merge from coreutils.
105711         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
105712         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
105713         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
105715         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
105716         optional configure-time default.
105718         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105720         * lib/xreadlink.c (xreadlink): Correct outdated comment.
105722 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
105724         Merge from coreutils.
105726         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
105727         value, $ac_cv_search_nanosleep, if it's "none required".
105729 2004-01-14  Paul Eggert  <eggert@twinsun.com>
105731         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
105732         with like-named macro in fnmatch.c.
105733         (EXT): Use an internal constant instead.
105735         Merge fnmatch patches from glibc.
105736         * lib/fnmatch.c (mbsinit): Remove define.
105737         Add libc_hidden_ver (__fnmatch, fnmatch).
105738         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
105739         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
105741 2004-01-14  Karl Berry  <karl@gnu.org>
105743         * config/install-sh: update from automake.
105745 2004-01-13  Karl Berry  <karl@gnu.org>
105747         * config/install-sh: update from automake.
105749 2004-01-09  Karl Berry  <karl@gnu.org>
105751         * config/install-sh: update from automake.
105753 2004-01-05  Karl Berry  <karl@gnu.org>
105755         * config/config.{sub,guess}: update from config.
105757 2003-12-31  Karl Berry  <karl@gnu.org>
105759         * config/depcomp: update from automake.
105761 2003-12-14  Karl Berry  <karl@gnu.org>
105763         * lib/config.charset: update from gettext-runtime.
105765 2003-12-03  Paul Eggert  <eggert@twinsun.com>
105767         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
105768         Bug reported by Alfred M. Szmidt.
105770 2003-12-03  Bruno Haible  <bruno@clisp.org>
105772         * m4/gettext.m4: Upgrade from gettext-0.13.
105773         * m4/po.m4: Upgrade from gettext-0.13.
105774         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
105775         * m4/intmax.m4: New file, from gettext-0.13.
105776         * m4/printf-posix.m4: New file, from gettext-0.13.
105778 2003-11-29  Karl Berry  <karl@gnu.org>
105780         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
105782 2003-11-25  Paul Eggert  <eggert@twinsun.com>
105783             Bruno Haible  <bruno@clisp.org>
105785         * lib/printf-parse.h: Don't include sys/types.h.
105786         (ARG_NONE): New macro.
105787         (char_directive): Change type of *arg_index fields to size_t.
105788         * lib/printf-parse.c: Don't include sys/types.h.
105789         (SSIZE_MAX): Remove macro.
105790         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
105791         Remove unnecessary overflow check.
105792         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
105793         fields.
105795 2003-11-25  Bruno Haible  <bruno@clisp.org>
105797         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
105799 2003-11-25  Bruno Haible  <bruno@clisp.org>
105801         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
105802         gt_TYPE_SSIZE_T.
105804 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105806         * modules/alloca: Remove dependency on xalloc.
105808 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105810         * lib/alloca.c: Remove dependency on xalloc module.
105811         (xalloc_die): Remove.
105812         (memory_full) [!defined emacs]: New macro.
105813         [!defined emacs]: Don't include xalloc.h.
105814         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
105815         address arithmetic overflows.  Change datatypes a bit to avoid
105816         unnecessary casts.
105818 2003-11-22  Jim Meyering  <jim@meyering.net>
105820         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
105821         s/size/size_t/.
105823 2003-11-21  Karl Berry  <karl@gnu.org>
105825         * config/config.{sub,guess}: update from config.
105827 2003-11-18  Karl Berry  <karl@gnu.org>
105829         * config/config.{sub,guess}: update from config.
105831         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
105833 2003-11-17  Paul Eggert  <eggert@twinsun.com>
105835         * README: Mention that S+T cannot overflow if S is the size of
105836         an existing object and T is sufficiently small.
105838 2003-11-17  Jim Meyering  <jim@meyering.net>
105840         On systems without utime and without a utimes function capable of
105841         dealing with a NULL struct utimbuf* argument, this utime replacement
105842         could -- in unusual circumstances -- leak a file descriptor.
105843         * lib/utime.c: Include <unistd.h> and <errno.h>.
105844         (utime_null): Be sure to close `fd' and to preserve errno.
105845         Reported by Geoff Collyer via Arnold Robbins.
105847 2003-11-17  Bruno Haible  <bruno@clisp.org>
105849         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
105850         (Depends-on): Add xsize.
105852 2003-11-17  Bruno Haible  <bruno@clisp.org>
105854         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
105856 2003-11-17  Bruno Haible  <bruno@clisp.org>
105858         * lib/vasnprintf.c (alloca): Remove fallback definition.
105859         (freea): Remove definition.
105860         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
105861         Reported by Paul Eggert.
105863 2003-11-16  Paul Eggert  <eggert@twinsun.com>
105864             Bruno Haible  <bruno@clisp.org>
105866         Protect against address arithmetic overflow.
105867         * lib/printf-args.h: Include stddef.h.
105868         (arguments): Change type of field 'count' to size_t.
105869         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
105870         'unsigned int' where appropriate.
105871         * lib/printf-parse.h: Include sys/types.h.
105872         (char_directive): Change type of *arg_index fields to ssize_t.
105873         (char_directives): Change type of fields 'count', max_*_length to
105874         size_t.
105875         * lib/printf-parse.c: Include sys/types.h and xsize.h.
105876         (SSIZE_MAX): Define fallback value.
105877         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
105878         instead of 'int' where appropriate. Check a_allocated, d_allocated
105879         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
105880         * lib/vasnprintf.c: Include xsize.h.
105881         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
105882         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
105883         overflow. Avoid wraparound when converting a width or precision from
105884         decimal to binary.
105886 2003-11-16  Bruno Haible  <bruno@clisp.org>
105888         Update from GNU gettext.
105889         * lib/printf-parse.c: Generalize to it can be compiled for wide
105890         strings.
105891         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
105892         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
105893         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
105894         SNPRINTF): New macros.
105895         Don't include <alloca.h> if the file is used inside libintl.
105896         (local_wcslen): New function, for Solaris 2.5.1.
105897         (VASNPRINTF): Use it instead of wcslen.
105899 2003-11-16  Bruno Haible  <bruno@clisp.org>
105901         * lib/xsize.h (xmax): New function.
105902         (xsum, xsum3, xsum4): Declare as "pure" functions.
105904 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105906         * modules/xalloc (Files): Undo latest change, since xalloc.h
105907         no longer needs SIZE_MAX or PTRDIFF_MAX.
105909 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105911         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
105912         gl_PTRDIFF_MAX.
105914 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105916         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
105917         "return", to pacify some unknown compiler.  Problem reported
105918         by Joerg Schilling.
105920 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105922         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
105923         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
105924         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
105925         heuristic is just as accurate as far as we know, and it removes a
105926         dependency on size_max.m4 and ptrdiff_max.m4.
105928 2003-11-11  Bruno Haible  <bruno@clisp.org>
105930         * modules/xsize (Files): Add m4/size_max.m4.
105931         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
105933 2003-11-11  Bruno Haible  <bruno@clisp.org>
105935         * m4/size_max.m4: New file.
105936         * m4/ptrdiff_max.m4: New file.
105937         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
105938         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
105939         (gl_XALLOC): Invoke it.
105941 2003-11-11  Bruno Haible  <bruno@clisp.org>
105943         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
105944         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
105945         defined.
105947 2003-11-10  Paul Eggert  <eggert@twinsun.com>
105949         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
105950         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
105951         rejected some allocations of exactly SIZE_MAX - 2 bytes.
105952         From Bruno Haible.
105953         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
105954         not (size_t) -1, since it's defined here.
105956 2003-11-09  Karl Berry  <karl@gnu.org>
105958         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
105960 2003-11-06  Paul Eggert  <eggert@twinsun.com>
105962         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
105963         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
105964         Reject sizes of exactly SIZE_MAX bytes.
105965         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
105966         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
105968 2003-11-05  Bruno Haible  <bruno@clisp.org>
105970         * lib/xsize.h: Include limits.h, to avoid a possible collision with
105971         SIZE_MAX defined in <limits.h> on Solaris.
105973 2003-11-04  Jim Meyering  <jim@meyering.net>
105975         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
105976         variable names, rather than @VAR@.
105977         * modules/poll: Likewise.
105979 2003-11-04  Bruno Haible  <bruno@clisp.org>
105981         * modules/xsize: New file.
105982         * modules/linebreak: Depend on xsize.
105983         * MODULES.html.sh (func_all_modules): Add xsize.
105985 2003-11-04  Bruno Haible  <bruno@clisp.org>
105987         * m4/xsize.m4: New file.
105989 2003-11-04  Bruno Haible  <bruno@clisp.org>
105991         * lib/xsize.h: New file.
105992         * lib/linebreak.c: Include xsize.h.
105993         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
105994         argument for overflow.
105995         Suggested by Paul Eggert.
105997 2003-11-03  Karl Berry  <karl@gnu.org>
105999         * config/config.{guess,sub}: update from config.
106001 2003-11-03  Jim Meyering  <jim@meyering.net>
106003         * modules/userspec (lib_SOURCES): Add userspec.h.
106004         (Include): Add "userspec.h".
106005         Improve description.
106007 2003-11-03  Jim Meyering  <jim@meyering.net>
106009         * lib/userspec.c: Include "userspec.h".
106010         * lib/userspec.h: New file.
106012 2003-11-03  Bruno Haible  <bruno@clisp.org>
106014         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
106016 2003-11-03  Bruno Haible  <bruno@clisp.org>
106018         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
106019         available, to avoid (extremely rare) race condition.
106020         Suggested by Paul Eggert.
106022 2003-11-02  Karl Berry  <karl@gnu.org>
106024         * config/srclist.txt (vasprintf.c): sync broken, sigh.
106026 2003-10-31  Paul Eggert  <eggert@twinsun.com>
106028         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
106029         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
106030         (read_filesystem_list): Set and use me_type_malloced.
106031         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
106032         whatever the type happens to be), for brevity and consistency.
106033         Check for size calculation overflow on Alphas running OSF/1.
106035 2003-10-31  Jim Meyering  <jim@meyering.net>
106037         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
106039         * lib/linebuffer.c: Include <string.h> for declaration of memset.
106041 2003-10-30  Paul Eggert  <eggert@twinsun.com>
106042             Bruno Haible  <bruno@clisp.org>
106044         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
106045         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
106047 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
106049         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
106050         netbsd*-gnu*.  Suggested by Robert Millan.
106052 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106054         * modules/group-member: Depend on stdbool.
106056 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106058         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
106060 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106062         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
106063         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
106064         after the 'gnu' in these cases.  This fixes some bugs in the
106065         previous change, and is based on suggestions by Robert Millan.
106067 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106069         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
106070         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
106071         no longer needed.
106072         * lib/quotearg.c (quotearg_n_options): Use it.
106073         * lib/group-member.c: Include <stdbool.h>.
106074         (free_group_info): Arg is now const *; don't free arg.
106075         (get_group_info): Now returns bool and accepts struct group_info *,
106076         rather than returning a malloc'ed struct group_info *.
106077         All uses changed.  Check for overflow in internal size calculation.
106079         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
106080         rather than xmalloc/xrealloc.
106081         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
106082         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
106083         conformance bug: the old code used a pointer after freeing the
106084         storage that it addressed.
106085         * lib/hash.c (hash_initialize): Simplify the code by using
106086         xalloc_oversized rather than doing it by hand.
106087         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
106088         the buffer preserved.  Use free and xmalloc instead.
106089         * lib/quotearg.c (quotearg_n_options): Likewise.
106090         Use a simpler test for size overflow.  Don't use xalloc_oversized
106091         because unsigned int might be wider than size_t (!); this suggests
106092         that we should switch from unsigned int to size_t for slot numbers.
106094 2003-10-28  Paul Eggert  <eggert@twinsun.com>
106096         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
106097         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
106098         NetBSD kernels.  Requested by Richard Stallman.
106100 2003-10-27  Paul Eggert  <eggert@twinsun.com>
106102         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
106103         to allocate the returned structure.  Do not allocate a subarray,
106104         as x2nrealloc will do that.
106105         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
106106         instead of xnrealloc.
106107         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
106109 2003-10-27  Bruno Haible  <bruno@clisp.org>
106111         * lib/stdbool_.h: Better support for BeOS.
106113 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106115         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
106116         now uses inline.
106118 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106120         * lib/xalloc.h (xalloc_oversized): New static inline function, for
106121         callers that want to do their own size-overflow checking.  Include
106122         <stdbool.h>, since xalloc_oversized returns bool.
106123         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
106124         to use xalloc_oversized.
106126         Add two functions x2realloc, x2nrealloc, for programs that grow
106127         arrays dynamically by doubling their sizes.
106128         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
106129         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
106130         New functions.
106132         Port to C99 semantics for 'inline' of external functions.
106133         Bug reported by Bruno Haible.
106134         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
106135         with the old contents of xnmalloc.
106136         (xnmalloc, xmalloc): Use it.
106137         (xnrealloc_inline): New static inline function,
106138         with the old contents of xnrealloc.
106139         (xnrealloc, xrealloc): Use it.
106141         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
106142         that.
106144 2003-10-26  Karl Berry  <karl@gnu.org>
106146         * config/srclist.txt (COPYING.DOC): no longer available from
106147         /gd/gnuorg; don't know where the ultimate source is.
106149 2003-10-25  Paul Eggert  <eggert@twinsun.com>
106151         Fix several address-calculation bugs in the hash modules,
106152         plus some minor code cleanup.
106154         * lib/hash.h: Include <stdbool.h>, for bool.
106155         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
106156         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
106157         hash_get_n_entries, hash_get_max_bucket_length,
106158         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
106159         hash_rehash): Use size_t rather than unsigned.
106160         * lib/hash.c (struct hash_table, hash_get_n_buckets,
106161         hash_get_n_buckets_used, hash_get_n_entries,
106162         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
106163         hash_get_entries, hash_do_for_each, hash_string, is_prime,
106164         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
106165         Likewise.
106166         (SIZE_MAX): Define if not defined.
106167         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
106168         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
106169         hash_print):
106170         Use const * when possible.
106171         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
106172         (check_tuning): Fix bug: if tuning parameters were very close to
106173         0 or 1, rounding errors could have caused subscript violations.
106174         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
106175         (hash_initialize): Add 'fail:' label
106176         to free table and return NULL, and use it to simplify code.
106177         Use calloc rather than clearing the storage ourself.
106178         (hash_initialize, hash_rehash): Check for arithmetic overflow in
106179         buffer size calculations.
106180         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
106181         Include <stddef.h>, for size_t.
106182         * lib/hash-pjw.c (hash_pjw): Likewise.
106183         Switch to method described by Bruno Haible.
106184         Include <limits.h>, for CHAR_BIT.
106185         (SIZE_BITS): New macro.
106187 2003-10-23  Paul Eggert  <eggert@twinsun.com>
106189         * m4/getline.m4 (AM_FUNC_GETLINE):
106190         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
106191         hosts.  Problem reported by Derek Robert Price in
106192         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
106193         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
106194         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
106196 2003-10-21  Paul Eggert  <eggert@twinsun.com>
106198         * lib/getndelim2.c (getndelim2): When size calculation overflows,
106199         ceiling the allocation at NMAX bytes rather than silently
106200         discarding input bytes before NMAX is reached.  This makes
106201         a difference only if NMAX exceeds SIZE_MAX / 2.
106203         * lib/obstack.c: Merge from glibc.
106204         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
106205         Add libc_hidden_def (_obstack_newchunk).
106206         (_obstack_free) [! defined _LIBC]: Remove.
106207         [defined _LIBC]: Make a strong alias from obstack_free, rather than
106208         a clone of the function body.
106209         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
106210         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
106212         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
106213         glibc.
106214         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
106215         arg to memcpy.
106217         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
106218         (obstack_ptr_grow_fast, obstack_int_grow_fast):
106219         Don't use lvalue casts, as GCC plans to remove support for them
106220         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
106221         was also present in the non-GCC version, indicating that this
106222         code had always been buggy and had never been widely used.
106223         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
106224         Use the fast variant of each macro, rather than copying the
106225         definiens of the fast variant; that way, we'll be more likely to
106226         catch future bugs in the fast variants.
106228 2003-10-20  Bruno Haible  <bruno@clisp.org>
106230         * modules/wait-process: New file.
106231         * MODULES.html.sh (func_all_modules): Add wait-process.
106233 2003-10-20  Bruno Haible  <bruno@clisp.org>
106235         * m4/wait-process.m4: New file.
106237 2003-10-20  Bruno Haible  <bruno@clisp.org>
106239         * lib/wait-process.h: New file, from GNU gettext.
106240         * lib/wait-process.c: New file, from GNU gettext.
106242 2003-10-19  Jim Meyering  <jim@meyering.net>
106244         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
106245         HPUX 10.20.
106247 2003-10-18  Karl Berry  <karl@gnu.org>
106249         * config/config.guess: update from config.
106251 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106253         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
106254         (getgroups): First arg is int, not size_t.
106255         Don't let 'free' mangle errno.
106257 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106259         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
106261 2003-10-16  Karl Berry  <karl@gnu.org>
106263         * config/config.{guess,sub}: update from config.
106265 2003-10-16  Jim Meyering  <jim@meyering.net>
106267         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
106268         memcpy.
106270 2003-10-15  Paul Eggert  <eggert@twinsun.com>
106272         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
106273         (SIZE_MAX): Remove.
106274         (new_exclude, add_exclude_file): Initial size no longer needs to
106275         be a power of 2.
106276         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
106277         our own address arithmetic overflow checking.
106279         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
106280         (fnmatch): Do not alloca more than 2000 wide characters;
106281         instead, use malloc for large buffers.
106282         Check for address arithmetic overflow, and return -1
106283         with errno set to ENOMEM in that case.
106284         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
106285         (NEW_PATTERN): Do not alloca more than 8000 bytes;
106286         instead, return -1.  Check for address arithmetic overflow.
106288 2003-10-14  Paul Eggert  <eggert@twinsun.com>
106290         Handle invalid suffixes and overflow independently, so that
106291         callers can treat them independently as needed.  Fix some bugs in
106292         suffix handling, e.g., "100k@" was not diagnosed as an invalid
106293         suffix for a human-readable blocksize.  The major caller-visible
106294         change is the addition of a new
106295         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
106296         that both overflow and suffix chars were found.
106298         * lib/human.c (humblock): Don't check separately for invalid suffix
106299         char; that is xstrtoumax's job (now that its bug is fixed).
106300         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
106301         INTMAX_MAX]: New macros.
106302         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
106303         TYPE_MAXIMUM): New macros.
106304         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
106305         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
106306         if overflow occurs, as it's what __strtol does and it's more useful
106307         in practice.
106308         (__xstrtol): If __strtol reports some error other than ERANGE,
106309         reflect it to the caller as LONGINT_INVALID.  If it reports
106310         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
106311         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
106312         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
106313         value.
106314         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
106315         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
106316         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
106317         [defined UINTMAX_MAX]: New macros.
106319 2003-10-14  Bruno Haible  <bruno@clisp.org>
106321         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
106323 2003-10-14  Bruno Haible  <bruno@clisp.org>
106325         * m4/sig_atomic_t: New file, from GNU gettext.
106326         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
106328 2003-10-14  Bruno Haible  <bruno@clisp.org>
106330         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
106331         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
106332         Also use volatile where needed.
106334 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106336         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
106337         Change maintainer from Bruno Haible to 'all'.
106339 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106341         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
106343 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106345         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
106346         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
106347         and define in terms of the other primitives.
106348         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
106349         (SIZE_MAX): Define if not already defined.
106350         (array_size_overflow): New function.
106351         (xalloc_die): Abort instead of exiting if 'error' returns.
106352         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
106353         (xmalloc, xrealloc): Use them.
106354         (xcalloc): Check for address arithmetic overflow.
106355         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
106356         a bit faster than strcpy.
106358 2003-10-10  Simon Josefsson  <jas@extundo.com>
106360         * modules/argp (Depends-on): Add restrict and strcase.
106362 2003-10-10  Simon Josefsson  <jas@extundo.com>
106364         * m4/argp.m4: Add AC_C_INLINE.
106366 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106368         Merge getpass from libc, plus a few fixes.
106370         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
106371         Include <stdbool.h>.
106372         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
106373         __fsetlocking to empty.
106374         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
106375         do include <bits/libc-lock.h>.
106376         Do not include <fcntl.h>; not needed.
106377         [_LIBC]: Include <wchar.h>.
106378         (NOTCANCEL_MODE): New macro.
106379         (flockfile, funlockfile) [_LIBC]: New macros.
106380         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
106381         [!_LIBC]: New macros.
106382         (call_fclose): New function.
106383         (getpass): Use it.  Save tty stream separately; this simplifies the
106384         code and makes it more reliable if stdin happens to equal stdout.
106385         Invoke __fsetlocking on tty.
106386         Handle thread cancellation if needed.
106387         Namespace cleanup (use __tcgetattr, __getline).
106388         Use bool for Booleans.
106389         [USE_IN_LIBIO]: Handle wide streams.
106390         [!_LIBC]: Unconditionally do the fseek, since we don't know what
106391         stream might go where.
106393         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
106394         doesn't have to include <stdio.h> before us.
106395         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
106396         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
106397         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
106398         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
106399         if not declared, so that we can use getpass.c code from libc without
106400         rewriting it.
106401         (flockfile, ftrylockfile, funlockfile): New macros.
106403 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106405         * modules/getpass: Depend on stdbool.
106407 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106409         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
106411 2003-10-07  Karl Berry  <karl@gnu.org>
106413         * config/config.{guess,sub}: update from config.
106415 2003-10-06  Jim Meyering  <jim@meyering.net>
106416             Bruno Haible  <bruno@clisp.org>
106418         This lets translators provide better translations for the
106419         "Written by ..." part of --version output.
106420         * lib/version-etc.h: Include stdarg.h.
106421         (version_etc_copyright): Declare as readonly.
106422         (version_etc): Make this function variadic with a NULL-terminated list
106423         of author name strings.
106424         (version_etc_va): New declaration.
106425         * lib/version-etc.c: Include stdarg.h, stdlib.h.
106426         (version_etc_copyright): Declare as readonly.
106427         (version_etc_va): New function. Provide a different translatable string
106428         for each possible number of authors < 10. Abbreviate when there are 10
106429         authors or more.
106430         (version_etc): Make this function variadic. Call version_etc_va.
106431         Suggestion from Gary V. Vaughan.
106433         * lib/long-options.h (parse_long_options): Change prototype: the
106434         authors string is moved to the end and becomes variadic.
106435         * lib/long-options.c: Include stdarg.h.
106436         (parse_long_options): Make this function variadic, too.
106437         Call version_etc_va, not version_etc.
106439 2003-10-06  Bruno Haible  <bruno@clisp.org>
106441         * modules/version-etc-2: Remove file.
106442         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
106444 2003-10-06  Bruno Haible  <bruno@clisp.org>
106446         * modules/fatal-signal: New file.
106447         * MODULES.html.sh (func_all_modules): Add fatal-signal.
106449 2003-10-06  Bruno Haible  <bruno@clisp.org>
106451         * m4/fatal-signal.m4: New file.
106452         * m4/signalblocking.m4: New file, from GNU gettext.
106454 2003-10-06  Bruno Haible  <bruno@clisp.org>
106456         * lib/version-etc-2.h: Remove file.
106457         * lib/version-etc-2.c: Remove file.
106459 2003-10-06  Bruno Haible  <bruno@clisp.org>
106461         * lib/fatal-signal.h: New file, from GNU gettext.
106462         * lib/fatal-signal.c: New file, from GNU gettext.
106464 2003-10-05  Paul Eggert  <eggert@twinsun.com>
106466         * README: Rework advice for preventing empty .o files.
106467         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
106468         not <sys/types.h>.
106470 2003-10-04  Karl Berry  <karl@gnu.org>
106472         * lib/argp*: update from libc.
106474 2003-10-04  Karl Berry  <karl@gnu.org>
106476         * config/config.{guess,sub}: update from config.
106478 2003-10-02  Bruno Haible  <bruno@clisp.org>
106480         * modules/lchown (Include): Add lchown.h.
106481         * modules/time_r (Include): Use "..." syntax.
106482         * modules/xgetdomainname (Include): Add xgetdomainname.h.
106484 2003-10-01  Simon Josefsson  <jas@extundo.com>
106486         * MODULES.html.sh (func_all_modules): Move gethostname from section
106487         'based on' to section 'lacking' POSIX:2001.
106489 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
106491         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
106492         to output mode on the same stream.
106494 2003-09-29  Paul Eggert  <eggert@twinsun.com>
106496         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
106497         Fix arg typo in previous patch.
106499 2003-09-28  Jim Meyering  <jim@meyering.net>
106501         * lib/error.c: Correct cpp indentation.
106503 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106505         * modules/free: New file.
106507 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106509         * m4/free.m4: New file.
106511 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106513         * lib/minmax.h (MIN, MAX)
106514         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
106515         Omit the special code that used __typeof__, since we worry that
106516         it could be more trouble than it's worth.  See:
106517         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
106518         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
106520         * lib/free.c: New file.
106522 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
106524         Trivial fixes to Makefile.am parts of module listings.
106525         * modules/strstr: Append strstr.h to lib_SOURCES.
106526         * modules/strcase: Likewise, for strcase.h.
106528 2003-09-27  Karl Berry  <karl@gnu.org>
106530         * config/mkinstalldirs: update from automake.
106532 2003-09-26  Paul Eggert  <eggert@twinsun.com>
106534         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
106535         (error_tail): Do not loop, reallocating temporary buffer, since
106536         the output cannot contain more wide characters than the input
106537         contains bytes, the size must be big enough already.  This avoids
106538         one potential size overflow calculation.  Check for size overflow
106539         when calculating temporary buffer size.  Free temporary buffer
106540         when done, if it was allocated with malloc; this plugs a memory
106541         leak.  Remove casts from void * to pointers, that are no longer
106542         needed now that we're assuming C89 or better.
106544         Merge error changes from glibc.
106546         * lib/error.c, error.h: Update copyright notice header to match glibc.
106547         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
106548         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
106549         Disable cancellation while printing error.
106550         * lib/error.h: Prepend __ to parameter names.
106552 2003-09-26  Jim Meyering  <jim@meyering.net>
106554         * lib/error.c (error_tail): Move some declarations
106555         into inner scope where the local variables are used.
106557 2003-09-26  Bruno Haible  <bruno@clisp.org>
106559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
106560         stpncpy().
106561         Don't define stpncpy through config.h; it's now done through stpncpy.h.
106563 2003-09-26  Bruno Haible  <bruno@clisp.org>
106565         * lib/stpncpy.h (gnu_stpncpy): New declaration.
106566         (stpncpy): Define as alias for gnu_stpncpy.
106567         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
106569 2003-09-25  Simon Josefsson  <jas@extundo.com>
106571         * lib/xgetdomainname.h: New file.
106572         * lib/xgetdomainname.c: New file.
106574 2003-09-25  Simon Josefsson  <jas@extundo.com>
106575             Bruno Haible  <bruno@clisp.org>
106577         * modules/getdomainname: New file.
106578         * modules/xgetdomainname: New file.
106579         * MODULES.html.sh (func_all_modules): Add getdomainname,
106580         xgetdomainname.
106582 2003-09-25  Simon Josefsson  <jas@extundo.com>
106583             Bruno Haible  <bruno@clisp.org>
106585         * m4/getdomainname.m4: New file.
106587 2003-09-25  Simon Josefsson  <jas@extundo.com>
106588             Bruno Haible  <bruno@clisp.org>
106590         * lib/getdomainname.h: New file.
106591         * lib/getdomainname.c: New file.
106593 2003-09-25  Karl Berry  <karl@gnu.org>
106595         * lib/argp-fmtstream.c, argp-help.c: update from libc.
106597 2003-09-25  Karl Berry  <karl@gnu.org>
106599         * config/install-sh: update from automake.
106601 2003-09-25  Bruno Haible  <bruno@clisp.org>
106603         * modules/version-etc-2: New file, from modules/version-etc with
106604         modifications.
106605         * MODULES.html.sh (func_all_modules): Add version-etc-2.
106607 2003-09-25  Bruno Haible  <bruno@clisp.org>
106609         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
106610         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
106612 2003-09-24  Simon Josefsson  <jas@extundo.com>
106614         * modules/xgethostname: Add xgethostname.h.
106616 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106618         * lib/linebuffer.c (freebuffer): Don't free the argument, just
106619         the buffer associated with the argument.  Bug reported by
106620         Simon Josefsson.
106622 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106624         * README: Document assumptions that 'int' is at least 32 bits
106625         wide, that integer arithmetic is 2's complement without overflow,
106626         that there are no holes in integer values, that adding sizes of
106627         two nonoverlapping objects can't overflow, and that all-bits-zero
106628         yields scalar zero.  Fix spelling and capitalization typos.
106630 2003-09-19  Karl Berry  <karl@gnu.org>
106632         * lib/argp.h: update from libc.
106634 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106636         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
106637         to avoid spurious warnings like "AC_RUN_IFELSE was called before
106638         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
106640 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106642         * gnulib-tool: Use "test -h", not "test -L", for portability
106643         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
106644         (tags_regexp): Remove, since \| doesn't conform to POSIX.
106645         (sed_extract_prog): Issue s commands one-by-one, rather than
106646         using \| in one s command.
106648 2003-09-16  Paul Eggert  <eggert@twinsun.com>
106650         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
106651         input error, instead of returning NULL the next time we are called
106652         (and therefore losing track of errno).
106654 2003-09-16  Bruno Haible  <bruno@clisp.org>
106656         * gnulib-tool (func_create_testdir): Warn about duplicated
106657         dependencies.
106659 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106661         * modules/argmatch, modules/fatal, modules/obstack,
106662         modules/xalloc, modules/xgethostname: Sort dependencies by
106663         importance, not alphabetically.
106665 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106667         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
106668         fails, so that the caller gets the proper errno.
106670         * lib/readutmp.c (read_utmp): Likewise.
106671         Check for fstat error.  Close stream and free storage
106672         when failing.
106674 2003-09-14  Karl Berry  <karl@gnu.org>
106676         * config/srclist.txt (strdup.c): disable for c89 changes.
106678 2003-09-14  Jim Meyering  <jim@meyering.net>
106680         * lib/getloadavg.c: Correct cpp indentation.
106681         * lib/strdup.c: Likewise.
106682         * lib/vasnprintf.c: Likewise.
106684 2003-09-14  Bruno Haible  <bruno@clisp.org>
106686         * modules/fwriteerror: New file.
106687         * MODULES.html.sh (func_all_modules): Add fwriteerror.
106689 2003-09-14  Bruno Haible  <bruno@clisp.org>
106691         * lib/fwriteerror.h: New file.
106692         * lib/fwriteerror.c: New file.
106694 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106696         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
106697         modules/xgethostname, modules/xalloc: Depend on exit.
106699 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106701         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
106703         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
106704         and AC_MINIX, too, so that their extensions are available.
106706         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
106707         This macro has been superseded by gl_BACKUPFILE.
106709         More patches to assume C89 or better.
106711         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
106713         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
106714         unconditionally.
106715         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
106716         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
106717         Include <string.h>, <stdlib.h> unconditionally.
106718         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
106719         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
106720         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
106721         headers or for string.h.
106722         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
106723         or strtoul.
106725         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
106726         headers.
106727         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
106728         * m4/userspec.m4 (gl_USERSPEC): Likewise.
106729         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
106730         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
106731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
106732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
106733         memcpy, memset.
106734         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
106735         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
106736         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
106737         strtol.
106738         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
106739         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
106740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
106741         strtoul.
106743 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106745         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
106746         * lib/obstack.c [!defined _LIBC]: Likewise.
106747         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
106748         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
106749         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
106751         More changes to assume C89 or better.
106753         * lib/error.c (error_tail): Assume vprintf.
106755         * lib/argmatch.c (getenv): Remove decl.
106756         * lib/progreloc.c (get_full_program_name): Define via prototype.
106757         * lib/setenv.c (clearenv): Likewise.
106758         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
106759         needed.
106760         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
106761         (malloc, memcpy): Remove decls.
106762         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
106763         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
106764         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106765         (memcpy): Remove macro.
106766         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
106767         (__P): Remove.  All uses removed.
106768         (PTR): Remove.  All uses changed to void *.
106769         (CHAR_BIT, NULL): Remove.
106770         (spaces, zeros, memset_space, memset_zero)
106771         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
106772         Remove.
106773         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
106774         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
106775         Define with prototype.
106776         Remove now-unnecessary prototype decl.
106777         (extra_args_spec): Assume ANSI C.  All uses changed.
106778         (extra_args_spec_iso): Remove.
106779         (my_strftime, emacs_strftimeu): Define via prototype.
106780         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
106781         unconditionally.
106782         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
106783         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
106784         (strtoul, strtol): Remove decls.
106785         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
106786         LONG_MAX): Remove.
106787         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106788         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
106789         (LOCALE_PARAM_PROTO): New macro.
106790         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
106791         (INTERNAL (strtol), strtol): Define with a prototype.
106792         (PARAMS): Remove.  All uses removed.
106793         * lib/tempname.c: Include <string.h> unconditionally.
106794         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
106795         * lib/xgethostname.c (main): Define with a prototype.
106796         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
106797         Include <stdlib.h> unconditionally.
106798         (calloc, malloc, realloc, free): Remove decls.
106799         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
106800         Include <stdlib.h> unconditionally.  Sort include file names.
106801         (strtod): Remove.
106802         (xstrtod): Define with a prototype.
106803         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
106804         (strtol, strtoul): Remove decls.
106806 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106808         More patches to assume C89 or better.
106809         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
106810         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
106811         string.h, memchr, STDC_HEADERS.
106813 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106815         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
106816         Include <stdlib.h>, <string.h> unconditionally.
106817         Remove now-unnecessary cast to char *.
106818         * lib/strnlen.c: Include <string.h> unconditionally.
106819         * lib/yesno.c (yesno): Define with a prototype.
106821 2003-09-11  Bruno Haible  <bruno@clisp.org>
106823         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
106825 2003-09-10  Jim Meyering  <jim@meyering.net>
106827         * lib/error.c: Correct indentation of cpp directives.
106829 2003-09-10  Bruno Haible  <bruno@clisp.org>
106831         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
106832         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
106833         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
106834         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
106835         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
106836         <stdlib.h> and <string.h> checks.
106837         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
106838         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
106840 2003-09-10  Bruno Haible  <bruno@clisp.org>
106842         * lib/strcspn.c: Include <string.h> unconditionally.
106843         * lib/strpbrk.c: Include <string.h> unconditionally.
106844         * lib/strstr.c: Include <string.h> unconditionally.
106845         * lib/unicodeio.c: Include <string.h> unconditionally.
106846         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
106847         * lib/unsetenv.c: Likewise.
106848         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
106849         * lib/yesno.c: Include <stdlib.h> unconditionally.
106850         (rpmatch): Add prototype.
106852 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106854         More patches to assume C89 or better.
106855         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
106856         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
106857         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
106858         or for string.h.
106859         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
106860         stdlib.h.
106861         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
106862         C headers.
106863         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
106864         string.h.
106865         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
106866         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
106867         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
106868         or for string.h.
106869         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
106870         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
106871         C headers.
106872         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
106873         memcpy.
106874         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
106875         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
106876         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
106877         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
106878         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
106879         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
106880         string.h, free.
106881         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
106882         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
106883         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
106884         C headers, or for string.h.
106885         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
106886         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
106887         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
106888         headers, memory.h, stdlib.h, string.h, strings.h.
106889         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
106890         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
106891         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
106892         strchr.
106893         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
106894         headers, memory.h, string.h.
106895         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
106896         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
106897         free.
106898         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
106899         headers.
106900         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
106901         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
106902         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
106903         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
106904         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
106906 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106908         More K&R removal.
106910         * lib/acosl.c (main): Use a prototype.
106911         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
106912         tanl.c: Likewise.
106914         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
106916         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
106917         (getopt, etopt_long, getopt_long_only, _getopt_internal)
106918         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
106919         with a prototype.
106920         * lib/getopt.c (const): Remove macro.
106921         Include <string.h> unconditionally.
106922         (my_index): Remove; all uses changed to strchr.
106923         (strlen): Remove decl.
106924         (exchange): Remove forward decl; no longer needed.
106925         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
106926         Define with prototype.
106927         * lib/getopt1.c (const): Remove macro.
106928         (getopt_long, getopt_long_only, main): Define with prototype.
106930         * lib/getugroups.c: Include <string.h> unconditionally.
106932         * lib/getusershell.c: Include <stdlib.h> unconditionally.
106933         (getusershell, setusershell, endusershell, readname, main):
106934         Define with prototypes.
106936         * lib/group-member.c: Include group-member.h first.
106937         Include <stdlib.h> unconditionally.
106939         * lib/hard-locale.c: Include hard-locale.h first.
106940         Include <stdlib.h>, <string.h> unconditionally.
106942         * lib/hash.c (free, malloc): Remove decls.
106943         Include <stdlib.h> unconditionally.
106945         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
106946         (getenv): Do not declare.
106948         * lib/idcache.c: Include <string.h> unconditionally.
106950         * lib/long-options.c: Include long-options.h first, to test interface.
106951         Include <stdlib.h> unconditionally.
106953         * lib/makepath.c: Include makepath.h first, to test interface.
106954         Include <stdlib.h> and <string.h> unconditionally.
106956         * lib/linebuffer.c: Include <stdlib.h>.
106957         (free): Remove decl.
106959         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
106960         stddef.h. rpl_malloc returns void *, not char *.
106961         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
106962         prototype.
106964         * lib/md5.h: Include <limits.h> unconditionally.
106965         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
106966         (__P): Remove; all uses removed.
106967         * lib/md5.c: Include "md5.h" first.
106968         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
106969         md5_buffer, md5_process_bytes, md5_process_block):
106970         Define with prototypes.
106971         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
106972         * lib/sha.c: Include "sha.h" first.
106973         Include <stdlib.h>, <string.h> unconditionally.
106975         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
106976         * lib/memcmp.c (__ptr_t): Likewise.
106977         * lib/memrchr.c (__ptr_t): Likewise.
106978         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
106979         Include <string.h> unconditionally.
106980         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
106981         * lib/memchr.c: Include <stdlib.h> unconditionally.
106982         * lib/memchr.c (LONG_MAX): Remove.
106983         * lib/memrchr.c (LONG_MAX): Likewise.
106984         * lib/memchr.c (__memchr): Define via a prototype.
106985         * lib/memrchr.c (__memrchr): Likewise.
106986         * lib/memcmp.c (__P): Remove, and remove all uses.
106987         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
106988         Remove forward decls; no longer needed.
106989         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
106990         Use types required by C89 in prototype.
106992         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
106993         * lib/savedir.c: Likewise.
106994         * lib/mkdir.c (free): Remove decl.
106995         * lib/rmdir.c (rmdir): Define with a prototype.
106996         * lib/savedir.c: Include savedir.h first, to test interface.
106998         * lib/mktime.c (STDC_HEADERS): Remove.
106999         Include <stdlib.h>, <string.h> unconditionally.
107001         * lib/modechange.c: Include <stdlib.h> unconditionally.
107002         (malloc): Remove decl.
107004         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
107005         (free): Remove decl.
107007         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
107008         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
107009         (This type really should be intptr_t, but that's a C99ism.)
107010         (_obstack_memcpy): Remove: all uses changed to memcpy.
107011         Include <string.h> unconditionally.
107012         (struct obstack): Assume __STDC__ for types of members
107013         chunkfun, freefun, extra_arg.
107014         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
107015         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
107016         obstack_begin, obstack_specify_allocation,
107017         obstack_specify_allocation_with_arg, obstack_chunkfun,
107018         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
107019         Remove unprototyped decls and the macros that use them.
107020         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
107021         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
107022         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
107023         (defined __STDC__ && __STDC__)]:
107024         Remove nonprototyped code.
107025         Include <stdlib.h> unconditionally.
107026         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
107027         _obstack_allocated_p, _obstack_free, obstack_free,
107028         _obstack_memory_used, print_and_abort):
107029         Define using prototypes.
107030         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
107031         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
107032         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
107033         obstack_next_free, obstack_object_size, obstack_room) [0]:
107034         Remove unused, unprototyped code.
107036         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
107038         * lib/physmem.c (physmem_total, physmem_available, main): Define
107039         with prototypes.
107041         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
107042         (main): Define with a prototype.
107044         * lib/posixver.c (getenv): Remove decl.
107046         * lib/putenv.c (malloc): Returns void *, not char *.
107047         Include <string.h> unconditionally.
107048         (strchr, memcpy, NULL): Do not define.
107050         * lib/readtokens.c: Include readtokens.h first, to test interface.
107051         Include <stdlib.h>, <string.h> unconditionally.
107052         (init_tokenbuffer): Define with a prototype.
107054         * lib/regex.c (PARAMS): Remove.  All uses removed.
107055         All uses of _RE_ARGS removed, too.
107056         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107057         unconditionally.
107058         (bzero): Assume memset exists.
107059         (memcmp, memcpy, NULL): Remove.
107060         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
107061         char, or assignments to local vars of type signed char.
107062         (init_syntax_once, PREFIX(extract_number_and_incr),
107063         PREFIX(print_partial_compiled_pattern),
107064         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
107065         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
107066         PREFIX(regex_grow_registers), PREFIX(regex_compile),
107067         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
107068         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
107069         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
107070         wcs_compile_range, byte_compile_range, truncate_wchar,
107071         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
107072         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
107073         count_mbs_length, wcs_re_match_2_internal,
107074         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
107075         PREFIX(alt_match_null_string_p),
107076         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
107077         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
107078         regfree, PREFIX(extract_number)): Define with prototype.  Remove
107079         now-unnecessary declaration, if any.
107080         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
107081         regcomp, regexec):
107082         Remove now-unnecessary casts among pointer types.
107083         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
107085         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
107086         (free): Remove decl.
107088         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
107090         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
107091         (free): Remove decl.
107093         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
107094         * lib/xgetcwd.c: Likewise.
107096         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
107097         (free): Remove decl.
107099         * lib/strchrnul.c (strchrnul): Define with a prototype.
107100         Fix bug: c_in was not converted to char before searching.
107102         The following changes are not K&R related:
107104         * lib/group-member.h: Include <sys/types.h>, so that this file is
107105         self-contained.
107106         * lib/makepath.h: Likewise.
107108         * lib/getusershell.c (readname, default_index, line_size, readname):
107109         Use size_t, not int, for sizes.
107110         (readname): If the size overflows, report an error instead of
107111         looping forever.
107113 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107115         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
107116         libc.
107118 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107120         * README: New section: portability guidelines.
107122 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107124         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
107125         C89 spec.
107127 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107129         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
107131 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107133         Assume C89 or better; remove K&R cruft.
107134         A few of these changes were first proposed by Derek Robert Price
107135         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
107137         * lib/addext.c: Include <string.h> unconditionally.
107138         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
107139         Don't declare getenv or malloc.
107141         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
107142         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
107143         (NULL): Remove.
107144         (find_stack_direction, alloca): Use prototypes.
107146         * lib/atexit.c (atexit): Define using a prototype.
107148         * lib/basename.c, dirname.c, stripslash.c:
107149         Include <string.h> unconditionally.
107151         * lib/bcopy.c: Include <stddef.h>.
107152         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
107154         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
107156         * lib/error.h (error, error_at_line, error_print_progname)
107157         [! (defined (__STDC__) && __STDC__)]: Remove decls.
107158         * lib/error.c: Include error.h first, to check interface.
107159         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107160         (VA_START): Remove; all uses changeed to va_start.
107161         (exit, strerror): Remove decls.
107162         (error_print_progname): Prototype uncondionally.
107163         Don't include <errno.h>; no longer needed.
107164         (private_strerror): Remove.
107165         (error_tail): Always define.
107166         (error, error_at_line): Assume C89 or better; always use prototypes.
107167         * lib/fatal.c: Include "fatal.h" first, to test interface.
107168         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107169         (VA_START): Remove; all uses changed to va_start.
107170         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
107171         this case.
107172         (exit): Remove decl.
107173         (fatal): Prototype unconditionally.  Assume va_start works.
107174         Abort at end, to pacify gcc.
107176         * lib/euidaccess.c (main): Define with a prototype.
107178         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
107180         * lib/exitfail.c: Include <stdlib.h> unconditionally.
107182         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
107183         prototypes.
107184         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
107185         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
107186         (getenv): Remove decl.
107187         (fnmatch): Define using a prototype.
107188         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
107189         (FCT): Define using a prototype.
107191         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
107193         * lib/gethostname.c: Include <stddef.h>.
107194         (gethostname): Define with prototype.  Length is size_t, not int.
107196 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107198         Assume C89 or better; remove K&R cruft.
107199         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
107200         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
107201         string.h, getenv, malloc.
107202         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
107203         headers.
107204         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
107205         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
107206         do not check for strerror.
107207         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
107208         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
107209         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
107210         do not check for doprnt or vprintf.
107211         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
107212         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
107214 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107216         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
107217         getversion.c should have been removed then, but was accidentally
107218         preserved.
107220         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
107221         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
107223 2003-09-08  Karl Berry  <karl@gnu.org>
107225         * config/config.sub, config.guess, srclistvars.sh: update from savannah
107226                 config, forget about prep.
107228         * config/depcomp, missing: update from automake.
107230 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107232         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
107233         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107235 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107237         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
107238         copy_tm_result.  Bug reported by Simon Josefsson in
107239         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107241 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107243         * m4/time_r.m4: New file.
107244         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
107245         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
107246         is. Check for timegm declaration.
107247         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
107248         Do not check for gmtime_r.
107249         Replace mktime if __mktime_internal does not exist and if mktime
107250         hasn't been replaced already.
107252 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107254         * lib/time_r.c, lib/time_r.h: New files.
107256         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
107257         __localtime_r.
107258         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
107259         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
107261         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
107262         __gmtime_r.
107263         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
107264         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
107265         Include <time_r.h>.
107267         * lib/timegm.c: Switch to glibc implementation, with the following
107268         changes:
107269         [defined HAVE_CONFIG_H]: Include <config.h>.
107270         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
107271         (__mktime_internal) [!defined _LIBC]: New decl.
107272         (__gmtime_r) [!defined _LIBC]: New macro and function.
107273         (timegm): Use a prototype, since gnulib assumes C89.
107274         Do not bother declaring tmp to be const, as it's not really usefu.
107275         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
107276         (timegm): Declare only if HAVE_DECL_TIMEGM.
107278 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107280         * MODULES.html.sh (func_all_modules): Add time_r.
107281         * modules/time_r: New file.
107282         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
107283         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
107285 2003-09-03  Paul Eggert  <eggert@twinsun.com>
107287         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
107288         Bug reported by Lute Kamstra in
107289         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
107291         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
107292         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
107293         course with correspondingly smaller numbers for tomorrow and
107294         yesterday.  From Tadayoshi Funaba.  Originally installed into
107295         sh-utils on 1999-08-07, but the patch got lost (I guess during the
107296         coreutils merge?).
107298 2003-08-31  Simon Josefsson  <jas@extundo.com>
107300         * modules/timegm: New file.
107301         * MODULES.html.sh (func_all_modules): Add timegm.
107303 2003-08-31  Simon Josefsson  <jas@extundo.com>
107305         * m4/timegm.m4: New file.
107307 2003-08-31  Simon Josefsson  <jas@extundo.com>
107309         * lib/timegm.h: New file.
107310         * lib/timegm.c: New file.  Based on
107311         wget-1.8.2/src/http.c:mktime_from_utc.
107313 2003-08-31  Karl Berry  <karl@gnu.org>
107315         * lib/argp.h: update from libc.
107317 2003-08-28  Bruno Haible  <bruno@clisp.org>
107319         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
107320         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
107321         followed by '#define fnmatch fnmatch_posix' gives an error.
107323 2003-08-28  Bruno Haible  <bruno@clisp.org>
107325         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
107326         warning on QNX, which defines O_BINARY to 000000.
107328 2003-08-27  Jim Meyering  <jim@meyering.net>
107330         * m4/mkstemp.m4: Require that the system mkstemp be able to create
107331         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
107332         would fail after 32.  Reported by Danny Levinson.  Details here:
107333         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
107335 2003-08-24  Bruno Haible  <bruno@clisp.org>
107337         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
107338         MSVC7 <stdio.h> is included later.
107340 2003-08-22  Simon Josefsson  <jas@extundo.com>
107342         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
107344 2003-08-20  Karl Berry  <karl@gnu.org>
107346         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
107348 2003-08-20  Bruno Haible  <bruno@clisp.org>
107350         * modules/progname: New file.
107351         * MODULES.html.sh (func_all_modules): Add progname.
107353 2003-08-20  Bruno Haible  <bruno@clisp.org>
107355         * lib/progname.h: New file, from GNU gettext.
107356         * lib/progname.c: New file, from GNU gettext.
107357         * lib/progreloc.c: New file, from GNU gettext.
107359 2003-08-19  Jim Meyering  <jim@meyering.net>
107361         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
107362         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
107364 2003-08-19  Bruno Haible  <bruno@clisp.org>
107366         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
107367         more.
107369 2003-08-19  Bruno Haible  <bruno@clisp.org>
107371         * lib/xstrdup.c: Assume <string.h> exists.
107373 2003-08-18  Paul Eggert  <eggert@twinsun.com>
107375         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
107376         in makefile rules.
107378 2003-08-18  Jim Meyering  <jim@meyering.net>
107380         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
107381         * m4/lib-ld.m4: Likewise.
107383 2003-08-18  Jim Meyering  <jim@meyering.net>
107385         * lib/setenv.h: Indent nested cpp directive.
107386         * lib/vasnprintf.c: Remove trailing blanks.
107388 2003-08-17  Simon Josefsson  <jas@extundo.com>
107390         * modules/xstrndup: New file.
107391         * MODULES.html.sh (func_all_modules): Add xstrndup.
107393 2003-08-17  Simon Josefsson  <jas@extundo.com>
107395         * modules/argp: Fix autoconf macro name. Add more dependencies.
107397 2003-08-17  Simon Josefsson  <jas@extundo.com>
107399         * m4/xstrndup.m4: New file.
107401 2003-08-17  Simon Josefsson  <jas@extundo.com>
107403         * m4/argp.m4: New file.
107405 2003-08-17  Simon Josefsson  <jas@extundo.com>
107406             Bruno Haible  <bruno@clisp.org>
107408         * lib/xstrndup.h: New file.
107409         * lib/xstrndup.c: New file.
107411 2003-08-17  Bruno Haible  <bruno@clisp.org>
107413         * modules/strndup (Files, Include): Add lib/strndup.h.
107415 2003-08-17  Bruno Haible  <bruno@clisp.org>
107417         * modules/euidaccess (Files): Add lib/euidaccess.h.
107419 2003-08-17  Bruno Haible  <bruno@clisp.org>
107421         * lib/strndup.h: New file.
107423 2003-08-17  Bruno Haible  <bruno@clisp.org>
107425         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
107426         like AC_GNU_SOURCE.
107427         * modules/extensions (configure.ac): Comment out the invocation of
107428         gl_USE_SYSTEM_EXTENSIONS.
107430 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107432         Merges from coreutils, etc.
107433         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
107434         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
107435         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
107436         fixing a typo.
107437         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
107438         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
107440 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107442         Document merge from coreutils.
107443         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
107444         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
107445         * modules/utime: Add m4/utimes-null.m4.
107447 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107449         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
107450         space, undoing this 2003-08-12 change:
107451         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
107453 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107455         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
107456         strtoul.c from libc, undoing this 2003-08-12 change:
107457         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
107459 2003-08-16  Jim Meyering  <jim@meyering.net>
107461         Merges from coreutils.
107462         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
107463         prefix.  Adjust cache variables similarly.  Create 500 rather than
107464         just 300 files, to exercise bug on Darwin6.5, too.
107465         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
107466         $missing_dir.
107467         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
107468         AM_SYS_POSIX_TERMIOS.
107469         Reported by mkc@mathdogs.com.
107470         Also change use of $am_cv_sys_posix_termios
107471         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
107472         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
107473         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
107474         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
107475         in /proc/mounts until it finds one with matching device number.  This
107476         is unnecessary when the FILE argument *is* a mount point.  No stat call
107477         is necessary in that case.  So, disable the statvfs-testing code on
107478         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
107479         as RedHat bug# 84846.
107480         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
107481         to 1MB, so as not to render systems with no stack size limit (e.g.,
107482         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
107483         Include <unistd.h>.  On some systems,
107484         it is required for the definition of _SC_PAGESIZE.
107486 2003-08-16  Jim Meyering  <jim@meyering.net>
107488         Merge from coreutils.
107489         * lib/xstrtoimax.c: #else #if -> #elif.
107490         * lib/xstrtoumax.c: Likewise.
107492 2003-08-16  Jim Meyering  <jim@meyering.net>
107494         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
107495         * m4/utimes.m4: Removed.
107496         * m4/utimes-null.m4: Renamed from utimes.m4.
107498         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
107499         to 1MB, so as not to render systems with no stack size limit (e.g.,
107500         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
107501         Include <unistd.h>.  On some systems,
107502         it is required for the definition of _SC_PAGESIZE.
107504 2003-08-16  Jim Meyering  <jim@meyering.net>
107505         and Paul Eggert  <eggert@cs.ucla.edu>
107507         Merges from coreutils, etc.
107509         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
107510         using the latest version from cvs.  This avoids problems with #line
107511         directives using a vendor (Sun) compiler.
107512         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
107513         Don't set GETGROUPS_LIB here; now it's
107514         done via getgroups.m4's wrapper function.
107515         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
107516         rather than just in sh-util/configure.in, so that the
107517         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
107518         same.
107519         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
107520         AC_FUNC_GETLOADAVG where to find getloadavg.c.
107521         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
107522         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
107523         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
107524         Remove code that is now done by the newly-required macros.
107525         Append $(EXEEXT) to DF_PROG.
107526         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
107527         Do not invoke or require the following here,
107528         since prereq.m4 or some gnulib .m4 now does this for us:
107529         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
107530         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
107531         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
107532         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
107533         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
107534         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
107535         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
107536         AC_FUNC_OBSTACK.
107537         Do not replace the following functions, as this is now the job
107538         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
107539         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
107540         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
107541         atexit getpass, strdup, getpagesize.
107542         Replace 'raise'.
107543         Do not check for the following functions, as this is now the job
107544         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
107545         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
107546         setregid.
107547         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
107548         Check for sys/sysctl.h.
107549         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
107550         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
107551         of checking for ssize_t ourselves.
107553         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
107554         Require every macro that gnulib/modules/* suggests for us.
107555         (jm_PREREQ_ADDEXT): New macro.
107556         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
107557         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
107559         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
107560         (gl_PHYSMEM): Use it.
107561         Also check for `table' function.
107562         Check for new headers and functions.
107563         Add check for sys/sysmp.h.
107564         With suggestions from Kaveh Ghazi.
107565         Ignore headers that are present but cannot be compiled.  This
107566         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
107567         C 5.4.
107569 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107571         Document merge from coreutils.
107572         * modules/userspec: Depend on posixver.
107573         * modules/strftime: Depend on tzset.
107575 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107577         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
107578         rather than tab, after '#' in shell-script copyright notices.
107579         Suggested by Bruno Haible.
107581 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107583         * config/srclist-update: Use three spaces, rather than tab, after '#'
107584         in shell-script copyright notices.  Suggested by Bruno Haible.
107585         Remove unnecessary parenthesization in regular expression.
107587 2003-08-15  Jim Meyering  <jim@meyering.net>
107589         Merge from coreutils.
107590         * lib/xgethostname.c: Include <stdlib.h>.
107591         (xghostname): Don't exit for anything other than memory-related
107592         failure; just return NULL.
107593         * lib/userspec.c: Include "posixver.h".
107594         (parse_user_spec): Accept `.' as a separator only
107595         in pre-POSIX-200112 mode.
107596         * lib/strtoimax.c: Use #elif rather than #else #if.
107597         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
107598         Remove function, now that we can rely on a working tzset function.
107599         [!_LIBC]: Ensure that the required autoconf test has been run.
107600         [!defined _NL_CURRENT && HAVE_STRFTIME]:
107601         Use underlying_strftime for %r.
107602         * lib/sha.c: Merge in some clean-up and optimization changes from
107603         glibc.
107604         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
107605         Ensure that it is a multiple of 64.
107606         Rearrange loop exit tests so as to avoid performing an
107607         additional fread after encountering an error or EOF.
107608         * lib/realloc.c: Update copyright date.
107610 2003-08-15  Jim Meyering  <jim@meyering.net>
107611         and Paul Eggert  <eggert@twinsun.com>
107613         Merge from coreutils.
107614         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
107615         member but strut utmpx does not.  Needed for AIX 4.3.3.
107616         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
107618 2003-08-15  Jim Meyering  <jim@meyering.net>
107619         and Paul Eggert  <eggert@cs.ucla.edu>
107621         Merges from coreutils, etc.
107622         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
107623         Require gl_FUNC_TZSET_CLOBBER.
107624         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
107625         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
107626         members.
107628 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107630         Help the merge from coreutils.
107631         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
107632         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
107633         * m4/tzset.m4: Use it too.
107635 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107637         * modules/tzset: New file.
107639 2003-08-14  Jim Meyering  <jim@meyering.net>
107641         Merges from coreutils.
107642         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
107643         variable names, rather than @FNMATCH_H@.
107644         * modules/alloca: Likewise for $(ALLOCA_H).
107646         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
107647         the three copies of the literal target, `fnmatch.h'.
107648         * modules/alloca (alloca.h): Likewise.
107650 2003-08-14  Jim Meyering  <jim@meyering.net>
107652         Merge from coreutils.
107653         * m4/tzset.m4: New file.
107654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
107655         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
107656         otherwise, AIX 5.1 systems would end up using the latter.
107657         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
107658         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
107659         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
107660         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
107662 2003-08-14  Jim Meyering  <jim@meyering.net>
107664         Merge from coreutils.
107665         * lib/obstack.h: Whitespace changes.
107666         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
107667         and xcalloc return values.
107668         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
107669         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
107670         hang on OSF/1 5.1 for DIR on both local and remote file systems.
107671         Reported by (and fix confirmed by) Nelson H. F. Beebe.
107672         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107673         error from mntctl.
107674         Use mntctl's return value to drive the entry-processing loop, since
107675         we can't rely on the value of the vmt_length member in the last
107676         entry.  On some systems doing so could result in exhausting
107677         virtual memory.  Based in part on a patch from Mike Jetzer.
107679 2003-08-14  Jim Meyering  <jim@meyering.net>
107680         and Paul Eggert  <eggert@twinsun.com>
107682         Merges from coreutils, plus other fixes.
107683         * lib/physmem.c: Merge in portability changes from gcc/libiberty
107684         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
107685         for credits and details.  Thanks to Kaveh Ghazi for helping
107686         to keep these files in sync.
107687         (ARRAY_SIZE): Define it.
107688         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
107689         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
107690         (memcasecmp): Don't assume size_t fits in unsigned int.
107691         Remove casts and duplicate code.
107692         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
107693         (memcpy): Remove definition.
107694         Merge in some clean-up and optimization changes from glibc.
107695         [BLOCKSIZE]: Move definition to top of file.
107696         Ensure that it is a multiple of 64.
107697         Rearrange loop exit tests so as to avoid performing an
107698         additional fread after encountering an error or EOF.
107699         * lib/md5.h (md5_uintptr): Define.
107700         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
107701         return to the initial working directory.  Preserve errno
107702         for caller.
107703         * lib/idcache.c: Include "xalloc.h".
107704         (xmalloc, xrealloc): Remove decls.
107705         (getuser): Remove casts no longer required in C89.
107706         * lib/human.c: Include stdio.h, for sprintf.
107707         * lib/group-member.c: Include "xalloc.h".
107708         (xmalloc, xrealloc): Remove decls.
107709         (get_group_info): Remove casts no longer required in C89.
107710         * lib/getusershell.c (readname): Remove casts no longer required in
107711         C89.
107712         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
107713         * lib/getline.c: Whitespace fix, from coreutils.
107715 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107717         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
107718         Check for isascii.
107720         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107721         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107722         Undo previous (whitespace-only) change.
107724 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107726         * lib/exclude.c: Include <ctype.h>
107727         (IN_CTYPE_DOMAIN): New macro.
107728         (is_space): New fn.
107729         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
107730         and empty lines.
107732         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107733         Undo previous (whitespace-only) change.
107735 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107737         * config/srclist-update: Change update back to the old behavior,
107738         leaving whitespace alone.  Use one 'sed' command rather than a
107739         pipeline.
107740         (fixlicense): Now a variable, not a function.
107741         (remove_trailing_blanks): Remove.
107742         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
107743         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107744         Undo previous (whitespace-only) change.
107746 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107748         Merge from coreutils.
107749         * modules/euidaccess: Add lib_SOURCES, include for new
107750         file euidaccess.h
107752 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107754         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107755         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107756         Normalize leading white space and remove trailing white space.
107758         Merge from coreutils
107759         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
107761         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
107762         0.12.1.  These files are now being upgraded automatically by
107763         ../config/srclist-update.
107765 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107767         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107768         Normalize leading white space and remove trailing white space.
107769         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
107770         notice, as per ../config/srclist-update.
107772         Merge from coreutils.
107773         * lib/euidaccess.h: New file.
107774         * lib/euidaccess.c: Include it.
107775         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
107776         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
107777         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
107779 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107781         * config/srclist-update: Add copyright notice.
107782         (remove_id_lines, remove_trailing_blanks): New constants.
107783         (fixfile): Use them to normalize spacing a bit in copied files.
107784         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107785         Normalize leading white space and remove trailing white space.
107787         * config/texinfo.tex: Sync with texinfo.
107789         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
107790         strtoul.c from libc, to merge coreutils whitespace changes.
107792         * config/srclist.txt: Get the following m4 files from gettext:
107793         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
107794         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
107795         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
107796         wint_t.m4.
107798 2003-08-12  Karl Berry  <karl@gnu.org>
107800         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
107801         been made.
107803 2003-08-11  Paul Eggert  <eggert@twinsun.com>
107805         * modules/gnu-source, m4/gnu-source.m4:
107806         Remove; we're assuming Autoconf 2.54 or later now.
107807         Suggested by Bruno Haible.
107808         * MODULES.html.sh (func_all_modules): Remove gnu-source.
107810 2003-08-11  Bruno Haible  <bruno@clisp.org>
107812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
107814 2003-08-11  Bruno Haible  <bruno@clisp.org>
107816         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
107817         (vasnprintf): Use it instead of wcslen.
107819 2003-08-11  Bruno Haible  <bruno@clisp.org>
107821         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
107822         value to ensure that _Bool promotes to int. Use #define for _Bool when
107823         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
107825 2003-08-10  Karl Berry  <karl@gnu.org>
107827         * lib/regex.h: update from libc (whitespace fix).
107829 2003-08-09  Paul Eggert  <eggert@twinsun.com>
107831         Merge some files from coreutils.  These changes were
107832         originally made by Jim Meyering.
107833         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
107834         many older Unixes require this.
107835         * lib/alloca.c (alloca): Remove cast to argument of free;
107836         no longer needed in C89.
107837         * lib/alloca_.h, regex.h: Fix white space to match
107838         what GNU indent does.
107840 2003-08-09  Paul Eggert  <eggert@twinsun.com>
107842         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
107843         apparently Emacs's Unicode mode got confused before my 2003-08-05
107844         checkin.
107846 2003-08-08  Paul Eggert  <eggert@twinsun.com>
107848         * m4/extensions.m4: New file.
107849         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
107850         Require gl_USE_SYSTEM_EXTENSIONS.
107851         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
107852         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
107854 2003-08-08  Paul Eggert  <eggert@twinsun.com>
107856         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
107857         * modules/extensions, modules/gnu-source: New files.
107858         * modules/timespec, modules/unlocked-io: Depend on extensions.
107860 2003-08-07  Paul Eggert  <eggert@twinsun.com>
107862         * modules/restrict: New file.
107863         * MODULES.html.sh (func_all_modules): Add restrict.
107864         * modules/regex: Depend on restrict.
107866 2003-08-07  Paul Eggert  <eggert@twinsun.com>
107868         * m4/restrict.m4: New file.
107869         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
107871 2003-08-07  Bruno Haible  <bruno@clisp.org>
107873         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
107874         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
107876 2003-08-07  Bruno Haible  <bruno@clisp.org>
107878         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
107879         makes the module 'getndelim2' compatible with the module 'getline'.
107881 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107883         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
107884         byte with "\201" to avoid glitches when editing that source file
107885         with multi-gnome-terminal.
107887 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107889         * lib/bumpalloc.h: Remove.
107891 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107893         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
107894         * modules/bumpalloc: Remove.
107896 2003-08-04  Paul Eggert  <eggert@twinsun.com>
107898         * lib/getloadavg.c: Change copyright notice and spacing to conform to
107899         GNU coding style.
107901         Merge from coreutils.
107902         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
107903         1. From glibc.
107904         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
107905         from Karl Berry, implemented by Jim Meyering.
107906         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
107907         from Dmitry V. Levin.
107908         Remove anachronistic cast of xrealloc.
107909         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
107910         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
107911         type. Otherwise, it wouldn't compile with at least /bin/cc on
107912         ymp-cray-unicos9.0.2.X.
107913         Combine two mostly-identical uses of alloca into one.
107914         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
107916 2003-08-04  Dave Love  <d.love@dl.ac.uk>
107918         [From Emacs.]
107920         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
107921         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
107922         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
107923         obsolete NLIST_NAME_UNION.
107924         [__GNU__]: Undef BSD and FSCALE.
107925         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
107927 2003-08-03  Paul Eggert  <eggert@twinsun.com>
107929         * lib/stdbool_.h (_Bool): Make it signed char, instead of
107930         an enum type, so that it's guaranteed to promote to int.  See:
107931         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
107933 2003-08-03  Karl Berry  <karl@gnu.org>
107935         * config/depcomp: update from automake.
107937 2003-07-31  Paul Eggert  <eggert@twinsun.com>
107939         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
107940         (strerror): Don't assume that a printable int fits in 14 bytes.
107942 2003-07-31  Bruno Haible  <bruno@clisp.org>
107944         * modules/getpass-gnu: New file.
107945         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
107947 2003-07-31  Bruno Haible  <bruno@clisp.org>
107949         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
107951 2003-07-24  Karl Berry  <karl@gnu.org>
107953         * config/missing: update from automake.
107955 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
107956             Bruno Haible  <bruno@clisp.org>
107958         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
107959         * lib/getline.c (getline, getdelim): Likewise.
107960         Remove _GNU_SOURCE define; now it's defined in config.h through
107961         m4/getline.m4.
107963 2003-07-23  Karl Berry  <karl@gnu.org>
107965         * config/config.sub: update from prep.
107967 2003-07-22  Paul Eggert  <eggert@twinsun.com>
107969         * modules/xalloc (Depends-on): Add exitfail.
107970         * modules/xmemcoll: Likewise.
107972 2003-07-22  Paul Eggert  <eggert@twinsun.com>
107974         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
107975         over-parenthesization in macros.
107977         Sync with coreutils.
107979         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
107980         required by C99.
107982         Use `exit_failure' for xalloc and xmemcoll instead of their own
107983         private exit-failure variables.
107984         * lib/xalloc.h (xalloc_exit_failure): Remove.
107985         * lib/xmalloc.c: Likewise.  Include exitfail.h.
107986         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
107987         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
107988         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
107989         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
107991 2003-07-20  Jim Meyering  <jim@meyering.net>
107993         * modules/closeout (Depends-on): Add exitfail.
107994         Suggestion from Bruno Haible.
107996 2003-07-19  Karl Berry  <karl@gnu.org>
107998         * config/config.sub: update from prep.
108000 2003-07-18  Paul Eggert  <eggert@twinsun.com>
108002         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
108003         Remove.
108004         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
108005         to test that it can stand by itself.  Include "exitfail.h".
108006         Clients should set exit_failure instead.
108007         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
108009 2003-07-18  Bruno Haible  <bruno@clisp.org>
108011         * modules/getndelim2: New file.
108012         * modules/getline: Share files with module getndelim2.
108013         * modules/getnline: Depend on getndelim2 instead of sharing files with
108014         it. Add getnline.c to lib_SOURCES.
108015         * MODULES.html.sh (func_all_modules): Add getndelim2.
108017 2003-07-18  Bruno Haible  <bruno@clisp.org>
108019         * m4/getndelim2.m4: New file.
108020         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
108021         invoke gl_PREREQ_GETNDELIM2.
108022         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
108023         gl_PREREQ_GETNDELIM2.
108024         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
108025         gl_GETNDELIM2.
108027 2003-07-18  Bruno Haible  <bruno@clisp.org>
108029         * lib/getndelim2.h: New file.
108030         * lib/getndelim2.c: Make into a module of its own. Include config.h,
108031         getndelim2.h.
108032         (getndelim2): Make non-static. Change return type to ssize_t.
108033         * lib/getline.h: Change argument names.
108034         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
108035         * lib/getnline.c: Include getndelim2.h.
108037 2003-07-18  Andreas Schwab  <schwab@suse.de>
108039         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
108041 2003-07-17  Karl Berry  <karl@gnu.org>
108043         * config/config.sub: update from prep.
108045 2003-07-17  Bruno Haible  <bruno@clisp.org>
108047         * modules/getnline: New file.
108048         * modules/getline: Add lib/getndelim2.c to source file list.
108049         * MODULES.html.sh (func_all_modules): Add getnline.
108051 2003-07-17  Bruno Haible  <bruno@clisp.org>
108053         * m4/getnline.m4: New file.
108055 2003-07-17  Bruno Haible  <bruno@clisp.org>
108057         * m4/Makefile.am.in: Remove file.
108058         * m4/Makefile.am: Remove file.
108059         * m4/Makefile.in: Remove file.
108061 2003-07-17  Bruno Haible  <bruno@clisp.org>
108063         * lib/getnline.h: New file.
108064         * lib/getnline.c: New file.
108065         * lib/getndelim2.c: New file, extracted from getline.c.
108066         (getndelim2): Renamed from getdelim2, with added nmax argument.
108067         * lib/getline.c: Include getndelim2.c.
108068         (getdelim2): Moved out to getndelim2.c.
108069         (getline, getdelim): Update.
108071 2003-07-17  Bruno Haible  <bruno@clisp.org>
108073         * lib/Makefile.am: Remove file.
108074         * lib/Makefile.in: Remove file.
108076 2003-07-17  Bruno Haible  <bruno@clisp.org>
108078         * configure.in: Remove file.
108079         * Makefile.in: Remove file.
108081 2003-07-17  Bruno Haible  <bruno@clisp.org>
108083         * MODULES.html.sh: Put the </BODY> right before </HTML>.
108085 2003-07-16  Karl Berry  <karl@gnu.org>
108087         * config/srclist-update: was running fixlicense twice, which caused
108088                 texinfo.tex to be nullified for some reason.  Simplify,
108089                 $gplsrc is no longer needed as far as I can see?
108091 2003-07-16  Jim Meyering  <jim@meyering.net>
108093         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
108095 2003-07-15  Paul Eggert  <eggert@twinsun.com>
108097         * config/srclist.txt: Get the following files from gettext-runtime/intl
108098         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
108099         ref-del.sin.  From Bruno Haible.
108100         * config/srclist-update (fixfile): Change grep pattern again, since the
108101         previous fix didn't work (there was another trailing $).  Use
108102         '[$]' to escape the $s.
108104 2003-07-15  Karl Berry  <karl@gnu.org>
108106         * lib/vasnprintf.c: update from gettext.
108108 2003-07-15  Karl Berry  <karl@gnu.org>
108110         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
108111         gets expanded when surrounded by '$'.
108113 2003-07-15  Jim Meyering  <jim@meyering.net>
108115         * modules/save-cwd: Don't depend on error.  From Derek Price.
108117 2003-07-15  Jim Meyering  <jim@meyering.net>
108119         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
108121 2003-07-14  Simon Josefsson  <jas@extundo.com>
108123         * modules/mempcpy: New file.
108124         * MODULES.html.sh (func_all_modules): Add mempcpy.
108126 2003-07-14  Simon Josefsson  <jas@extundo.com>
108128         * m4/mempcpy.m4: New file.
108130 2003-07-14  Simon Josefsson  <jas@extundo.com>
108132         * lib/mempcpy.h: New file.
108133         * lib/mempcpy.c: New file.
108135 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108137         * modules/getdate, modules/posixtm: Depend on mktime.
108139 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108141         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
108142         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
108143         unicodeio.c, unicodeio.h, unlocked-io.h:
108144         Switch from LGPL to GPL.
108146 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108148         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
108149         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
108150         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
108151         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
108152         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
108153         updated automatically by ../config/srclist-update.  This changes
108154         their license from LPGL to GPL.
108156 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108158         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
108159         assumed to refer to the root of the most recent stable gettext version.
108160         * config/srclistvars.sh: Add defaults for eggert.
108161         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
108162         Match "This program" as well as "The program".  This is needed
108163         for gettext.
108165 2003-07-14  Jim Meyering  <jim@meyering.net>
108167         Don't emit diagnostics.  Let callers do that.
108168         * lib/save-cwd.c: Don't include "error.h".
108169         (save_cwd): Don't call error.  Ensure that errno is valid
108170         when returning nonzero.
108172         * lib/save-cwd.h (restore_cwd): Update prototype.
108173         * lib/save-cwd.c (restore_cwd): Remove two parameters.
108174         Simplify.  Don't call error upon failure.  Let callers do that.
108175         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
108176         when auditing is enabled.  But don't bother updating the #if.
108178 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
108180         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
108181         it breaks C++ compilation.
108182         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
108184 2003-07-10  Simon Josefsson  <jas@extundo.com>
108186         * modules/strchrnul (Makefile.am): Add strchrnul.h.
108188 2003-07-10  Jim Meyering  <jim@meyering.net>
108190         * m4/clock_time.m4: Remove trailing blank.
108191         * m4/intmax_t.m4: Likewise.
108193 2003-07-10  Jim Meyering  <jim@meyering.net>
108195         * lib/vasnprintf.c: Remove trailing blanks.
108196         Make cpp indentation consistent.
108198 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108200         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
108201         posixver.c, strftime.c, strnlen.c, strverscmp.c:
108202         Switch from LGPL to GPL.
108204 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108206         * config/srclist.txt: Sort sublists.  Add
108207         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
108208         that differ from gnulib for one reason or another; we'd like this list
108209         to be smaller but for now let's document what we have.
108211 2003-07-08  Paul Eggert  <eggert@twinsun.com>
108213         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
108214         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
108215         and sweeter "eval x=$x".
108216         * config/srclist.txt: Get lib/argp* from glibc.
108218 2003-07-07  Paul Eggert  <eggert@twinsun.com>
108220         * lib/mktime.c: Fix some boundary cases and remove need for floating
108221         point.
108223         Issue a compile-time diagnostic if time_t is floating point, or if
108224         two's complement arithmetic is not in effect, or if arithmetic
108225         right shift does not propagate the sign.  These assumptions were
108226         all in the original code but they weren't checked.
108228         (TIME_T_MIDPOINT, verify): New macros.
108229         (__isleap): Remove; it has integer overflow problems.
108230         (leapyear): New function, without those problems.
108231         (ydhms_tm_diff): Remove; splitting into two parts.
108232         (ydhms_diff): New function, containing the arithmetic part of
108233         the old ydhms_tm_diff function.  Issue a compile-time
108234         diagnostic if we are not using C99 integer division.
108235         Avoid casts when possible.
108236         (guess_time_tm): New function, containing the checking part of
108237         the old ydhms_tm_diff function.  Return the new value, rather than
108238         the difference between it and the old.  Accept a new argument T
108239         so that *T specifies the old value.  Check for overflow in the result.
108241         (__mktime_internal): Use a time_t offset, not a long int offset.
108242         This undoes the 2003-06-04 change, which is no longer needed now
108243         that we have better overflow checking.
108244         (localtime_offset): Likewise.
108246         (__mktime_internal): Avoid harmful overflow on hosts where time_t
108247         and long are 64-bit but int is only 32-bit.
108248         (ydhms_diff): Use long int to store year1 and yday1.
108249         Issue a compile-time diagnostic if long int is not wide enough.
108251         (__mktime_internal): Use long int to store adjusted year and yday.
108252         Use plain C rather than preprocessor commands, if that doesn't
108253         affect efficiency.
108254         Check for overflow (and try to repair) after each probe
108255         rather than checking only at the very end.  This avoids some bugs
108256         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
108257         does not equal GMT offset at maximum time).
108258         Use integer to check for overflow rather than floating point; this
108259         is more portable to non-IEEE hosts, and is a tad faster.
108260         When we detect that we are oscillating between two values,
108261         don't check whether tm_isdst has the requested value, since
108262         we already know the answer.  When tm_isdst has the wrong value,
108263         use a different heuristic to find the right one, based on the
108264         extreme values actually observed in practice in tz2003a,
108265         rather than the (overly optimistic) "previous 3 calendar quarters".
108267         (not_equal_tm, print_tm, check_result): Use "const T" rather than
108268         "T const" to accommodate glibc style.
108269         (check_result): Use less-confusing report format.  "long" -> "long int.
108270         (main): Likewise.
108271         Don't loop if the iteration overflows time_t.
108272         Allow a negative step in the iteration.
108274 2003-07-06  Karl Berry  <karl@gnu.org>
108276         * config/depcomp: update from automake.
108277         * config/config.sub: update from prep.
108279 2003-07-03  Karl Berry  <karl@gnu.org>
108281         * config/config.guess: update from prep.
108283 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108285         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
108286         xreadlink.c now includes it unconditionally.
108288 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108290         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
108291         having it depend on HAVE_SYS_TYPES_H.
108293 2003-07-01  Bruno Haible  <bruno@clisp.org>
108295         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
108296         <sys/types.h> should be sufficient.
108297         Reported by Paul Eggert.
108299 2003-06-26  Karl Berry  <karl@gnu.org>
108301         * config/depcomp: update from automake.
108303 2003-06-26  Bruno Haible  <bruno@clisp.org>
108305         * modules/human: Depend on module stdbool.
108307 2003-06-25  Bruno Haible  <bruno@clisp.org>
108309         * modules/readlink: New file.
108310         * modules/xreadlink: Depend on it.
108311         * MODULES.html.sh (func_all_modules): Add readlink.
108313 2003-06-25  Bruno Haible  <bruno@clisp.org>
108315         * m4/readlink.m4: New file.
108317 2003-06-25  Bruno Haible  <bruno@clisp.org>
108319         * lib/readlink.c: New file.
108321 2003-06-22  Karl Berry  <karl@gnu.org>
108323         * config/srclist.txt: update mkinstalldirs from automake.
108324         * config/mkinstalldirs: update.
108326 2003-06-22  Bruno Haible  <bruno@clisp.org>
108328         Portability to mingw32.
108329         * m4/ssize_t.m4: New file, from GNU gettext.
108330         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
108331         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
108333 2003-06-22  Bruno Haible  <bruno@clisp.org>
108335         * modules/safe-read: Add m4/ssize_t.m4.
108336         * modules/xreadlink: Add m4/ssize_t.m4.
108338 2003-06-20  Bruno Haible  <bruno@clisp.org>
108340         Assume C89, so PARAMS isn't needed.
108341         * lib/unicodeio.h (PARAMS): Remove.
108342         * lib/unicodeio.c: Don't use PARAMS.
108344 2003-06-18  Karl Berry  <karl@gnu.org>
108346         * config/config.{guess,sub}: update from prep.
108348 2003-06-18  Jim Meyering  <jim@meyering.net>
108350         Merge changes from coreutils.
108351         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
108352         Remove explicit declarations of xmalloc and realloc.
108353         Include xalloc.h.
108354         (read_utmp): Remove anachronistic cast of xmalloc.
108356 2003-06-17  Paul Eggert  <eggert@twinsun.com>
108358         Assume C89, so PARAMS isn't needed.
108359         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
108360         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
108361         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
108362         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
108363         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
108364         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
108365         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
108366         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
108367         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
108368         lib/xstrtod.h, lib/xstrtol.h: Likewise.
108369         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
108370         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
108371         no longer needed. Anyway, config.h should always be included before any
108372         other file.
108374 2003-06-11  Simon Josefsson  <jas@extundo.com>
108376         * modules/sysexits: New file.
108377         * MODULES.html.sh (func_all_modules): Add sysexits.
108379 2003-06-11  Simon Josefsson  <jas@extundo.com>
108381         * lib/sysexit_.h: New file.
108383 2003-06-11  Derek Price  <derek@ximbiot.com>
108385         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
108386         necessary.
108388 2003-06-11  Bruno Haible  <bruno@clisp.org>
108390         * m4/sysexits.m4: New file.
108392 2003-06-10  Simon Josefsson  <jas@extundo.com>
108394         * lib/argp.h: New file, from glibc.
108395         * lib/argp-ba.c: New file, from glibc.
108396         * lib/argp-eexst.c: New file, from glibc.
108397         * lib/argp-fmtstream.c: New file, from glibc.
108398         * lib/argp-fmtstream.h: New file, from glibc.
108399         * lib/argp-fs-xinl.c: New file, from glibc.
108400         * lib/argp-help.c: New file, from glibc.
108401         * lib/argp-namefrob.h: New file, from glibc.
108402         * lib/argp-parse.c: New file, from glibc.
108403         * lib/argp-pv.c: New file, from glibc.
108404         * lib/argp-pvh.c: New file, from glibc.
108405         * lib/argp-xinl.c: New file, from glibc.
108407 2003-06-10  Simon Josefsson  <jas@extundo.com>
108409         * modules/strchrnul: New file.
108411 2003-06-10  Simon Josefsson  <jas@extundo.com>
108413         * modules/argp: New file.
108415 2003-06-10  Simon Josefsson  <jas@extundo.com>
108417         * m4/strchrnul.m4: New file.
108419 2003-06-10  Simon Josefsson  <jas@extundo.com>
108421         * lib/strchrnul.h: New file.
108422         * lib/strchrnul.c: New file.
108424 2003-06-10  Bruno Haible  <bruno@clisp.org>
108426         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
108428 2003-06-07  Karl Berry  <karl@gnu.org>
108430         * config/config.{guess,sub}: update from prep.
108432 2003-06-07  Jim Meyering  <jim@meyering.net>
108434         * modules/strtod: Use $(...) notation, not @...@ for
108435         AC_REPLACE'd variables.
108436         * modules/localcharset: Likewise.
108438 2003-06-07  Jim Meyering  <jim@meyering.net>
108440         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
108441         in place of my name in the copyright comment.
108442         Remove definition and uses of __P.
108444         From coreutils.
108445         * lib/stat.c: Don't declare xmalloc explicitly.
108446         Instead, include "xalloc.h".
108447         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
108448         xrealloc, and xcalloc return values.
108449         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
108450         Improve comment.
108451         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
108453 2003-06-07  Bruno Haible  <bruno@clisp.org>
108455         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
108456         avoid AC_CONFIG_LINKS.
108457         * modules/fnmatch (Makefile.am): Use explicit creation rule for
108458         fnmatch.h, to avoid AC_CONFIG_LINKS.
108459         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
108461 2003-06-07  Bruno Haible  <bruno@clisp.org>
108463         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
108464         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
108465         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
108466         directory.
108467         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
108468         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
108469         directory.
108471 2003-06-06  Jim Meyering  <jim@meyering.net>
108473         Merge from coreutils.
108474         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
108475         Consolidate declarations and initializations of *_base* locals.
108477         Merge from coreutils.
108478         This avoids a core dump on systems without GNU putenv,
108479         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
108480         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
108481         (unsetenv): New static function, from GNU libc.
108482         (rpl_putenv): Use it.
108484         * lib/modechange.c: Remove trailing blanks.
108486         Merge from coreutils.
108487         * lib/fsusage.c: Remove declaration of statfs.
108488         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
108490         * lib/posixtm.c: Include <stdbool.h> unconditionally.
108492 2003-06-06  Jim Meyering  <jim@meyering.net>
108494         * lib/stdbool_.h: Renamed from stdbool.h.in.
108496 2003-06-06  Jim Meyering  <jim@meyering.net>
108497             Bruno Haible  <bruno@clisp.org>
108499         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
108500         Adjust Makefile.am snippet not to redirect directly to target.
108501         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
108503 2003-06-05  Paul Eggert  <eggert@twinsun.com>
108505         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
108506         mismatch, look in future quarters as well as past.  This fixes a
108507         bug when processing fall-backwards gaps immediately after a long
108508         period of daylight-saving time.
108510         * lib/mktime.c: Assume freestanding C89 or better.
108511         (HAVE_LIMITS_H): Remove.  Assume it's 1.
108512         (__P): Remove; not used.
108513         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
108514         (mktime, not_equal_tm, print_tm, check_result,
108515         main): Use prototypes.  Use const * where appropriate.
108516         (main): Fix typo in testing code that uncovered by above changes.
108517         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
108519 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108521         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
108522         locale.h, localeconv.  This merges changes from coreutils.
108524         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
108525         It can be removed after the next Autoconf is released.
108526         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
108527         needed.
108529 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108531         * lib/mktime.c: Fix Debian bug 177940
108532         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
108533         (localtime_offset): Now long int, not time_t, because we want it
108534         to be guaranteed to be signed.  All uses changed.
108535         (__mktime_internal): If overflow would occur when adding offset,
108536         don't add it.
108538         Merge 'human' changes from coreutils.  Rewrite to support
108539         locale-specific notations like thousands separators.
108540         * lib/human.c: Simplify authorship notice.
108541         Include human.h immediately after config.h.
108542         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
108543         <limits.h>: Do not include, since human.h does.
108544         (SIZE_MAX, UINTMAX_MAX): New macros.
108545         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
108546         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
108547         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
108548         (power_letter): Renamed from suffixes.
108549         (generate_suffix_backwards): Remove.
108550         (adjust_value): Now takes int style (because of human.h changes)
108551         and long double value (for greater precision on some platforms).
108552         (group_number): New function.
108553         (human_readable): Use it.  Use integer options, not enum.
108554         Put the options before the sizes in the arg list.
108555         Support all the new options.
108556         The old human_readable function has been removed;
108557         use inttostr.h instead.
108558         (human_readable, default_block_size, humblock):
108559         Use uintmax_t, not int, for block sizes.
108560         (human_readable_inexact, block_size_types): Remove.
108561         (block_size_opts): New constant.
108562         (human_options): Renamed from human_block_size, with new signature
108563         that allows block sizes up to UINTMAX_MAX.  All callers changed.
108564         * lib/human.h: Add copyright and authorship notice.
108565         Include <limits.h> and <stdbool.h> unconditionally.
108566         (PARAMS): Remove.  All uses removed.
108567         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
108568         (enum human_inexact_style): Remove tag; now a nameless enum.
108569         (human_floor, human_ceiling, human_round_to_even): Now have
108570         values 2, 0, 1 rather than -1, 1, 0.
108571         (human_group_digits, human_suppress_point_zero, human_autoscale,
108572         human_base_1024, human_SI, human_B): New constants.
108573         (human_readable_inexact, human_block_size): Remove.
108574         (human_readable): Size args are now uintmax_t, not int.
108575         (human_options): New decl.
108577         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
108578         unnecessary now that we assume C89 or better.  This change
108579         imported from coreutils.
108581         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108582         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
108583         in the 2003-05-30 sync from glibc.
108585         .h files should stand alone, but we shouldn't include <sys/types.h>
108586         if we can get away with just <stddef.h>.
108588         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
108589         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
108590         rather than <sys/types.h>, as we merely need size_t.
108591         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
108592         to get size_t.
108593         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
108594         Include <stdio.h>, to get FILE.
108595         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
108596         memcasecmp.h has included <stddef.h> and all we need is size_t.
108597         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
108598         our interface, instead of including <sys/types.h>
108600 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108602         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
108603         now, as glibc mktime is buggy on non-glibc systems.
108605 2003-06-03  Karl Berry  <karl@gnu.org>
108607         * config/config.sub: update from prep.
108609 2003-06-02  Paul Eggert  <eggert@twinsun.com>
108611         [from coreutils]
108612         Fix some minor time-related bugs with POSIX time arguments.
108613         Some valid time stamps were being rejected (notably -1, and
108614         time stamps before 1900 on 64-bit hosts).  And some invalid
108615         time stamps were being accepted, e.g. September 31.
108617         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
108618         that we can return (time_t) -1 successfully.
108619         * lib/posixtm.c: Likewise.
108620         [HAVE_STDBOOL_H]: Include <stdbool.h>.
108621         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
108622         (t): Remove static var.
108623         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
108624         of static var.  All uses changed.
108625         (year): Do not reject years before 1900; they can occur with
108626         64-bit time_t.
108627         (posix_time_parse): Do not check for out-of-range components;
108628         that is now the caller's responsibility, since our checks were
108629         only approximations.
108630         (posixtime): Use mktime to check for out-of-range components,
108631         since it knows them exactly.
108632         If mktime returns (time_t) -1, check whether an error actually occurred
108633         by invoking localtime on -1.
108634         (main) [TEST_POSIXTIME]: Check for input data errors, and report
108635         posixtime failures better.
108636         Improve the test data (in comments only).
108638 2003-06-02  Karl Berry  <karl@gnu.org>
108640         * config/mkinstalldirs (version): new variable.
108641         (--version): new option.
108642         (usage): improve message.
108644 2003-05-30  Karl Berry  <karl@gnu.org>
108646         * lib/mktime.c: update from libc.
108648 2003-05-30  Bruno Haible  <bruno@clisp.org>
108650         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
108651         * config/config.rpath: Upgrade to gettext-0.12.1.
108653 2003-05-30  Bruno Haible  <bruno@clisp.org>
108655         * m4/gettext.m4: Upgrade to gettext-0.12.1.
108656         * m4/nls.m4: New file, from gettext-0.12.1.
108657         * m4/po.m4: New file, from gettext-0.12.1.
108658         * m4/progtest.m4: Upgrade to gettext-0.12.1.
108660 2003-05-30  Bruno Haible  <bruno@clisp.org>
108662         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
108663         * lib/localcharset.h: Likewise.
108664         * lib/localcharset.c: Likewise.
108666 2003-05-29  Karl Berry  <karl@gnu.org>
108668         * config/config.rpath: update from gettext.
108670 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108672         Assume the headers required for C89 freestanding compilers.
108673         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
108674         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
108675         * m4/human.m4 (gl_HUMAN): Likewise.
108676         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
108677         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
108678         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108679         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
108680         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108681         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
108683 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108685         Assume the headers required for C89 freestanding compilers.
108686         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
108687         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
108688         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
108689         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
108690         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
108691         define, since <limits.h> is guaranteed to do that.
108692         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
108693         * lib/exclude.c: Include <stdbool.h> unconditionally.
108694         * lib/tempname.c: Include <stddef.h> unconditionally.
108695         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
108696         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
108697         <stddef.h> does that.
108698         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
108699         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
108700         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
108701         needed.
108702         * lib/xstrtol.c: Likewise.
108703         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
108704         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
108706         * lib/addext.c (addext): Use assignment rather than cast, to avoid
108707         warnings on some platforms.
108709         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108710         arbitrarily.
108712 2003-05-26  Jim Meyering  <jim@meyering.net>
108714         Merge in a change from coreutils:
108715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
108716         that is guaranteed to be `no'.  Use `no_such_member' to indicate
108717         that condition, rather than `-1' which is slightly misleading.
108718         Change the name of the cache variable to have the gl_ prefix.
108719         Prompted by a patch from Richard Dawe for DJGPP.
108721 2003-05-24  Karl Berry  <karl@gnu.org>
108723         * config/config.guess: update from prep.
108725 2003-05-22  Karl Berry  <karl@gnu.org>
108727         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
108729 2003-05-20  Karl Berry  <karl@gnu.org>
108731         * config/config.guess: update from prep.
108733 2003-05-18  Karl Berry  <karl@gnu.org>
108735         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
108736         might actually be set by the user.
108738         * config/depcomp, install-sh, mdate-sh: update from automake.
108740 2003-05-17  Bruno Haible  <bruno@clisp.org>
108742         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
108743         invalid expansion for AC_EGREP_CPP.
108744         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
108745         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
108746         Suggested by Akim Demaille <akim@epita.fr> in
108747         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
108749 2003-05-12  Jim Meyering  <jim@meyering.net>
108751         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
108752         the space-padded-by-default conversion specifiers, %e, %k, %l.
108754 2003-05-12  Bruno Haible  <bruno@clisp.org>
108756         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
108757         the string is longer than 4 KB.
108759 2003-05-11  Karl Berry  <karl@gnu.org>
108761         * config/config.{guess,sub}: update from prep.
108763 2003-05-09  Bruno Haible  <bruno@clisp.org>
108765         * modules/error: Add m4/strerror_r.m4 to file list.
108767 2003-05-03  Bruno Haible  <bruno@clisp.org>
108769         Upgrade to Unicode-4.0.
108770         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
108771         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
108772         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
108773         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
108774         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
108775         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
108776         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
108777         Change width of U+E0100..U+E01EF from 1 to 0.
108779 2003-04-25  Jim Meyering  <jim@meyering.net>
108781         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
108782         of type size_t, not int.
108784 2003-04-25  Bruno Haible  <bruno@clisp.org>
108786         * lib/copy-file.c: Include <stddef.h>, for size_t.
108788 2003-04-21  Paul Eggert  <eggert@twinsun.com>
108790         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
108791         code which expansion is under static control.  Patch imported from
108792         Akim Demaille's patch to Bison; see
108793         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
108795 2003-04-14  Bruno Haible  <bruno@clisp.org>
108797         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
108799 2003-04-11  Jim Meyering  <jim@meyering.net>
108801         Merge changes from Coreutils.
108803         2003-03-22  Jim Meyering  <jim@meyering.net>
108805         * lib/strftime.c (widen): Cast alloca return value to proper type.
108807         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
108809         From GNU libc.
108810         * lib/strftime.c (my_strftime): Handle very large width
108811         specifications for numeric values correctly.  Improve checks for
108812         overflow.
108814         2003-01-19  Jim Meyering  <jim@meyering.net>
108816         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
108817         definitions.
108818         (nl_get_alt_digit) [! defined my_strftime]: Define.
108819         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
108820         _nl_get_alt_digit and _nl_get_walt_digit.
108822         * lib/strftime.c (my_strftime): Merge in locale-related changes from
108823         libc. These changes have no effect outside of _LIBC.
108825 2003-04-10  Bruno Haible  <bruno@clisp.org>
108827         * modules/findprog: New file.
108828         * MODULES.html.sh (func_all_modules): Add it.
108830 2003-04-10  Bruno Haible  <bruno@clisp.org>
108832         * m4/findprog.m4: New file.
108833         * m4/eaccess.m4: New file.
108835 2003-04-10  Bruno Haible  <bruno@clisp.org>
108837         * lib/findprog.h: New file, from GNU gettext.
108838         * lib/findprog.c: New file, from GNU gettext.
108840 2003-04-05  Jim Meyering  <jim@meyering.net>
108842         Merge changes from Coreutils.
108844         * lib/exclude.h (PARAMS): Remove definition and uses.
108845         * lib/exclude.c: Remove uses of `PARAMS'.
108847         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
108848         Add test-cases for DOS filenames. Declare program_name.
108849         (main): Set up program_name.  Patch by Rich Dawe.
108851         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
108852         error from mntctl.
108853         Use mntctl's return value to drive the entry-processing loop, since
108854         we can't rely on the value of the vmt_length member in the last
108855         entry.  On some systems doing so could result in exhausting
108856         virtual memory.  Based in part on a patch from Mike Jetzer.
108858 2003-04-04  Bruno Haible  <bruno@clisp.org>
108860         * modules/linebreak: New file.
108861         * MODULES.html.sh (func_all_modules): Add it.
108863 2003-04-04  Bruno Haible  <bruno@clisp.org>
108865         * m4/linebreak.m4: New file.
108867 2003-04-04  Bruno Haible  <bruno@clisp.org>
108869         * lib/linebreak.h: New file, from GNU gettext.
108870         * lib/linebreak.c: New file, from GNU gettext with slight
108871         modifications.
108872         * lib/lbrkprop.h: New file, from GNU gettext.
108874 2003-04-03  Bruno Haible  <bruno@clisp.org>
108876         * modules/utf8-ucs4: New file.
108877         * modules/utf16-ucs4: New file.
108878         * modules/ucs4-utf8: New file.
108879         * modules/ucs4-utf16: New file.
108880         * MODULES.html.sh (func_all_modules): Add them.
108882 2003-04-03  Bruno Haible  <bruno@clisp.org>
108884         * m4/utf-ucs4.m4: New file.
108885         * m4/ucs4-utf.m4: New file.
108887 2003-04-03  Bruno Haible  <bruno@clisp.org>
108889         * lib/utf8-ucs4.h: New file, from GNU gettext.
108890         * lib/utf16-ucs4.h: New file, from GNU gettext.
108891         * lib/ucs4-utf8.h: New file, from GNU gettext.
108892         * lib/ucs4-utf16.h: New file, from GNU gettext.
108894 2003-04-02  Bruno Haible  <bruno@clisp.org>
108896         * modules/binary-io: New file.
108897         * MODULES.html.sh (func_all_modules): Add it.
108899 2003-04-02  Bruno Haible  <bruno@clisp.org>
108901         * lib/binary-io.h: New file, from GNU gettext.
108903 2003-04-01  Bruno Haible  <bruno@clisp.org>
108905         * modules/pathname: New file.
108906         * MODULES.html.sh (func_all_modules): Add it.
108908 2003-04-01  Bruno Haible  <bruno@clisp.org>
108910         * lib/pathname.h: New file, from GNU gettext.
108911         * lib/concatpath.c: New file, from GNU gettext.
108913 2003-03-30  Bruno Haible  <bruno@clisp.org>
108915         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
108917 2003-03-30  Bruno Haible  <bruno@clisp.org>
108919         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
108920         function chown() doesn't exist.
108922 2003-03-28  Bruno Haible  <bruno@clisp.org>
108924         * modules/copy-file: New file.
108925         * MODULES.html.sh (func_all_modules): Add it.
108927 2003-03-28  Bruno Haible  <bruno@clisp.org>
108929         * m4/copy-file.m4: New file.
108931 2003-03-28  Bruno Haible  <bruno@clisp.org>
108933         * lib/copy-file.h: New file, from GNU gettext.
108934         * lib/copy-file.c: New file, from GNU gettext.
108936 2003-03-18  Jim Meyering  <jim@meyering.net>
108938         * lib/quote.c (quote_n): Fix typo in comment.
108940 2003-03-18  Bruno Haible  <bruno@clisp.org>
108942         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
108943         checking.
108944         * m4/onceonly_2_57.m4: Likewise.
108946 2003-03-17  Bruno Haible  <bruno@clisp.org>
108948         * m4/onceonly.m4: Require autoconf 2.54 or newer.
108949         (m4_quote): Remove macro.
108950         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
108952 2003-03-14  Jim Meyering  <jim@meyering.net>
108954         Merge changes from Coreutils.
108955         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
108956         to be const, in order to avoid warnings.
108957         (obstack_room): Likewise.
108958         (obstack_empty_p): Likewise.
108960 2003-03-14  Bruno Haible  <bruno@clisp.org>
108962         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
108963         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
108965 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108967         Merge changes from Bison.
108968         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
108969         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
108970         when compiling Bison 1.875's `bitset bset = obstack_alloc
108971         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
108972         * lib/hash.c: Include <stdbool.h> unconditionally.
108974 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108976         * m4/onceonly.m4 (m4_quote): New macro.
108977         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
108978         Quote AC_FOREACH variable-expansions properly.
108980 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108982         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
108984 2003-03-09  Paul Eggert  <eggert@twinsun.com>
108986         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
108987         Reported by Bruce Becker; see:
108988         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
108990 2003-03-03  Paul Eggert  <eggert@twinsun.com>
108991             Bruno Haible  <bruno@clisp.org>
108993         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
108994         Reported by John Hughes, see
108995         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
108997 2003-02-20  Bruno Haible  <bruno@clisp.org>
108999         * MODULES.html.sh (func_all_modules): Add poll.
109001 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109003         * modules/poll: New file.
109005 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109007         * lib/poll_.h: New file.
109008         * lib/poll.c: New file.
109010 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109012         * m4/poll.m4: New file.
109014 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109016         * modules/mathl: New file.
109018 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109020         * lib/mathl.h: New file.
109021         * lib/acosl.c: New file.
109022         * lib/asinl.c: New file.
109023         * lib/atanl.c: New file.
109024         * lib/ceill.c: New file.
109025         * lib/cosl.c: New file.
109026         * lib/expl.c: New file.
109027         * lib/floorl.c: New file.
109028         * lib/frexpl.c: New file.
109029         * lib/ldexpl.c: New file.
109030         * lib/logl.c: New file.
109031         * lib/sincosl.c: New file.
109032         * lib/sinl.c: New file.
109033         * lib/sqrtl.c: New file.
109034         * lib/tanl.c: New file.
109035         * lib/trigl.c: New file.
109036         * lib/trigl.h: New file.
109038 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109040         * m4/mathl.m4: New file.
109042 2003-02-18  Bruno Haible  <bruno@clisp.org>
109044         * MODULES.html.sh (func_all_modules): Add mathl.
109046 2003-02-17  Bruno Haible  <bruno@clisp.org>
109048         * modules/mkdtemp: New module.
109049         * MODULES.html.sh (func_all_modules): Add it.
109051 2003-02-17  Bruno Haible  <bruno@clisp.org>
109053         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
109055 2003-02-17  Bruno Haible  <bruno@clisp.org>
109057         * lib/mkdtemp.h: New file, from GNU gettext.
109058         * lib/mkdtemp.c: New file, from GNU gettext.
109060 2003-02-02  Jim Meyering  <jim@meyering.net>
109062         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
109063         e.g. glibc-2.2.93.
109065 2003-01-31  Bruno Haible  <bruno@clisp.org>
109067         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
109068         'rpl_rename'.
109069         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
109070         'rpl_strnlen'.
109071         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
109072         'rpl_strtod'.
109073         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
109074         'rpl_utime'.
109076 2003-01-31  Bruno Haible  <bruno@clisp.org>
109078         * lib/rename.c: #undef rename before defining rpl_rename.
109079         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
109081 2003-01-30  Bruno Haible  <bruno@clisp.org>
109083         * modules/vasnprintf, modules/vasprintf: New modules.
109084         * MODULES.html.sh (func_all_modules): Add them.
109086 2003-01-30  Bruno Haible  <bruno@clisp.org>
109088         * m4/signed.m4: New file, from GNU gettext.
109089         * m4/longdouble.m4: New file, from GNU gettext.
109090         * m4/wchar_t.m4: New file, from GNU gettext.
109091         * m4/wint_t.m4: New file, from GNU gettext.
109092         * m4/vasnprintf.m4: New file.
109093         * m4/vasprintf.m4: New file.
109095 2003-01-30  Bruno Haible  <bruno@clisp.org>
109097         * lib/printf-args.h: New file, from GNU gettext.
109098         * lib/printf-args.c: New file, from GNU gettext.
109099         * lib/printf-parse.h: New file, from GNU gettext.
109100         * lib/printf-parse.c: New file, from GNU gettext.
109101         * lib/vasnprintf.h: New file, from GNU gettext.
109102         * lib/vasnprintf.c: New file, from GNU gettext.
109103         * lib/asnprintf.c: New file, from GNU gettext.
109104         * lib/vasprintf.h: New file, from GNU gettext with modifications.
109105         * lib/vasprintf.c: New file, from GNU gettext.
109106         * lib/asprintf.c: New file, from GNU gettext.
109108 2003-01-29  Bruno Haible  <bruno@clisp.org>
109110         * modules/stpncpy: New module.
109111         * MODULES.html.sh (func_all_modules): Add it.
109113 2003-01-29  Bruno Haible  <bruno@clisp.org>
109115         * m4/stpncpy.m4: New file.
109117 2003-01-29  Bruno Haible  <bruno@clisp.org>
109119         * lib/stpncpy.h: New file, from GNU gettext with modifications.
109120         * lib/stpncpy.c: New file, from GNU gettext with modifications.
109122 2003-01-28  Bruno Haible  <bruno@clisp.org>
109124         * modules/c-ctype: New module.
109125         * MODULES.html.sh (func_all_modules): Add it.
109127 2003-01-28  Bruno Haible  <bruno@clisp.org>
109129         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
109130         Paul Eggert.
109131         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
109132         Paul Eggert.
109134 2003-01-27  Bruno Haible  <bruno@clisp.org>
109136         * modules/xsetenv: New module.
109137         * MODULES.html.sh (func_all_modules): Add it.
109139 2003-01-27  Bruno Haible  <bruno@clisp.org>
109141         * lib/xsetenv.h: New file, from GNU gettext.
109142         * lib/xsetenv.c: New file, from GNU gettext.
109144 2003-01-23  Jim Meyering  <jim@meyering.net>
109146         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
109147         from working on systems without dirfd (at least Irix and OSF1/Tru64).
109149 2003-01-23  Bruno Haible  <bruno@clisp.org>
109151         * modules/minmax: New module.
109152         * MODULES.html.sh (func_all_modules): Add it.
109154 2003-01-23  Bruno Haible  <bruno@clisp.org>
109156         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
109157         Eggert.
109159 2003-01-22  Bruno Haible  <bruno@clisp.org>
109161         * modules/exit: New module.
109162         * MODULES.html.sh (func_all_modules): Add it.
109164 2003-01-22  Bruno Haible  <bruno@clisp.org>
109166         * lib/exit.h: New file, from GNU gettext.
109168 2003-01-19  Bruno Haible  <bruno@clisp.org>
109170         * gnulib-tool: Recognize option --extract-maintainer.
109171         (func_get_maintainer): New function.
109172         * modules/*: Add Maintainer entry.
109174 2003-01-16  Jim Meyering  <jim@meyering.net>
109176         * m4/regex.m4: The `regex' struct is both input and output.
109177         Initialize it before each use.  Patch by Tim Waugh.
109179 2003-01-16  Bruno Haible  <bruno@clisp.org>
109181         * MODULES.html.sh: Add a table of contents. Add the module name as
109182         leftmost column. Add hyperlinks.
109184 2003-01-15  Bruno Haible  <bruno@clisp.org>
109186         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
109188 2003-01-15  Bruno Haible  <bruno@clisp.org>
109190         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
109191         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
109192         suffix.
109194 2003-01-15  Bruno Haible  <bruno@clisp.org>
109196         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
109198 2003-01-15  Bruno Haible  <bruno@clisp.org>
109200         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
109201         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
109203 2003-01-14  Jim Meyering  <jim@meyering.net>
109205         * lib/same.c (same_name): Tweak a comment.
109207 2003-01-14  Bruno Haible  <bruno@clisp.org>
109209         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
109210         when a string comparison is sufficient.
109212 2003-01-14  Bruno Haible  <bruno@clisp.org>
109214         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
109215         'unsigned int'.
109217 2003-01-14  Bruno Haible  <bruno@clisp.org>
109219         * lib/hash-pjw.c: Add comment about low quality of this function.
109221 2003-01-13  Bruno Haible  <bruno@clisp.org>
109223         * modules/stpcpy: Distribute lib/stpcpy.h.
109224         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
109226 2003-01-13  Bruno Haible  <bruno@clisp.org>
109228         * modules/*: Add a description.
109229         * modules/strpbrk: Fix Makefile.am snippet.
109230         * modules/strtoimax: Fix dependencies.
109231         * modules/strtoumax: Likewise.
109233 2003-01-13  Bruno Haible  <bruno@clisp.org>
109235         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
109236         * modules/alloca (Makefile.am): All object files depend on alloca.h.
109237         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
109239 2003-01-13  Bruno Haible  <bruno@clisp.org>
109241         * gnulib-tool (func_create_testdir): Store config/* files in the main
109242         directory.
109243         * config.rpath: Move to ...
109244         * config/config.rpath: ... here.
109245         * modules/gettext: Contains config/config.rpath, not config.rpath.
109246         * modules/iconv: Likewise.
109248 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109250         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109251         to avoid collisions with libcurses and libreadline.
109253         * m4/getstr.m4: Remove.
109254         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
109256 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109258         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109259         to avoid collisions with libcurses and libreadline.
109261         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
109262         * lib/getstr.h, getstr.c: Remove.
109263         * lib/getline.c: Include "getline.h", to check interface.
109264         Move body of old getstr.c here: this defines MIN_CHUNK and
109265         declares getdelim2, which is renamed from getstr.
109266         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
109268         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
109269         All uses changed.
109270         * lib/linebuffer.h: Likewise.
109271         (readline): Remove backward-compatibility macro.
109273 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109275         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109276         to avoid collisions with libcurses and libreadline.
109277         * getstr: Remove.
109278         * MODULES.html.sh: Remove getstr.
109279         * modules/getline: Depend on unlocked-io, not getstr.
109281 2003-01-12  Jim Meyering  <jim@meyering.net>
109283         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
109285 2003-01-10  Bruno Haible  <bruno@clisp.org>
109287         * modules/alloca: Change Makefile.am requirements. Simplify Include
109288         requirements. Add lib/alloca_.h to file list.
109290 2003-01-10  Bruno Haible  <bruno@clisp.org>
109292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
109294 2003-01-10  Bruno Haible  <bruno@clisp.org>
109296         * lib/alloca_.h: New file.
109297         * lib/getdate.y: Unconditionally include alloca.h.
109298         * lib/makepath.c: Likewise.
109299         * lib/setenv.c: Likewise.
109300         * lib/userspec.c: Likewise.
109302 2003-01-09  Karl Berry  <karl@gnu.org>
109304         * MODULES.html.sh: include `dirname $0` in PATH, to find
109305         gnulib-tool.
109307 2003-01-09  Bruno Haible  <bruno@clisp.org>
109309         * modules/stdbool: Change configure.ac, Makefile.am requirements.
109310         Simplify Include requirements. Add lib/stdbool.h.in to file list.
109312 2003-01-09  Bruno Haible  <bruno@clisp.org>
109314         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
109316 2003-01-09  Bruno Haible  <bruno@clisp.org>
109318         * lib/stdbool.h.in: New file.
109320 2003-01-09  Bruno Haible  <bruno@clisp.org>
109322         * gnulib-tool (func_all_modules): Ignore files ending in ~.
109323         * MODULES.html.sh: Likewise.
109325 2003-01-08  Jim Meyering  <jim@meyering.net>
109327         * lib/full-write.c: Undefine and define-away `const' after inclusion
109328         of errno.h, not before.  Suggestion from Bruno Haible.
109330 2003-01-08  Bruno Haible  <bruno@clisp.org>
109332         * modules/full-read: Depend on full-write.
109334 2003-01-08  Bruno Haible  <bruno@clisp.org>
109336         * lib/safe-read.c: Include specification header first, to ensure its
109337         selfcontainedness.
109338         * lib/full-write.c: Likewise.
109340 2003-01-07  Jim Meyering  <jim@meyering.net>
109342         * lib/full-write.c: Rework so that it may serve to define full_read,
109343         too.
109344         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
109346 2003-01-07  Bruno Haible  <bruno@clisp.org>
109348         * lib/strtoimax.c: Include <stdint.h> as an alternative to
109349         <inttypes.h>.
109350         * lib/xstrtol.h: Likewise.
109351         * lib/xstrtoimax.c: Likewise.
109352         * lib/xstrtoumax.c: Likewise.
109353         * lib/human.h: Likewise.
109355         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
109356         on systems that have <inttypes.h> but not <stdint.h>.
109358 2003-01-07  Bruno Haible  <bruno@clisp.org>
109360         * MODULES.html.sh: Add copyright notice.
109361         (missed_files): Omit CVS directory entries.
109362         (func_module): Make it work with sed-3.02.
109363         * MODULES.txt: Remove file.
109365 2003-01-06  Jim Meyering  <jim@meyering.net>
109367         * lib/version-etc.c: Update year in translatable copyright string.
109369 2003-01-03  Karl Berry  <karl@gnu.org>
109371         * config/config.{guess,sub}: update from prep.
109373 2003-01-02  Karl Berry  <karl@gnu.org>
109375         * doc/COPYING.DOC: belatedly updated to 1.2.
109377 2003-01-01  Karl Berry  <karl@gnu.org>
109379         * gnulib-tool (func_verify_module): report module name $module in
109380         error message, not $1.
109381         * gnulib-tool (create-testdir): don't complain if destdir couldn't
109382         be created, only if it doesn't exist.
109383         * gnulib-tool (last_checkin_date): don't expand the $Date here.
109385 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109387         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
109389 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109391         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
109392         memcmp if strcoll doesn't work.
109394 2002-12-31  Bruno Haible  <bruno@clisp.org>
109396         * lib/utime.c (utime_null): No need to call ftruncate if the file was
109397         nonempty.
109399 2002-12-31  Bruno Haible  <bruno@clisp.org>
109401         * lib/memcoll.c (STRCOLL): New macro.
109402         (memcoll): Use it.
109404 2002-12-31  Bruno Haible  <bruno@clisp.org>
109406         * lib/localcharset.h: New file.
109407         * lib/localcharset.c: Include it.
109408         * lib/unicodeio.c: Likewise.
109410 2002-12-31  Bruno Haible  <bruno@clisp.org>
109412         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
109413         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
109415 2002-12-31  Bruno Haible  <bruno@clisp.org>
109417         * lib/getline.h: Include <stddef.h>, for size_t.
109419         * lib/unicodeio.h: Include <stddef.h>, for size_t.
109420         * lib/unicodeio.c: Don't include <stddef.h>.
109422 2002-12-31  Bruno Haible  <bruno@clisp.org>
109424         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
109425         HAVE_TM_ZONE.
109427 2002-12-24  Karl Berry  <karl@gnu.org>
109429         * config/config.guess: update from prep.
109431 2002-12-24  Bruno Haible  <bruno@clisp.org>
109433         General infrasructure.
109434         * m4/README: Rewritten.
109435         * m4/onceonly.m4: New file.
109436         * m4/onceonly_2_57.m4: New file.
109438         Module atexit.
109439         * m4/atexit.m4: New file.
109441         Module strtod.
109442         * m4/strtod.m4: New file.
109444         Module strtol.
109445         * m4/strtol.m4: New file.
109447         Module strtoul.
109448         * m4/strtoul.m4: New file.
109450         Module memchr.
109451         * m4/memchr.m4: New file.
109453         Module memcmp.
109454         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
109455         (jm_FUNC_MEMCMP): Invoke it.
109457         Module memcpy.
109458         * m4/memcpy.m4: New file.
109460         Module memmove.
109461         * m4/memmove.m4: New file.
109463         Module memset.
109464         * m4/memset.m4: New file.
109466         Module strcspn.
109467         * m4/strcspn.m4: New file.
109469         Module strpbrk.
109470         * m4/strpbrk.m4: New file.
109472         Module strstr.
109473         * m4/strstr.m4: New file.
109475         Module strerror.
109476         * m4/strerror.m4: New file.
109478         Module mktime.
109479         * m4/mktime.m4: Renamed from jm-mktime.m4.
109480         (gl_PREREQ_MKTIME): New macro.
109481         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
109483         Module malloc.
109484         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
109485         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
109486         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
109488         Module realloc.
109489         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
109490         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
109491         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
109493         Module strftime.
109494         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
109495         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
109496         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
109497         gl_TM_GMTOFF.
109498         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
109500         Module xalloc.
109501         * m4/xalloc.m4: New file.
109503         Module alloca.
109504         * m4/alloca.m4: New file.
109506         Module putenv.
109507         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
109508         (jm_FUNC_PUTENV): Invoke it.
109510         Module setenv.
109511         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
109512         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
109513         when invoked twice.
109514         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
109515         gt_FUNC_SETENV.
109517         Module memrchr.
109518         * m4/memrchr.m4: New file.
109520         Module stpcpy.
109521         * m4/stpcpy.m4: New file.
109523         Module strcase.
109524         * m4/strcase.m4: New file.
109526         Module strdup.
109527         * m4/strdup.m4: New file.
109529         Module strnlen.
109530         * m4/strnlen.m4: New file.
109532         Module strndup.
109533         * m4/strndup.m4: New file.
109535         Module xstrtod.
109536         * m4/xstrtod.m4: New file.
109538         Module xstrtol.
109539         * m4/xstrtol.m4: New file.
109541         Module getdate.
109542         * m4/getdate.m4: New file.
109544         Module unlocked-io.
109545         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
109546         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
109547         * m4/jm-glibc-io.m4n: Remove file.
109549         Module long-options.
109550         * m4/long-options.m4: New file.
109552         Module md5.
109553         * m4/md5.m4: New file.
109555         Module sha.
109556         * m4/sha.m4: New file.
109558         Module getstr.
109559         * m4/getstr.m4: New file.
109561         Module getline.
109562         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
109563         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
109564         <sys/types.h>, for size_t. Use the function name gnu_getline, not
109565         simply getline. Infoke gl_PREREQ_GETLINE.
109567         Module obstack.
109568         * m4/obstack.m4: New file.
109570         Module hash.
109571         * m4/hash.m4: New file.
109573         Module readtokens.
109574         * m4/readtokens.m4: New file.
109576         Module strverscmp.
109577         * m4/strverscmp.m4: New file.
109579         Module stdbool.
109580         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
109581         OSF/1.
109583         Module strtoll.
109584         * m4/strtoll.m4: New file.
109586         Module strtoull.
109587         * m4/strtoull.m4: New file.
109589         Module strtoimax.
109590         * m4/strtoimax.m4: New file.
109592         Module strtoumax.
109593         * m4/strtoumax.m4: New file.
109595         Module xstrtoimax.
109596         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
109597         jm_AC_PREREQ_XSTRTOIMAX.
109598         Moved the strtol prerequisites to strtol.m4.
109599         Moved the strtoll prerequisites to strtoll.m4.
109600         Moved the strtoimax prerequisites to strtoimax.m4.
109602         Module xstrtoumax.
109603         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
109604         jm_AC_PREREQ_XSTRTOUMAX.
109605         Moved the strtoul prerequisites to strtoul.m4.
109606         Moved the strtoull prerequisites to strtoull.m4.
109607         Moved the strtoumax prerequisites to strtoumax.m4.
109609         Module chown.
109610         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
109611         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
109613         Module dup2.
109614         * m4/dup2.m4: New file.
109616         Module ftruncate.
109617         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
109618         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
109620         Module getgroups.
109621         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
109622         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
109624         Module gettimeofday.
109625         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
109626         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
109627         gl_PREREQ_GETTIMEOFDAY.
109629         Module mkdir.
109630         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
109631         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
109633         Module mkstemp.
109634         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
109635         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
109636         jm_AC_TYPE_UINTMAX_T.
109637         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
109639         Module stat.
109640         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
109641         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
109643         Module lstat.
109644         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
109645         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
109647         Module timespec.
109648         * m4/timespec.m4 (gl_TIMESPEC): New macro.
109649         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
109650         * m4/st_mtim.m4: Indentation.
109652         Module nanosleep.
109653         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
109654         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
109655         gl_PREREQ_NANOSLEEP.
109657         Module regex.
109658         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
109659         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
109660         (gl_REGEX): New macro.
109662         Module rename.
109663         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
109664         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
109666         Module rmdir.
109667         * m4/rmdir.m4: New file.
109669         Module utime.
109670         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
109671         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
109672         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
109674         Module dirname.
109675         * m4/dirname.m4: New file.
109677         Module getopt.
109678         * m4/getopt.m4: New file.
109680         Module unistd-safer.
109681         * m4/unistd-safer.m4: New file.
109683         Module fnmatch.
109684         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
109685         declaration.
109686         (gl_PREREQ_FNMATCH_EXTRA): New macro.
109687         (gl_FUNC_FNMATCH_POSIX): New macro.
109688         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
109689         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
109690         simply fnmatch.
109692         Module exclude.
109693         * m4/exclude.m4: New file.
109695         Module human.
109696         * m4/human.m4: New file.
109698         Module acl.
109699         * m4/acl.m4: Nop.
109701         Module backupfile.
109702         * m4/backupfile.m4: New file.
109703         * m4/d-ino.m4: Indentation.
109705         Module fsusage.
109706         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
109707         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
109708         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
109710         Module dirfd.
109711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
109712         requirements.
109714         Module euidaccess.
109715         * m4/euidaccess.m4: New file.
109717         Module file-type.
109718         * m4/file-type.m4: New file.
109720         Module fileblocks.
109721         * m4/fileblocks.m4: New file.
109723         Module filemode.
109724         * m4/filemode.m4: New file.
109726         Module isdir.
109727         * m4/isdir.m4: New file.
109729         Module lchown.
109730         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
109731         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
109733         Module makepath.
109734         * m4/makepath.m4: New file.
109736         Module modechange.
109737         * m4/modechange.m4: New file.
109739         Module mountlist.
109740         * m4/mountlist.m4: New file.
109741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
109742         Indentation.
109744         Module path-concat.
109745         * m4/path-concat.m4: New file.
109747         Module pathmax.
109748         * m4/pathmax.m4: New file.
109750         Module same.
109751         * m4/same.m4: New file.
109753         Module save-cwd.
109754         * m4/save-cwd.m4: New file.
109756         Module savedir.
109757         * m4/savedir.m4: New file.
109759         Module xgetcwd.
109760         * m4/xgetcwd.m4: New file.
109761         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
109763         Module xreadlink.
109764         * m4/xreadlink.m4: New file.
109766         Module safe-read.
109767         * m4/safe-read.m4: New file.
109769         Module safe-write.
109770         * m4/safe-write.m4: New file.
109772         Module closeout.
109773         * m4/closeout.m4: New file.
109775         Module stdio-safer.
109776         * m4/stdio-safer.m4: New file.
109778         Module getpass.
109779         * m4/getpass.m4: New file.
109781         Module getugroups.
109782         * m4/getugroups.m4: New file.
109784         Module group-member.
109785         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
109786         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
109788         Module idcache.
109789         * m4/idcache.m4: New file.
109791         Module userspec.
109792         * m4/userspec.m4: New file.
109794         Module gettime.
109795         * m4/clock_time.m4: New file.
109796         * m4/gettime.m4: New file.
109798         Module settime.
109799         * m4/settime.m4: New file.
109801         Module posixtm.
109802         * m4/posixtm.m4: New file.
109804         Module gethostname.
109805         * m4/gethostname.m4: New file.
109807         Module canon-host.
109808         * m4/canon-host.m4: New file.
109810         Module gettext.
109811         * m4/codeset.m4: New file, from gettext-0.11.5.
109812         * m4/gettext.m4: New file, from gettext-0.11.5.
109813         * m4/glibc21.m4: New file, from gettext-0.11.5.
109814         * m4/iconv.m4: New file, from gettext-0.11.5.
109815         * m4/intdiv0.m4: New file, from gettext-0.11.5.
109816         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
109817         * m4/inttypes.m4: New file, from gettext-0.11.5.
109818         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
109819         * m4/isc-posix.m4: New file, from gettext-0.11.5.
109820         * m4/lcmessage.m4: New file, from gettext-0.11.5.
109821         * m4/lib-ld.m4: New file, from gettext-0.11.5.
109822         * m4/lib-link.m4: New file, from gettext-0.11.5.
109823         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
109824         * m4/progtest.m4: New file, from gettext-0.11.5.
109825         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
109826         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
109827         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
109829         Module localcharset.
109830         * m4/localcharset.m4: New file.
109832         Module hard-locale.
109833         * m4/hard-locale.m4: New file.
109835         Module mbswidth.
109836         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
109837         onceonly macros.
109838         * m4/mbrtowc.m4: Add comment.
109840         Module memcasecmp.
109841         * m4/memcasecmp.m4: New file.
109843         Module memcoll.
109844         * m4/memcoll.m4: New file.
109846         Module unicodeio.
109847         * m4/unicodeio.m4: New file.
109849         Module rpmatch.
109850         * m4/rpmatch.m4: New file.
109852         Module yesno.
109853         * m4/yesno.m4: New file.
109855         Module exitfail.
109856         * m4/exitfail.m4: New file.
109858         Module c-stack.
109859         * m4/c-stack.m4 (gl_C_STACK): New macro.
109860         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
109862         Module error.
109863         * m4/error.m4 (gl_ERROR): New macro.
109864         (jm_PREREQ_ERROR): Use onceonly macros.
109866         Module fatal.
109867         * m4/fatal.m4: New file.
109869         Module getloadavg.
109870         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
109871         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
109873         Module getpagesize.
109874         * m4/getpagesize.m4: New file.
109876         Module getusershell.
109877         * m4/getusershell.m4: New file.
109879         Module physmem.
109880         * m4/physmem.m4: New file.
109882         Module posixver.
109883         * m4/posixver.m4: New file.
109885         Module quotearg.
109886         * m4/quotearg.m4: New file.
109888         Module quote.
109889         * m4/quote.m4: New file.
109891         Module readutmp.
109892         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
109894         Module sig2str.
109895         * m4/sig2str.m4: New file.
109897         Other.
109898         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
109899         ulonglong.m4.
109900         * m4/intmax_t.m4: New file.
109901         * m4/d-type.m4: Indentation.
109902         * m4/jm-macros.m4: Update.
109903         * m4/prereq.m4 (jm_PREREQ): Update.
109904         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
109905         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
109906         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
109907         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
109908         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
109909         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
109910         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
109911         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
109912         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
109913         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
109914         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
109915         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
109916         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
109917         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
109918         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
109919         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
109920         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
109921         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
109922         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
109924 2002-12-24  Bruno Haible  <bruno@clisp.org>
109926         * MODULES.txt: Update according to m4/ changes.
109928         Module gettext.
109929         * config.rpath: New file, from gettext-0.11.5.
109931         * modules/*: New module descriptions.
109932         * gnulib-tool: New file.
109933         * MODULES.html.sh: New file.
109935 2002-12-21  Karl Berry  <karl@gnu.org>
109937         * doc/fdl.texi: update to version 1.2.
109939 2002-12-19  Karl Berry  <karl@gnu.org>
109941         * config/config.guess: update from prep.
109943 2002-12-18  Bruno Haible  <bruno@clisp.org>
109945         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
109946         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
109948 2002-12-17  Bruno Haible  <bruno@clisp.org>
109950         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
109951         stdlib.h, string.h.
109953 2002-12-17  Bruno Haible  <bruno@clisp.org>
109955         * lib/canon-host.c (strdup): Remove unused declaration.
109957         * lib/fsusage.c: Include full_read.h.
109958         (get_fs_usage): Use full_read instead of safe_read.
109960         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
109962 2002-12-12  Karl Berry  <karl@gnu.org>
109964         * config/config.guess: update from prep.
109966 2002-12-11  Bruno Haible  <bruno@clisp.org>
109968         * m4/setenv.m4: New file, from gettext-0.11.5.
109970 2002-12-11  Bruno Haible  <bruno@clisp.org>
109972         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
109973         not unsetenv().
109974         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
109975         modifications:
109977         2002-12-11  Bruno Haible  <bruno@clisp.org>
109979                 * setenv.c (alloca): Fall back to malloc.
109980                 (freea): New macro.
109981                 (setenv): Use freea() to free memory allocated with alloca().
109983         2002-11-13  Bruno Haible  <bruno@clisp.org>
109985                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
109986                 function declarations.
109987                 * unsetenv.c (unsetenv): Likewise.
109989         2002-03-04  Bruno Haible  <bruno@clisp.org>
109991                 Portability to AIX 4.3.3.
109992                 * unsetenv.c: New file, extracted from setenv.c.
109993                 * setenv.c: Move the unsetenv() function to unsetenv.c.
109995         2001-12-20  Bruno Haible  <bruno@clisp.org>
109997                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
109998                 use malloc instead. For SunOS 4.
110000         2001-12-11  Bruno Haible  <bruno@clisp.org>
110002                 * setenv.c: Declare alloca.
110003                 (compar_fn_t): New typedef.
110004                 (KNOWN_VALUE, STORE_VALUE): Use it.
110006         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
110007         setenv.h.
110009 2002-12-10  Paul Eggert  <eggert@twinsun.com>
110011         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
110012         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
110013         Choose values that are less likely to collide with system fnmatch
110014         options.
110015         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
110016         defined (e.g., a pure POSIX system).
110017         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
110018         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
110020 2002-12-06  Paul Eggert  <eggert@twinsun.com>
110022         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
110023         a pain in practice to deal with generated m4 files.  This change
110024         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
110026         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
110027         and jm-glibc-io.m4, as they are no longer a special case.
110028         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
110029         kludge and the auto-generation stuff.  Check only whether the
110030         functions are declared, not whether they exist, since older hosts
110031         that don't declare the functions can't use the optimization anyway.
110033 2002-12-06  Jim Meyering  <jim@meyering.net>
110035         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
110037         Merge in changes from libc's misc/error.c, in preparation
110038         for the merge of gnulib's changes back into libc.
110040         * lib/error.c (_): Define only if not already defined.
110041         Move definition to follow all #include directives.
110042         Include unlocked-io.h only if !_LIBC.
110043         [_LIBC]: Include <libio/libioP.h>.
110044         [USE_IN_LIBIO]: Include <libio/iolibio.h>
110045         (fflush): Tweak definition to use INTUSE.
110046         (putc): Define.
110048 2002-12-05  Paul Eggert  <eggert@twinsun.com>
110050         * lib/alloca.c [defined emacs]: Include "lisp.h".
110051         (xalloc_die) [defined emacs]: New macro.
110052         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
110053         [! defined emacs]: Include <xalloc.h>.
110054         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
110055         (pointer): Typedef to POINTER_TYPE *.
110056         (malloc): Remove decl; we now always use xmalloc.
110057         (alloca): Use old-style definition, since Emacs needs this.
110058         Check for arithmetic overflow when computing combined size.
110060 2002-12-04  Paul Eggert  <eggert@twinsun.com>
110062         Do not generate unlocked-io.h automatically, since it's easier to
110063         maintain it by hand.
110065         * lib/unlocked-io.h: New file, from GNU diffutils,
110066         but with proper copyright notice and attribution.
110067         * lib/gen-uio: Remove.
110068         * lib/Makefile.am: Add copyright notice.
110069         (libfetish_a_SOURCES): Add unlocked-io.h.
110070         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
110071         (DISTCLEANFILES, io_functions): Remove macros.
110072         (EXTRA_DIST): Remove gen_uio.
110073         (unlocked-io.h): Remove rule.
110075 2002-12-04  Jim Meyering  <jim@meyering.net>
110077         Reflect the fact that stat.c and lstat.c are no longer generated.
110078         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
110079         (DISTCLEANFILES): Likewise.
110080         (EXTRA_DIST): Likewise.
110081         (all_local): Don't depend on stat.c or lstat.c.
110082         (stat.c, lstat.c): Remove rules.
110083         (EXTRA_DIST): Remove xstat.in.
110085         * lib/xstat.in: Remove file.  Contents moved into stat.c.
110086         * lib/stat.c: New file.  Contents mostly from xstat.in.
110087         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
110088         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
110090         * lib/safe-read.c: Rework so that it may serve to define safe_write,
110091         too.
110092         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
110094 2002-12-03  Jim Meyering  <jim@meyering.net>
110096         * lib/safe-read.c, safe-write.c: Change variable names and comments,
110097         but not semantics, to minimize the differences between these two files.
110098         (safe_read): Change comment to mention SAFE_READ_ERROR.
110100         * lib/safe-read.c (IS_EINTR): Define.
110101         (safe_read): Use IS_EINTR in place of in-function cpp directives.
110103 2002-12-02  Jim Meyering  <jim@meyering.net>
110105         * lib/safe-read.c (EINTR): Define.
110106         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
110107         (INT_MAX): Provide fallback.
110108         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
110110         * lib/safe-read.h (SAFE_READ_ERROR): Define.
110112 2002-12-02  Bruno Haible  <bruno@clisp.org>
110114         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
110115         Define, taken from safe-read.c.
110116         (INT_MAX): Provide fallback.
110117         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
110118         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
110120         * lib/safe-read.c (EINTR): Remove definition.
110121         (safe_read): Don't use EINTR if it is absent.
110123 2002-12-01  Jim Meyering  <jim@meyering.net>
110125         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
110126         zero.
110127         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
110129 2002-11-27  Paul Eggert  <eggert@twinsun.com>
110131         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
110132         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
110133         with `if (! (value < limit)) abort ();', for readability.
110135 2002-11-26  Karl Berry  <karl@gnu.org>
110137         * lib/strdup.c: copy from libc again, with jim's ok.
110138         * lib/.cppi-disable: re-add strdup.c
110140 2002-11-25  Karl Berry  <karl@gnu.org>
110142         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
110143         instead of "strtol.c".
110145 2002-11-25  Karl Berry  <karl@gnu.org>
110147         * config/install-sh: update from automake for variable quoting, $0 in
110148         error msgs, etc.
110150         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
110151         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
110152         entry.
110154 2002-11-25  Jim Meyering  <jim@meyering.net>
110156         * lib/mktime.c: Sync from libc, now that it has the latest fix.
110158 2002-11-24  Karl Berry  <karl@gnu.org>
110160         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
110161         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
110163 2002-11-24  Jim Meyering  <jim@meyering.net>
110165         Update from coreutils:
110167         * lib/mktime.c: Merge in changes from libc.
110169         Avoid a link-time failure on some Linux systems.
110170         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
110171         (otherwise).
110172         (__mon_yday): Declare with the STATIC attribute.
110173         (__mktime_internal): Likewise.
110174         Based on a report from Greg Schafer.
110176 2002-11-23  Jim Meyering  <jim@meyering.net>
110178         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
110179         Use `unsigned', not `int', as type of index.
110181         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
110183         * lib/fsusage.c: Remove unneeded parentheses around operands of
110184         `defined'.
110186 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110188         * lib/quotearg.h: Allow multiple inclusion by surrounding with
110189         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
110190         so that we can be included first.
110191         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
110192         * lib/quotearg.c: Include quotearg.h immediately after config.h.
110193         No need to include stddef.h or sys/types.h any more.
110194         Surround local include files with "", not "<>".
110195         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
110196         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
110197         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
110198         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
110199         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
110200         (ISPRINT): Remove; no longer needed now that we assume C89.
110202         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
110203         Preserve errno.
110205         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
110206         quotearg_char): Use SIZE_MAX rather than
110207         (size_t) -1 when we are talking about "infinity".
110209         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
110211 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110213         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
110214         hint that one should use `if (! x) abort ();' rather than `assert
110215         (x);', and anyway it's one less thing to worry about configuring.
110216         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
110217         hash_rehash, hash_insert): Use abort rather than assert.
110219 2002-11-22  Bruno Haible  <bruno@clisp.org>
110221         * lib/safe-read.h: Assume C89. Add comments.
110222         (safe_read): Change return type to size_t.
110223         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
110224         byte counts > SSIZE_MAX correctly.
110225         * lib/safe-write.h: New file.
110226         * lib/safe-write.c: New file.
110227         * lib/full-read.h: New file.
110228         * lib/full-read.c: New file.
110229         * lib/full-write.h: Assume C89. Add comments.
110230         * lib/full-write.c: Include safe-write.h.
110231         (full_write): Rewritten to use safe_write.
110232         Suggested by Jim Meyering and Paul Eggert.
110234 2002-11-21  Jim Meyering  <jim@meyering.net>
110236         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
110238         Merge in changes from the coreutils.
110240         2002-09-25  Paul Eggert  <eggert@twinsun.com>
110241         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
110242         <stdint.h>.
110243         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
110244         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
110245         int.  Work more efficiently if X is the same width as uintmax_t.
110246         Do not compare X to -1, to avoid bogus compiler warning.
110247         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
110248         Don't assume that f_frsize and f_bsize are the same type.
110250         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
110251         warning on FreeBSD.
110253         * lib/makepath.c (make_path): Restore umask *before* creating the final
110254         component.
110255         (make_path): Minor reformatting.
110257         * lib/xmalloc.c: Adjust to work with new autoconf macros,
110258         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
110259         HAVE_MALLOC/HAVE_REALLOC.
110261         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
110262         dummy ones.  At least on GNU/Linux systems, `auto' means something
110263         else.
110264         From Michael Stone.
110266 2002-11-21  Bruno Haible  <bruno@clisp.org>
110268         Remove case insensitive option matching.
110269         * lib/argmatch.h (argcasematch): Remove declaration.
110270         (ARGCASEMATCH): Remove macro.
110271         (__xargmatch_internal): Remove case_sensitive argument.
110272         (XARGMATCH): Update.
110273         (XARGCASEMATCH): Remove macro.
110274         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
110275         case_sensitive argument.
110276         (argcasematch): Remove function.
110277         (__xargmatch_internal): Remove case_sensitive argument.
110278         (main): Use XARGMATCH instead of XARGCASEMATCH.
110280         * lib/xmalloc.c: Change compile-time error message. Add comment about
110281         required autoconf version.
110283 2002-11-20  Paul Eggert  <eggert@twinsun.com>
110285         Merge argmatch cleanups from Bison.  Assume C89.
110287         * lib/argmatch.c: Include config.h here, not in argmatch.h.
110288         Include stdlib.h, for EXIT_FAILURE.
110289         Always include <string.h>, since we assume C89.
110290         (EXIT_FAILURE): Remove pre-C89 bug workaround.
110291         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
110292         Include <stddef.h> instead, since it's all we need for size_t.
110293         (PARAMS): Remove.  All uses removed.
110294         (ARRAY_CARDINALITY): Do not bother to #undef.
110295         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
110296         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
110297         Remove unnecessary parentheses.
110298         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
110299         Insert necessary parentheses.
110300         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
110301         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
110303 2002-11-19  Bruno Haible  <bruno@clisp.org>
110305         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
110306         * lib/mbswidth.h: Include <stddef.h>, for size_t.
110308         * lib/mbswidth.h (PARAMS): Remove macro.
110309         (mbswidth, mbsnwidth): Use ANSI C function declarations.
110310         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
110312         * lib/gcd.h (PARAMS): Remove macro.
110313         (gcd): Use ANSI C function declarations.
110314         * lib/gcd.c (gcd): Likewise.
110316 2002-11-15  Bruno Haible  <bruno@clisp.org>
110318         * lib/strcspn.c: Include <stddef.h>.
110319         (strcspn): Use ANSI C function declaration. Change return type to
110320         size_t. Use NULL.
110321         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
110322         (strpbrk): Use NULL.
110323         * lib/strpbrk.h (PARAMS): Remove macro.
110324         (strpbrk): Use ANSI C function declaration.
110325         * lib/strstr.c: Don't include <sys/types.h>.
110326         * lib/strstr.h (PARAMS): Remove macro.
110327         (strstr): Use ANSI C function declarations.
110329 2002-11-14  Karl Berry  <karl@gnu.org>
110331         * config/mkinstalldirs: `do' on separate line, instead of
110332         `for var; do'.
110334 2002-11-06  Bruno Haible  <bruno@clisp.org>
110336         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
110337         * lib/gcd.c (gcd): Likewise.
110339 2002-11-05  Bruno Haible  <bruno@clisp.org>
110341         * lib/gcd.h: New file, from gettext-0.11.5.
110342         * lib/gcd.c: New file, from gettext-0.11.5.
110344 2002-11-05  Bruno Haible  <bruno@clisp.org>
110346         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110347         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110348         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110349         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110351         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
110352         <libintl.h>.
110353         * lib/makepath.c: Include gettext.h instead of <locale.h> and
110354         <libintl.h>.
110356         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
110357         * lib/human.c: Include gettext.h instead of <libintl.h>.
110358         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
110359         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
110360         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
110361         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
110362         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
110363         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
110364         (textdomain): Remove definition.
110365         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
110367         * lib/long-options.c: Remove include of <libintl.h> and definition of
110368         _.
110369         * lib/same.c: Remove include of <libintl.h> and definition of _.
110371 2002-11-04  Owen Taylor  <otaylor@redhat.com>
110373         * lib/config.charset: A few additions for Solaris.
110375 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110377         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
110378         * lib/localcharset.c (locale_charset): Declare as extern "C".
110380 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110382         * lib/config.charset: msdos in uk_UA uses CP1125.
110384 2002-11-04  Bruno Haible  <bruno@clisp.org>
110386         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
110387         * lib/strcase.h: New file, from GNU gettext-0.11.5.
110388         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
110389         * lib/strstr.h: New file, from GNU gettext-0.11.5.
110390         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
110392 2002-11-04  Bruno Haible  <bruno@clisp.org>
110394         * lib/localcharset.c (locale_charset): Don't return an empty string.
110396 2002-11-04  Bruno Haible  <bruno@clisp.org>
110398         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
110399         aliases.
110401 2002-11-04  Bruno Haible  <bruno@clisp.org>
110403         * lib/config.charset: Update for newest glibc. Add canonical names
110404         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
110406 2002-11-04  Bruno Haible  <bruno@clisp.org>
110408         * lib/config.charset: Add support for NetBSD.
110410 2002-11-04  Bruno Haible  <bruno@clisp.org>
110412         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
110414 2002-11-01  Bruno Haible  <bruno@clisp.org>
110416         * configure.in: Add AC_CONFIG_AUX_DIR call.
110417         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
110418         test/Makefile.
110419         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
110421 2002-09-28  Karl Berry  <karl@gnu.org>
110423         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
110424         installed automake until the next release, since changes have been
110425         made.
110427 2002-09-25  Karl Berry  <karl@gnu.org>
110429         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
110430         * lib/getopt*: copy from libc/posix.
110431         * lib/gettext.h: copy from gettext.
110432         * lib/.cppi-disable: add strdup.c, gettext.h.
110434 2002-09-25  Karl Berry  <karl@gnu.org>
110436         * config/srclist.txt: enable gettext.h check.
110437         * config/config.{guess,sub}: update from prep.
110438         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
110439                 from automake 1.6.3.
110440         See srclist*.
110442 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
110444         * regex.c (PATFETCH): Remove the translating fetch.
110445         (PATFETCH_RAW): Rename to PATFETCH.
110446         (set_image_of_range): New fun.
110447         (SET_RANGE_TABLE_WORK_AREA): Use it.
110448         (regex_compile): Don't translate the pattern chars so eagerly.
110449         Only do it when inserting an `exactn' bytecode or when handling
110450         a char-range.
110451         (mutually_exclusive_p): Avoid empty statement.
110453 2002-07-06  Jim Meyering  <meyering@lucent.com>
110455         * m4/README: Don't mention Makefile.am.in.
110456         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
110458 2002-07-01  Jim Meyering  <meyering@lucent.com>
110460         * lib/c-stack.c: Include sys/time.h.
110461         From Volker Borchert.
110463 2002-06-26  Paul Eggert  <eggert@twinsun.com>
110465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
110467 2002-06-26  Paul Eggert  <eggert@twinsun.com>
110469         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
110470         New macro.  Use it uniformly instead of
110471         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
110472         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
110473         reported by Vin Shelton.
110475 2002-06-22  Paul Eggert  <eggert@twinsun.com>
110477         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
110478         Do not assume SA_SIGINFO behavior.
110479         Bug reported by Jim Meyering on NetBSD 1.5.2.
110481 2002-06-22  Jim Meyering  <meyering@lucent.com>
110483         * m4/c-stack.m4: New file, from diffutils-2.8.2.
110484         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
110486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
110487         now that configure.ac uses AC_GNU_SOURCE.
110488         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
110489         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
110491         Update to latest tools.  Suggestions from Paul Eggert.
110492         * m4/stdbool.m4: New file, from diffutils-2.8.2.
110493         * m4/gnu-source.m4: Update from diffutils-2.8.2.
110494         * m4/fnmatch.m4: Likewise.
110495         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
110496         to AC_HEADER_STDBOOL
110498 2002-06-22  Jim Meyering  <meyering@lucent.com>
110500         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
110501         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
110503 2002-06-22  Jim Meyering  <meyering@lucent.com>
110505         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
110507         * lib/exitfail.c, exitfail.h: Likewise.
110508         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
110510         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
110511         of fnmatch.h.
110512         (EXTRA_DIST): Add fnmatch_loop.c.
110513         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
110515         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
110516         * lib/fnmatch.c: Update from diffutils-2.8.2.
110517         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
110518         * lib/fnmatch.h: Remove file.
110520 2002-06-21  Jim Meyering  <meyering@lucent.com>
110522         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
110523         * m4/mbrtowc.m4: Likewise.
110525         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
110526         * m4/mbswidth.m4: Reflect name change:
110527         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
110528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
110530         * m4/lib-link.m4: Update from gettext-0.11.2.
110531         * m4/gettext.m4: Likewise.
110533         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
110534         From Alfred M. Szmidt.
110536 2002-06-18  Paul Eggert  <eggert@twinsun.com>
110538         * lib/file-type.h: Report an error if neither S_ISREG nor
110539         S_IFREG is defined, instead of using a test specific to glibc
110540         2.2.  This should be safe, since POSIX requires S_ISREG and
110541         Unix Version 7 had S_IFREG.  We don't need to check for
110542         <sys/types.h> since we don't use any symbols that it defines.
110544 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
110546         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
110547         $@-t, so that each temporary file name is unique and valid in the first
110548         8 characters, for operation under DOS.
110550 2002-06-15  Paul Eggert  <eggert@twinsun.com>
110552         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
110554 2002-06-15  Jim Meyering  <meyering@lucent.com>
110556         Work even with DJGPP 2.03, which lacks support for symlinks.
110557         From Richard Dawe.
110558         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
110559         is defined.
110560         * lib/lchown.c (S_ISLNK): Likewise.
110562 2002-06-15  Jim Meyering  <meyering@lucent.com>
110564         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
110565         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
110566         have been included before this file.
110568 2002-06-14  Jim Meyering  <meyering@lucent.com>
110570         * lib/file-type.h: Use the version from diffutils-2.8.2.
110571         * lib/file-type.c: Likewise.
110573 2002-06-07  Jim Meyering  <meyering@lucent.com>
110575         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
110576         They're needed at least for NetBSD 1.5.2.
110577         ($statxfs_includes): Include those same headers.
110578         ($statxfs_includes): Include sys/vfs.h if available.
110579         ($statxfs_includes): Likewise for sys/statvfs.h.
110580         Check for the following members in both structs statfs and statvfs:
110581         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
110583 2002-06-01  Jim Meyering  <meyering@lucent.com>
110585         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
110586         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
110588 2002-05-28  Jim Meyering  <meyering@lucent.com>
110590         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
110591         Reported by Volker Borchert.
110593 2002-05-27  Jim Meyering  <meyering@lucent.com>
110595         Fix a problem seen only on nonconforming systems whereby ls.c's
110596         use of localtime, and then of gettimeofday would cause trouble:
110597         the localtime call used to initialize rpl_gettimeofday's save
110598         mechanism would clobber ls's current local time information so
110599         that in any long listing the first file would always be listed
110600         with date 1970-01-01.  Analysis by Volker Borchert.
110602         * lib/gettimeofday.c (localtime): Undefine.
110603         (rpl_localtime): New function.
110605 2002-05-27  Jim Meyering  <meyering@lucent.com>
110607         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
110608         localtime.
110610         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
110611         use the replacement function; it wouldn't resolve at link time.
110612         Reported by Volker Borchert.
110614 2002-05-22  Jim Meyering  <meyering@lucent.com>
110616         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
110617         file-type.h.
110618         * lib/file-type.h: New file.
110619         * lib/file-type.c (file_type): New file/function.  Extracted from
110620         diffutils.
110622 2002-04-30  Jim Meyering  <meyering@lucent.com>
110624         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
110626 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110628         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
110630 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110632         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
110633         Do not check for alloca.h (no longer used) or stdbool.h (was never
110634         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
110636 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110638         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
110640 2002-04-29  Jim Meyering  <meyering@lucent.com>
110642         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
110643         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
110644         Use AC_FUNC_STRNLEN here instead.
110646         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
110647         With autoconf-2.53a, it's part of AC_PROG_CC.
110649 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110651         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
110652         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
110654 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110656         * lib/sig2str.h, lib/sig2str.c: New files.
110657         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
110659 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110661         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
110662         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
110663         of 127, since 64 is the largest conceivable number for ancient
110664         nonstandard hosts.
110665         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
110667 2002-04-28  Jim Meyering  <meyering@lucent.com>
110669         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
110671 2002-04-24  Jim Meyering  <meyering@lucent.com>
110673         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
110674         (jm_PREREQ): Use it.
110676         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
110677         mach/mach.h fcntl.h.
110678         Check for this function: setlocale.
110680 2002-04-24  Jim Meyering  <meyering@lucent.com>
110682         * lib/gettext.h: New file, from Gettext.
110683         * lib/Makefile.am (INCLUDES): Remove -I../intl.
110684         (libfetish_a_SOURCES): Add gettext.h.
110686 2002-04-16  Jim Meyering  <meyering@lucent.com>
110688         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
110689         ut_pid, ut_id, ut_exit.
110691 2002-04-16  Jim Meyering  <meyering@lucent.com>
110693         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
110694         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
110695         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
110697 2002-04-12  Jim Meyering  <meyering@lucent.com>
110699         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
110700         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
110701         existence of the getmntinfo function.  Needed for Darwin 5.3.
110703         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
110704         This is necessary at least on Darwin 5.3.
110706         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
110707         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
110708         strnlen.o in the library, and that makes some versions of ranlib
110709         object.
110711 2002-04-12  Jim Meyering  <meyering@lucent.com>
110713         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
110715 2002-04-09  Jim Meyering  <meyering@lucent.com>
110717         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
110718         to be more precise.  Rather than saying we're checking whether the
110719         function `works', say what we're testing.
110720         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
110721         Reported by Bruno Haible.
110723 2002-03-10  Jim Meyering  <meyering@lucent.com>
110725         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
110726         Suggestion from Santiago Vila.
110728 2002-03-08  Jim Meyering  <meyering@lucent.com>
110730         * lib/rename.c: Mention that this wrapper is needed also on
110731         mips-dec-ultrix4.4 systems.
110733 2002-03-02  Jim Meyering  <meyering@lucent.com>
110735         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
110736         not HAVE_CLOCK_SETTIME.
110738 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110740         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
110741         Check for clock_settime.
110743 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110745         * lib/nanosleep.h: Rename to....
110746         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
110748         * lib/gettime.c: New file.
110749         * lib/settime.c: New file.
110750         * lib/stime.c: Remove.
110752         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
110753         timespec.h.  Remove nanosleep.h.
110755 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110757         * m4/acl.m4: New file.
110758         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
110759         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
110761 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110763         * lib/acl.c, lib/acl.h: New files.
110764         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
110766 2002-02-24  Jim Meyering  <meyering@lucent.com>
110768         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
110769         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
110770         cause trouble.  Reported by Nelson Beebe.
110772 2002-02-23  Paul Eggert  <eggert@twinsun.com>
110774         * lib/path-concat.c (xpath_concat): Reorder code to pacify
110775         compilers that don't know that xalloc_die never returns.
110777 2002-02-20  Jim Meyering  <meyering@lucent.com>
110779         * lib/getdate.c: Regenerate using bison-1.33.
110781 2002-02-17  Jim Meyering  <meyering@lucent.com>
110783         * config/config.guess (main): Don't use `head -1'; it's no longer
110784         portable. Use `sed 1q' instead.
110786 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
110788         * m4/codeset.m4: Upgrade to gettext-0.11.
110789         * m4/gettext.m4: Upgrade to gettext-0.11.
110790         * m4/glibc21.m4: Upgrade to gettext-0.11.
110791         * m4/iconv.m4: Upgrade to gettext-0.11.
110792         * m4/isc-posix.m4: Upgrade to gettext-0.11.
110793         * m4/lcmessage.m4: Upgrade to gettext-0.11.
110794         * m4/lib-ld.m4: New file, from gettext-0.11.
110795         * m4/lib-link.m4: New file, from gettext-0.11.
110796         * m4/lib-prefix.m4: New file, from gettext-0.11.
110797         * m4/progtest.m4: Upgrade to gettext-0.11.
110799 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110801         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
110802         (jm_PREREQ): Use it.
110804 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110806         * lib/posixver.c, lib/posixver.h: New files.
110807         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110809 2002-02-02  Paul Eggert  <eggert@twinsun.com>
110810             Bruno Haible  <bruno@clisp.org>
110812         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
110813         (fwrite_success_callback): New declaration.
110814         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
110815         print_unicode_char. Call failure callback instead of error.
110816         (fwrite_success_callback): New function.
110817         (exit_failure_callback): New function.
110818         (fallback_failure_callback): New function.
110819         (print_unicode_char): Call unicode_to_mb.
110821 2002-01-26  Jim Meyering  <meyering@lucent.com>
110823         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
110824         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
110826 2002-01-26  Jim Meyering  <meyering@lucent.com>
110828         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
110830 2002-01-22  Paul Eggert  <eggert@twinsun.com>
110832         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
110834 2002-01-22  Jim Meyering  <meyering@lucent.com>
110836         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
110837         Otherwise, some versions of automake would omit the rule that makes
110838         Makefile from Makefile.in.
110840 2002-01-21  Paul Eggert  <eggert@twinsun.com>
110842         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
110843         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110844         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
110845         (memcoll): Set errno to zero if there is no error.
110847         * lib/quotearg.c (quotearg_buffer_restyled):
110848         Fix bug with quoting buffers containing NUL when backslashing escapes.
110849         This bug was exposed by the other changes in this patch.
110850         (quotearg_n_options): New arg ARGSIZE.
110851         All callers changed.
110852         (quoting_options_from_style): New function.
110853         (quotearg_n_style): Use it.
110854         (quotearg_n_style_mem): New function.
110856         * lib/quotearg.h (quotearg_n_style_mem): New function.
110858 2002-01-19  Jim Meyering  <meyering@lucent.com>
110860         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
110861         Remove useless quotes: DF_PROG="df".
110862         * m4/strnlen.m4: New file.
110864 2002-01-16  Paul Eggert  <eggert@twinsun.com>
110866         * lib/backupfile.c (ISDIGIT): Comment fix.
110867         * lib/getdate.y (ISDIGIT): Likewise.
110868         * lib/posixtm.c (ISDIGIT, year): Likewise.
110869         * lib/strverscmp.c (ISDIGIT): Likewise.
110870         * lib/userspec.c (ISDIGIT): Likewise.
110872 2002-01-16  Jim Meyering  <meyering@lucent.com>
110874         * lib/getdate.y: Add three semicolons, each just before a closing
110875         brace. Bison (as of version 1.31) no longer papers over that mistake.
110877 2002-01-05  Jim Meyering  <meyering@lucent.com>
110879         * lib/version-etc.c (version_etc_copyright): Update copyright year.
110881 2001-12-19  Paul Eggert  <eggert@twinsun.com>
110883         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
110884         not silently exit merely because the output buffer happens to
110885         have nothing pending.
110887 2001-12-18  Paul Eggert  <eggert@twinsun.com>
110889         See the big note in ../ChangeLog.
110890         * lib/human.c (suffixes): Prefer K to k for 1024.
110891         (generate_suffix_backwards): New function.
110892         (human_readable_inexact): Use it.
110893         * lib/xstrtol.c (__xstrtol): If there is no number but there
110894         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
110895         Accept 'K' as well as 'k'.
110897 2001-12-15  Jim Meyering  <meyering@lucent.com>
110899         * lib/regex.h (__restrict_arr): Update from libc.
110901         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
110902         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
110903         (STREQ): Define.
110905 2001-12-14  Jim Meyering  <meyering@lucent.com>
110907         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
110908         Suggestion from Bruno Haible.
110910 2001-12-10  Jim Meyering  <meyering@lucent.com>
110912         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
110913         xrealloc, Instead, include "xalloc.h".
110914         (initbuffer): Don't cast xmalloc return value to char*.
110915         (readline): Reword comment.
110916         Don't cast xrealloc return value to char*
110917         Return NULL, not 0.
110919 2001-12-09  Jim Meyering  <meyering@lucent.com>
110921         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
110922         about `signed and unsigned type in conditional expression'.
110923         * lib/posixtm.c (posix_time_parse): Likewise.
110925         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
110927         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
110928         to avoid a pedantic warning.
110930         * lib/getstr.c: Don't include assert.h.
110931         (getstr): Remove warning-evoking assertions.
110932         Return -1 if offset parameter is out of bounds.
110933         Change the type of a local from int to size_t.
110935         * lib/strftime.c (my_strftime_localtime_r): Include this function
110936         definition in the `#if ! HAVE_TM_GMTOFF' block.
110938         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
110939         Include xalloc.h instead.
110941 2001-12-02  Jim Meyering  <meyering@lucent.com>
110943         * lib/tempname.c: Don't declare getenv, thus reverting the change of
110944         2001-11-18.  It's no longer necessary, now that stdlib.h is always
110945         included.
110947         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
110948         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
110950 2001-11-30  Akim Demaille  <akim@epita.fr>
110952         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
110953         before being defined.
110955 2001-11-27  Paul Eggert  <eggert@twinsun.com>
110957         * lib/quotearg.h (quotearg_n, quotearg_n_style):
110958         First arg is int, not unsigned.
110959         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
110960         (SIZE_MAX, UINT_MAX): New macros.
110961         (quotearg_n_options): Abort if N is negative.
110962         Avoid overflow check on hosts where size_t is 64 bits and int
110963         is 32 bits, as overflow is impossible there.
110964         Fix off-by-one typo that caused unnecessary reallocation.
110966 2001-11-27  Jim Meyering  <meyering@lucent.com>
110968         * lib/tempname.c: Merge with version from libc.
110969         * lib/regex.c: Likewise.
110971         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
110972         systems for which STDC_HEADERS is 0, it was not included, resulting in
110973         a warning about an integer-to-pointer conversion problem with getenv.
110974         Reported by Volker Borchert.
110976 2001-11-26  Jim Meyering  <meyering@lucent.com>
110978         * lib/gtod.h: Remove file.
110979         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
110980         * lib/gettimeofday.c: Don't include gtod.h.
110981         (GTOD_init): Remove function.
110982         (rpl_gettimeofday): Do its job here instead, rather than aborting.
110983         Suggestion from Volker Borchert.
110985 2001-11-23  Jim Meyering  <meyering@lucent.com>
110987         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
110988         it.
110989         * lib/hash.c (struct hash_table): Define it here instead.
110991 2001-11-22  Jim Meyering  <meyering@lucent.com>
110993         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
110995 2001-11-20  Jim Meyering  <meyering@lucent.com>
110997         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
110998         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
111000 2001-11-19  Jim Meyering  <meyering@lucent.com>
111002         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
111003         directory.  Use "conftestXXXXXX" as the template.
111004         Suggestion from Paul Eggert.
111006         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
111007         immediately, so the test doesn't mistakenly hit the max-open-files
111008         limit.
111010 2001-11-18  Paul Eggert  <eggert@twinsun.com>
111012         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
111013         (TEMPORARIES): New macro.
111014         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
111015         removes an artificial limitation (e.g. HP-UX 10.20, where
111016         TMP_MAX is 17576).
111018 2001-11-18  Jim Meyering  <meyering@lucent.com>
111020         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
111022 2001-11-18  Jim Meyering  <meyering@lucent.com>
111024         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
111025         on SunOS 4.
111027         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
111028         files will be created before anything else.
111030 2001-11-17  Paul Eggert  <eggert@twinsun.com>
111032         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
111033         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
111035 2001-11-17  Jim Meyering  <meyering@lucent.com>
111037         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
111038         Prompted by a report from Bob Proulx.
111040         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
111041         Instead, require UTILS_FUNC_MKSTEMP.
111043 2001-11-17  Jim Meyering  <meyering@lucent.com>
111045         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
111046         Now, that's done as part of AC_FUNC_STRTOD.
111048 2001-11-17  Jim Meyering  <meyering@lucent.com>
111050         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
111051         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
111052         rather than group writable.  Patch by Juan F. Codagnone.
111054         * lib/readtokens.c: Remove explicit declarations of xmalloc and
111055         xrealloc, Instead, include "xalloc.h".
111057         * lib/mountlist.c: Include unlocked-io.h after all system headers.
111058         Remove explicit declarations of xmalloc, xrealloc,
111059         and xstrdup.  Instead, include "xalloc.h".
111061         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
111062         unlocked-io.h.
111063         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
111064         Likewise.
111065         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
111067         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
111068         Reported by Padraig Brady.
111070         * lib/mkstemp.c: #undef mkstemp.
111071         Include config.h.
111072         (rpl_mkstemp): Rename from mkstemp.
111073         Protoize.
111075 2001-11-16  Jim Meyering  <meyering@lucent.com>
111077         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
111078         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
111079         determine the amount of total physical memory, use pstat_getstatic.
111080         HPUX-11 doesn't define _SC_PHYS_PAGES.
111081         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
111082         If sysconf couldn't be used to determine the amount of available
111083         physical memory, use both pstat_getstatic and pstat_getdynamic.
111084         Based on a patch from Bob Proulx.
111086 2001-11-10  Jim Meyering  <meyering@lucent.com>
111088         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
111089         (jm_PREREQ): Use it.
111091 2001-11-09  Jim Meyering  <meyering@lucent.com>
111093         * m4/jm-macros.m4: Require autoconf-2.52f.
111094         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
111095         Use these AC_-prefixed names, not the AM_-prefixed ones.
111097         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
111099 2001-11-05  Jim Meyering  <meyering@lucent.com>
111101         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
111103 2001-11-04  Jim Meyering  <meyering@lucent.com>
111105         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
111106         $DEFS.
111108 2001-11-03  Jim Meyering  <meyering@lucent.com>
111110         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
111111         of AC_DEFUN.
111113         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
111114         know the name of the variable in the macro definition.
111116 2001-11-03  Jim Meyering  <meyering@lucent.com>
111118         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
111119         in argmatch_to_argument call.
111121         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
111122         argument.
111124         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
111125         e.g., a fault due to an attempt to free a NULL pointer.
111127 2001-11-01  Jim Meyering  <meyering@lucent.com>
111129         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
111130         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
111132 2001-11-01  Jim Meyering  <meyering@lucent.com>
111134         * lib/dirfd.c, lib/dirfd.h: New files.
111135         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
111137         * lib/hash.c (hash_print) [TESTING]: Clean up.
111139 2001-10-22  Paul Eggert  <eggert@twinsun.com>
111141         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
111142         to avoid a warning if -Wall.
111144 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
111146         * README: New file
111147         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
111148         (per RMS's instructions, this is now the canonical source)
111149         * lgpl/, gpl/: New directories.
111151 2001-10-21  Paul Eggert  <eggert@twinsun.com>
111153         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
111155 2001-10-21  Jim Meyering  <meyering@lucent.com>
111157         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
111158         this code would end up calling gettext even in packages built
111159         with --disable-nls.
111160         * lib/getopt.c (_): Likewise.
111161         * lib/regex.c (_): Likewise.
111163 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111165         * m4/error.m4 (jm_PREREQ_ERROR):
111166         Do not invoke AC_CHECK_FUNCS with strerror_r, as
111167         AC_FUNC_STRERROR_R does that.
111168         Check for strerror declaration.
111170         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
111171         are supposed to have them these days.
111172         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
111173         Merge changes from latest Autoconf CVS.
111174         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
111175         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
111176         POSIX decided to standardize on the int flavor of strerror_r.
111178 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111180         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
111181         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
111182         Use strerror_r that is only a macro, even if it is not a function.
111183         (strerror): Check for HAVE_DECL_STRERROR before declaring.
111184         (private_strerror): Use prototypes, not old-style function definition.
111185         (print_errno_message): New function.
111186         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
111187         char*-flavored one.
111188         (error_tail, error, error_at_line): Use it.
111190 2001-10-11  Jim Meyering  <meyering@lucent.com>
111192         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
111193         and quote_n (1, ... to avoid clobbering a buffer.
111195 2001-10-05  Jim Meyering  <meyering@lucent.com>
111197         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
111198         hash-pjw.h.
111199         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
111200         * lib/hash-pjw.h: New file.
111202 2001-09-30  Jim Meyering  <meyering@lucent.com>
111204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
111205         `struct fsstat' has the `f_fstypename' member.
111206         Use that to define FS_TYPE, which is now used to make
111207         the getfsstat link test tighter.
111209 2001-09-30  Jim Meyering  <meyering@lucent.com>
111211         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
111212         Include <sys/ucred.h>, for Apple Darwin.
111213         Include sys/mount.h and sys/fs_types.h only if available.
111214         (FS_TYPE): Define.
111215         (read_filesystem_list): Use FS_TYPE.
111217 2001-09-29  Paul Eggert  <eggert@twinsun.com>
111219         * lib/exclude.c (excluded_filename): 0 -> false, since it's
111220         a boolean context.
111222 2001-09-29  Jim Meyering  <meyering@lucent.com>
111224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111225         [one-argument getmntent function]): Include stdio.h before mntent.h.
111226         SunOS 4.1.x needs it for the declaration of `FILE'.
111227         Patch by Volker Borchert.
111229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111230         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
111231         sys/fs_types.h, and make the link-test for getfsstat guard #include
111232         directives with appropriate #if HAVE_*_H tests so that we can
111233         detect getfsstat on Apple Darwin1.3.7 systems.
111234         Reported by Nelson Beebe.
111235         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
111237 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111239         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111240         #defines strtoimax.  Also treat the other strto* functions
111241         like strtoimax.
111243         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111244         Check for strtoul and strtoumax,
111245         as those declarations are made even in the signed case.
111246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
111247         Likewise, for strtol and strtoimax.
111249 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111251         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111252         #defines strtoimax.  Also treat the other strto* functions
111253         like strtoimax.
111255         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
111256         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
111257         (strtoimax, strtoumax): Do not declare if already defined as a macro.
111259 2001-09-26  Jim Meyering  <meyering@lucent.com>
111261         Most macros in unlocked-io.h had the wrong number of arguments.
111262         * lib/gen-uio: New script.
111263         (USE_UNLOCKED_IO): Define to 1 if not already defined.
111264         * lib/unlocked-io.hin: Remove file.
111265         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
111266         rather than trying to embed it here.
111267         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
111268         Reported by Padraig Brady.
111270 2001-09-25  Volker Borchert  <bt@teknon.de>
111272         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
111273         `result'.
111275 2001-09-24  Jim Meyering  <meyering@lucent.com>
111277         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
111279 2001-09-23  Jim Meyering  <meyering@lucent.com>
111281         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
111282         instead of the mere test for existence of mntent.h.  The latter
111283         would get a false-positive on AIX 3.4 systems.
111284         In the outer getmntent if-block, don't die if neither of the getmntent
111285         tests succeeds.  Instead, just fall through and continue with the
111286         remaining tests.
111288 2001-09-23  Jim Meyering  <meyering@lucent.com>
111290         * lib/mountlist.c: Remove useless parentheses in #if directives.
111291         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
111292         the deprecated MOUNTED symbol is no longer defined in mntent.h.
111294 2001-09-22  Jim Meyering  <meyering@lucent.com>
111296         * m4/gettext.m4: New file.  From gettext.
111297         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
111298         * m4/progtest.m4: Likewise
111299         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
111300         * m4/glibc21.m4: Likewise.
111302         * m4/libintl.m4: Remove.  No longer used.
111304 2001-09-22  Jim Meyering  <meyering@lucent.com>
111306         * lib/localcharset.c: Update from latest gettext.
111307         * lib/config.charset: Likewise.
111309 2001-09-20  Jim Meyering  <meyering@lucent.com>
111311         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
111312         strtoimax.
111313         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
111314         strtoumax.
111316 2001-09-20  Jim Meyering  <meyering@lucent.com>
111318         * lib/xstrtol.c (strtoimax): Guard declaration with
111319         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
111320         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
111321         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
111322         (strtoumax): Likewise, for completeness (it wasn't necessary).
111324 2001-09-17  Paul Eggert  <eggert@twinsun.com>
111326         * lib/strtoimax.c (HAVE_LONG_LONG):
111327         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
111328         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
111329         to work around bug in IBM C compiler.
111331 2001-09-17  Jim Meyering  <meyering@lucent.com>
111333         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
111334         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
111335         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
111336         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
111337         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
111338         whenever the right hand side need not be expanded by the shell.
111340 2001-09-16  Paul Eggert  <eggert@twinsun.com>
111342         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
111343         library.  It's not correct, as some older glibcs are buggy.
111344         fnmatch wasn't fixed until glibc 2.2.
111346         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
111347         special shell magic here.
111349 2001-09-16  Jim Meyering  <meyering@lucent.com>
111351         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
111352         * m4/jm-macros.m4: Require it.
111354 2001-09-16  Jim Meyering  <meyering@lucent.com>
111356         * lib/mkdir.c: New file.
111358 2001-09-15  Jim Meyering  <meyering@lucent.com>
111360         * m4/jm-macros.m4: Check for help2man.
111362 2001-09-11  Jim Meyering  <meyering@lucent.com>
111364         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
111365         The body, by Paul Eggert, was moved here from configure.in.
111366         * m4/jm-macros.m4: Require UTILS_HOST_OS.
111368 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111370         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
111371         (jm_PREREQ): Use it.
111373 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111375         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
111376         Use ssize_t, not int, to store result of readlink.
111377         Check for ssize_t overflow as well as size_t overflow,
111378         as POSIX says the result of readlink is implementation-defined
111379         when ssize_t overflows.
111380         Remove unnecessary cast to char*.
111381         Use free+malloc instead of realloc, as the storage doesn't need
111382         to be preserved and it's clearer and can be more efficient that way.
111383         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
111384         * lib/xreadlink.h (xreadlink): Update prototype.
111386 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111388         * lib/xgetcwd.c: Revert some of the previous change; intead,
111389         fix the HAVE_GETCWD_NULL code to behave more like the
111390         !HAVE_GETCWD_NULL code used to.
111392         Include "xalloc.h".
111393         (xgetcwd): Do not return NULL when memory is exhausted; instead,
111394         invoke xalloc_die.
111396 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111398         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
111399         sys/param.h, as pathmax.h includes them.
111401 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111403         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
111404         (jm_PREREQ_XGETCWD): New macro.
111406         * m4/getcwd.m4: New file.
111408 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111410         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
111411         like the HAVE_GETCWD_NULL code.
111412         Include pathmax.h if not HAVE_GETCWD.
111413         Do not include xalloc.h.
111414         (INITIAL_BUFFER_SIZE): New symbol.
111415         Do not use xmalloc / xrealloc, since the caller is responsible for
111416         handling errors.  Preserve errno around `free' during failure.
111417         Do not overrun buffer when using getwd.
111419 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111421         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
111422         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
111423         getcwd (NULL, 0).
111425 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111427         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
111428         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
111429         spotted by Jim Meyering.
111431 2001-09-03  Jim Meyering  <meyering@lucent.com>
111433         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
111434         failure.
111436 2001-09-02  Jim Meyering  <meyering@lucent.com>
111438         * lib/error.c: Update from GNU libc.
111440 2001-09-01  Jim Meyering  <meyering@lucent.com>
111442         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
111443         Used by df.
111445 2001-09-01  Jim Meyering  <meyering@lucent.com>
111447         * lib/xreadlink.c: New file.
111448         * lib/xreadlink.h: New file.
111449         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
111450         xreadlink.h.
111452         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
111453         doesn't conflict with sparc Solaris 7's definition in
111454         /usr/include/sys/int_types.h.
111456         * lib/exclude.c: Use `""', not `<>' to #include non-system header
111457         files.
111458         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
111459         and strncasecmp as r-values.  Unixware didn't have declarations.
111461 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111463         * lib/xstrtol.h: Add copyright notice.
111464         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
111465         LONGINT_INVALID_SUFFIX_CHAR.
111467 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111469         * lib/xstrtol.c (strtoimax): New decl.
111471 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111473         * lib/xgetcwd.c: Don't include pathmax.h.
111474         Include stdlib.h and unistd.h if available.
111475         Include xalloc.h.
111476         (xmalloc, xstrdup, free): Remove decls.
111477         (xgetcwd): Don't assume sizes fit in unsigned.
111478         Check for overflow when computing sizes.
111479         Simplify reallocation code.
111481 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111483         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
111484         a directory's st_size can have an arbitrary value, so the old
111485         usage could waste an arbitrary amount of memory.  All uses
111486         changed.
111487         * lib/savedir.h: Update prototype.
111489 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111491         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
111493         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
111494         old strtoimax.c.
111496         Also, make the following further changes to make this file's
111497         configuration more similar to that of strtol.c:
111498         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
111499         (strtoumax, uintmax_t, strtoull, strtol): Remove.
111500         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
111501         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
111502         changed to signed values.
111504         And make the following changes as well:
111505         Fix copyright notice, as 1999 was missing.
111506         (verify): New macro.
111507         (strtoimax): Check sizes at compile-time, not run-time.
111508         Prefer strtol to strtoll if both work.
111509         (main): Remove; it was not that useful and was a pain to maintain.
111511         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
111513 2001-08-31  Jim Meyering  <meyering@lucent.com>
111515         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
111516         Use an initial, malloc'd, buffer of length 128 rather than
111517         a statically allocated one of length 1024.
111519 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111521         Simplify code, partly by assuming autoconf 2.52 semantics.
111523         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
111525         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
111526         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
111527         All uses removed.
111528         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
111529         Move AC_REQUIRE to next-to-top level, to avoid confusion.
111530         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
111531         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
111532         jm_AC_HEADER_INTTYPES_H.
111533         * m4/jm-macros.m4 (jm_MACROS): Likewise.
111535         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
111537         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111538         Quote first arg of AC_DEFUN.
111539         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
111540         since they are needed to parse the include file even if we need
111541         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
111542         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
111543         but with opposite signedness.
111545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111547         Merge 'exclude' changes from tar 1.13.22.
111548         This fixes one or two unlikely storage allocation overflow bugs,
111549         but doesn't change user-visible behavior otherwise.
111551 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111553         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
111554         (jm_PREREQ_EXCLUDE): New macro.
111556 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111558         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
111559         tm to be declared.
111561 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111563         * lib/hash.c: Remove '2001' from copyright notice.
111565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111567         * lib/full-write.h: New file.
111568         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
111569         * lib/full-write.c: Correct credits, as cccp.c no longer
111570         exists and anyway it was so heavily changed from the old cccp
111571         code as to be unrecognizable.  Include full-write.h.
111572         (full_write): Return size_t, with short writes meaning failure.
111573         All callers changed.  This fixes a bug with large buffers
111574         on 64-bit hosts.
111575         * lib/utime.c: Include full-write.h.
111577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111579         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
111580         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
111581         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
111582         Include if available.
111583         (<xalloc.h>): Include
111584         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
111585         (verify): New macro.  Use it to verify that EXCLUDE macros do not
111586         collide with FNM macros.
111587         (struct patopts): New struct.
111588         (struct exclude): Use it, as exclude patterns now come with options.
111589         (new_exclude): Support above changes.
111590         (new_exclude, add_exclude_file):
111591         Initial size must now be a power of two to simplify overflow checking.
111592         (free_exclude, fnmatch_no_wildcards): New function.
111593         (excluded_filename): No longer requires options arg, as the options
111594         are determined by add_exclude.  Now returns bool, not int.
111595         (excluded_filename, add_exclude):
111596         Add support for the fancy new exclusion options.
111597         (add_exclude, add_exclude_file): Now takes int options arg.
111598         Check for arithmetic overflow when computing sizes.
111599         (add_exclude_file): xrealloc might modify errno, so don't
111600         realloc until after errno might be used.
111602         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
111603         New macros.
111604         (free_exclude): New decl.
111605         (add_exclude, add_exclude_file): Now takes int options arg.
111606         (excluded_filename): No longer requires options arg, as the options
111607         are determined by add_exclude.  Now returns bool, not int.
111609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111611         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
111613 2001-08-27  Jim Meyering  <meyering@lucent.com>
111615         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
111617         * lib/version-etc.c (N_): Remove definition.
111618         Revert most of last change.
111619         Instead, simply don't mark the `Copyright...' string for translation.
111620         Based on advice from Paul Eggert.
111622         * lib/strtoxmax.c: Tweak comment.
111624 2001-08-26  Jim Meyering  <meyering@lucent.com>
111626         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
111628         * m4/xstrtoimax.m4: New file.
111629         * m4/xstrtoumax.m4: Add comments explaining why we
111630         AC_REPLACE_FUNCS(strtol).
111632 2001-08-26  Jim Meyering  <meyering@lucent.com>
111634         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
111635         of copyright with `%s' so translators don't get an untranslated
111636         message in 2002.
111637         (COPYRIGHT_YEAR): Define.
111638         (version_etc): Use fprintf rather than fputs.
111639         Suggestion from Ulrich Drepper.
111641         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
111643         * lib/strtoll.c: New file, from GNU libc.
111644         * lib/xstrtoimax.c: New file.
111646         * lib/xstrtol.h: Add xstrtoimax.
111647         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
111648         * lib/strtoimax.c: New file.  Likewise, but first define
111649         STRTOUXMAX_SIGNED.
111651         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
111652         ...
111653         * lib/strtoxmax.c: ... then renamed to this.
111655 2001-08-18  Paul Eggert  <eggert@twinsun.com>
111657         * m4/inttypes.m4: Add AC_PREREQ(2.13).
111658         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
111659         (jm_AC_TYPE_INTMAX_T): New macro.
111660         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
111662         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
111664         * m4/longlong.m4: Renamed from ulonglong.m4.
111665         * m4/inttypes.m4: Renamed from inttypes_h.m4.
111666         * m4/uintmax_t.m4: Removed.
111668 2001-08-13  Paul Eggert  <eggert@twinsun.com>
111670         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
111671         Port to Solaris 8, where 'sed' requires a space after the 'r'
111672         command, and where sh dislikes "$/".  Clean up the spacing a bit.
111673         Redirect output to $tmp just once.
111675 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
111677         * lib/addext.c (<errno.h>): Include.
111678         (errno): Declare if not defined.
111679         (addext): Work correctly when pathconf returns -1 and leaves
111680         errno alone because there is no limit.  Also, work even if
111681         pathconf returns a value greater than SIZE_MAX.
111683 2001-08-12  Jim Meyering  <meyering@lucent.com>
111685         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
111686         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
111687         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
111688         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
111689         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
111690         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
111691         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
111692         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
111693         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
111694         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
111695         utime.m4, utimes.m4, xstrtoumax.m4:
111696         Quote the first argument in each use of AC_DEFUN.
111698 2001-08-12  Jim Meyering  <meyering@lucent.com>
111700         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
111701         Simply `return getcwd (NULL, 0);'.
111702         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
111703         Use 1300 as initial value for length, not PATH_MAX.
111705         * lib/pathmax.h: Clean up cpp syntax.
111707 2001-08-12  Jim Meyering  <meyering@lucent.com>
111709         * lib/gettimeofday.c: New file.
111710         * lib/gtod.h: New file.
111711         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
111713 2001-08-05  Jim Meyering  <meyering@lucent.com>
111715         * m4/jm-macros.m4: Require autoconf-2.52.
111717 2001-08-04  Jim Meyering  <meyering@lucent.com>
111719         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
111720         stmt, to get in sync with glibc.
111722 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111724         The following changes are from gettext 0.10.39 as maintained by
111725         Bruno Haible.
111727         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
111728         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
111729         with inverted sense.  All uses changed.
111731         * lib/mbswidth.c: Don't include <limits.h>.
111732         Include <stdlib.h> and <string.h> unconditionally.
111733         (iswcntrl, mbsinit, ISCNTRL): New macros.
111734         (mbsnwidth): Use K&R style function declarations.
111735         Don't bother checking for MB_LEN_MAX == 1, since the compiler
111736         can optimize it when MB_CUR_MAX == 1.
111737         The width of control characters is zero, not 1.
111739 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111741         The following changes are from gettext 0.10.39 as maintained by
111742         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
111744         * m4/codeset.m4: Upgrade to serial AM1.
111745         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
111746         all uses changed.  Quote first arg of AC_DEFUN.
111747         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
111749         * m4/iconv.m4: Upgrade to serial AM2.
111750         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
111751         Add --with-libconv-prefix.
111752         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
111753         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
111754         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
111755         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
111756         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
111758         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
111759         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
111760         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
111761         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
111762         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
111763         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
111764         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
111765         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
111766         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111768         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
111769         string.h any more.
111771         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
111772         not the default value.
111774         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
111775         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
111776         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
111777         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
111778         Also check for iswcntrl, used for wcwidth fallback.
111779         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
111780         to Autoconf 2.13.
111782 2001-08-03  Jim Meyering  <meyering@lucent.com>
111784         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
111785         as it was in the original.  Reported by Paul Eggert.
111787 2001-07-16  Jim Meyering  <meyering@lucent.com>
111789         * m4/gettimeofday.m4: New file.
111790         Prompted by a report from Bernhard Baehr.
111792 2001-07-15  Jim Meyering  <meyering@lucent.com>
111794         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
111795         stuff. Now it's in ../Makefile.cfg.
111797 2001-07-15  Jim Meyering  <meyering@lucent.com>
111799         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
111800         (BUILT_SOURCES): Add unlocked-io.h.
111801         (io_functions): Define.
111802         (unlocked-io.h): New rule.
111803         (DISTCLEANFILES): Add unlocked-io.h.
111804         (all-local): Depend on unlocked-io.h, to ensure it is created.
111806         * lib/unlocked-io.hin: New file
111808         * lib/regex.c: Update from glibc.
111810 2001-07-05  Jim Meyering  <meyering@lucent.com>
111812         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
111813         recommendation.
111814         (libfetish_a_SOURCES): Put all .h files here instead.
111815         Remove a thus-exposed (better checks in automake) duplicate and
111816         two unnecessary .h files.
111818 2001-07-04  Jim Meyering  <meyering@lucent.com>
111820         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
111821         that generates jm-glibc-io.m4 so that it doesn't trigger any make
111822         distcheck failure.
111824 2001-07-02  Jim Meyering  <meyering@lucent.com>
111826         The following changes were prompted by suggestions from Bruno Haible.
111828         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
111829         is now generated.
111830         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
111831         definition of EXTRA_DIST.
111832         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
111833         ensure that the generated file is created/updated whenever the list
111834         of $(unlocked_functions) is changed.
111835         (jm-glibc-io.m4): New rule.
111836         (unlocked-io.h): New rule -- currently unused.
111838 2001-06-24  Jim Meyering  <meyering@lucent.com>
111840         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
111841         unmatched right bracket, rather than kludging it with an extra,
111842         falsely-matching quote in a comment.  Patch by Akim Demaille.
111844 2001-06-11  Jim Meyering  <meyering@lucent.com>
111846         * lib/regex.c: Update from GNU libc.
111848 2001-05-27  Jim Meyering  <meyering@lucent.com>
111850         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
111851         Check for ut_type in struct utmp.
111853 2001-05-27  Jim Meyering  <meyering@lucent.com>
111855         * lib/readutmp.h (UT_TYPE): Define.
111857 2001-05-24  Jim Meyering  <meyering@lucent.com>
111859         * lib/argmatch.c: Include "quote.h".
111860         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
111861         quote function.  Reported by Göran Uddeborg.
111863 2001-05-22  Jim Meyering  <meyering@lucent.com>
111865         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
111866         now that we use the package-supplied version unconditionally.
111867         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
111869 2001-05-21  Jim Meyering  <meyering@lucent.com>
111871         * m4/regex.m4: Change a couple backticks to single quotes to avoid
111872         shell syntax errors.
111874 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
111876         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
111878 2001-05-20  Paul Eggert  <eggert@twinsun.com>
111880         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
111881         Don't bother to check library strftime, since
111882         we'll be using our own my_strftime function anyway.
111883         Define my_strftime instead of strftime.
111885 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
111887         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
111888         which is not yet declared.
111890 2001-05-15  Jim Meyering  <meyering@lucent.com>
111892         * m4/regex.m4: Use proper quoting so brackets appear in the test
111893         program.
111894         Reported by, and with help from, Bruno Haible.
111896 2001-05-13  Jim Meyering  <meyering@lucent.com>
111898         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
111899         undefined.
111901 2001-05-11  Paul Eggert  <eggert@twinsun.com>
111903         dirname code cleanup.  base_name now behaves more compatibly
111904         with POSIX basename when given file names that have trailing
111905         slashes, and similarly for dir_name.  Add new primitives
111906         base_len and dir_len.  Put the directory-name-related decls
111907         into dirname.h.
111909         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
111910         * lib/backupfile.c (base_name): Likewise.
111911         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
111912         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
111913         * lib/makepath.c (strip_trailing_slashes): Likewise.
111914         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
111915         ISSLASH): Likewise.
111916         * lib/rename.c (strip_trailing_slashes): Likewise.
111917         * lib/same.c (base_name): Likewise.
111918         * lib/stripslash.c (ISSLASH): Likewise.
111920         * lib/addext.c: Include <dirname.h> after size_t is defined.
111921         * lib/backupfile.c: Likewise.
111923         * lib/addext.c (addext): Use base_len to trim redundant
111924         trailing slashes instead of doing it ourselves.
111925         But do not trim the last slash if it is not redundant.
111927         * lib/backupfile.c (find_backup_file_name,
111928         max_backup_version): Use base_len instead of rolling it ourselves.
111929         Handle the case of "" and (on DOS) "C:" correctly.
111931         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
111932         needed. Include <string.h>, <dirname.h>.
111933         (base_name): Allow file names ending in slashes, other than names
111934         that are all slashes.  In this case, return the basename followed
111935         by the slashes.  This is more general, and can be used in places
111936         where the original base_name purposely had an assertion failure.
111937         (base_len): New function.
111939         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
111940         Do not include <assert.h>; no longer needed.
111941         Include xalloc.h.
111942         (memrchr): Remove decl.
111943         (dir_name_r): Remove.
111944         (dir_len): Renamed from dirlen.  All callers changed.
111945         Rewrite in terms of base_name, for simplicity and consistency.
111946         (dir_name): Never return NULL.  All callers changed.
111947         Do not include <stdlib.h> in test program; no longer needed.
111948         return 0; is fine for test program.
111950         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
111951         New macros.
111952         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
111954         * lib/path-concat.c (path_concat): Use base_len to compute
111955         base length, not strlen; this means we cannot rely on memcpy
111956         to null-terminate.
111958         * lib/same.c (STREQ): Remove.
111959         (same_name): Handle the case where the basename ends in trailing '/'.
111961         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
111962         a slash was stripped.  Do not strip the last slash after a
111963         file system prefix.
111965 2001-05-11  Paul Eggert  <eggert@twinsun.com>
111967         * lib/Makefile.am (libfetish_a_SOURCES):
111968         Add strftime.c, since we now compile it on all hosts.
111970         * lib/strftime.c (my_strftime):
111971         Define to nstrftime if emacs, but only if my_strftime is not defined.
111972         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
111973         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
111974         Add one more extra argument: a nanoseconds value.
111975         All uses changed.
111976         (ns): New macro.
111977         (my_strftime function): Add %N format.
111978         (emacs_strftimeu): Renamed from emacs_strftime,
111979         with extra ut argument.
111981 2001-05-09  Paul Eggert  <eggert@twinsun.com>
111983         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
111985 2001-04-21  Jim Meyering  <meyering@lucent.com>
111987         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
111988         doesn't interfere.
111990 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
111992         * m4/ftruncate.m4: Check for chsize.
111993         Link with ftruncate.o unconditionally if ftruncate is missing.
111994         This was required when cross-compiling to i586-mingw32msvc.
111996 2001-04-08  Jim Meyering  <meyering@lucent.com>
111998         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
111999         recomputed; that's necessary when the offset spans a DST transition.
112000         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
112002 2001-04-02  Jim Meyering  <meyering@lucent.com>
112004         * lib/regex.h, regex.c: Update from GNU libc.
112006 2001-03-24  Jim Meyering  <meyering@lucent.com>
112008         * m4/jm-macros.m4: Require autoconf-2.49d.
112010 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
112012         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
112014 2001-03-19  Paul Eggert  <eggert@twinsun.com>
112016         * lib/version-etc.c (version_etc_copyright): Update to 2001.
112018 2001-03-17  Jim Meyering  <meyering@lucent.com>
112020         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
112021         now that the version in autoconf is equivalent.
112022         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
112024         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
112025         Suggestion from Akim Demaille.
112027         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
112028         (jm_PREREQ_TEMPNAME): New function.
112030 2001-03-16  Paul Eggert  <eggert@twinsun.com>
112032         * lib/tempname.c (uint64_t): Define to uintmax_t if
112033         not defined, and if UINT64_MAX is not defined.
112034         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
112035         Reported by John David Anglin.
112037 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
112039         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
112040         resolve alias if codeset is empty.
112041         * lib/config.charset (BeOS): Use wildcard syntax.
112043 2001-03-13  Jim Meyering  <meyering@lucent.com>
112045         * lib/path-concat.c (path_concat)
112046         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
112047         concatenating e.g., `C:' and `foo'.
112048         From Bruno Haible.
112050 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112052         * lib/localcharset.c (locale_charset): Don't use
112053         setlocale(LC_CTYPE,NULL). Don't return NULL.
112054         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
112056 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112058         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
112059         support for DOS/DJGPP.
112061 2001-03-01  Paul Eggert  <eggert@twinsun.com>
112063         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
112064         lacks mkstemp.  Compile our own tempname.c if we compile our own
112065         mkstemp.c, as mkstemp relies on tempname.
112067 2001-03-01  Jim Meyering  <meyering@lucent.com>
112069         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
112070         AH_VERBATIM really does output its argument verbatim.
112072 2001-02-28  Paul Eggert  <eggert@twinsun.com>
112074         * lib/Makefile.am (libfetish_a_SOURCES):
112075         Add dup-safer.c, fopen-safer.c.
112076         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
112078         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
112079         * lib/unistd-safer.h: New files.
112081 2001-02-25  Paul Eggert  <eggert@twinsun.com>
112083         The mkstemp replacement is taken from glibc 2.2.2, with some
112084         portability fixes for use outside glibc, as follows:
112086         * lib/tempname.c (struct_stat64): New macro.
112087         (direxists, __gen_tempname): Use it.
112088         This avoids a portability problem with Solaris 8.
112090         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
112091         (<stddef.h>, <stdint.h>, <string.h>):
112092         Include only if STDC_HEADERS || _LIBC.
112093         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
112094         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
112095         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
112096         (__set_errno): Define this macro if <errno.h> doesn't.
112097         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
112098         Define these macros if <stdio.h> doesn't.
112099         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
112100         Define these macros if <sys/stat.h>
112101         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
112102         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
112103         __xstat64): Define if not _LIBC.
112104         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
112105         (__gen_tempname): Invoke gettimeofday only if
112106         HAVE_GETTIMEOFDAY || _LIBC;
112107         otherwise, fall back on plain "time".
112108         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
112110         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
112112         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
112114 2001-02-18  Paul Eggert  <eggert@twinsun.com>
112116         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
112118 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112120         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
112121         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
112122         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
112123         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112125 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112127         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
112128         Remove workaround macros for hosts that have mbrtowc but not
112129         mbstate_t, as we now insist on proper declarations for both
112130         before using mbrtowc.
112132 2001-02-17  Jim Meyering  <meyering@lucent.com>
112134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
112135         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
112136         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
112137         UnixWare 7.1.1.
112139         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
112140         rather than AC_CACHE_VAL.
112142 2001-02-17  Jim Meyering  <meyering@lucent.com>
112144         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
112145         around included file name.
112147         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
112149         * lib/strftime.c: Update from GNU libc (the only changes were to
112150         comments).
112152 2001-02-17  Jim Meyering  <meyering@lucent.com>
112154         * lib/regex.c: Update from libc.
112156 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
112158         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
112159         clash.
112161 2001-02-16  Paul Eggert  <eggert@twinsun.com>
112163         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
112164         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
112165         Reported by Mark Hounschell via Paul Eggert.
112167 2001-02-07  Jim Meyering  <meyering@lucent.com>
112169         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
112171 2001-02-05  Jim Meyering  <meyering@lucent.com>
112173         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
112174         it includes the patch required for `large file' support with at least
112175         HP-UX's 10.20 /bin/cc.
112177 2001-02-03  Jim Meyering  <meyering@lucent.com>
112179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
112180         AS_IF, now that it works once again (mysteriously).
112181         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112183 2001-01-30  Jim Meyering  <meyering@lucent.com>
112185         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
112186         * m4/chown.m4: Rename conftestchown to conftest.chown.
112187         * m4/rename.m4: s/conftestdir/conftest.d1/ and
112188         s/conftestdir2/conftest.d2/.
112189         * m4/utimes.m4: s/conftestdata/conftest.data/
112190         Inspired by Pavel Roskin's change in autoconf.
112192 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
112194         * lib/config.charset: Update for FreeBSD 4.2.
112196 2001-01-27  Jim Meyering  <meyering@lucent.com>
112198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
112199         a use of AS_IF.
112200         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112202 2001-01-26  Jim Meyering  <meyering@lucent.com>
112204         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
112205         quotearg.c includes it.
112207 2001-01-26  Jim Meyering  <meyering@lucent.com>
112209         * lib/quotearg.c: Include stddef.h.
112210         * lib/quote.c: Include stddef.h.
112211         Reported by Axel Kittenberger.
112213         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
112214         line in double quotes so that it evokes a better diagnostic.
112215         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
112216         Reported by Axel Kittenberger.
112218 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
112220         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
112221         as if it was a `charset'.
112223 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112225         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
112226         has const.
112228 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112230         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
112231         to avoid a warning.  Add back 'const' to inptr.
112233 2001-01-20  Jim Meyering  <meyering@lucent.com>
112235         Be sure that headers are checked before used in code compiled
112236         for the type checks.
112237         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
112238         In place of that, invoke jm_CHECK_ALL_TYPES.
112239         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
112240         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
112241         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
112242         The check for ssize_t was mistakenly run before the test for unistd.h.
112244         The configure-time check for stdbool.h was missing.
112245         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
112246         (jm_PREREQ_HASH): New function.
112248 2001-01-17  Jim Meyering  <meyering@lucent.com>
112250         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
112251         for autoconf-2.49c.
112252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
112254 2001-01-16  Jim Meyering  <meyering@lucent.com>
112256         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
112257         From Bruno Haible.
112259 2001-01-14  Jim Meyering  <meyering@lucent.com>
112261         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
112262         foo and bar.  Create conftestdir/ in the script, not in the C code.
112263         Remove directories in the script, not in the C code.
112264         Remove conftestdir{,2} before trying to create the directory.
112265         Make the entire configure script fail if the mkdir fails.
112267 2001-01-14  Jim Meyering  <meyering@lucent.com>
112269         * lib/rename.c: New file.  From Volker Borchert.
112270         Include stdlib.h, string.h or strings.h, and xalloc.h.
112271         Use strip_trailing_slashes rather than open-coding it.
112273 2001-01-03  Paul Eggert  <eggert@twinsun.com>
112275         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
112277 2001-01-03  Jim Meyering  <meyering@lucent.com>
112279         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
112280         of local `inptr' to avoid warning with some system declarations of
112281         iconv.
112283 2001-01-02  Volker Borchert  <bt@teknon.de>
112285         * m4/rename.m4: New file.
112286         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
112288 2001-01-01  Jim Meyering  <meyering@lucent.com>
112290         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
112291         even on systems with utmpx.h.  It's necessary for the declaration of
112292         utmp's ut_user member.  Reported by Andreas Jaeger.
112294         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
112295         available. They are required for the declarations of getgrgid and
112296         getpwuid resp.
112297         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
112298         Reported by Andreas Jaeger.
112300 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
112302         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
112303         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
112304         so `make install' also works in VPATH builds.
112306 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
112308         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
112309         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
112310         can be used in subdirectories.
112312 2000-12-29  Paul Eggert  <eggert@twinsun.com>
112314         * lib/modechange.c: Do not assume that mode_t uses the
112315         traditional octal encoding.  E.g. "chmod 1 FOO" should set
112316         the other-execute bit of FOO even if S_IXOTH != 1.
112318         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
112319         WOTH, XOTH, ALLM): New macros.
112320         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
112321          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
112322         Use them.
112323         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
112324         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
112325         (mode_compile):
112326         No need to use uintmax_t; unsigned long is long enough.
112327         Don't bother to get suffix since we don't use it.
112329 2000-12-26  Jim Meyering  <meyering@lucent.com>
112331         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
112332         better with autoheader.
112334 2000-12-24  Jim Meyering  <meyering@lucent.com>
112336         * lib/hash.c (is_prime): Return explicit boolean values.
112337         (hash_get_first): Return NULL to appease Irix5.6's 89.
112338         Reported by Nelson Beebe.
112340 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
112342         * lib/localcharset.c (locale_charset): Add support for Win32.
112344 2000-12-18  Paul Eggert  <eggert@twinsun.com>
112346         * lib/physmem.h, lib/physmem.c: New files.
112348         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
112349         (noinst_HEADERS): Add physmem.h.
112351         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
112352         't' for compatibility with Solaris 8 sort.
112354 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
112356         * lib/config.charset: Add support for BeOS.
112358 2000-12-17  Jim Meyering  <meyering@lucent.com>
112360         * m4/dos.m4 (jm_AC_DOS): New file and macro.
112361         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
112363 2000-12-16  Jim Meyering  <meyering@lucent.com>
112365         This bug had a serious impact on chown: `chown N:M FILE' (for integer
112366         N and M) would have treated it like `chown N:N FILE'.
112368         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
112370 2000-12-16  Jim Meyering  <meyering@lucent.com>
112372         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
112373         SHELLS_FILE to a file name that's useful on djgpp systems.
112374         Include stdlib.h.
112375         (ADDITIONAL_DEFAULT_SHELLS): Define.
112376         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
112377         Based mostly on a patch from Prashant TR.
112379 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
112381         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
112382         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
112383         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
112385 2000-12-08  Andreas Schwab  <schwab@suse.de>
112387         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
112388         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
112390 2000-12-07  Jim Meyering  <meyering@lucent.com>
112392         * lib/stripslash.c (ISSLASH): Define.
112393         (strip_trailing_slashes): Use ISSLASH rather than comparing against
112394         `/'.
112395         From Prashant TR.
112397         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
112398         (dir_name_r): Declare this function as static.
112399         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
112400         manifest itself on a name containing a mix of slashes and
112401         backslashes.
112402         Make this function work with names starting with a DOS-style
112403         drive letter and colon prefix.
112404         (dir_name): Append `.' if necessary.
112405         Based mostly on patches from Prashant TR and Eli Zaretskii.
112407         * lib/dirname.h (dir_name_r): Remove prototype.
112409 2000-12-06  Paul Eggert  <eggert@twinsun.com>
112411         * m4/off_t-format.m4: Remove this file.
112412         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
112414 2000-12-06  Jim Meyering  <meyering@lucent.com>
112416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
112417         replacement strtoull, we may well need the replacement strtoul, too.
112418         Check for declarations of strtoul and strtoull.
112419         Check for strtol.  Mainly as a cue to cause automake to include
112420         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
112421         Check for limits.h -- strtol.c needs it.
112423 2000-12-05  Jim Meyering  <meyering@lucent.com>
112425         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
112427 2000-12-04  Jim Meyering  <meyering@lucent.com>
112429         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
112430         Also include memory.h, stdlib.h, unistd.h if appropriate.
112431         Reported by Andreas Jaeger (conflicting declaration of malloc).
112433 2000-12-02  Jim Meyering  <meyering@lucent.com>
112435         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
112436         * m4/jm-macros.m4 (jm_MACROS): require it.
112438 2000-12-02  Jim Meyering  <meyering@lucent.com>
112440         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
112442 2000-12-01  Paul Eggert  <eggert@twinsun.com>
112444         * lib/memrchr.c: Include <config.h> before any system include file.
112446 2000-11-30  Jim Meyering  <meyering@lucent.com>
112448         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
112450 2000-11-30  Jim Meyering  <meyering@lucent.com>
112452         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
112454 2000-11-29  Paul Eggert  <eggert@twinsun.com>
112456         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
112458 2000-11-26  Jim Meyering  <meyering@lucent.com>
112460         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
112462 2000-11-22  Paul Eggert  <eggert@twinsun.com>
112464         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
112465         size of (size_t) -1; it's not portable.
112467 2000-11-17  Jim Meyering  <meyering@lucent.com>
112469         * lib/strstr.c: Update from GNU libc.
112471 2000-11-17  Akim Demaille  <akim@epita.fr>
112473         * lib/obstack.h: Formatting changes.
112474         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
112475         prevent type checking.
112476         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
112477         cast the value to (void *): assigning a `foo *' to a `void *'
112478         variable is valid.
112479         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
112481 2000-11-16  Jim Meyering  <meyering@lucent.com>
112483         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
112485 2000-11-11  Jim Meyering  <meyering@lucent.com>
112487         * lib/error.c: Add a couple #includes, merging from GNU libc version.
112489 2000-11-10  Jim Meyering  <meyering@lucent.com>
112491         * lib/obstack.h: Update from GNU libc.
112492         * lib/obstack.c: Likewise.
112494 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
112496         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
112498 2000-11-06  Paul Eggert  <eggert@twinsun.com>
112500         * lib/getusershell.c (setusershell): Use rewind rather than
112501         fseek/fseeko, to avoid configuration hassles with fseeko.
112502         Don't bother opening SHELLS_FILE if shellstream is NULL;
112503         it's not necessary.
112505 2000-11-05  Jim Meyering  <meyering@lucent.com>
112507         * lib/makepath.h (make_dir): Declare.
112508         * lib/makepath.c (make_dir): Remove `static' attribute.
112509         Tweak a comment.
112511 2000-11-04  Jim Meyering  <meyering@lucent.com>
112513         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
112515 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
112517         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
112518         last one in a bucket, advance to the next bucket.
112520 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
112522         * lib/fnmatch.c: Do not comment out all the code if we are using
112523         the GNU C library, because in some cases we are replacing buggy
112524         code in the GNU C library itself.
112526 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
112528         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
112529         (regex_compile): Catch bogus \(\1\).
112531 2000-10-30  Paul Eggert  <eggert@twinsun.com>
112533         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
112534         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
112535         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
112537 2000-10-30  Paul Eggert  <eggert@twinsun.com>
112539         * lib/error.h, getline.h, modechange.h:
112540         Remove "2000" from Copyright line, as the file hasn't been
112541         changed this year other than in the copyright notice.
112543         * lib/xalloc.h: Add "2000" to Copyright line, as this file
112544         was changed this year.
112546 2000-10-29  Jim Meyering  <meyering@lucent.com>
112548         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
112549         renaming.
112550         * m4/ls-mntd-fs.m4: Likewise
112552 2000-10-29  Jim Meyering  <meyering@lucent.com>
112554         * lib/xstat.in: Fix grammar in comment.
112556 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
112558         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
112559         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
112560         doesn't define __restrict_arr.
112562 2000-10-28  Jim Meyering  <meyering@lucent.com>
112564         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
112565         (jm_PREREQ_MEMCHR): New function.
112567 2000-10-28  Jim Meyering  <meyering@lucent.com>
112569         * lib/memchr.c: Update from libc.
112570         Adjust for portability:
112571         [HAVE_STDLIB_H]: Include stdlib.h.
112572         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
112573         Undef __memchr, too.
112574         [!weak_alias]: Define __memchr to memchr.
112576         * lib/regex.c: Update from libc.
112577         * lib/regex.h: Likewise.
112578         * lib/getopt1.c: Likewise.
112579         * lib/memcmp.c: Likewise.
112581         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
112582         Avoid using fseek, when possible -- it's broken by design.
112583         Patch by Ulrich Drepper.
112585 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
112587         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
112588         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
112589         Giving in to popular pressure to shut up the compiler with casts.
112591 2000-10-26  Jim Meyering  <meyering@lucent.com>
112593         * lib/strftime.c: Update from libc.
112595 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
112597         * regex.c: More `unsigned char' -> `re_char' changes.
112598         Also change several `int' into `re_wchar_t'.
112599         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
112600         (PUSH_FAILURE_POINTER): Don't cast any more.
112601         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
112602         We want GCC to complain, since this piece of code makes
112603         re_match non-reentrant, which *should* be fixed.
112604         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
112605         (EXTEND_BUFFER): Use RETALLOC.
112606         (SET_LIST_BIT): Don't cast.
112607         (re_wchar_t): New type.
112608         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
112609         that those two functions will always properly return.
112610         (IMMEDIATE_QUIT_CHECK): Cast to void.
112611         (analyse_first): Use recursion rather than an explicit stack.
112612         (re_compile_fastmap): Can't fail anymore.
112613         (re_search_2): Don't check re_compile_fastmap for failure.
112614         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
112615         Now also sets the new value (passed in a new argument).
112616         (re_match_2_internal): Use it.
112617         Also, use a new var `reg' of type size_t when looping through regs
112618         rather than reuse the inappropriate `mcnt'.
112620 2000-10-25  Jim Meyering  <meyering@lucent.com>
112622         * lib/obstack.c: Update from libc.
112624 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
112626         * regex.c (regex_compile): Change the way of handling a range from
112627         a char less than 256 to a char not less than 256.
112629 2000-10-24  Andrew Innes  <andrewi@gnu.org>
112631         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
112632         NT-Emacs only.
112633         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
112634         so that re_search functions only quit when callers expect them to.
112636 2000-10-23  Jim Meyering  <meyering@lucent.com>
112638         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
112639         wrong.  That set_locale call must not have any side effects.
112640         From Paul Eggert.
112642 2000-10-22  Jim Meyering  <meyering@lucent.com>
112644         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
112645         [CYCLIC]: Remove now-unused definition.
112647         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
112648         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
112649         Suggestion from Ulrich Drepper.
112651 2000-10-21  Jim Meyering  <meyering@lucent.com>
112653         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
112654         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
112655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
112657 2000-10-21  Jim Meyering  <meyering@lucent.com>
112659         * lib/dirname.c (memrchr): Declare if necessary.
112660         (dir_name): Remove the restriction that there be no
112661         trailing slashes.  Now, this code skips past them, effectively
112662         ignoring them.
112663         [TEST_DIRNAME] (main): New unit tests.
112665         * lib/memrchr.c: New file from GNU libc.
112666         Undef __memrchr, too.
112667         [!weak_alias]: Define __memrchr to memrchr.
112668         Guard weak_alias use with `#ifdef weak_alias'.
112670 2000-10-21  Jim Meyering  <meyering@lucent.com>
112672         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
112673         (dir_name): Use dir_name_r.
112674         * lib/dirname.h (dir_name_r): Declare it.
112676 2000-10-17  Jim Meyering  <meyering@lucent.com>
112678         * lib/quote.h (PARAMS): Define and use.
112679         Reported by Akim Demaille.
112681         * lib/getopt.c: Update from libc.
112683 2000-10-16  Jim Meyering  <meyering@lucent.com>
112685         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
112686         setlocale.
112687         From Jan Fedak.
112689 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
112691         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
112693 2000-09-25  Jim Meyering  <meyering@lucent.com>
112695         * lib/md5.h (rol): Define (from GnuPG).
112697         * lib/sha.c: Give credit (GnuPG) where due.
112698         (M): Use rol rather than open-coding it.
112699         Add a FIXME comment.
112701 2000-09-21  Jim Meyering  <meyering@lucent.com>
112703         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
112704         Reported by Michael Stone.
112706 2000-09-20  Jim Meyering  <meyering@lucent.com>
112708         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
112709         (noinst_HEADERS): Add sha.h.
112710         Based on code from Scott G. Miller and from GnuPG.
112712 2000-09-18  Jim Meyering  <meyering@lucent.com>
112714         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
112715         LIBS. Otherwise, everyone ends up linking with -lelf for some
112716         configurations.
112717         Reported by Mike Stone.
112719 2000-09-15  Jim Meyering  <meyering@lucent.com>
112721         * lib/regex.c: Update from libc.
112723 2000-09-10  Jim Meyering  <meyering@lucent.com>
112725         * lib/getopt.c (_getopt_internal): Update from glibc.
112727 2000-09-09  Jim Meyering  <meyering@lucent.com>
112729         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
112730         think it should be used as a general replacement for isascii.
112731         * lib/fnmatch.c: Likewise.
112732         * lib/mbswidth.c: Likewise
112733         * lib/regex.c: Likewise.
112735         Don't use atoi.
112736         * lib/userspec.c: Include sys/param.h and limits.h.
112737         Include xstrtol.h.
112738         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112739         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
112740         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
112741         UID, GID.  Check range.
112743 2000-09-06  Jim Meyering  <meyering@lucent.com>
112745         * lib/getopt.c (_getopt_internal): Update from glibc.
112747 2000-08-30  Jim Meyering  <meyering@lucent.com>
112749         * lib/strftime.c: Merge in changes from GNU libc.
112751 2000-08-26  Jim Meyering  <meyering@lucent.com>
112753         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
112754         * m4/fpending.m4: New file.
112756 2000-08-26  Jim Meyering  <meyering@lucent.com>
112758         * lib/closeout.c: Include "__fpending.h".
112759         (close_stdout_status): Return right away if there's nothing to flush.
112761         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
112762         * lib/__fpending.c: New file.
112763         * lib/__fpending.h: New file.
112765 2000-08-20  Jim Meyering  <meyering@lucent.com>
112767         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
112768         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
112769         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
112771 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
112773         Improve fileutils installation on systems where running
112774         programs (like install) can't be unlinked.
112775         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
112776         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
112778 2000-08-07  Paul Eggert  <eggert@twinsun.com>
112780         Standardize on "memory exhausted" instead of "Memory exhausted"
112781         or "virtual memory exhausted".
112782         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
112783         "virtual memory exhausted".
112784         * lib/same.c (same_name): Invoke xalloc_die instead of printing
112785         our own message.
112786         * lib/userspec.c (parse_user_spec): Likewise.
112787         * lib/bumpalloc.h: comment fix
112788         * lib/same.c, userspec.c: Include xalloc.h.
112790         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
112791         not char *const and pointing to a constant array.
112792         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
112793         (xrealloc): Comment fix.
112795         * lib/userspec.c (parse_user_spec):
112796         Don't translate a message until just before returning,
112797         to avoid unnecessary translation.
112799 2000-08-07  Jim Meyering  <meyering@lucent.com>
112801         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
112802         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
112803         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
112804         getgroups.c, gethostname.c, getopt.h, group-member.c,
112805         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
112806         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
112807         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
112808         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
112809         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
112810         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
112811         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
112812         yesno.c: Back out Copyright date changes for each file with no change
112813         this year.  This eases coordination with other programs using the same
112814         source code modules.  From Paul Eggert.
112816 2000-08-06  Paul Eggert  <eggert@twinsun.com>
112818         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
112819         not char, for compatibility with glibc 2.1.3 strftime.c.
112821 2000-08-03  Greg McGary  <greg@mcgary.org>
112823         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
112824         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
112825         (EXTEND_BUFFER): Use them.
112827 2000-08-01  Jim Meyering  <meyering@lucent.com>
112829         * lib/dirname.c (ISSLASH): Define.
112830         (BACKSLASH_IS_PATH_SEPARATOR): Define.
112831         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
112832         both `\' and `/' may be use as path separators.
112833         Based on a patch from Prashant TR.
112835 2000-07-31  Paul Eggert  <eggert@twinsun.com>
112837         * lib/quotearg.c (quotearg_n_options): Don't make the initial
112838         slot vector a constant, since it might get modified.
112840 2000-07-31  Jim Meyering  <meyering@lucent.com>
112842         * lib/xmalloc.c: Use `virtual memory exhausted', not
112843         `Memory exhausted'.
112844         * lib/obstack.c (print_and_abort): Likewise.
112846 2000-07-30  Paul Eggert  <eggert@twinsun.com>
112848         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
112849         buffer, so that the caller can always quote one small
112850         component of a "memory exhausted" message in slot 0.
112851         From a suggestion by Jim Meyering.
112853 2000-07-30  Jim Meyering  <meyering@lucent.com>
112855         * lib/makepath.c (make_path): Quote the other instance, too.
112857         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
112858         (STATIC_BUF_SIZE): Define.
112859         (quotearg_n_options): Use only statically allocated storage when
112860         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
112861         than STATIC_BUF_SIZE.
112863 2000-07-29  Jim Meyering  <meyering@lucent.com>
112865         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
112866         * lib/dirname.c (dir_name): Likewise.
112868         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
112869         `/'.
112871         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
112872         (dir_name): Assert that there are no trailing slashes.
112874 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
112876         * lib/mbswidth.h (mbswidth): Add a flags argument.
112877         (mbswidth): New declaration.
112878         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
112879         * lib/mbswidth.c (mbswidth): Add a flags argument.
112880         (mbsnwidth): New function.
112882 2000-07-24  Jim Meyering  <meyering@lucent.com>
112884         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
112886 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112888         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
112890 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112892         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
112893         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
112894         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
112895         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
112896         invoke multibyte primitives.
112898 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112900         * lib/quotearg.c:
112901         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
112902         so that mbstate_t is always defined.
112904         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
112905         be 1 in at least one GCC installation, and this configuration
112906         error is likely to be common.  Ignoring MB_LEN_MAX hurts
112907         performance on hosts that have mbrtowc but have only unibyte
112908         locales, but I assume these hosts are rare.
112910 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112912         * lib/mbswidth.c (_XOPEN_SOURCE):
112913         Don't define; this causes problems on Solaris 7.
112914         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
112916 2000-07-23  Jim Meyering  <meyering@lucent.com>
112918         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
112919         too: getgrgid, getpwuid, getuid.
112921 2000-07-23  Jim Meyering  <meyering@lucent.com>
112923         * lib/basename.c (base_name): Add an assertion.
112925 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
112927         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
112928         shadow its mbsinit function.
112930 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
112932         * lib/mbswidth.h: New file.
112933         * lib/mbswidth.c: New file.
112934         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
112935         (noinst_HEADERS): Add mbswidth.h.
112937 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
112939         * lib/config.charset: Add support for FreeBSD. Improve support for
112940         HP-UX and IRIX 6.
112942 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
112944         * m4/mbswidth.m4: New file.
112945         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
112947 2000-07-15  Jim Meyering  <meyering@lucent.com>
112949         * lib/makepath.c: Include quote.h.
112950         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
112951         corresponding argument in a `quote (...)' call.
112952         Give better diagnostics.
112954         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
112955         (noinst_HEADERS): Add quote.h.
112957         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
112958         from tar's src/misc.c.
112959         * lib/quote.h: New file.  Prototypes for same.
112961 2000-07-14  Paul Eggert  <eggert@twinsun.com>
112963         From a suggestion by Bruno Haible.
112964         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
112965         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
112966         to decide whether to define the BeOS workaround macro;
112967         this adjusts to the change to AC_MBSTATE_T.
112969 2000-07-14  Jim Meyering  <meyering@lucent.com>
112971         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
112972         jm_AC_TYPE_UINTMAX_T.
112974 2000-07-13  Paul Eggert  <eggert@twinsun.com>
112976         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
112978         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
112979         quotearg_buffer_restyled): Add support for
112980         clocale_quoting_style.  Undo previous change to
112981         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
112982         and "{RIGHT QUOTATION MARK}" msgids.
112984 2000-07-10  Paul Eggert  <eggert@twinsun.com>
112986         From a suggestion by Bruno Haible.
112987         * m4/mbstate_t.m4 (AC_MBSTATE_T):
112988         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
112989         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
112990         and mbstate_t, to a single-part test that simply defines mbstate_t.
112991         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
112992         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
112994 2000-07-10  Jim Meyering  <meyering@lucent.com>
112996         * m4/strerror_r.m4: Mirror the correction made in autoconf.
112998         * m4/gnu-source.m4: Output to confdefs.h directly.
112999         Suggestion from Akim Demaille.
113001 2000-07-09  Paul Eggert  <eggert@twinsun.com>
113003         The old behavior of quoting `like this' doesn't look good with
113004         newer, ISO-style fonts.  See:
113005         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
113007         Instead, quote "like this" by default.  Let the translator
113008         tailor the locale-specific quoting behavior by providing
113009         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
113011         * lib/quotearg.c (N_): New macro.
113012         (gettext_default): New function.
113013         (quotearg_buffer_restyled): Use
113014         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
113015         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
113017 2000-07-09  Jim Meyering  <meyering@lucent.com>
113019         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
113020         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
113022         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
113023         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
113025 2000-07-09  Jim Meyering  <meyering@lucent.com>
113027         * lib/Most files: Update copyright dates to include 2000.
113029 2000-07-08  Jim Meyering  <meyering@lucent.com>
113031         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
113032         if not defined.
113033         (xgethostname): Remove now-unnecessary #ifdef.
113034         Move declaration of `err' into loop where it's used.
113036 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113037         and Bruno Haible  <haible@clisp.cons.org>
113039         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
113040         only if the test for an object-type mbstate_t fails.  This
113041         prevents us from mistakenly reporting that mbstate_t is a
113042         system object type after we "#define mbstate_t int" to work
113043         around its lack.
113045 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113046         and Bruno Haible  <haible@clisp.cons.org>
113048         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
113050 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113052         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
113053         to strerror_r.
113054         Include <ctype.h> for use of isalpha.
113056 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113058         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
113059         by allocating a larger buffer. Test the gethostname return value for
113060         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
113061         returns an error and ENAMETOOLONG isn't defined.
113063 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113065         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
113066         dimension.
113068 2000-07-04  Jim Meyering  <meyering@lucent.com>
113070         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
113071         of the deprecated AC_CHECKING.
113073 2000-07-04  Jim Meyering  <meyering@lucent.com>
113075         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
113076         Reported by Bruno Haible.
113078 2000-07-04  Jim Meyering  <meyering@lucent.com>
113080         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
113081         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
113082         lacks mbrtowc.
113084 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113086         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
113087         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
113089 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113090         and Bruno Haible  <haible@clisp.cons.org>
113092         * lib/quotearg.c (mbrtowc):
113093         Assign to *pwc, and return 1 only if result is nonzero.
113094         (iswprint): Use ISPRINT when substituting our own mbrtowc.
113096 2000-07-03  Jim Meyering  <meyering@lucent.com>
113098         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
113100 2000-07-03  Jim Meyering  <meyering@lucent.com>
113102         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
113103         This is necessary to get a definition of e.g., UTMP_FILE on
113104         HP-UX 10.20.
113105         From Bob Proulx.
113107 2000-07-02  Jim Meyering  <meyering@lucent.com>
113109         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
113111         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
113112         AC_LIBOBJ(function_name).
113113         * m4/chown.m4: Likewise.
113114         * m4/fnmatch.m4: Likewise.
113115         * m4/ftruncate.m4: Likewise.
113116         * m4/getgroups.m4: Likewise.
113117         * m4/getline.m4: Likewise.
113118         * m4/group-member.m4: Likewise.
113119         * m4/jm-macros.m4: Likewise.
113120         * m4/lstat.m4: Likewise.
113121         * m4/malloc.m4: Likewise.
113122         * m4/memcmp.m4: Likewise.
113123         * m4/nanosleep.m4: Likewise.
113124         * m4/putenv.m4: Likewise.
113125         * m4/realloc.m4: Likewise.
113126         * m4/regex.m4: Likewise.
113127         * m4/stat.m4: Likewise.
113128         * m4/strftime.m4: Likewise.
113130 2000-07-02  Jim Meyering  <meyering@lucent.com>
113132         * lib/quotearg.c (mbstate_t): Don't define here.
113134 2000-07-02  Jim Meyering  <meyering@lucent.com>
113136         * lib/nanosleep.c (SIGCONT): Define if not already defined.
113138 2000-07-01  Jim Meyering  <meyering@lucent.com>
113140         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
113142 2000-07-01  Jim Meyering  <meyering@lucent.com>
113144         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
113145         problem.
113147 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
113150         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
113152 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113154         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
113155         per change in ../m4/ls-mntd-fs.m4.
113156         (read_filesystem_list): Ignore symbolic links.
113158 2000-06-29  Jim Meyering  <meyering@lucent.com>
113160         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
113161         for declaration of strcmp.
113163         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
113165         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
113166         Avoid warning by casting result to `char *' to remove `const'.
113168 2000-06-28  Jim Meyering  <meyering@lucent.com>
113170         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
113171         included by quotearg.c, for which we perform this test.  From
113172         Bruno Haible.
113174 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113176         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
113177         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
113178         <utmpx.h> exists, put readutmp.o into LIBOBJS.
113180 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113182         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
113184 2000-06-26  Paul Eggert  <eggert@twinsun.com>
113186         savedir now sets errno on failure and invokes xmalloc to get memory.
113187         Fix a couple of other minor bugs while we're at it.
113189         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
113190         (NAMLEN): Remove macro.
113191         (malloc, realloc): Remove decls.
113192         (stpcpy): Likewise.
113193         ("xalloc.h"): Include.
113194         (NAME_SIZE_DEFAULT): New macro.
113195         (savedir): Use xmalloc / xrealloc to allocate memory.
113196         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
113197         Skip "" directory entries.
113198         Use strlen to calculate directory entry length, since the old method
113199         is rarely used these days and isn't worth supporting.
113200         Don't use a pointer after freeing it.
113201         Check for integer overflow when calculating allocation size.
113202         Use memcpy to copy entries, instead of stpcpy.
113203         Set errno properly when returning NULL.
113204         Check for readdir error.
113206 2000-06-26  Jim Meyering  <meyering@lucent.com>
113208         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
113210 2000-06-25  Jim Meyering  <meyering@lucent.com>
113212         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
113213         Linux header bug when _XOPEN_SOURCE is defined to 500.
113215 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113217         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
113218         deficiency.
113220 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113222         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
113223         Include xalloc.h.
113224         Don't include <stdlib.h>.  Don't declare malloc, realloc.
113226 2000-06-24  Jim Meyering  <meyering@lucent.com>
113228         * m4/strerror_r.m4: Revive this file -- to try out an experimental
113229         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
113230         for which strerror does return char*, but which lacks a conveniently
113231         accessible declaration of the function.  If the compile-test says
113232         strerror_r doesn't work, then resort to a `run'-test that works on
113233         BeOS and segfaults on DEC Unix.
113235 2000-06-24  Jim Meyering  <meyering@lucent.com>
113237         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
113239 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113241         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
113242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
113244 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113246         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
113247         (mbrtowc, mbstate_t): Define substitutes if
113248         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
113249         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
113250         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
113252 2000-06-23  Jim Meyering  <meyering@lucent.com>
113254         * m4/afs.m4: Add missing AC_MSG_RESULT.
113255         Reported by Bruno Haible.
113257         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
113258         Suggestion from Bruno Haible.
113260 2000-06-23  Jim Meyering  <meyering@lucent.com>
113262         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
113264 2000-06-21  Jim Meyering  <meyering@lucent.com>
113266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
113268 2000-06-21  Jim Meyering  <meyering@lucent.com>
113270         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
113271         (noinst_HEADERS): Add getstr.h.
113273         * lib/getline.c (getstr): Move into a separate file.
113274         * lib/getstr.c (getstr): New file, extracted from getline.c, with
113275         the following changes: new parameter, delim2; both delim[12]
113276         parameters have type `int', not `char'.  The latter would lose
113277         with 8-bit delimiters.
113278         * lib/getstr.h: New file.
113280 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113282         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
113283         than 1024, return a memory chunk of least possible size, instead
113284         of size PATH_MAX + 2. In the loop, increment the size proportionally.
113285         Use free/xmalloc instead of xrealloc to avoid copying for very long
113286         paths.
113288 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113290         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
113291         the empty string.
113293 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113295         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
113296         address, not strdup.  Include <stdlib.h> and don't declare free().
113298 2000-06-19  Jim Meyering  <meyering@lucent.com>
113300         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
113302 2000-06-18  Jim Meyering  <meyering@lucent.com>
113304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
113306         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
113307         `checking whether...' message to be consistent with that of the
113308         lstat test.
113310 2000-06-18  Jim Meyering  <meyering@lucent.com>
113312         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
113313         Besides, these days every porting target provides a mkdir function.
113315         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
113316         needed. (this snippet comes from src/system.h).
113318 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
113320         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
113322 2000-06-15  Paul Eggert  <eggert@twinsun.com>
113324         * lib/human.c (adjust_value): New function.
113325         (human_readable_inexact): Apply rounding style even when
113326         printing approximate values.
113328 2000-06-14  Paul Eggert  <eggert@twinsun.com>
113330         * lib/human.c (human_readable_inexact): Allow an input block
113331         size that is not a multiple of the output block size, and vice versa.
113332         Reported by Piergiorgio Sartor.
113334 2000-06-14  Paul Eggert  <eggert@twinsun.com>
113336         * lib/getdate.y (get_date): Apply relative times after time
113337         zone indicator, not before.  Reported by Todd A. Jacobs.
113339 2000-06-13  Jim Meyering  <meyering@lucent.com>
113341         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
113343         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
113345 2000-06-12  Paul Eggert  <eggert@twinsun.com>
113347         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
113349 2000-06-12  Jim Meyering  <meyering@lucent.com>
113351         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
113352         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
113353         optional argument.
113354         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
113355         the optional argument, `lib'.
113357 2000-06-08  Jim Meyering  <meyering@lucent.com>
113359         * m4/largefile.m4: Remove file (now that it's part of autoconf).
113361 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113363         Rewrite largefile configuration so that we don't need to run
113364         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
113365         AC_CANONICAL_HOST in configure.in -- jmm]
113367         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
113368         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
113369         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
113370         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
113371         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
113372         All uses changed.
113373         Instead of inspecting the output of getconf, try to compile the
113374         test program without and with the macro definition.
113375         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
113376         for getconf.  Instead, check for the needed flags by compiling
113377         test programs.
113379 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113381         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
113383 2000-06-04  Jim Meyering  <meyering@lucent.com>
113385         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
113386         SunOS 4.1.4 for which gid_t is an unsigned type.
113388 2000-06-03  Jim Meyering  <meyering@lucent.com>
113390         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
113391         now that autoconf requires that.
113393         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
113394         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
113395         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
113397 2000-06-03  Jim Meyering  <meyering@lucent.com>
113399         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
113401 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
113403         * m4/glibc21.m4: New file.
113404         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
113406 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
113408         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
113409         newer, don't install charset.alias.
113410         * lib/config.charset: Change the Linux/glibc rules so they become empty
113411         on glibc-2.1 or newer.
113413 2000-06-02  Jim Meyering  <meyering@lucent.com>
113415         * lib/mountlist.c: Back out last change.  Instead, do this...
113416         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
113417         me_dummy member using the same `ignore'-testing code.
113418         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
113419         fs_type strings.
113420         From Mark D. Roth.
113422 2000-05-29  Jim Meyering  <meyering@lucent.com>
113424         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
113425         mounts with the `ignore' attribute.  Based on a patch from
113426         Mark D. Roth.
113428 2000-05-28  Jim Meyering  <meyering@lucent.com>
113430         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
113431         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113432         * m4/stat.m4: Likewise.
113433         * m4/lstat.m4: Likewise.
113434         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
113436         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
113437         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
113439 2000-05-26  Jim Meyering  <meyering@lucent.com>
113441         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
113443 2000-05-24  Jim Meyering  <meyering@lucent.com>
113445         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
113446         autoconf requires that.
113447         * m4/lib-check.m4: Likewise.
113448         * m4/jm-macros.m4: Likewise.
113449         * m4/strftime.m4: Likewise.
113451         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
113452         AC_CHECK_DECLS, now that autoconf requires that.
113454 2000-05-22  Jim Meyering  <meyering@lucent.com>
113456         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113457         * m4/lstat.m4: Likewise.
113459 2000-05-22  Jim Meyering  <meyering@lucent.com>
113461         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
113463 2000-05-20  Jim Meyering  <meyering@lucent.com>
113465         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
113466         (jm_PREREQ): Use it.
113468 2000-05-18  Jim Meyering  <meyering@lucent.com>
113470         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
113471         back, too, since it may have been modified by allocate_entry.
113472         (hash_delete): Rewrite to use neither the assignment operator
113473         nor the comma operator in an if-expression.
113475 2000-05-15  Paul Eggert  <eggert@twinsun.com>
113477         * lib/closeout.c:
113478         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
113479         Remove; no longer needed.
113480         "quotearg.h": Add include.
113481         (file_name): Do not bother to explicitly initialize to NULL; it's less
113482         efficient on some hosts.
113483         (close_stdout_status): Remove test as to whether stdout was already
113484         closed; it breaks for the case "echo x | sort >&-".
113485         Quote file name colons.
113486         Do not assume that _("write error") lacks format strings.
113488 2000-05-15  Jim Meyering  <meyering@lucent.com>
113490         * lib/version-etc.c (version_etc_copyright): Update the copyright
113491         string used in all --version output.
113493 2000-05-14  Jim Meyering  <meyering@lucent.com>
113495         * lib/closeout.c (close_stdout_set_file_name): New function.
113496         (close_stdout_status): Use new file-scoped global.
113497         Return right away if fstat says the stdout file descriptor is invalid.
113498         * lib/closeout.h (close_stdout_set_file_name): Declare.
113500 2000-05-10  Jim Meyering  <meyering@lucent.com>
113502         * lib/closeout.c [default_exit_status]: New file-scoped variable.
113503         (close_stdout_set_status): New function.
113504         * lib/closeout.h (close_stdout_set_status): Declare.
113506 2000-05-09  Jim Meyering  <meyering@lucent.com>
113508         * m4/gettext.m4: Rename this...
113509         * m4/libintl.m4: ...to this.
113511 2000-05-08  Jim Meyering  <meyering@lucent.com>
113513         * lib/long-options.c: Don't include closeout.h.
113514         (parse_long_options): Don't call close_stdout for --version.
113516 2000-05-06  Paul Eggert  <eggert@twinsun.com>
113518         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
113519         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
113520         2.1.3 bug.  This avoids a clash when files like regex.c define
113521         _GNU_SOURCE.
113523 2000-05-06  Jim Meyering  <meyering@lucent.com>
113525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
113526         (AC_REPLACE_FUNCS): Add strnlen.
113528         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
113529         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
113531         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
113532         AC_SEARCH_LIBS call for nanosleep.
113533         (LIB_NANOSLEEP): Set and AC_SUBST.
113535 2000-05-06  Jim Meyering  <meyering@lucent.com>
113537         * lib/strnlen.c: Undefine __strnlen and strnlen.
113538         [!weak_alias]: Define __strnlen to strnlen.
113540         * lib/atexit.c: New file, from libiberty.
113542 2000-05-06  Jim Meyering  <meyering@lucent.com>
113544         * lib/closeout.c (close_stdout_status): Also check for errors on the
113545         stderr stream.
113547 2000-05-05  Jim Meyering  <meyering@lucent.com>
113549         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
113550         AC_SEARCH_LIBS call for clock_gettime.
113551         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
113553         * m4/search-libs.m4: Update from autoconf.
113555         su doesn't work on Solaris 2.6.
113556         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
113557         <shadow.h>.  Reported by Dragos Harabor.
113559 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
113561         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
113562         memcpy instead of xmalloc, xrealloc, path_concat.
113563         (locale_charset): Treat empty environment variables as absent.
113564         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
113566 2000-05-04  Jim Meyering  <meyering@lucent.com>
113568         * lib/getopt.c: Update from glibc.
113569         * lib/obstack.c: Likewise.
113570         * lib/obstack.h: Likewise.
113571         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
113572         file
113574         * lib/regex.h: Likewise.
113575         * lib/strndup.c: Likewise.
113576         * lib/strnlen.c: New file, from glibc.
113578 2000-05-03  Jim Meyering  <meyering@lucent.com>
113580         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
113582 2000-05-02  Paul Eggert  <eggert@twinsun.com>
113584         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
113585         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
113586         compile-time test, rather than inspecting host and OS, to
113587         decide whether to define _LARGEFILE_SOURCE.
113589 2000-05-01  Jim Meyering  <meyering@lucent.com>
113591         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
113593         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
113594         Based on a patch from Bruno Haible.
113596 2000-05-01  Jim Meyering  <meyering@lucent.com>
113598         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
113600 2000-04-29  Jim Meyering  <meyering@lucent.com>
113602         * lib/path-concat.c: Declare strdup only if it's not defined.
113603         * lib/canon-host.c: Likewise.
113605 2000-04-28  Jim Meyering  <meyering@lucent.com>
113607         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
113608         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
113609         is included first, then limits.h is included by locale.h by libintl.h.
113610         From John David Anglin.
113612 2000-04-25  Jim Meyering  <meyering@lucent.com>
113614         * lib/makepath.c (S_IRWXUGO): Define.
113615         (make_path): Always perform explicit chmod if MODE specifies any
113616         of the `special' permission bits.  Prompted by a bug report against
113617         install from Mate Wierdl and Joost van Baal.
113619 2000-04-18  Jim Meyering  <meyering@lucent.com>
113621         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
113622         (jm_PREREQ): Use it.
113624 2000-04-18  Jim Meyering  <meyering@lucent.com>
113626         * lib/README: New file.
113628         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
113629         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
113631 2000-04-17  Jim Meyering  <meyering@lucent.com>
113633         Get it right :-)
113634         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
113635         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
113636         Suggestion from Akim Demaille.
113638 2000-04-17  Jim Meyering  <meyering@lucent.com>
113640         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
113641         the definition of it to rpl_strftime also defined-away the system's
113642         declaration.
113644 2000-04-15  Jim Meyering  <meyering@lucent.com>
113646         Use `C' to denote so-called `contiguous' files, the same way
113647         that tar does.
113648         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
113649         (ftypelet): Use S_ISCTG.
113650         From Michael Deutschmann.
113652 2000-04-14  Jim Meyering  <meyering@lucent.com>
113654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
113655         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
113656         clobbered.
113658 2000-04-14  Jim Meyering  <meyering@lucent.com>
113660         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
113662 2000-04-13  Jim Meyering  <meyering@lucent.com>
113664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
113665         AH_VERBATIM to insert required #ifndef into config.h.in.
113666         Suggestion from Akim Demaille.
113668 2000-04-12  Jim Meyering  <meyering@lucent.com>
113670         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
113671         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
113672         Christian Krackowizer.
113674         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
113675         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
113676         (AC_SYS_LARGEFILE): Require.
113677         (AM_C_PROTOTYPES): Require.
113679 2000-04-08  Jim Meyering  <meyering@lucent.com>
113681         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
113682         names don't conflict.  Reported by Eli Zaretskii.
113684 2000-04-07  Jim Meyering  <meyering@lucent.com>
113686         * lib/putenv.c: Move inclusion of errno.h so it follows that of
113687         sys/types.h, to work around system header problems on AIX 3.2.5.
113688         From Bruno Haible.
113690 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
113692         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
113693         bug.  Deal with the different error behavior of Irix iconv.
113695 2000-04-05  Paul Eggert  <eggert@twinsun.com>
113697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
113698         IRIX if the installer said otherwise.
113700 2000-04-05  Jim Meyering  <meyering@lucent.com>
113702         Portability tweaks required for ultrix4.3.
113703         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
113704         (jm_CHECK_DECLS): Add getutent to the list of functions.
113705         (_jm_DECL_HEADERS): Add utmpx.h.
113706         From John David Anglin.
113708         * m4/strftime.m4: Back out the 2000-04-02 change.
113709         Instead of that change, simply undefine putenv in the test program.
113711 2000-04-05  Jim Meyering  <meyering@lucent.com>
113713         Portability tweaks required for ultrix4.3.
113714         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
113715         getutent.
113716         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
113717         * lib/canon-host.c: Declare strdup.
113718         * lib/path-concat.c: Likewise.
113719         From John David Anglin.
113721 2000-04-04  Jim Meyering  <meyering@lucent.com>
113723         Be more DOS 8.3-friendly.
113724         * lib/ref-add.sin: Renamed from ref-add.sed.in.
113725         * lib/ref-del.sin: Renamed from ref-del.sed.in.
113726         * lib/Makefile.am: Reflect renaming.
113727         Reported by Eli Zaretskii.
113729         Use a temporary file name that won't clash with `charset.alias'
113730         in the DOS 8.3 name space.
113731         * lib/Makefile.am (charset_tmp): Define.
113732         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
113733         (uninstall-local): Likewise.
113734         Reported by Eli Zaretskii.
113736 2000-04-03  Jim Meyering  <meyering@lucent.com>
113738         * m4/gettext.m4: Fix typo in comment.
113740         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
113741         textutils/configure.in).  Suggestion from Paul Eggert.
113742         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
113744 2000-04-02  Paul Eggert  <eggert@twinsun.com>
113746         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
113747         variable in the shell rather than using putenv, which isn't
113748         portable.  This avoids the configure-time inter-test dependency
113749         on the potentially-renamed putenv function.
113751 2000-03-30  Paul Eggert  <eggert@twinsun.com>
113753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
113754         before checking struct stat.st_blksize, so that
113755         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
113757 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113759         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
113760         since strftime.c uses HAVE_STRFTIME to decide whether to use
113761         the underlying strftime.
113763 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113765         * lib/time/strftime.c (my_strftime): Make sure we call the system
113766         strftime, not ourselves, when invoking the underlying strftime.
113768 2000-03-24  Jim Meyering  <meyering@lucent.com>
113770         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
113771         (charset_alias): Define.
113772         (install-exec-local): Factor out common code.
113773         (uninstall-local): Split lines longer than 80.
113774         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
113775         (SUFFIXES): Define.
113776         (.sed.in.sed): New rule.  Don't redirect directly to $@.
113777         (CLEANFILES): Add ref-add.sed and ref-del.sed.
113779 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
113781         * lib/config.charset: Output a line containing "Packages using this
113782         file".
113783         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
113784         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
113785         ref-del.sed): New rules.
113787 2000-03-17  Jim Meyering  <meyering@lucent.com>
113789         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
113790         Otherwise, include <strings.h>
113792 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
113794         * lib/unicodeio.c (utf8_wctomb): New function.
113795         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
113796         format instead of in UCS-4 with platform dependent endianness.
113798 2000-03-10  Jim Meyering  <meyering@lucent.com>
113800         * m4/lib-check.m4: Look for getspnam in -lgen, too.
113801         From Marco Franzen.
113803 2000-03-07  Paul Eggert  <eggert@twinsun.com>
113805         * lib/savedir.c (savedir): Work even if directory size is
113806         negative; this can happen with some screwy NFS configurations.
113808 2000-03-06  Jim Meyering  <meyering@lucent.com>
113810         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
113811         if it's NULL (because we ran out of memory).  From Bruno Haible.
113813 2000-03-05  Jim Meyering  <meyering@lucent.com>
113815         * lib/localcharset.c ("path-concat.h"): Include.
113816         (get_charset_aliases): Use path_concat instead of ANSI string
113817         concatenation.
113819         * lib/unicodeio.h (PARAMS): Define.
113820         Use it to guard prototype.
113822 2000-03-04  Jim Meyering  <meyering@lucent.com>
113824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
113825         for lib/localcharset.c.
113827 2000-03-04  Jim Meyering  <meyering@lucent.com>
113829         * lib/Makefile.am (install-exec-local): Create $(libdir) before
113830         installing into it.
113831         (uninstall-local): Uncomment this rule so `make distcheck' works
113832         once again.
113834         * lib/unicodeio.c (<errno.h>): Include it.
113835         (errno): Declare if not defined.
113837         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
113839         * lib/config.charset: New version, incorporating remarks from a linux
113840         i18n mailing list.  From Bruno Haible.
113842 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
113844         * m4/codeset.m4: New file.
113845         * m4/iconv.m4: New file.
113846         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
113848 2000-03-03  Jim Meyering  <meyering@lucent.com>
113850         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
113852 2000-03-02  Jim Meyering  <meyering@lucent.com>
113854         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
113855         the messages come out on separate lines.
113857         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
113858         rather than jm_CHECK_DECLARATIONS.
113859         * m4/decl.m4: Remove now-unused file.
113861         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
113862         geteuid.
113864 2000-03-02  Jim Meyering  <meyering@lucent.com>
113866         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
113868 2000-03-01  Jim Meyering  <meyering@lucent.com>
113870         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
113871         * lib/unicodeio.c: Likewise.
113873 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
113875         * lib/config.charset: New file.
113876         * lib/localcharset.c: New file.
113877         * lib/unicodeio.h, lib/unicodeio.c: New files.
113878         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
113879         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
113880         (noinst_HEADERS): Add unicodeio.h.
113881         (all-local, install-exec-local, charset.alias): New targets.
113883 2000-02-28  Paul Eggert  <eggert@twinsun.com>
113885         * lib/quotearg.c (ALERT_CHAR): New macro.
113886         (quotearg_buffer_restyled): Use it.
113888 2000-02-27  Jim Meyering  <meyering@lucent.com>
113890         * m4/check-decl.m4: Add getenv to the list.
113892 2000-02-27  Jim Meyering  <meyering@lucent.com>
113894         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
113895         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
113897         * lib/backupfile.c: Guard inclusion of stdlib.h with
113898         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
113899         Declare malloc if needed.
113901         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
113902         `#ifndef HAVE_DECL..'
113903         now that autoconf always defines the HAVE_DECL_ symbols.
113904         * lib/human.c: Likewise.
113905         * lib/same.c: Likewise.
113906         * lib/strtoumax.c: Likewise.
113908         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
113909         declaration check was not run.
113910         * lib/hash.c: Likewise.
113911         * lib/human.c: Likewise.
113912         * lib/same.c: Likewise.
113913         * lib/strtoumax.c: Likewise.
113915         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
113916         `.', then first look up the entire `.'-containing string as a login
113917         name.
113919 2000-02-23  Jim Meyering  <meyering@lucent.com>
113921         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
113922         in place of my hack.
113924 2000-02-18  Paul Eggert  <eggert@twinsun.com>
113926         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
113927         (textint): New typedef.
113928         (parser_control): Member year changed from int to textint.
113929         All uses changed.
113930         (YYSTYPE): Removed; replaced by %union with int and textint members.
113931         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
113932         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
113933         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
113934         (tSNUMBER, tUNUMBER): Now of type <textintval>.
113935         (date, number, to_year): Use width of number in digits, not its value,
113936         to determine whether it's a 2-digit year, or a 2-digit time.
113937         (yylex): Store number of digits of numeric tokens.
113938         Reported by John Kendall.
113940         (parser_control): Changed from struct parser_control to typedef (for
113941         consistency).  All uses changed.
113943         (tID): Removed; not used.
113944         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
113946 2000-02-14  Paul Eggert  <eggert@twinsun.com>
113948         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
113949         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
113951 2000-02-12  Jim Meyering  <meyering@lucent.com>
113953         * lib/userspec.c (ISDIGIT): Define it.
113954         (isdigit): Remove definition.
113955         (is_number): Use ISDIGIT, not isdigit.
113956         <libintl.h>: Include.
113957         (_ and N_): Define.
113958         (parse_user_spec): Mark translatable strings.
113960 2000-02-10  Jim Meyering  <meyering@lucent.com>
113962         With these changes, nanosleep.[ch] are finally enough like the other
113963         lib/* replacement files to compile on a few more losing systems.
113965         * lib/nanosleep.h: Don't include config.h.
113966         Remove prototype from declaration of nanosleep.
113967         (PARAMS): Remove now-unneeded definition.
113968         * lib/nanosleep.c: #undef nanosleep.
113969         (rpl_nanosleep): Rename from nanosleep.
113971 2000-02-10  Jim Meyering  <meyering@lucent.com>
113973         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
113974         gnu_nanosleep to rpl_nanosleep.
113976 2000-02-09  Jim Meyering  <meyering@lucent.com>
113978         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
113979         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
113981 2000-02-08  Akim Demaille  <akim@epita.fr>
113983         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
113984         `[' and `]' and remove uses of `changequote'.
113985         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
113986         (AC_SYS_LARGEFILE): Likewise.
113987         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
113988         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
113989         of changequote.
113990         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
113991         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
113992         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
113993         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
113995 2000-02-05  Jim Meyering  <meyering@lucent.com>
113997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
113998         Remove explicit use of AC_HEADER_TIME.  It is required by
113999         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
114000         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
114001         in autoconf whereby the expansion of the latter ended up preceding
114002         the expansion of its prerequisite, AC_HEADER_TIME.
114003         Reported by Volker Borchert.
114005 2000-02-03  Jim Meyering  <meyering@lucent.com>
114007         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
114009 2000-02-03  Jim Meyering  <meyering@lucent.com>
114011         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
114012         rather than with `#if HAVE_UTMPNAME'.
114014 2000-02-02  Jim Meyering  <meyering@lucent.com>
114016         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
114017         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
114018         Reported by Eli Zaretskii.
114020 2000-02-01  Jim Meyering  <meyering@lucent.com>
114022         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
114024 2000-01-31  Jim Meyering  <meyering@lucent.com>
114026         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
114027         functions.  Add the time.h and sys/time.h headers along with the
114028         AC_REQUIRE'ment of AC_HEADER_TIME.
114030 2000-01-31  Jim Meyering  <meyering@lucent.com>
114032         * lib/nanosleep.h (nanosleep): Guard declaration with
114033         `#if ! HAVE_DECL_NANOSLEEP'.
114034         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
114035         the declaration in that vendor's sys/timers.h.
114036         Reported by Christian Krackowizer.
114038         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
114039         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
114040         (ISPRINT): Likewise.
114041         Reported by Tom Tromey.
114043 2000-01-30  Jim Meyering  <meyering@lucent.com>
114045         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
114047         * m4/prereq.m4 (utmp_includes): Define.
114048         Check for ut_user and ut_name members in both struct utmpx
114049         and struct utmp.
114051 2000-01-30  Jim Meyering  <meyering@lucent.com>
114053         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
114054         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
114055         header files where only utmpx.ut_user is declared.
114057         * lib/readutmp.h (UT_USER): Define.
114059 2000-01-29  Jim Meyering  <meyering@lucent.com>
114061         * m4/lib-check.m4: New file containing library-related checks from
114062         fileutils and sh-utils (textutils had none).
114064 2000-01-28  Jim Meyering  <meyering@lucent.com>
114066         * m4/perl.m4: Change format of warning message to look more like that
114067         from the missing script.  Suggestion from François Pinard.
114069 2000-01-25  Jim Meyering  <meyering@lucent.com>
114071         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
114072         well as time.h in the compile check.
114073         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
114074         Fix typo in cross-compiling case: s/yes/no/.
114076 2000-01-23  Jim Meyering  <meyering@lucent.com>
114078         * m4/jm-macros.m4: Move df-related tests here from
114079         fileutils/configure.in
114081         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
114082         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
114084         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
114085         s/space/ac_fsusage_space/.
114086         (jm_FILE_SYSTEM_USAGE): Take two parameters.
114088         * m4/ftruncate.m4: New file (derived from part of
114089         fileutils/configure.in).
114090         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
114091         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
114093         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
114094         AC_SUBST these here, rather than just in sh-util/configure.in, so
114095         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
114096         all the same.
114097         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
114098         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
114099         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
114100         (AC_SUBST(POW_LIBM)): Likewise.
114101         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
114103 2000-01-23  Jim Meyering  <meyering@lucent.com>
114105         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
114106         obstack.c.
114108 2000-01-22  Jim Meyering  <meyering@lucent.com>
114110         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
114112         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
114114         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
114115         configure.in
114116         (AC_CHECK_HEADERS): Likewise for sh-utils.
114117         (AC_CHECK_HEADERS): Likewise for textutils.
114118         Merge the three lists of headers.
114120         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
114121         from fileutils' configure.in.
114123         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
114124         code. Moved tests into their own function (_jm_DECL_HEADERS) in
114125         check-decl.m4.
114127         * m4/check-decl.m4: Use #if rather than #ifdef.
114128         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
114129         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
114130         (_jm_DECL_HEADERS): Define new function.
114131         (jm_CHECK_DECLARATIONS): Require it.
114133 2000-01-22  Jim Meyering  <meyering@lucent.com>
114135         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
114136         [! HAVE_DECL_STRTOULL]: Declare strtoull.
114137         Required for some AIX systems.  Reported by Christian Krackowizer.
114138         [TESTING] (main): New function.
114140         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
114141         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
114142         letters.
114144         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
114145         iswprint.
114147         * lib/strverscmp.c (ISDIGIT): Define.
114148         (strverscmp): Use ISDIGIT, not isdigit.
114150 2000-01-19  Jim Meyering  <meyering@lucent.com>
114152         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
114153         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
114154         defines `struct timespec' in <sys/time.h>
114156         * m4/c-bs-a.m4: Remove uses of changequote altogether.
114157         Thanks to Akim for explaining.
114159 2000-01-17  Paul Eggert  <eggert@twinsun.com>
114161         * lib/nanosleep.c (nanosleep):
114162         Don't use SA_INTERRUPT to decide whether to call sigaction, as
114163         POSIX.1 doesn't require SA_INTERRUPT and some systems
114164         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
114165         it's been part of POSIX.1 since day 1 (in 1988).
114167 2000-01-17  Jim Meyering  <meyering@lucent.com>
114169         * lib/interlock: Remove unused file.  Reported by François Pinard.
114171 2000-01-16  Paul Eggert  <eggert@twinsun.com>
114173         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
114174         alert, backslash, formfeed, and vertical tab unnecessarily in
114175         shell quoting style.
114177 2000-01-16  Jim Meyering  <meyering@lucent.com>
114179         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
114180         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
114181         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
114182         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
114184 2000-01-16  Jim Meyering  <meyering@lucent.com>
114186         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
114187         because the latter didn't work.
114189 2000-01-15  Jim Meyering  <meyering@lucent.com>
114191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
114192         (AC_REPLACE_FUNCS): Add memcpy and memset.
114193         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
114194         Add strpbrk.
114195         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
114197 2000-01-12  Jim Meyering  <meyering@lucent.com>
114199         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
114200         (jm_PREREQ): Use it.
114201         (jm_PREREQ_READUTMP): New macro.
114202         (jm_PREREQ): Use it.
114204 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114206         Quote multibyte characters correctly.
114207         * m4/c-bs-a.m4: New file.
114208         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
114209         (jm_PREREQ): Use it.
114211 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114213         * m4/uintmax_t.m4: Port to autoconf 2.13.
114215 2000-01-08  Jim Meyering  <meyering@ascend.com>
114217         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
114218         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
114220 2000-01-04  Jim Meyering  <meyering@ascend.com>
114222         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
114223         jm_STRUCT_DIRENT_D_TYPE.
114224         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
114225         jm_STRUCT_DIRENT_D_INO.
114226         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
114227         jm_STRUCT_UTIMBUF.
114228         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
114229         renamings.
114230         * m4/utime.m4: Likewise.
114232         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
114233         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
114235 2000-01-03  Paul Eggert  <eggert@twinsun.com>
114237         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
114238         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
114240 2000-01-02  Jim Meyering  <meyering@ascend.com>
114242         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
114243         remember if this is necessary.
114245 1999-12-26  Jim Meyering  <meyering@ascend.com>
114247         * m4/jm-macros.m4: Use it here.
114248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
114250 1999-12-23  Jim Meyering  <meyering@ascend.com>
114252         * m4/jm-macros.m4: Check for clock_gettime (moved from
114253         fileutils/configure.in)
114254         Check for gettimeofday.
114256 1999-12-20  Jim Meyering  <meyering@ascend.com>
114258         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
114259         autoconf-2.14a-1999-12-20.
114261 1999-12-19  Jim Meyering  <meyering@ascend.com>
114263         * m4/lstat-slash.m4: New file.
114264         * m4/jm-macros.m4: Use the new macro:
114265         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114267 1999-12-07  Jim Meyering  <meyering@ascend.com>
114269         * m4/perl.m4: Require that File::Compare be available, too.
114270         Too many systems seem to lack it.
114272         * m4/strftime.m4: Add checks for most of the cpp macros tested in
114273         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
114275 1999-11-18  Paul Eggert  <eggert@twinsun.com>
114277         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
114278         problem with the QNX 4.25 shell, which doesn't propagate exit
114279         status of failed commands inside shell assignments.
114281 1999-11-17  Jim Meyering  <meyering@ascend.com>
114283         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
114285 1999-11-07  Jim Meyering  <meyering@ascend.com>
114287         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
114289 1999-11-06  Jim Meyering  <meyering@ascend.com>
114291         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
114292         * m4/jm-macros.m4 (jm_MACROS): Use it here.
114294 1999-11-05  Jim Meyering  <meyering@ascend.com>
114296         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
114297         configure.in of textutils, fileutils, and sh-utils into this one
114298         (shared between those packages) file.
114299         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
114300         AC_STRUCT_ST_BLKSIZE.
114302 1999-11-03  Jim Meyering  <meyering@ascend.com>
114304         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
114305         of AC_CHECK_TYPE checks includes unistd.h.
114306         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
114307         Suggestion from Akim Demaille.
114309 1999-10-30  Jim Meyering  <meyering@ascend.com>
114311         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
114312         m4-quoted string.
114313         * m4/ls-mntd-fs.m4: Likewise.
114314         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
114315         * m4/jm-winsz1.m4: Likewise.
114317         * m4/const.m4: Remove file, since the fix made it into the experimental
114318         version of autoconf.
114319         * m4/mktime.m4: Likewise.
114321         * m4/check-type.m4: Remove file, now that the latest version of
114322         AC_CHECK_TYPE takes a third arg to specify additional #includes.
114324         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
114325         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
114326         AC_CHECK_TYPE.
114328 1999-10-04  Jim Meyering  <meyering@ascend.com>
114330         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
114332 1999-09-22  Paul Eggert  <eggert@twinsun.com>
114334         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
114335         2.95.1 bug with HP-UX 10.20.
114337 1999-09-17  Jim Meyering  <meyering@ascend.com>
114339         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
114340         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
114341         due to missing strdup (against sh-utils-2.0).
114343 1999-08-29  Jim Meyering  <meyering@ascend.com>
114345         * m4/jm-macros.m4: Require jm_BISON.
114346         * m4/bison.m4: New file.
114348 1999-08-17  Paul Eggert  <eggert@twinsun.com>
114350         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
114351         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
114353 1999-08-05  Jim Meyering  <meyering@ascend.com>
114355         * m4/getline.m4: Rename test file from conftestdata to conftest.data
114356         to avoid conflicts with `conftest' on 8+3 filesystems.
114357         Suggestion from Eli Zaretskii.
114359 1999-08-04  Jim Meyering  <meyering@ascend.com>
114361         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
114362         fileutils and sh-utils (textutils's getline test was inadequate).
114363         (AM_FUNC_GETLINE): Run this test.
114364         (AC_CHECK_FUNCS): Check for getdelim.
114365         Reported by Bob Proulx.
114367 1999-08-02  Jim Meyering  <meyering@ascend.com>
114369         * m4/jm-macros.m4: Add a comment.
114371 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114373         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
114374         <inttypes.h> defines strtoumax as a macro (and not as a
114375         function).
114377 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114379         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
114380         that we can shift, multiply and divide unsigned long long
114381         values; Ultrix cc can't do it.
114383 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114385         * m4/mktime.m4: New file, which is a preview of what should appear
114386         in the next public autoconf release.
114388 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114390         * m4/lfs.m4: Remove this file.
114391         * m4/largefile.m4: New file.  It contains the old contents of
114392         lfs.m4, except that all names with prefix AC_LFS have been
114393         changed to use the prefix AC_SYS_LARGEFILE instead, to be
114394         compatible with future autoconf versions.  Also, some minor m4
114395         quoting problems have been fixed.
114397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114399         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
114400         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
114401         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
114402         and simplify the shell code.
114404 1999-08-01  Jim Meyering  <meyering@ascend.com>
114406         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
114407         m4.
114409 1999-07-20  Jim Meyering  <meyering@ascend.com>
114411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
114413 1999-07-15  Jim Meyering  <meyering@ascend.com>
114415         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
114417 1999-05-22  Jim Meyering  <meyering@ascend.com>
114419         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
114421 1999-05-20  Jim Meyering  <meyering@ascend.com>
114423         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
114424         Add a colon after each `then' in case $4 is empty.
114426 1999-05-16  Jim Meyering  <meyering@ascend.com>
114428         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
114430 1999-05-10  Jim Meyering  <meyering@ascend.com>
114432         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
114434         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
114435         AC_FUNC_MKTIME.
114437 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
114439         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
114441 1999-05-04  Paul Eggert  <eggert@twinsun.com>
114443         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
114444         not CPPFLAGS, so that linking works correctly in IRIX.
114446 1999-04-30  Paul Eggert  <eggert@twinsun.com>
114448         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
114450 1999-04-20  Paul Eggert  <eggert@twinsun.com>
114452         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
114453         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
114454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
114455         jm_AC_TYPE_UNSIGNED_LONG_LONG.
114456         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
114458         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
114460 1999-04-20  Jim Meyering  <meyering@ascend.com>
114462         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
114463         AC_REPLACE xstroull if necessary.  From Paul Eggert.
114464         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
114466 1999-04-18  Jim Meyering  <meyering@ascend.com>
114468         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
114469         * m4/jm-macros.m4: Use it.
114471 1999-04-06  Jim Meyering  <meyering@ascend.com>
114473         * m4/strftime.m4: Remove test for %f.
114475 1999-03-29  Jim Meyering  <meyering@ascend.com>
114477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
114478         superset of the AC_TYPE_* checks in the textutils, fileutils,
114479         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
114480         AC_TYPE_PID_T.
114482 1999-03-28  Jim Meyering  <meyering@ascend.com>
114484         * m4/jm-macros.m4: Define GNU_PACKAGE here.
114485         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
114486         replaced e.g., in the *.sh files of the sh-utils.
114488 1999-03-20  Jim Meyering  <meyering@ascend.com>
114490         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
114491         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
114492         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
114494 1999-03-19  Jim Meyering  <meyering@ascend.com>
114496         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
114498 1999-03-12  Jim Meyering  <meyering@ascend.com>
114500         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
114502 1999-03-07  Jim Meyering  <meyering@ascend.com>
114504         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
114505         declared.
114507 1999-02-17  Jim Meyering  <meyering@ascend.com>
114509         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
114510         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
114512 1999-02-07  Jim Meyering  <meyering@ascend.com>
114514         * m4/group-member.m4: New file -- extracted from sh-utils'
114515         configure.in.
114517         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
114518         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
114520 1999-02-06  Jim Meyering  <meyering@ascend.com>
114522         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
114523         * m4/fnmatch.m4: Likewise.
114524         * m4/getgroups.m4: Likewise.
114525         * m4/lstat.m4: Likewise.
114526         * m4/malloc.m4: Likewise.
114527         * m4/putenv.m4: Likewise.
114528         * m4/realloc.m4: Likewise.
114529         * m4/regex.m4: Likewise.
114530         * m4/stat.m4: Likewise.
114531         * m4/strftime.m4: Likewise.
114532         Suggestion from Alain Magloire.
114534         * m4/chown.m4: Use `.$ac_objext', not `.o'.
114535         * m4/fnmatch.m4: Likewise.
114536         * m4/getgroups.m4: Likewise.
114537         * m4/getline.m4: Likewise.
114538         * m4/lstat.m4: Likewise.
114539         * m4/malloc.m4: Likewise.
114540         * m4/memcmp.m4: Likewise.
114541         * m4/putenv.m4: Likewise.
114542         * m4/realloc.m4: Likewise.
114543         * m4/regex.m4: Likewise.
114544         * m4/stat.m4: Likewise.
114545         * m4/strftime.m4: Likewise.
114546         Suggestion from Alain Magloire.
114548         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
114549         an argument.
114551         * m4/regex.m4: Add a run-time Test for proper operation of
114552         re_compile_pattern.
114554 1999-01-31  Jim Meyering  <meyering@ascend.com>
114556         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
114558 1999-01-30  Jim Meyering  <meyering@ascend.com>
114560         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
114562         * m4/jm-mktime.m4: Make this a wrapper around the official
114563         AM_FUNC_MKTIME rather than my private copy, now that the official one
114564         is up to date.
114565         * m4/mktime.m4: Remove file.
114567         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
114568         * m4/uptime.m4: Likewise.
114569         * m4/uintmax_t.m4: Likewise.
114571 1999-01-28  Jim Meyering  <meyering@ascend.com>
114573         * m4/jm-macros.m4: Use jm_AFS.
114574         * m4/afs.m4: New file (from fileutils' configure.in).
114576         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
114577         * m4/chown.m4: Likewise.
114578         * m4/d-ino.m4: Likewise.
114579         * m4/d-type.m4: Likewise.
114580         * m4/fnmatch.m4: Likewise.
114581         * m4/getgroups.m4: Likewise.
114582         * m4/gettext.m4: Likewise.
114583         * m4/jm-mktime.m4: Likewise.
114584         * m4/jm-winsz2.m4: Likewise.
114585         * m4/lcmessage.m4: Likewise.
114586         * m4/ls-mntd-fs.m4: Likewise.
114587         * m4/malloc.m4: Likewise.
114588         * m4/memcmp.m4: Likewise.
114589         * m4/putenv.m4: Likewise.
114590         * m4/realloc.m4: Likewise.
114591         * m4/st_mtim.m4: Likewise.
114592         * m4/strftime.m4: Likewise.
114594 1999-01-16  Jim Meyering  <meyering@ascend.com>
114596         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
114597         (ARGMATCH_DIE_DECL): Define.
114599 1999-01-12  Jim Meyering  <meyering@ascend.com>
114601         * m4/Makefile.am.in: Rewrite to avoid using fmt.
114602         Reported by Lars Hecking.
114604 1999-01-10  Jim Meyering  <meyering@ascend.com>
114606         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
114607         gross kludge.
114608         * m4/inttypes_h.m4: Likewise.
114609         * m4/lstat.m4: Likewise.
114610         * m4/malloc.m4: Likewise.
114611         * m4/readdir.m4: Likewise.
114612         * m4/realloc.m4: Likewise.
114613         * m4/st_dm_mode.m4: Likewise.
114614         * m4/stat.m4: Likewise.
114615         * m4/utimbuf.m4: Likewise.
114616         * m4/utimes.m4: Likewise.
114618         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
114619         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
114620         comments in config.h.in are meaningful.
114622         * m4/jm-macros.m4: Require autoconf-2.13 here.
114624         * m4/regex.m4: By default, don't use the included regex.c on systems
114625         with glibc 2.  Suggestion from Uli Drepper.
114627 1999-01-02  Jim Meyering  <meyering@ascend.com>
114629         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
114631 1998-12-18  Jim Meyering  <meyering@ascend.com>
114633         * m4/Makefile.am.in (Makefile.am): Simplify rule.
114634         Based on a suggestion from Lars Hecking.
114636 1998-11-16  Paul Eggert  <eggert@twinsun.com>
114638         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
114640 1998-11-16  Jim Meyering  <meyering@ascend.com>
114642         * m4/lfs.m4: Double-quote the `uname...` expression.
114644 1998-11-14  Jim Meyering  <meyering@ascend.com>
114646         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
114647         * m4/stat.m4: Likewise.
114649 1998-11-03  Jim Meyering  <meyering@ascend.com>
114651         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
114652         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
114654 1998-10-18  Jim Meyering  <meyering@ascend.com>
114656         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
114658 1998-10-17  Jim Meyering  <meyering@ascend.com>
114660         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
114661         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
114662         calls for those previously hard-coded headers.  Instead, take a new
114663         parameter.
114664         (jm_CHECK_DECLARATIONS): Reflect interface change.
114665         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
114666         (jm_CHECK_DECL_LOCALTIME_R): New macro.
114668         * m4/mktime.m4: Test for spring-forward gap before long-running test.
114670 1998-10-14  Jim Meyering  <meyering@ascend.com>
114672         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
114673         instead of "TZ=America/Vancouver".  From Paul Eggert.
114675 1998-10-11  Jim Meyering  <meyering@ascend.com>
114677         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
114678         This adds a test for a recently added compatibility fix for mktime.c.
114679         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
114681 1998-09-27  Jim Meyering  <meyering@ascend.com>
114683         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
114685         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
114686         ../configure.in, including a change from Gordon Matzigkeit to allow
114687         cross-compiling for the Hurd.
114689         * m4/glibc.m4: New file/macro to test for the GNU C Library
114690         versions 1 and 2.  From Gordon Matzigkeit.
114691         Indent.
114693 1998-09-21  Jim Meyering  <meyering@ascend.com>
114695         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
114697 1998-08-18  Paul Eggert  <eggert@twinsun.com>
114699         Port nanosecond-resolution times to UnixWare 2.1.2 and
114700         pedantic Solaris 2.6.
114702         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
114703         AC_STRUCT_ST_MTIM.
114704         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
114705         Generate name of ns member, instead of just 1 or undef.
114706         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
114708 1998-08-15  Jim Meyering  <meyering@ascend.com>
114710         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
114711         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
114712         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
114713         instead of jm_TYPE_SSIZE_T.
114715 1998-08-12  Jim Meyering  <meyering@ascend.com>
114717         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
114719 1998-08-02  Jim Meyering  <meyering@ascend.com>
114721         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
114722         in acconfig.h manually.
114724 1998-07-31  Paul Eggert  <eggert@twinsun.com>
114726         * m4/st_mtim.m4: New file.
114728 1998-07-28  Jim Meyering  <meyering@ascend.com>
114730         * m4/utimes.m4: Undef stat.
114732 1998-07-25  Jim Meyering  <meyering@ascend.com>
114734         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
114735         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
114737 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
114739         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
114740         uid and gid actually remain unchanged.
114742 1998-07-07  Jim Meyering  <meyering@ascend.com>
114744         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
114746 1998-07-04  Jim Meyering  <meyering@ascend.com>
114748         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
114749         to prove that this macro can be used in packages without regex.c.
114751 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
114753         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
114754         is to be used.
114756 1998-07-03  Jim Meyering  <meyering@ascend.com>
114758         * m4/gettext.m4: Add -lintl if it's found to be necessary.
114760         * m4/gettext.m4: New file -- from gettext-0.10.35.
114761         * m4/lcmessage.m4: Likewise.
114762         * m4/progtest.m4: Likewise.
114764         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
114765         * m4/jm-macros.m4: Require the new macro.
114767 1998-06-29  Jim Meyering  <meyering@ascend.com>
114769         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
114770         for the definition of NGROUPS (used in a system header included
114771         by sys/mount.h).
114773 1998-06-28  Jim Meyering  <meyering@ascend.com>
114775         * m4/ls-mntd-fs.m4: New file.
114776         * m4/fstypename.m4: New file.
114778         * m4/jm-macros.m4: Require the new macro.
114779         * m4/jm-glibc-io.m4: New file.
114781 1998-05-19  Jim Meyering  <meyering@ascend.com>
114783         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
114784         * m4/lchown.m4: New file.
114786         * m4/Makefile.am.in: New file.
114787         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
114789 1998-05-14  Jim Meyering  <meyering@ascend.com>
114791         * m4/Makefile.am (EXTRA_DIST): Add them.
114792         * m4/jm-macros.m4: New file.
114793         * m4/utimbuf.m4: New file.
114795 1998-05-12  Jim Meyering  <meyering@ascend.com>
114797         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
114799 1998-05-11  Jim Meyering  <meyering@ascend.com>
114801         * m4/isc-posix.m4: New file.
114803 1998-05-10  Jim Meyering  <meyering@ascend.com>
114805         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
114807 1998-05-09  Jim Meyering  <meyering@ascend.com>
114809         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
114810         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
114811         with automake.
114813         * m4/ssize_t.m4: New file.
114814         * m4/mktime.m4: Remove file -- the new automake has this now.
114816 1998-04-26  Jim Meyering  <meyering@ascend.com>
114818         * m4/assert.m4: New file.
114819         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
114821 1998-04-05  Jim Meyering  <meyering@ascend.com>
114823         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
114824         (jm_PREREQ): Use it here.
114826 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
114828         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
114829         in acconfig.h.
114831 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
114833         * m4/prereq.m4: New file.
114834         * m4/error.m4: New file.
114835         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
114837 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
114839         * m4/getline.m4: Don't set am_cv_func_working_getline before the
114840         cache-check for the same variable -- that defeated the purpose of
114841         the test; the test program was never run.  This was a problem only
114842         on systems with losing getline functions -- HP-UX 10.20 is one.
114843         Reported by Bjorn Helgaas.
114845 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
114847         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
114849 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
114851         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
114853         * m4/const.m4: New file.  Use an initializer in this declaration
114854         typedef int charset[2]; const charset x;
114855         Reported by Bob Glickstein.
114857 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
114859         * m4/chown.m4: Fix reversed types on -1 args to chown.
114860         From Kaveh Ghazi.
114862 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
114864         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
114865         Add lseek and memchr.
114867         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
114868         T.E.Dickey <dickey@clark.net> said that some older preprocessors
114869         have a 20-character limit on names.
114871 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
114873         * m4/inttypes_h.m4: New file.
114874         * m4/uintmax_t.m4: New file.
114875         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
114878         -----
114880         Local Variables:
114881         coding: utf-8
114882         End:
114884         Copyright (C) 1997-2018 Free Software Foundation, Inc.
114886         Copying and distribution of this file, with or without
114887         modification, are permitted provided the copyright notice
114888         and this notice are preserved.